/* ========================================
   WHY CHOOSE US RESPONSIVE
======================================== */

@media (max-width: 1100px) {
  .why-layout {
    grid-template-columns: minmax(220px, 1fr) 320px minmax(220px, 1fr);
    gap: 30px;
  }

  .why-image-wrap {
    width: 320px;
    height: 320px;
  }

  .why-circle {
    width: 235px;
    height: 235px;
  }

  .why-column {
    min-height: 340px;
  }
}

@media (max-width: 850px) {
  .why-section {
    padding: 75px 0 85px;
  }

  .why-heading {
    margin-bottom: 50px;
  }

  .why-layout {
    grid-template-columns: 1fr;
    gap: 42px;
    max-width: 650px;
  }

  .why-image-wrap {
    grid-row: 1;
    width: 330px;
    height: 330px;
  }

  .why-circle {
    width: 245px;
    height: 245px;
  }

  .why-column {
    min-height: auto;
    gap: 28px;
  }

  .why-column-left,
  .why-column-right {
    text-align: center;
  }

  .why-item {
    max-width: 520px;
    margin: 0 auto;
  }
}

@media (max-width: 480px) {
  .why-section {
    padding: 60px 0 70px;
  }

  .why-heading {
    margin-bottom: 38px;
  }

  .why-heading h2 {
    font-size: 40px;
  }

  .why-heading p {
    font-size: 14px;
  }

  .why-layout {
    gap: 32px;
  }

  .why-image-wrap {
    width: 270px;
    height: 270px;
  }

  .why-circle {
    width: 200px;
    height: 200px;
  }

  .why-image-wrap .decor {
    width: 32px;
    height: 32px;
    font-size: 14px;
  }

  .why-image-wrap .decor-top-left {
    top: 38px;
    left: -5px;
  }

  .why-image-wrap .decor-top-right {
    top: 12px;
    right: 16px;
  }

  .why-image-wrap .decor-bottom-left {
    bottom: 22px;
    left: 5px;
  }

  .why-image-wrap .decor-bottom-right {
    right: 24px;
    bottom: 0;
  }
}

/* ========================================
   TESTIMONIALS RESPONSIVE
======================================== */

@media (max-width: 900px) {
  .testimonials-section {
    padding: 70px 0 85px;
  }

  .testimonial-slider,
  .testimonial-track {
    min-height: 370px;
  }

  .testimonial-card.active {
    width: 340px;
  }

  .testimonial-card.prev {
    transform: translateX(-240px) scale(0.82);
  }

  .testimonial-card.next {
    transform: translateX(240px) scale(0.82);
  }

  .testimonial-card.far-prev,
  .testimonial-card.far-next {
    opacity: 0;
  }

  .testimonial-prev {
    left: 5px;
  }

  .testimonial-next {
    right: 5px;
  }
}

@media (max-width: 650px) {
  .brands-section {
    padding: 52px 0;
  }

  .brands-heading {
    margin-bottom: 25px;
    padding: 0 20px;
  }

  .brands-heading h2 {
    font-size: 32px;
  }

  .brands-track {
    animation-duration: 18s;
  }

  .brand-item {
    flex-basis: 145px;
    height: 90px;
    padding: 18px 22px;
  }

  .brand-item img {
    max-width: 105px;
    max-height: 50px;
  }

  .brands-marquee::before,
  .brands-marquee::after {
    width: 35px;
  }
}

/* ========================================
   FINAL MOBILE TESTIMONIAL OVERRIDE
======================================== */

@media (max-width: 650px) {
  .testimonials-section {
    min-height: 610px;
    padding: 55px 0 70px;
    overflow-x: hidden;
  overflow-y: visible;
  }

  .testimonials-heading {
    margin-bottom: 72px;
    padding: 0 22px;
    text-align: center;
  }

  .testimonials-heading h2 {
    font-size: 38px;
    line-height: 1.05;
  }

  .testimonial-slider {
    position: relative;
    display: block;
    width: 100%;
    min-height: 420px;
    overflow: visible !important;
  padding-top: 48px;
  }

  .testimonial-track {
    position: relative;
    display: block;
    width: 100%;
    min-height: 400px;
    overflow: visible;
    padding-top: 12px;
  }

  .testimonial-card,
  .testimonial-card.active,
  .testimonial-card.prev,
  .testimonial-card.next,
  .testimonial-card.far-prev,
  .testimonial-card.far-next {
    position: absolute !important;
    top: 30px !important;
    left: 50% !important;
    display: flex !important;
    width: min(78vw, 310px) !important;
    min-width: 0 !important;
    min-height: 350px !important;
    padding: 64px 23px 26px !important;
    align-items: center;
    flex-direction: column;
    border-radius: 18px;
    opacity: 0;
    visibility: hidden;
    filter: none;
    pointer-events: none;
    transform: translateX(-50%) scale(0.82);
    transition:
      transform 0.65s cubic-bezier(0.22, 1, 0.36, 1),
      opacity 0.45s ease,
      filter 0.45s ease;
  }

  .testimonial-card.active {
    z-index: 5;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) scale(1);
  }

  .testimonial-card.prev {
    z-index: 3;
    opacity: 0.3;
    visibility: visible;
    filter: blur(1.2px);
    transform:
      translateX(-50%)
      translateX(-82%)
      scale(0.82);
  }

  .testimonial-card.next {
    z-index: 3;
    opacity: 0.3;
    visibility: visible;
    filter: blur(1.2px);
    transform:
      translateX(-50%)
      translateX(82%)
      scale(0.82);
  }

  .testimonial-card.far-prev {
    display: flex !important;
    transform:
      translateX(-50%)
      translateX(-145%)
      scale(0.7);
  }

  .testimonial-card.far-next {
    display: flex !important;
    transform:
      translateX(-50%)
      translateX(145%)
      scale(0.7);
  }

  .testimonial-avatar {
    top: -36px;
    width: 78px;
    height: 78px;
  }

  .testimonial-card h3 {
    margin-top: 5px;
    font-size: 21px;
  }

  .testimonial-card p {
    max-width: 255px;
    font-size: 13px;
    line-height: 1.6;
  }

  .testimonial-arrow {
    top: 48%;
    display: flex !important;
    width: 42px;
    height: 42px;
    border-radius: 50%;
  }

  .testimonial-prev {
    left: 8px;
  }

  .testimonial-next {
    right: 8px;
  }

  .testimonial-dots {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    display: flex !important;
    justify-content: center;
    margin: 0;
  }
}
