.overview{
    
    background: linear-gradient(180deg, rgba(182, 0, 0, 0.08) 0%, rgba(24, 38, 56, 0.08) 100%);
 padding: 2rem 0;


}


.overview-container{
    max-width: 1350px;
    margin: 0 auto;
    overflow: hidden;
   
}
.overview h2{
    color: var(--primary);
    font-size: var(--h2);
}
.overview .lined-heading{
    justify-content: center;
    font-size: var(--h2-small);
}
.overview-title p{
  margin-bottom: 2rem;
}

.overview p{
    color: var(--primary);
    font-size: var(--p0);
    width: 100%;
    padding: 0 1rem;
    line-height: 1.5;
    text-align: justify;
}

.overview-content h3{
    margin-top: 0.5rem;
    color: var(--primary);
    font-size: var(--h3);
    justify-self: center;
}

.overview-content p{
    font-size: var(--p1);
    line-height: 1.6;
    text-align: justify;
   
    
}



.card-icon{
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 10px;
}


.card-icon img{
    width: auto;
    height: 64px;
    display: block;
    margin-right: 0.5rem;
    justify-content: center;
    
}
.card h3{
    font-size: var(--h3);
    text-align: center;
    color: var(--primary);
    padding: 0;
}
.card p{
    font-size:var(--p2) ;
    display: inline;
    padding: 0 20px;
    text-align: justify;

}


 .card {

    border-radius: 16px;
    background: var(--white);
   padding-top:1rem ;
    filter: drop-shadow(0 4px 4px #00000040);
    margin-bottom:20px ;
   
    
}

.card-content{
    display: flex;
    flex-direction: column;
    height: 88%;
    gap: 15px;
    
}


@media (min-width: 1390px) {
  .card {
    width: auto;
    height: 390px;
  }
  .card h3 {
    font-size: var(--h2-small);
  }
  .card p {
    font-size: var(--p2);
  }
}


/* FRONT CARD */



.overview-link{
    display: flex;
    justify-content: center;
}

.overview-link a{
    display: inline-block;
    text-decoration: none;
    color: var(--accent);
    font-weight: 400;
    font-size: var(--p2);
}



/* Success Card */
  /* Section */
    .success-section {
      max-width: 1440px;
      margin: 0 auto;
      padding: 48px;
    }

    .success-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 64px;
      align-items: center;
    }

    /* Left content */
    .section-label {
      display: flex;
      align-items: center;
      gap: 16px;
      margin-bottom: 24px;
    }

    .section-label::before {
      content: "";
      width: 40px;
      height: 4px;
      background: var(--accent);
      border-radius: 2px;
    }

    .section-label h2 {
      font-size: var(--h2-small);
      font-weight: 700;
    }

    .section-title {
      font-size: var(--h2-small);
      font-weight: 700;
      margin-bottom: 12px;
    }

    .section-description {
      font-size: var(--p2);
      line-height: 1.6;
      color: var(--primary);
      max-width: 620px;
    }

    /* Testimonial card */
    .testimonial-card {
      position: relative;
      background: var(--primary);
      border-radius: 16px;
      padding: 32px;
      min-height: 220px;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      justify-content: center;
      overflow: hidden;
    }

    .testimonial-text {
      font-size: 16px;
      line-height: 1.6;
      color: #ffffff;
      max-width: 420px;
    }

    .testimonial-author {
      margin-top: 24px;
      font-weight: 700;
      font-size: var(--p2);
      color: #ffffff;
    }

    .testimonial-role {
        color: aliceblue;
      font-weight: 400;
      font-size: var(--p2);
      opacity: 0.85;
    }

    .testimonial-image {
      position: absolute;
      right: -10px;
      bottom: 0;
      width: 180px;
      max-height: 100%;
      object-fit: contain;
      pointer-events: none;
    }

    /* Responsive */
    

    @media (max-width: 640px) {
      .success-section {
        padding: 64px 24px;
      }

      .section-title {
        font-size: var(--h4);
      }

      .section-description {
        font-size: var(--p2);
      }
    }



/* Container: remove fixed height, fix padding */

/* Responsive grid for overview items */
.overview-content{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap:15px;
  margin-top: 0.5rem;
  margin: 0 15px;
  overflow: visible; /* avoid clipping */
}

/* Let items and cards size naturally */
.overview-item{
  width: 100%;
  height: auto;
}


/* Success section spacing stays fluid */
.success-section {
  max-width: 1440px;
  margin: 0 auto;
  padding: clamp(24px, 4vw, 48px);
}

.success-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 64px);
  align-items: center;
}

/* Testimonial image scales instead of overflowing */
.testimonial-image {
  right: -6px;
  width: clamp(120px, 22vw, 180px);
  max-height: 100%;
  object-fit: contain;
}

/* --- Breakpoints --- */

/* Large screens: keep cards aligned and slightly smaller */
@media (min-width: 992px) and (max-width: 1300px) {
  .overview-content {
    gap: 16px;
  }
 
  .card {
    width: auto;        /* fill grid track for alignment */
    height: 380px;      /* reduce visual size without transforms */
    padding: 0;   
  }
  .card h3 { font-size: calc(var(--h3) * 0.95); }
  .card p  { font-size: calc(var(--p2) * 0.95); }
  .testimonial-text{
    max-width: 300px;
  }
}



@media (max-width: 1024px) {
  .success-section {
    padding: clamp(24px, 3vw, 36px);
  }

  .success-grid {
    gap: clamp(32px, 3vw, 48px);
  }

  .section-title {
    font-size: clamp(20px, 3vw, 28px);
  }



  .testimonial-card {
    padding: clamp(20px, 3vw, 28px);
    min-height: 200px;
  }

 


  .testimonial-image {
    width: clamp(100px, 18vw, 150px);

  }
}


@media (max-width: 900px) {
  .success-grid {
    grid-template-columns: 1fr;
  }
  .testimonial-card {
    padding: clamp(20px, 4vw, 28px);
  }
  .testimonial-image {
    position: static;
    width: min(40%, 200px);
    max-width: 100%;
    align-self: center;
    margin-top: 16px;
  }
}

@media (max-width: 768px){
  .overview-container{
    padding: 0;
  }
  /* One column on tablets/phones */
  .overview-content{
    grid-template-columns: 1fr;
    justify-items: center; /* center card horizontally */
  }
   .overview p{
    font-size: var(--p1);
    padding: 0;
  }
  .card{
    min-height: unset; /* allow content-driven height */
    width: 100%;
    /* keep a nice readable width */
    height: auto;
  }
}

@media (max-width: 680px){
  .overview .container{
    padding: 1rem;
  }
  /* Typography rules below can stay as-is */
  .overview-item{
    width: 100%;
    height: auto;
  }
}


/* Responsive */
@media (max-width: 768px){
  .overview .container{
    height: auto;   
    padding: 1rem;
    }
    .overview-content{
        display:wrap;
        gap: 1rem;
        align-items: center;
      
    }
    .overview-item{
        height:auto ;
        width: 100%;
        
    }
    .card{
       margin-bottom: 1rem;
       padding: 1rem;

    }
    .card p{
        font-size:var(--p2) ;
    }
  .action{
    height: auto;
    padding: 1rem;
    display: flex;
    flex-direction: column-reverse;
  }
  .action .container{
    align-items: center;
    text-align: center;
    padding: 2rem;
  }
    .action-img{
        width: 100%;
        height: auto;
        margin-bottom: 1rem;
    }
    .action-btn .btn{
        margin-bottom: 0.6rem;
    }
    .testimonial-card{
      flex-direction: column-reverse;

    }
}

@media (max-width: 680px){
    .overview .container{
        padding: 1rem;
        height: auto;
    }  
    .overview-content h3{
        font-size: var(--h3);
    }
    .overview-content p{
        font-size: var(--p2);
    }
    .overview-item{
        width: 100%;
        height: auto;
    }
    .action h2{
        font-size: var(--h4);
    }
    .action p{
        font-size: var(--p3);
    }
}