/* ==========================================================================
   Sarans Hospitals - Treatments & Testimonials Modern Responsive Stylesheet
   Clean Semantic Architecture | Emerald Theme | Rich CSS Animations
   ========================================================================== */

:root {
  --sarans-emerald: #007a70;
  --sarans-emerald-dark: #005f57;
  --sarans-emerald-deep: #00453f;
  --sarans-lime: #a4d553;
  --sarans-lime-dark: #8cc63f;
  --sarans-gold: #c59d5f;
  --sarans-slate-900: #0f172a;
  --sarans-slate-800: #1e293b;
  --sarans-slate-600: #475569;
  --sarans-slate-500: #64748b;
  --sarans-bg-light: #f8fafc;
  --sarans-bg-mint: #f0fdfa;
  --sarans-border: #e2e8f0;
}

/* ----------------------------------------------------
   Keyframe Animations & Micro-Interactions
   ---------------------------------------------------- */
@keyframes floatGentle {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}

@keyframes floatSlow {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-5px) rotate(1deg); }
}

@keyframes heroFadeInUp {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroGlowPulse {
  0%, 100% { opacity: 0.15; transform: scale(1); }
  50% { opacity: 0.28; transform: scale(1.06); }
}

@keyframes fadeInCard {
  0% {
    opacity: 0;
    transform: translateY(24px) scale(0.96);
  }
  70% {
    opacity: 1;
    transform: translateY(-2px) scale(1.004);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes pulseDot {
  0% {
    transform: scale(0.92);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  }
  70% {
    transform: scale(1.15);
    box-shadow: 0 0 0 7px rgba(16, 185, 129, 0);
  }
  100% {
    transform: scale(0.92);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}

@keyframes pulseGlowRing {
  0%, 100% { box-shadow: 0 0 0 0 rgba(164, 213, 83, 0.4); }
  50% { box-shadow: 0 0 0 10px rgba(164, 213, 83, 0); }
}

/* Staggered Scroll-Reveal Animations (No syntax errors) */
.treatment-card,
.video-review-card,
.spotlight-card {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.55s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.55s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.35s ease,
              border-color 0.35s ease;
  will-change: opacity, transform;
}

.treatment-card.in-view,
.video-review-card.in-view,
.spotlight-card.in-view {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

@media (prefers-reduced-motion: reduce) {
  .treatment-card,
  .video-review-card,
  .spotlight-card,
  .sarans-pill-badge,
  .treatments-hero-title,
  .treatments-hero-subtitle,
  .treatments-hero-actions {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
    animation: none !important;
  }
}

/* ----------------------------------------------------
   Hero Banner Section
   ---------------------------------------------------- */
.treatments-hero {
  position: relative;
  background: linear-gradient(135deg, #00453f 0%, #005f57 40%, #007a70 100%);
  color: #ffffff;
  padding: clamp(60px, 9vw, 110px) 20px clamp(50px, 8vw, 90px);
  text-align: center;
  overflow: hidden;
}

.treatments-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 85% 20%, rgba(164, 213, 83, 0.15) 0%, transparent 50%),
              radial-gradient(circle at 15% 80%, rgba(0, 168, 157, 0.2) 0%, transparent 50%);
  pointer-events: none;
}

.treatments-hero-inner {
  position: relative;
  max-width: 960px;
  margin: 0 auto;
  z-index: 2;
}

.sarans-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.12);
  border: 1.5px solid rgba(164, 213, 83, 0.4);
  color: #a4d553;
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 20px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  animation: heroFadeInUp 0.8s ease-out, floatGentle 4s ease-in-out infinite 0.8s;
  transition: all 0.3s ease;
}

.sarans-pill-badge:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: #a4d553;
  transform: translateY(-2px) scale(1.02);
}

.treatments-hero-title {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 800;
  line-height: 1.2;
  color: #ffffff;
  margin: 0 0 18px 0;
  font-family: 'Poppins', sans-serif;
  animation: heroFadeInUp 0.85s cubic-bezier(0.16, 1, 0.3, 1) 0.1s both;
}

.treatments-hero-title span {
  color: #a4d553;
  background: linear-gradient(120deg, #a4d553, #e2f4f2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.treatments-hero-subtitle {
  font-size: clamp(1rem, 2.2vw, 1.18rem);
  line-height: 1.65;
  color: #e6f6f5;
  max-width: 780px;
  margin: 0 auto 32px auto;
  opacity: 0.95;
  animation: heroFadeInUp 0.85s cubic-bezier(0.16, 1, 0.3, 1) 0.2s both;
}

.treatments-hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 45px;
  animation: heroFadeInUp 0.85s cubic-bezier(0.16, 1, 0.3, 1) 0.3s both;
}

.btn-hero-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #a4d553;
  color: #00453f !important;
  font-weight: 700;
  font-size: 0.98rem;
  padding: 14px 28px;
  border-radius: 50px;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(164, 213, 83, 0.35);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-hero-primary:hover {
  background: #bbf060;
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 14px 34px rgba(164, 213, 83, 0.5);
}

.btn-hero-primary i {
  transition: transform 0.25s ease;
}

.btn-hero-primary:hover i {
  transform: translateY(3px);
}

.btn-hero-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff !important;
  font-weight: 600;
  font-size: 0.98rem;
  padding: 14px 28px;
  border-radius: 50px;
  text-decoration: none;
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: all 0.3s ease;
}

.btn-hero-secondary:hover {
  background: rgba(255, 255, 255, 0.22);
  border-color: #ffffff;
  transform: translateY(-3px);
}

.treatments-hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(12px, 3vw, 36px);
  flex-wrap: wrap;
  padding-top: 25px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  animation: heroFadeInUp 0.85s cubic-bezier(0.16, 1, 0.3, 1) 0.4s both;
}

.stat-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.92rem;
  font-weight: 500;
  color: #d1fae5;
}

.stat-pill .stat-num {
  font-size: 1.25rem;
  font-weight: 800;
  color: #ffffff;
}

/* ----------------------------------------------------
   Category Filter Section
   ---------------------------------------------------- */
.treatments-filter-section {
  padding: clamp(40px, 6vw, 70px) 20px 20px;
  background: #ffffff;
  position: relative;
  z-index: 5;
}

.section-container {
  max-width: 1240px;
  margin: 0 auto;
}

.treatments-section-header {
  text-align: center;
  margin-bottom: 35px;
}

.inline-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: #e6f6f5;
  color: #007a70;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 6px 16px;
  border-radius: 50px;
  margin-bottom: 12px;
}

.section-heading {
  font-size: clamp(1.8rem, 3.8vw, 2.5rem);
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 12px;
  line-height: 1.25;
  font-family: 'Poppins', sans-serif;
}

.section-heading span {
  color: #007a70;
  position: relative;
}

.section-subtext {
  font-size: clamp(0.95rem, 1.8vw, 1.05rem);
  color: #64748b;
  max-width: 680px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Filter Pill Bar */
.filter-pill-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 10px;
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 60px;
  max-width: 1080px;
  margin: 0 auto 40px auto;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.02);
}

.filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: none;
  color: #475569;
  font-family: 'Poppins', sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}

.filter-btn:hover {
  color: #007a70;
  background: #e6f6f5;
  transform: translateY(-2px);
}

.filter-btn:active {
  transform: translateY(0) scale(0.97);
}

.filter-btn.active {
  background: #007a70;
  color: #ffffff;
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 6px 18px rgba(0, 122, 112, 0.32);
}

.filter-btn i {
  transition: transform 0.25s ease;
}

.filter-btn:hover i {
  transform: scale(1.18);
}

/* ----------------------------------------------------
   Treatments 21-Condition Card Grid
   ---------------------------------------------------- */
.treatments-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 28px;
  max-width: 1240px;
  margin: 0 auto 60px auto;
  padding: 0 20px;
}

.treatment-card {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 20px;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.03);
  position: relative;
  overflow: hidden;
  animation: fadeInCard 0.4s ease-out forwards;
}

.treatment-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 0%;
  height: 4px;
  background: linear-gradient(90deg, #007a70, #a4d553);
  transition: width 0.38s cubic-bezier(0.16, 1, 0.3, 1), left 0.38s cubic-bezier(0.16, 1, 0.3, 1);
  border-radius: 4px 4px 0 0;
}

.treatment-card:hover {
  transform: translateY(-9px);
  border-color: rgba(0, 122, 112, 0.4);
  box-shadow: 0 22px 45px -8px rgba(0, 122, 112, 0.18), 0 4px 12px rgba(0, 0, 0, 0.03);
}

.treatment-card:hover::before {
  left: 0;
  width: 100%;
}

.treatment-card.is-hidden {
  display: none !important;
}

.treatment-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.treatment-icon-bubble {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: #e6f6f5;
  color: #007a70;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.treatment-card:hover .treatment-icon-bubble {
  background: linear-gradient(135deg, #007a70, #005f57);
  color: #a4d553;
  transform: scale(1.14) rotate(8deg);
  box-shadow: 0 8px 20px rgba(0, 122, 112, 0.3);
}

.treatment-badge {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #005f57;
  background: #f0fdfa;
  border: 1px solid #ccfbf1;
  padding: 4px 12px;
  border-radius: 50px;
}

.treatment-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 10px;
  line-height: 1.3;
  font-family: 'Poppins', sans-serif;
}

.treatment-summary {
  font-size: 0.92rem;
  color: #475569;
  line-height: 1.6;
  margin: 0 0 18px;
  flex-grow: 1;
}

.treatment-highlights {
  list-style: none;
  padding: 0;
  margin: 0 0 22px 0;
  border-top: 1px dashed #e2e8f0;
  padding-top: 14px;
}

.treatment-highlights li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: #334155;
  margin-bottom: 7px;
}

.treatment-highlights li i {
  color: #007a70;
  font-size: 0.82rem;
  flex-shrink: 0;
}

.treatment-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
}

.btn-treatment-book {
  flex-grow: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #007a70;
  color: #ffffff;
  border: none;
  font-family: 'Poppins', sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 11px 18px;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.25s ease;
  text-decoration: none;
}

.btn-treatment-book:hover {
  background: #005f57;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 122, 112, 0.25);
}

.btn-treatment-wa {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #25D366;
  color: #ffffff !important;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  text-decoration: none;
  transition: all 0.25s ease;
  flex-shrink: 0;
}

.btn-treatment-wa:hover {
  background: #1eb956;
  transform: scale(1.1) rotate(6deg);
  box-shadow: 0 6px 16px rgba(37, 211, 102, 0.35);
}

/* ----------------------------------------------------
   Spotlight Restorative Therapies
   ---------------------------------------------------- */
.spotlight-therapies-section {
  padding: 70px 20px;
  background: linear-gradient(180deg, #f8fafc 0%, #e6f6f5 100%);
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
}

.spotlight-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 24px;
  max-width: 1240px;
  margin: 0 auto;
}

.spotlight-card {
  background: #ffffff;
  border-radius: 20px;
  padding: 30px 24px;
  border: 1.5px solid rgba(0, 122, 112, 0.15);
  box-shadow: 0 10px 25px rgba(0, 122, 112, 0.05);
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
  position: relative;
}

.spotlight-card:hover {
  transform: translateY(-6px);
  border-color: #007a70;
  box-shadow: 0 16px 36px rgba(0, 122, 112, 0.12);
}

.spotlight-tag {
  align-self: flex-start;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  background: #fef3c7;
  color: #b45309;
  padding: 4px 12px;
  border-radius: 50px;
  margin-bottom: 16px;
}

.spotlight-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 10px;
  font-family: 'Poppins', sans-serif;
}

.spotlight-card p {
  font-size: 0.92rem;
  color: #475569;
  line-height: 1.6;
  margin: 0 0 20px;
  flex-grow: 1;
}

.spotlight-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #007a70;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  transition: color 0.2s, gap 0.2s;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  font-family: inherit;
}

.spotlight-link:hover {
  color: #005f57;
  gap: 10px;
}

/* ----------------------------------------------------
   Genuine Patient Reviews (Home Page 2 YT Videos Showcase)
   ---------------------------------------------------- */
.testimonials-showcase-section {
  padding: clamp(50px, 7vw, 90px) 20px;
  background: #ffffff;
}

.video-reviews-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 36px;
  max-width: 1200px;
  margin: 0 auto;
}

@media (max-width: 900px) {
  .video-reviews-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

.video-review-card {
  background: #ffffff;
  border-radius: 20px;
  border: 1.5px solid #e2e8f0;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  transition: all 0.38s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  position: relative;
}

.video-review-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 0%;
  height: 4px;
  background: linear-gradient(90deg, #007a70, #a4d553);
  transition: width 0.38s cubic-bezier(0.16, 1, 0.3, 1), left 0.38s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 5;
  border-radius: 4px 4px 0 0;
}

.video-review-card:hover {
  transform: translateY(-8px);
  border-color: rgba(0, 122, 112, 0.45);
  box-shadow: 0 22px 48px rgba(0, 122, 112, 0.16);
}

.video-review-card:hover::before {
  left: 0;
  width: 100%;
}

.video-review-card:hover .stars-rating {
  transform: scale(1.08);
  transition: transform 0.3s ease;
}

.video-player-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #0f172a;
}

.video-player-wrapper iframe {
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 9;
  border: none;
  display: block;
}

.video-card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.patient-info-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 12px;
}

.patient-name {
  font-family: 'Poppins', sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 4px 0;
}

.condition-badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #007a70;
  background: #f0fdfa;
  padding: 3px 10px;
  border-radius: 50px;
  border: 1px solid rgba(0, 122, 112, 0.2);
}

.stars-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  color: #f59e0b;
  font-size: 0.95rem;
}

.rating-num {
  font-size: 0.85rem;
  font-weight: 700;
  color: #64748b;
  margin-left: 4px;
}

.video-quote {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #475569;
  font-style: italic;
  margin: 0 0 18px 0;
  flex-grow: 1;
}

.video-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid #f1f5f9;
  padding-top: 14px;
  margin-top: auto;
}

.verified-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #059669;
}

.verified-badge i {
  color: #10b981;
  animation: pulseDot 2.2s infinite ease-in-out;
}

.treatment-type-pill {
  font-size: 0.78rem;
  font-weight: 600;
  color: #64748b;
  background: #f8fafc;
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
}

/* ----------------------------------------------------
   Responsive Adjustments for All Screen Ratios
   ---------------------------------------------------- */
@media (max-width: 768px) {
  .treatments-grid {
    grid-template-columns: 1fr;
    padding: 0 16px;
  }
  
  .filter-pill-bar {
    justify-content: flex-start;
    overflow-x: auto;
    border-radius: 16px;
    padding: 8px 12px;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
    scrollbar-width: none;
  }
  
  .filter-pill-bar::-webkit-scrollbar {
    display: none;
  }

  .video-reviews-grid {
    grid-template-columns: 1fr;
  }

}
