@import url('https://fonts.googleapis.com/css2?family=Jost:wght@200;300;400&display=swap');
.design-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 20px;
    font-family: Jost;
}

.design {
  display: flex;
  align-items: center;
  justify-content: center;
}

.timeline {
  width: 80%;
  height: auto;
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

.timeline-content {
    padding: 1.75rem;
    overflow-wrap: break-word !important;
    font-family: var(--wp--preset--font-family--recoleta-regular) !important;
    color: black;
}

.timeline-content h3{
    font-family: var(--wp--preset--font-family--nhaas-grotesk-ds-pro) !important;
}

.timeline-image{
  position: relative;
}

.timeline-image img{
  border-radius: 8px;
}

.timeline-image .timeline-image-inner{
  min-height: 50px;
}


/* .timeline-component {
  margin: 0px 20px 20px 20px;
} */

.timeline-action-box{
  background-color: #fff;
  border: none;
  /* border-bottom: 1px solid gray; */
  color: #000;
  cursor: pointer;
  /* padding: 10px 0; */
  border-radius: 20px;
  margin: 10px 10px;
  outline: none;
  display: inline-block;
  width: fit-content;
  padding: 5px 20px;
  background: #7200d4;
  color: white;
}

.timeline-action-box.overlay{
  position: absolute;
  left: 0;
  background: white;
  color: #7200d4;
}

.timeline-action-box.overlay:hover{
  background: #7200d4;
  color: white;
}

.timeline-action-box.overlay .timeline-action{
  background: unset;
  color: unset;
}

.timeline-action-box.overlay .timeline-action:hover{
  background: unset;
  color: unset;
}



.timeline-action-box .timeline-action{
  border: none;
  /* border-bottom: 1px solid gray; */
  color: #000;
  cursor: pointer;
  outline: none;
  display: inline-block;
  width: fit-content;
  /* padding: 5px 20px; */
  color: white;
  background-color: unset;
  border-radius: 50px;
}

.timeline-action-box .timeline-action:hover{
  background-color: #fff;
  color: #7200d4;
}

@media screen and (min-width: 768px) {
  .timeline {
    display: grid;
    grid-template-columns: 1fr 3px 1fr;
  }
  .timeline-image{
    margin: 20px;
    overflow: hidden;
  }
  .timeline-image img{
    height: 250px;
    object-fit: cover;
  }
  
  .timeline-middle {
    position: relative;
    /* background-image: linear-gradient(45deg, #F27121, #E94057, #8A2387); */
    background-color: #7200D4;
    width: 3px;
    height: 100%;
  }
  .main-middle {
    opacity: 0;
  }
  .timeline-dot {
    font-size: 20px;
    color: white;
    position: absolute;
    top: 0;
    left: 50%;
    width: 30px;
    height: 30px;
    text-align: center;
    background-color: #7200D4;

    /* background-image: linear-gradient(45deg, #F27121, #E94057, #8A2387); */
    -webkit-transform: translateX(-50%);
            transform: translateX(-50%);
  }
  /* box-shadow: 7em 0 5.4em #f27121, 7em 0 3.4em #e94057, -3em 0 2.4em #8A2387; */
  /* box-shadow: inset 0em 20px 20em 20px #fff8d84a; */

  /* Contact page */
  /*     box-shadow: inset 0em 20px 20em 0px #fff8d84a; */
  
  /* Other page */
  /* box-shadow: inset 0em 20px 20em 0px #00000052; */
    .timeline-middle:nth-child(even) .timeline-dot {
        transform: translateX(-30px);
    }

    .timeline-middle:nth-child(odd) .timeline-dot {
        transform: translateX(0px);
    }

    .timeline-component:nth-child(even) {
        text-align: left;
    }

    .timeline-component:nth-child(odd) {
        text-align: right;
    }
  }


/* .wp-block-my-plugin-my-custom-block{
  background-color: green;
} */

@media (min-width: 767px) {

  .timeline :nth-child(1 of .timeline-component) {
    order: 1;
  }
  
  .timeline :nth-child(1 of .timeline-middle) {
    order: 2;
  }
  
  .timeline :nth-child(1 of .timeline-image) {
    order: 3;
  }
  
  .timeline :nth-child(2 of .timeline-component) {
    order: 6;
  }
  
  .timeline :nth-child(2 of .timeline-middle) {
    order: 5;
  }
  
  .timeline :nth-child(2 of .timeline-image) {
    order: 4;
  }
  
  .timeline :nth-child(3 of .timeline-component) {
    order: 7;
  }
  
  .timeline :nth-child(3 of .timeline-middle) {
    order: 8;
  }
  
  .timeline :nth-child(3 of .timeline-image) {
    order: 9;
  }
  
  .timeline :nth-child(4 of .timeline-component) {
    order: 12;
  }
  
  .timeline :nth-child(4 of .timeline-middle) {
    order: 11;
  }
  
  .timeline :nth-child(4 of .timeline-image) {
    order: 10;
  }
  
  .timeline :nth-child(5 of .timeline-component) {
    order: 13;
  }
  
  .timeline :nth-child(5 of .timeline-middle) {
    order: 14;
  }
  
  .timeline :nth-child(5 of .timeline-image) {
    order: 15;
  }
  
  .timeline :nth-child(6 of .timeline-component) {
    order: 18;
  }
  
  .timeline :nth-child(6 of .timeline-middle) {
    order: 17;
  }
  
  .timeline :nth-child(6 of .timeline-image) {
    order: 16;
  }
  
  .timeline :nth-child(7 of .timeline-component) {
    order: 19;
  }
  
  .timeline :nth-child(7 of .timeline-middle) {
    order: 20;
  }
  
  .timeline :nth-child(7 of .timeline-image) {
    order: 21;
  }
  
  .timeline :nth-child(8 of .timeline-component) {
    order: 24;
  }
  
  .timeline :nth-child(8 of .timeline-middle) {
    order: 23;
  }
  
  .timeline :nth-child(8 of .timeline-image) {
    order: 22;
  }
  
  .timeline :nth-child(9 of .timeline-component) {
    order: 25;
  }
  
  .timeline :nth-child(9 of .timeline-middle) {
    order: 26;
  }
  
  .timeline :nth-child(9 of .timeline-image) {
    order: 27;
  }
  
  .timeline :nth-child(10 of .timeline-component) {
    order: 30;
  }
  
  .timeline :nth-child(10 of .timeline-middle) {
    order: 29;
  }
  
  .timeline :nth-child(10 of .timeline-image) {
    order: 28;
  }
  
  .timeline :nth-child(11 of .timeline-component) {
    order: 31;
  }
  
  .timeline :nth-child(11 of .timeline-middle) {
    order: 32;
  }
  
  .timeline :nth-child(11 of .timeline-image) {
    order: 33;
  }
  
  .timeline :nth-child(12 of .timeline-component) {
    order: 36;
  }
  
  .timeline :nth-child(12 of .timeline-middle) {
    order: 35;
  }
  
  .timeline :nth-child(12 of .timeline-image) {
    order: 34;
  }
  
  .timeline :nth-child(13 of .timeline-component) {
    order: 37;
  }
  
  .timeline :nth-child(13 of .timeline-middle) {
    order: 38;
  }
  
  .timeline :nth-child(13 of .timeline-image) {
    order: 39;
  }
  
  .timeline :nth-child(14 of .timeline-component) {
    order: 42;
  }
  
  .timeline :nth-child(14 of .timeline-middle) {
    order: 41;
  }
  
  .timeline :nth-child(14 of .timeline-image) {
    order: 40;
  }
  
  .timeline :nth-child(15 of .timeline-component) {
    order: 43;
  }
  
  .timeline :nth-child(15 of .timeline-middle) {
    order: 44;
  }
  
  .timeline :nth-child(15 of .timeline-image) {
    order: 45;
  }
  
  .timeline :nth-child(16 of .timeline-component) {
    order: 48;
  }
  
  .timeline :nth-child(16 of .timeline-middle) {
    order: 47;
  }
  
  .timeline :nth-child(16 of .timeline-image) {
    order: 46;
  }
  
  .timeline :nth-child(17 of .timeline-component) {
    order: 49;
  }
  
  .timeline :nth-child(17 of .timeline-middle) {
    order: 50;
  }
  
  .timeline :nth-child(17 of .timeline-image) {
    order: 51;
  }
  
  .timeline :nth-child(18 of .timeline-component) {
    order: 54;
  }
  
  .timeline :nth-child(18 of .timeline-middle) {
    order: 53;
  }
  
  .timeline :nth-child(18 of .timeline-image) {
    order: 52;
  }
  
  .timeline :nth-child(19 of .timeline-component) {
    order: 55;
  }
  
  .timeline :nth-child(19 of .timeline-middle) {
    order: 56;
  }
  
  .timeline :nth-child(19 of .timeline-image) {
    order: 57;
  }
  
  .timeline :nth-child(20 of .timeline-component) {
    order: 60;
  }
  
  .timeline :nth-child(20 of .timeline-middle) {
    order: 59;
  }
  
  .timeline :nth-child(20 of .timeline-image) {
    order: 58;
  }
  
  .timeline :nth-child(21 of .timeline-component) {
    order: 61;
  }
  
  .timeline :nth-child(21 of .timeline-middle) {
    order: 62;
  }
  
  .timeline :nth-child(21 of .timeline-image) {
    order: 63;
  }
  
  .timeline :nth-child(22 of .timeline-component) {
    order: 66;
  }
  
  .timeline :nth-child(22 of .timeline-middle) {
    order: 65;
  }
  
  .timeline :nth-child(22 of .timeline-image) {
    order: 64;
  }
  
  .timeline :nth-child(23 of .timeline-component) {
    order: 67;
  }
  
  .timeline :nth-child(23 of .timeline-middle) {
    order: 68;
  }
  
  .timeline :nth-child(23 of .timeline-image) {
    order: 69;
  }
  
  .timeline :nth-child(24 of .timeline-component) {
    order: 72;
  }
  
  .timeline :nth-child(24 of .timeline-middle) {
    order: 71;
  }
  
  .timeline :nth-child(24 of .timeline-image) {
    order: 70;
  }
  
  .timeline :nth-child(25 of .timeline-component) {
    order: 73;
  }
  
  .timeline :nth-child(25 of .timeline-middle) {
    order: 74;
  }
  
  .timeline :nth-child(25 of .timeline-image) {
    order: 75;
  }
}
@media (max-width: 767px) {
  .timeline{
    counter-reset: element-counter; /* Initialize the counter */
  }
  .timeline-component{
    position: relative;
  }
  .timeline-component::after {
    box-sizing: border-box;
    position: absolute;
    top: 45px;
    left: 0px;
    transform: translateX(-50%);
    content: counter(element-counter);
    counter-increment: element-counter;
    width: fit-content;
    background-color: rgb(114 0 212);
    height: 35px;
    min-width: 35px;
    color: white;
    padding: 5px 10px;
    font-size: 20px;
    font-family: var(--wp--preset--font-family--recoleta-regular) !important;
    text-align: center;
    line-height: 25px;
}

/* box-sizing: border-box;
border-radius: 8px;
content: '';
position: absolute;
top: 100%;
left: 50%;
transform: translateX(-50%);
/* width: 19px; */
/* height: 19px; */
/* border-left: 15px solid transparent;
border-right: 15px solid transparent;
border-top: 15px solid rgb(114 0 212);
content: counter(element-counter);
counter-increment: element-counter; */ 

  .timeline .timeline-middle{
    display: none;
  }

}