.text-image-section {
    position: relative;
}

.text-image-section .text-container {
    max-width: 20%;
    z-index: 2;
    position: relative;
    left: 50px;
    margin-top: 3rem;
    margin-left: 3rem;
}

.text-image-section .text-container h1 {
    font-size: 28px;
    margin-bottom: 10px;
    line-height: 1.2;
    font-weight: bold;
}

.text-image-section .text-container h2 {
    font-size: 28px;
    margin-bottom: 20px;
    font-weight: bold;
    position: relative;
}

.text-image-section .text-container p {
    font-size: 16px;
    line-height: 1.6;
    margin-top: 20px;
}

.text-image-section .highlight {
    color: #FF8C00;
}

/* Styling for overlap */
.text-image-section .overlap-text {
    position: relative;
    z-index: 2;
}

.text-image-section .overlap-text span {
    position: relative;
    z-index: 3;
}


.text-image-section .text-container h2.overlap-text {
    position: relative;
    z-index: 2;
}

.text-image-section .image-container {
    max-width: 100%;
    position: relative;
}

.text-image-section .img-fluid {
    width: 100%;
    height: auto;
    border-radius: 5px;
}

.info-section .number{
    color:gray;
}



.text-image-section .image-container::before {
    content: "";
    position: absolute;
    top: 0;
    /* left: -150px; */
    width: 100%;
    height: 100%;
    background: transparent linear-gradient(85deg, #FFFFFF 0%, #80808000 25%) 0% 0% no-repeat padding-box;
    opacity: 1;
    border-radius: 5px; /* Match the image border-radius if any */
    z-index: 1;
    pointer-events: none; /* Ensures the gradient does not interfere with any interaction with the image */
}




@media (max-width: 992px) {
   
    .text-container {
        max-width: 100%;
        position: relative;
        left: 0;
        top: 0;
    }

    .image-container {
        max-width: 100%;
    }

    .text-container h2.overlap-text {
        left: 0;
    }
}





/* challenges section css */
.challenges-section h1 {
    text-align: center;
    font-weight: 700;
      line-height: 1.2;
      font-size:24px;
  }
  
  .challenges-section ul {
    --col-gap: 2rem;
    --row-gap: 2rem;
    --line-w: 0.25rem;
    display: grid;
    grid-template-columns: var(--line-w) 1fr;
    grid-auto-columns: max-content;
    column-gap: var(--col-gap);
    list-style: none;
    width: min(60rem, 90%);
    margin-inline: auto;
  }
  
  /* line */
  .challenges-section ul::before {
    content: "";
    grid-column: 1;
    grid-row: 1 / span 20;
    background: rgb(225, 225, 225);
    border-radius: calc(var(--line-w) / 2);
  }
  
  /* columns*/
  
  /* row gaps */
  .challenges-section ul li:not(:last-child) {
    margin-bottom: var(--row-gap);
  }
  
  /* card */
  .challenges-section ul li {
    grid-column: 2;
    --inlineP: 1.5rem;
    margin-inline: var(--inlineP);
    grid-row: span 2;
    display: grid;
    grid-template-rows: min-content min-content min-content;
    color: rgb(0, 0, 0); 
      background-color: rgb(255, 255, 255); 
      border: 1px solid transparent; 
      box-shadow: 0 4px 5px -2px rgba(0, 0, 0, 0.2); 
  }
  
  /* date */
  .challenges-section ul li .date {
    --dateH: 3rem;
    height: var(--dateH);
    margin-inline: calc(var(--inlineP) * -1);
  
    text-align: center;
    background-color: var(--accent-color);
  
    color: white;
    font-size: 30px;
    font-weight: 700;
  
    display: grid;
    place-content: center;
    position: relative;
  
    border-radius: calc(var(--dateH) / 2) 0 0 calc(var(--dateH) / 2);
  }
  
  /* date flap */
  .challenges-section ul li .date::before {
    content: "";
    width: var(--inlineP);
    aspect-ratio: 1;
    background: var(--accent-color);
    background-image: linear-gradient(rgba(0, 0, 0, 0.2) 100%, transparent);
    position: absolute;
    top: 100%;
  
    clip-path: polygon(0 0, 100% 0, 0 100%);
    right: 0;
  }
  
  /* circle */
  .challenges-section ul li .date::after {
    content: "";
    position: absolute;
    width: 2rem;
    aspect-ratio: 1;
    background: var(--bgColor);
    border: 0.3rem solid var(--accent-color);
    border-radius: 50%;
    top: 50%;
  
    transform: translate(50%, -50%);
    right: calc(100% + var(--col-gap) + var(--line-w) / 2);
  }
  
  /* title descr */
  .challenges-section ul li .title,
  ul li .descr {
    background: var(--bgColor);
    position: relative;
    padding-inline: 1.5rem;
    
  }
  .challenges-section ul li .title {
    overflow: hidden;
    padding-block-start: 1.5rem;
    padding-block-end: 1rem;
    font-weight: 500;
    font-size: 18px;
    text-decoration:underline;
  }
  .challenges-section ul li .descr {
    padding-block-end: 1.5rem;
    font-weight: 300;
    font-size: 16px;
  }
  
  
  
  @media (min-width: 40rem) {
      .challenges-section ul {
      grid-template-columns: 1fr var(--line-w) 1fr;
    }
    .challenges-section ul::before {
      grid-column: 2;
    }
    .challenges-section ul li:nth-child(odd) {
      grid-column: 1;
    }
    .challenges-section ul li:nth-child(even) {
      grid-column: 3;
    }
  
    /* start second card */
    .challenges-section ul li:nth-child(2) {
      grid-row: 2/4;
    }
  
    .challenges-section ul li:nth-child(odd) .date::before {
      clip-path: polygon(0 0, 100% 0, 100% 100%);
      left: 0;
    }
  
    .challenges-section ul li:nth-child(odd) .date::after {
      transform: translate(-50%, -50%);
      left: calc(100% + var(--col-gap) + var(--line-w) / 2);
    }
    .challenges-section ul li:nth-child(odd) .date {
      border-radius: 0 calc(var(--dateH) / 2) calc(var(--dateH) / 2) 0;
    }
  }
  

  
  /* solutions section designs */
  .challenges-section h1 {
    text-align: center;
    font-weight: 700;
      line-height: 1.2;
      font-size:24px;
  }
  
  .challenges-section ul {
    --col-gap: 2rem;
    --row-gap: 2rem;
    --line-w: 0.25rem;
    display: grid;
    grid-template-columns: var(--line-w) 1fr;
    grid-auto-columns: max-content;
    column-gap: var(--col-gap);
    list-style: none;
    width: min(60rem, 90%);
    margin-inline: auto;
  }
  
  /* line */
  .challenges-section ul::before {
    content: "";
    grid-column: 1;
    grid-row: 1 / span 20;
    background: rgb(225, 225, 225);
    border-radius: calc(var(--line-w) / 2);
  }
  
  /* columns*/
  
  /* row gaps */
  .challenges-section ul li:not(:last-child) {
    margin-bottom: var(--row-gap);
  }
  
  /* card */
  .challenges-section ul li {
    grid-column: 2;
    --inlineP: 1.5rem;
    margin-inline: var(--inlineP);
    grid-row: span 2;
    display: grid;
    grid-template-rows: min-content min-content min-content;
    color: rgb(0, 0, 0); 
      background-color: rgb(255, 255, 255); 
      border: 1px solid transparent; 
      box-shadow: 0 4px 5px -2px rgba(0, 0, 0, 0.2); 
  }
  
  /* date */
  .challenges-section ul li .date {
    --dateH: 3rem;
    height: var(--dateH);
    margin-inline: calc(var(--inlineP) * -1);
  
    text-align: center;
    background-color: var(--accent-color);
  
    color: white;
    font-size: 30px;
    font-weight: 700;
  
    display: grid;
    place-content: center;
    position: relative;
  
    border-radius: calc(var(--dateH) / 2) 0 0 calc(var(--dateH) / 2);
  }
  
  /* date flap */
  .challenges-section ul li .date::before {
    content: "";
    width: var(--inlineP);
    aspect-ratio: 1;
    background: var(--accent-color);
    background-image: linear-gradient(rgba(0, 0, 0, 0.2) 100%, transparent);
    position: absolute;
    top: 100%;
  
    clip-path: polygon(0 0, 100% 0, 0 100%);
    right: 0;
  }
  
  /* circle */
  .challenges-section ul li .date::after {
    content: "";
    position: absolute;
    width: 2rem;
    aspect-ratio: 1;
    background: var(--bgColor);
    border: 0.3rem solid var(--accent-color);
    border-radius: 50%;
    top: 50%;
  
    transform: translate(50%, -50%);
    right: calc(100% + var(--col-gap) + var(--line-w) / 2);
  }
  
  /* title descr */
  .challenges-section ul li .title,
  ul li .descr {
    background: var(--bgColor);
    position: relative;
    padding-inline: 1.5rem;
    
  }
  .challenges-section ul li .title {
    overflow: hidden;
    padding-block-start: 1.5rem;
    padding-block-end: 1rem;
    font-weight: 500;
    font-size: 18px;
    text-decoration:underline;
  }
  .challenges-section ul li .descr {
    padding-block-end: 1.5rem;
    font-weight: 300;
    font-size: 16px;
  }
  
  
  
  @media (min-width: 40rem) {
      .challenges-section ul {
      grid-template-columns: 1fr var(--line-w) 1fr;
    }
    .challenges-section ul::before {
      grid-column: 2;
    }
    .challenges-section ul li:nth-child(odd) {
      grid-column: 1;
    }
    .challenges-section ul li:nth-child(even) {
      grid-column: 3;
    }
  
    /* start second card */
    .challenges-section ul li:nth-child(2) {
      grid-row: 2/4;
    }
  
    .challenges-section ul li:nth-child(odd) .date::before {
      clip-path: polygon(0 0, 100% 0, 100% 100%);
      left: 0;
    }
  
    .challenges-section ul li:nth-child(odd) .date::after {
      transform: translate(-50%, -50%);
      left: calc(100% + var(--col-gap) + var(--line-w) / 2);
    }
    .challenges-section ul li:nth-child(odd) .date {
      border-radius: 0 calc(var(--dateH) / 2) calc(var(--dateH) / 2) 0;
    }
  }
  
  