@media (max-width: 768px) {

.testimonials-section {
    margin-top: 20% !important;
}
/* REMOVE GAP BETWEEN STATS STRIP & DOTS */
.stats-strip-wrapper {
  padding-bottom: 10px !important;
}
.about-hero {
    margin-bottom: 6% !important;
}


.stats-strip {
  margin-bottom: 10px;
}


.testimonial-slider {
    margin-bottom: 40px !important;
}

}
.testimonials-section {
    margin-top: 0px !important;
margin-bottom: 6% !important;
}
.about-hero {
    margin-bottom: 6% !important;
}


/* ===== SECTION HEADER ===== */

:root {
  --content-width: 1008.35px; /* same as case-container */
}

.case-container {
  width: var(--content-width);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  gap: 20px;
  align-items: stretch;
  margin-bottom: 0%;

}
.stats-testimonial-wrap {
  width: var(--content-width);   /* ðŸ”¥ key fix */
  margin: 24px auto 0;           /* spacing below top cards */
  padding: 0 24px;
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 20px;
  align-items: stretch;
}

.case-header {
  max-width: 800px;
  margin: 0 auto 40px;  
  text-align: center;
  
}

.case-main-title {
  font-size: 36px;
  font-weight: 600;
  margin-bottom: 12px;
  color: rgb(62, 70, 73);
}

.case-subtitle {
  font-size: 14px;
  color: #666;
  line-height: 1.6;
}

/* ===== CASE SECTION ===== */
.case-section {
  padding: 60px 0 64px; /* bottom gap added */
}


/* ===== LEFT CARD ===== */
.case-card {
  background: #eef6f6;
  border-radius: 20px;
  padding: 32px;
  border: 1px solid #9ad24b;
}

.case-number {
  font-size: 48px;
  font-weight: 700;
  color: #9ad24b;
}

.case-title {
  font-size: 24px;
  margin: 16px 0;
  color: rgb(62, 70, 73);
}

.case-desc {
  font-size: 14px;
  color: #555;
  line-height: 1.6;
}

.case-user {
  display: flex;
  gap: 12px;
  margin-top: 24px;
  align-items: center;
  color: rgb(62, 70, 73);
}

.case-avatar {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: #ddd;
  color: #000;
}

.case-user span {
  font-size: 12px;
  color: #777;
}

/* ===== RIGHT SLIDER ===== */
.case-slider {
  width: 372px;
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  display: flex;
}

.case-slider-track {
  display: flex;
  width: 100%;
  animation: slide-step 15s infinite;
}

.case-slider img {
  width: 100%;
  height: 100%;
  flex: 0 0 100%;
  object-fit: cover;
}

/* DOTS */
.case-dots {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
}

.case-dots .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fff;
  opacity: 0.4;
}

.case-dots .dot.active {
  opacity: 1;
}

/* SLIDER ANIMATION */
@keyframes slide-step {
  0%, 30% { transform: translateX(0); }
  35%, 65% { transform: translateX(-100%); }
  70%, 100% { transform: translateX(-200%); }
}

/* ===== STATS + TESTIMONIAL ===== */
.stats-testimonial {
  padding: 64px 0 96px; /* top gap added */
  font-family: 'Inter', sans-serif;
  margin-left: 10%;
}


/* LEFT STATS */
.stats-column {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* ===== STAT CARDS (DARK + GREEN) ===== */
.stat-card {
  width: 303px;
  height: 184px;
  border-radius: 20px;

  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;

  padding: 24px;
}

.stat-card h3 {
  font-size: 40px;
  font-weight: 700;
  margin-bottom: 16px;
}

.stat-card p {
  font-size: 17px;
  line-height: 1.6;
  text-align: center;
}

.stat-dark {
  background: #1c4752;
  color: #fff;
}

.stat-green {
  background: #9ac53b;
  color: #000;
}

/* TESTIMONIAL */
.testimonial-card {
  background: #dcecee;
  border-radius: 28px;
  padding: 45px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.brand-logo1 {
  width: 110px;
  margin-bottom: 5px;
}

.testimonial-card h4 {
  font-size: 28px;
  line-height: 1.4;
  font-weight: 600;
  margin-bottom: 32px;
  color: #000;
}

/* USER */
.testimonial-user {
  display: flex;
  align-items: center;
  gap: 16px;
  color: #000;
}

.testimonial-user img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 3px solid #1c6fd5;
  object-fit: cover;
}

.testimonial-user strong {
  font-size: 16px;
}

.testimonial-user span {
  font-size: 14px;
  color: #4f6469;
}


/* Dark content card (right side) */
.case-card-dark {
  background: #1c4752;
  color: #fff;
  border-radius: 28px;
  padding: 48px;
}

/* Number style */
.case-card-dark .case-number {
  font-size: 64px;
  font-weight: 700;
  color: #9ac53b;
  margin-bottom: 24px;
}

/* Text color corrections */
.case-card-dark .case-title,
.case-card-dark .case-desc,
.case-card-dark strong,
.case-card-dark span {
  color: #fff;
}

/* Avatar like Figma */
.case-avatar {
  width: 72px;
  height: 56px;
  border-radius: 14px;
  background: #e6e6e6;
}
.case-container {
  width: var(--content-width);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  gap: 20px;
  align-items: stretch;
  margin-bottom: 0%;
  margin-top: 20px;
}

/* FORCE SAME WIDTH */
.case-slider,
.case-card {
  flex: 1;            /* ðŸ”¥ Equal width */
  min-width: 0;       /* Prevent overflow */
}

/* =========================
   MOBILE VIEW (FIGMA MATCH)
   ========================= */
@media (max-width: 768px) {

  :root {
    --content-width: 100%;
  }

  /* GENERAL SECTION */
  .case-section {
    padding: 28px 0;
  }

  /* MAIN CONTAINERS */
  .case-container,
  .stats-testimonial-wrap {
    width: 100%;
    padding: 0 16px;
    margin: 0 auto;
    flex-direction: column;
    display: flex;
    gap: 28px; /* merged gap */
  }

  /* HEADER */
  .case-main-title {
    font-size: 32px;
  }

  .case-subtitle {
    font-size: 13px;
  }

  /* TOP CARD + SLIDER */
  .case-card,
  .case-slider {
    width: 100%;
    flex: none;
    margin-bottom: 20px; /* card-to-card gap */
  }

  .case-card {
    padding: 24px;
    border-radius: 20px;
  }

  .case-number {
    font-size: 36px;
  }

  .case-title {
    font-size: 20px;
  }

  .case-desc {
    font-size: 13px;
  }

  /* SLIDER */
  .case-slider {
    height: 240px;
  }

  .case-slider img {
    border-radius: 20px;
  }

  .case-dots {
    bottom: 12px;
  }

  /* STATS + TESTIMONIAL */
  .stats-testimonial {
    margin-left: 0;
    padding: 40px 0;
  }

  /* STATS GRID */
  .stats-column {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }

  .stat-card {
    width: 100%;
    height: auto;
    padding: 22px;
    border-radius: 20px;
  }

  .stat-card h3 {
    font-size: 28px;
  }

  .stat-card p {
    font-size: 13px;
  }

  /* TESTIMONIAL CARD */
  .testimonial-card {
    padding: 28px;
    border-radius: 24px;
    gap: 20px;
    margin-bottom: 20px;
  }

  .testimonial-card h4 {
    font-size: 18px;
    line-height: 1.5;
    margin-bottom: 24px;
  }

  .brand1-logo {
    width: 90px;
  }

  /* USER INFO */
  .case-user,
  .testimonial-user {
    margin-top: 20px;
  }

  .testimonial-user img {
    width: 44px;
    height: 44px;
  }

  .testimonial-user strong {
    font-size: 14px;
  }

  .testimonial-user span {
    font-size: 12px;
  }

  /* DARK CARD */
  .case-card-dark {
    padding: 28px;
    border-radius: 24px;
    margin-bottom: 20px;
  }

  .case-card-dark .case-number {
    font-size: 42px;
  }
}

html {
  scroll-behavior: smooth;
}

/* GRID */
.cs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  margin-bottom: 30px;
}

/* CARD */
.cs-card {
  border-radius: 28px;
  overflow: hidden;
}
.cs-card-image {
  position: relative;
  height: 290px;
  border-radius: 28px; /* same as image */
  overflow: hidden;             /* ensures image and logo stay inside */
}

.cs-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cs-brand-logo {
  position: absolute;
  top: 12px;       /* distance from top */
  left: 12px;      /* distance from left */
  width: 40px;     /* smaller size but visible */
  height: 40px;    /* proportional height */
  padding: 4px;
  border-radius: 8px;
  object-fit: contain;

  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  z-index: 10;      
}


.cs-tag {
  position: absolute;
  bottom: 16px;
  left: 16px;
  background: #e6f4f7;
  color: #000;
  padding: 6px 14px;
  border-radius: 20px;
}

.cs-arrow {
  position: absolute;
  bottom: 16px;
  right: 16px;
  background: #9ac53b;
  color: #000;
  padding: 10px;
  border-radius: 12px;
}

/* CONTENT */
.cs-card-content {
  padding: 32px;
  margin-top: 15px;
}

.cs-dark {
  background: #1c4752;
  color: #fff;
}

.cs-light {
  background: #eef6f6;
  color: #000;
  border-radius: 0 0 28px 28px;
}

/* STATS */
.cs-stats {
  display: flex;
  justify-content: space-between;
  margin-bottom: 24px;
}

.cs-stats h3 {
  font-size: 36px;
  color: #9ac53b;
}

.cs-stats p {
  font-size: 14px;
}

/* DESCRIPTION */
.cs-desc {
  font-size: 16px;
  line-height: 1.6;
}

/* =========================
   MOBILE VIEW
   ========================= */
@media (max-width: 768px) {

  .cs-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .cs-card-image {
    height: 220px;
  }

  .cs-card-content {
    padding: 24px;
  }

  .cs-stats h3 {
    font-size: 28px;
  }
}
.case-user {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* Logo image */
.case-logo img {
  width: 108px;
  height: 58px;
  object-fit: contain;          /* IMPORTANT: fits any logo */
}
.case-read-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  font-size: 14px;
  font-weight: 600;
  color: #62b400;
  text-decoration: none;
  transition: all 0.3s ease;
}

 .brochure-modal {
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.65);
        display: none;
        align-items: center;
        justify-content: center;
        z-index: 10000;
      }

      /* Card */
      .brochure-content {
        background: #0f3f45;
        /* dark teal */
        width: 520px;
        max-width: 92%;
        padding: 35px 30px 30px;
        border-radius: 16px;
        position: relative;
        box-shadow: 0 25px 60px rgba(0, 0, 0, 0.35);
      }

      /* Header */
      .brochure-content h3 {
        color: #fff;
        font-size: 20px;
        font-weight: 600;
        text-align: center;
        margin-bottom: 25px;
      }

      /* Close button */
      .close-btn {
        position: absolute;
        top: 18px;
        right: 20px;
        font-size: 22px;
        color: #fff;
        cursor: pointer;
        opacity: 0.8;
      }

      .close-btn:hover {
        opacity: 1;
      }

      /* Rows */
      .form-row {
        display: flex;
        gap: 15px;
        margin-bottom: 14px;
      }

      .form-row:last-of-type {
        margin-bottom: 22px;
      }

      /* Inputs */
      .form-row input {
        width: 100%;
        padding: 13px 14px;
        border-radius: 10px;
        border: none;
        outline: none;
        font-size: 14px;
        background: #ffffff;
        color: #333;
      }

      /* Single full-width input row */
      .form-row input:only-child {
        width: 100%;
      }

      /* Placeholder */
      .form-row input::placeholder {
        color: #9aa6a8;
      }

      .submit-btn {
        width: 160px;
        padding: 14px;
        background: transparent;
        border: 2px solid #9ee06c;
        color: #fff;
        font-size: 15px;
        font-weight: 600;
        border-radius: 12px;
        cursor: pointer;
        transition: all 0.3s ease;
        margin: 0 auto;
        display: block;
        height: 10%;
        /* ✅ THIS FIXES IT */
      }

.submit-btn:hover {
  background: #99BD25 !important;
  color: #fff;
  text-decoration: none;
  border: 2px solid #99BD25;
}

/* CLICK / ACTIVE */
.submit-btn:active,
.submit-btn:focus {
   background: #99BD25 !important;
  color: #000;
  outline: none;
  box-shadow: none;
  border: 2px solid #99BD25 !important;
}


      /* Mobile fix */
      @media (max-width: 576px) {
        .form-row {
          flex-direction: column;
        }
      }
       /* Overlay */
      /* ===== BROCHURE FORM – APPLICATION STYLE ===== */
.form-row textarea {
  width: 100%;
  padding: 13px 14px;
  border-radius: 10px;
  border: none;
  outline: none;
  font-size: 14px;
  background: #ffffff;
  color: #333;
  resize: none; /* prevents drag resize */
   height: 70px;
}

.form-row textarea::placeholder {
  color: #9aa6a8;
}



/* ================= MOBILE CASE STUDY FINAL FIX ================= */
@media (max-width: 768px) {

  /* Force vertical stacking */
  .case-container {
    display: flex !important;
    flex-direction: column !important;
    gap: 24px !important;
  }

  /* ALWAYS image first, text below */
  .case-slider {
    order: 1 !important;
    width: 100% !important;
    height: 240px;
  }

  .case-card {
    order: 2 !important;
    width: 100% !important;
  }

  /* Prevent slider overflow */
  .case-slider-track {
    height: 100%;
  }

  .case-slider img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
}


/* ================= MOBILE GAP FOR TESTIMONIALS ================= */
@media (max-width: 768px) {

  .testimonials-section {
    margin-top: 60px !important;    /* space BEFORE section */
    margin-bottom: 60px !important; /* space AFTER section */
    padding-top: 40px;              /* inner breathing space */
    padding-bottom: 40px;
  }

}
/* ================= FIX SLIDER STACKING ON TABLET & MOBILE ================= */
@media (max-width: 1024px) {

  .case-slider {
    overflow: hidden;        /* 🔥 hide extra images */
    height: 240px;
  }

  .case-slider-track {
    display: flex;
    flex-direction: row;     /* 🔥 force horizontal */
    width: 300%;             /* 3 slides */
  }

  .case-slider img {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
}
/* ================= TABLET + MOBILE STACK ================= */
@media (max-width: 1024px) {

  :root {
    --content-width: 100%;
  }

  .case-container {
    width: 100%;
    padding: 0 16px;
    display: flex;
    flex-direction: column;   /* 🔥 STACK */
    gap: 24px;
  }

  /* IMAGE ALWAYS FIRST */
  .case-slider {
    order: 1;                /* 🔥 IMAGE ON TOP */
    width: 100%;
    height: 260px;
  }

  .case-card {
    order: 2;                /* 🔥 CONTENT BELOW */
    width: 100%;
  }
}

