/* ===================================================================
   DR. BHAGAT'S CLINIC — STICKY SPLIT PATIENT CARE & EXPERIENCES
   Balanced Mid-Tone Theme: Soothing Pearl Ice Slate with Pure White Cards
   =================================================================== */

#testimonials,
.section-testimonials {
  background: #f0f4f9 !important;
  color: #0f172a !important;
  padding: 95px 0 !important;
  position: relative;
  border-top: 1px solid #cbd5e1;
  border-bottom: 1px solid #cbd5e1;
}

/* ── 1. TWO-COLUMN STICKY SPLIT GRID ── */
.testi-split-layout {
  display: grid;
  grid-template-columns: 400px 1fr;
  gap: 50px;
  align-items: start;
  position: relative;
}

/* ── 2. LEFT COLUMN: STICKY SHOWCASE ── */
.testi-sticky-col {
  position: -webkit-sticky;
  position: sticky;
  top: 95px;
  align-self: start;
  height: fit-content;
  z-index: 10;
}

.testi-sticky-inner {
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: -webkit-sticky;
  position: sticky;
  top: 95px;
}

.testi-sticky-header .section-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: #e0f2fe;
  border: 1px solid #bae6fd;
  color: #0369a1;
  font-family: var(--font-heading, 'Outfit', sans-serif);
  font-size: 0.8rem;
  font-weight: 700;
  border-radius: var(--radius-full, 9999px);
  margin-bottom: 12px;
}

.testi-sticky-header .section-title {
  font-family: var(--font-heading, 'Outfit', sans-serif);
  font-size: clamp(1.8rem, 2.3vw, 2.35rem);
  font-weight: 800;
  color: #1a385c;
  line-height: 1.2;
  margin: 0;
}

.testi-sticky-header .gradient-text {
  background: linear-gradient(135deg, #0284c7 0%, #0d9488 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── 3. ARCH FRAME WITH EXPERIENCE BADGE ── */
.testi-doctor-arch {
  position: relative;
  padding: 10px;
  background: #ffffff;
  border: 2px solid #cbd5e1;
  border-radius: 190px 190px 26px 26px;
  box-shadow: 0 12px 34px rgba(26, 56, 92, 0.08);
}

.testi-arch-img-box {
  width: 100%;
  height: 330px;
  border-radius: 180px 180px 20px 20px;
  overflow: hidden;
  background: #e0f2fe;
  position: relative;
}

.testi-arch-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.5s ease;
}

.testi-doctor-arch:hover .testi-arch-img-box img {
  transform: scale(1.04);
}

/* Circular Floating Experience Badge */
.testi-arch-badge {
  position: absolute;
  top: 90px;
  right: -18px;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  color: #ffffff;
  border: 4px solid #ffffff;
  box-shadow: 0 10px 25px rgba(2, 132, 199, 0.35);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  z-index: 5;
  transition: transform 0.3s ease;
}

.testi-doctor-arch:hover .testi-arch-badge {
  transform: scale(1.08) rotate(-4deg);
}

.testi-arch-badge .badge-num {
  font-family: var(--font-heading, 'Outfit', sans-serif);
  font-size: 1.45rem;
  font-weight: 900;
  line-height: 1;
}

.testi-arch-badge .badge-lbl {
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  line-height: 1.1;
  margin-top: 2px;
  opacity: 0.95;
}

/* Quick Trust Metric Capsule */
.testi-trust-pill {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(26, 56, 92, 0.05);
}

.testi-stars-wrap {
  display: flex;
  gap: 3px;
  color: #0284c7;
  font-size: 1rem;
}

.testi-trust-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.testi-trust-text strong {
  font-family: var(--font-heading, 'Outfit', sans-serif);
  font-size: 0.95rem;
  font-weight: 800;
  color: #1a385c;
}

.testi-trust-text span {
  font-size: 0.77rem;
  color: #475569;
  font-weight: 600;
}

/* ── 4. RIGHT COLUMN: SCROLLING STREAM OF REVIEWS ── */
.testi-scroll-col {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* ── 5. CLEAN REVIEW CARD ── */
.testi-card {
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  border-radius: 20px;
  padding: 24px 26px;
  box-shadow: 0 8px 24px rgba(26, 56, 92, 0.06);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.testi-card:hover {
  border-color: #0284c7;
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(2, 132, 199, 0.12);
}

/* Card Top Row */
.testi-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.testi-card-stars {
  display: flex;
  gap: 3px;
  color: #f59e0b;
  font-size: 0.92rem;
}

.testi-card-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 12px;
  background: #e0f2fe;
  border: 1px solid #bae6fd;
  border-radius: var(--radius-full, 9999px);
  color: #0369a1;
  font-family: var(--font-heading, 'Outfit', sans-serif);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.testi-card-tag.tag-rose {
  background: #ffe4e6;
  border-color: #fecdd3;
  color: #be123c;
}

/* Card Quote */
.testi-quote {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #334155;
  margin: 0;
  font-weight: 500;
}

/* Card Bottom Author Row */
.testi-card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid #f1f5f9;
  gap: 12px;
}

.testi-author-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testi-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%);
  color: #0369a1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading, 'Outfit', sans-serif);
  font-weight: 800;
  font-size: 0.92rem;
  flex-shrink: 0;
  border: 1.5px solid #0284c7;
}

.testi-avatar.avatar-rose {
  background: linear-gradient(135deg, #ffe4e6 0%, #fecdd3 100%);
  color: #be123c;
  border-color: #f43f5e;
}

.testi-author-meta strong {
  display: block;
  font-family: var(--font-heading, 'Outfit', sans-serif);
  font-size: 0.94rem;
  font-weight: 800;
  color: #1a385c;
  line-height: 1.2;
}

.testi-author-meta span {
  font-size: 0.78rem;
  color: #64748b;
  font-weight: 600;
}

.testi-verified {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.75rem;
  color: #059669;
  font-weight: 700;
  white-space: nowrap;
}

.testi-verified i {
  font-size: 0.85rem;
}

/* ── 6. RESPONSIVE BREAKPOINTS (COMPACT & SCROLL-OPTIMIZED) ── */
@media (max-width: 992px) {
  .testi-split-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .testi-sticky-col {
    position: static;
    max-width: 440px;
    margin: 0 auto;
    width: 100%;
  }

  .testi-sticky-inner {
    text-align: center;
    align-items: center;
    position: static;
    gap: 14px;
  }

  .testi-doctor-arch {
    width: 100%;
    max-width: 220px;
    margin: 0 auto;
    padding: 6px;
    border-radius: 130px 130px 20px 20px;
  }

  .testi-arch-img-box {
    height: 160px;
    border-radius: 120px 120px 16px 16px;
  }

  .testi-arch-badge {
    width: 58px;
    height: 58px;
    top: 30px;
    right: -4px;
  }

  .testi-arch-badge .badge-num {
    font-size: 1rem;
  }

  .testi-arch-badge .badge-lbl {
    font-size: 0.46rem;
  }

  .testi-trust-pill {
    justify-content: center;
    width: 100%;
    max-width: 300px;
    padding: 8px 12px;
  }
}

@media (max-width: 768px) {
  #testimonials,
  .section-testimonials {
    padding: 42px 0 38px !important;
  }

  .testi-split-layout {
    gap: 16px !important;
  }

  .testi-sticky-col {
    margin-bottom: 0 !important;
  }

  .testi-sticky-inner {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 10px !important;
    text-align: center !important;
  }

  .testi-sticky-header {
    margin-bottom: 0 !important;
    text-align: center !important;
  }

  .testi-sticky-header .section-badge {
    margin-bottom: 8px !important;
  }

  .testi-sticky-header .section-title {
    font-size: 1.5rem !important;
    margin: 0 !important;
  }

  /* Hide redundant doctor arch on mobile to bring patient reviews front and center */
  .testi-doctor-arch {
    display: none !important;
  }

  .testi-trust-pill {
    margin: 4px auto 0 !important;
    max-width: 320px !important;
    padding: 8px 14px !important;
    border-radius: 9999px !important;
    box-shadow: 0 4px 14px rgba(26, 56, 92, 0.06) !important;
  }

  /* Horizontal Swipe Review Stream */
  .testi-scroll-col {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    scroll-snap-type: x mandatory;
    gap: 14px;
    margin: 0 -16px;
    padding: 6px 24px 14px 16px !important;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
  }

  .testi-card {
    flex: 0 0 82% !important;
    min-width: 260px !important;
    max-width: 300px !important;
    min-height: 185px !important;
    scroll-snap-align: center;
    padding: 18px 16px !important;
    border-radius: 16px !important;
    margin-bottom: 0 !important;
    box-shadow: 0 4px 16px rgba(26, 56, 92, 0.06);
    justify-content: space-between !important;
  }

  .testi-quote {
    font-size: 0.82rem !important;
    line-height: 1.42 !important;
    display: -webkit-box;
    -webkit-line-clamp: 3 !important;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 4px 0 !important;
  }

  .testi-card-bottom {
    flex-wrap: wrap;
    gap: 8px;
  }

  .testi-verified {
    margin-left: auto;
    font-size: 0.72rem;
  }
}

@media (max-width: 480px) {
  #testimonials,
  .section-testimonials {
    padding: 38px 0 34px !important;
  }

  .testi-sticky-header .section-title {
    font-size: 1.45rem !important;
  }

  .testi-trust-pill {
    padding: 6px 12px !important;
    gap: 8px;
  }

  .testi-trust-text strong {
    font-size: 0.82rem;
  }

  .testi-trust-text span {
    font-size: 0.68rem;
  }

  .testi-card {
    flex: 0 0 82% !important;
    min-width: 250px !important;
    padding: 16px 14px !important;
    border-radius: 14px !important;
  }

  .testi-quote {
    font-size: 0.8rem !important;
    line-height: 1.38 !important;
  }

  .testi-avatar {
    width: 32px;
    height: 32px;
    font-size: 0.76rem;
  }

  .testi-author-meta strong {
    font-size: 0.82rem;
  }

  .testi-author-meta span {
    font-size: 0.68rem;
  }
}
