/* HOME PAGE SPECIFIC STYLES */

/* HERO SECTION */
.hero-section {
  position: relative;
  background-color: #FFFFFF;
  background: radial-gradient(circle at 10% 20%, #FBEAF3 0%, #FFFFFF 100%);
  padding: 80px 0 100px 0;
  overflow: hidden;
}

.hero-intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

/* Left Column: Image Wrapper & Parallax */
.hero-image-wrapper {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  border: 4px solid #FFFFFF;
  box-shadow: 0 10px 30px rgba(122, 31, 75, 0.15);
  height: 400px;
  opacity: 1; /* Changed to 1 to prevent multiple animations override bug */
  animation: clipWipeReveal 1.2s cubic-bezier(0.25, 1, 0.5, 1) forwards, borderPulse 4s infinite alternate ease-in-out;
  will-change: clip-path, opacity, box-shadow, border-color;
}

.hero-parallax-container {
  width: 100%;
  height: 120%; /* extra height for parallax movement */
  position: absolute;
  top: -10%; /* start slightly offset for parallax */
  left: 0;
  will-change: transform;
}

.hero-float-container {
  width: 100%;
  height: 100%;
  animation: floatingLoop 5s infinite ease-in-out;
  will-change: transform;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform-origin: center;
  animation: kenburns 22s ease-in-out infinite alternate;
  will-change: transform;
}

/* Decorative 4-Point Sparkle for Hero Building Image (Homepage Only) */
.hero-decorative-sparkle {
  position: absolute;
  top: 14px;
  left: 14px;
  width: 28px;
  height: 28px;
  opacity: 0.85;
  z-index: 10;
  pointer-events: none;
  user-select: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.hero-decorative-sparkle svg {
  width: 100%;
  height: 100%;
  display: block;
}

.hero-image-wrapper:hover .hero-decorative-sparkle {
  opacity: 1;
  transform: scale(1.08) rotate(6deg);
}

@media (max-width: 576px) {
  .hero-decorative-sparkle {
    top: 12px;
    left: 12px;
    width: 24px;
    height: 24px;
  }
}

/* Animations Keyframes */
@keyframes clipWipeReveal {
  0% {
    opacity: 0;
    clip-path: inset(0 100% 0 0);
    transform: scale(1.1);
  }
  100% {
    opacity: 1;
    clip-path: inset(0 0 0 0);
    transform: scale(1);
  }
}

@keyframes borderPulse {
  0% {
    box-shadow: 0 10px 30px rgba(122, 31, 75, 0.15);
    border-color: #FFFFFF;
  }
  50% {
    box-shadow: 0 10px 35px rgba(232, 169, 59, 0.25), 0 0 15px rgba(232, 169, 59, 0.15);
    border-color: rgba(232, 169, 59, 0.35);
  }
  100% {
    box-shadow: 0 10px 30px rgba(122, 31, 75, 0.15);
    border-color: #FFFFFF;
  }
}

@keyframes floatingLoop {
  0% {
    transform: translateY(-8px);
  }
  50% {
    transform: translateY(8px);
  }
  100% {
    transform: translateY(-8px);
  }
}

@keyframes kenburns {
  0% {
    transform: scale(1.04);
  }
  100% {
    transform: scale(1.11);
  }
}

/* BOLD CHUNKY OVERLAPPING STACKED HERO HEADLINE */
.hero-intro-content {
  text-align: left;
}

.hero-title {
  font-family: 'Montserrat', 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 900;
  font-size: clamp(2.2rem, 3.8vw, 3.6rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-bottom: 24px;
  text-transform: none;
}

.hero-title .anim-line {
  display: block;
  width: auto;
  font-family: 'Montserrat', 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: -0.03em;
  position: relative;
  will-change: transform, opacity;
  text-align: left;
  white-space: nowrap;
}

/* Line 1: "AP Hospital" — Dark Maroon / Deep Plum */
.hero-title .line-1 {
  color: #7A1B4C;
  z-index: 3;
}

/* Letter-by-letter spans for Line 1 */
.split-letters span {
  display: inline-block;
  color: #7A1B4C;
  font-weight: 900;
  opacity: 0;
  transform: translateY(20px);
  animation: letterFadeUp 0.6s cubic-bezier(0.25, 1, 0.3, 1) forwards;
  animation-delay: calc(0.1s + var(--char-index) * 0.04s);
}

@keyframes letterFadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Line 2: "Diabetes &" — Golden Orange Shimmer */
.hero-title .line-2 {
  color: #E8A33D;
  z-index: 2;
  margin-top: 0; /* Visible gap between lines */
}

.shimmer-text {
  opacity: 0;
  transform: translateX(-30px);
  background: linear-gradient(
    120deg,
    #E8A33D 0%,
    #E8A33D 35%,
    #FFF4DB 50%,
    #E8A33D 65%,
    #E8A33D 100%
  );
  background-size: 200% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: slideInLeftShimmer 0.8s cubic-bezier(0.25, 1, 0.3, 1) forwards, textShimmer 4s infinite linear 1.5s;
  will-change: transform, opacity, background-position;
}

@keyframes slideInLeftShimmer {
  0% {
    opacity: 0;
    transform: translateX(-30px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes textShimmer {
  0% {
    background-position: 100% 0;
  }
  100% {
    background-position: -100% 0;
  }
}

/* Line 3: "Multispeciality Centre" — Deep Maroon/Burgundy Gradient */
.hero-title .line-3 {
  z-index: 1;
  margin-top: 0; /* Visible gap between lines */
  color: #8E1B4C;
}

.blur-focus-text {
  opacity: 0;
  filter: blur(12px);
  transform: translateY(20px);
  background: linear-gradient(135deg, #8E1B4C 0%, #5C1038 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: blurToFocus 1s cubic-bezier(0.25, 1, 0.3, 1) forwards;
  animation-delay: 0.95s;
  will-change: transform, opacity, filter;
}

@keyframes blurToFocus {
  to {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
  }
}

/* Description animation */
.hero-description {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUpDesc 0.8s cubic-bezier(0.25, 1, 0.3, 1) forwards;
  animation-delay: 1.35s;
  will-change: transform, opacity;
}

@keyframes fadeUpDesc {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* CTA Button animation */
.btn-book-appointment {
  opacity: 0;
  transform: scale(0.9);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding-inline: 1.45rem;
  min-width: 12rem;
  margin-top: 24px;
  animation: bounceScaleIn 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards, btnPulse 2s infinite alternate ease-in-out 2.15s;
  animation-delay: 1.6s, 2.15s;
  will-change: transform, opacity, box-shadow;
}

@keyframes bounceScaleIn {
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes btnPulse {
  0% {
    box-shadow: 0 4px 15px rgba(122, 31, 75, 0.25);
  }
  100% {
    box-shadow: 0 8px 25px rgba(122, 31, 75, 0.55), 0 0 15px rgba(232, 169, 59, 0.35);
  }
}

/* Accessibility: respect user preferences for reduced motion */
@media (prefers-reduced-motion: reduce) {
  .hero-image-wrapper,
  .hero-float-container,
  .hero-image,
  .split-letters span,
  .shimmer-text,
  .blur-focus-text,
  .hero-description,
  .btn-book-appointment,
  .doctor-photo-wrapper,
  .doctor-photo-card,
  .doctor-photo-card img,
  .doctor-photo-wrapper::after {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
    scale: 1 !important;
    filter: none !important;
    background: none !important;
    -webkit-text-fill-color: initial !important;
    color: inherit !important;
    box-shadow: none !important;
    clip-path: none !important;
  }
  
  .shimmer-text {
    color: var(--accent-orange) !important;
  }
}

/* Responsive Overrides */
@media (max-width: 768px) {
  .hero-float-container {
    animation: none !important; /* disable floating loop on mobile */
  }
  .hero-image-wrapper {
    height: 280px;
  }
  /* Reduce float loop range on mobile doctor card */
  .doctor-photo-wrapper.revealed .doctor-photo-card {
    animation: doctorCardGlow 4s infinite alternate ease-in-out, doctorFloatMobile 4.5s infinite ease-in-out;
  }
}

/* 4-Feature Grid Below */
.intro-features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px 48px;
  margin-top: 64px;
  padding-top: 48px;
  border-top: 1px solid rgba(122, 31, 75, 0.08);
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

.feature-icon-wrapper {
  flex-shrink: 0;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background-color: var(--accent-pink-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), background-color 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), color 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  box-shadow: var(--shadow-sm);
}

.feature-item:hover .feature-icon-wrapper {
  transform: scale(1.1) rotate(6deg);
  background: var(--primary-gradient);
  color: var(--text-white);
}

.feature-icon-wrapper svg {
  width: 24px;
  height: 24px;
}

.feature-text-wrapper {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.feature-bold-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-heading);
}

.feature-desc-line {
  font-size: 0.95rem;
  color: var(--text-body);
  line-height: 1.5;
}

/* Hero Bottom Wave Separator */
.hero-wave {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  line-height: 0;
  fill: var(--bg-neutral);
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .hero-intro-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .hero-title {
    font-size: clamp(2.3rem, 6vw, 3.5rem);
    line-height: 1.15;
    margin-bottom: 20px;
  }
  .hero-title .anim-line {
    line-height: 1.15;
  }
  .hero-title .line-2,
  .hero-title .line-3 {
    margin-top: 0;
  }

  .intro-features-grid {
    grid-template-columns: 1fr;
    gap: 28px;
    margin-top: 48px;
    padding-top: 36px;
  }
}

@media (max-width: 768px) {
  .hero-section {
    padding: 60px 0 80px 0;
  }
  
  .hero-intro-grid {
    gap: 32px;
  }
  
  .hero-title {
    font-size: clamp(1.8rem, 5.5vw, 2.6rem);
    line-height: 1.2;
    margin-bottom: 16px;
  }
  
  .hero-description {
    font-size: 0.95rem;
    line-height: 1.6;
  }
  
  .hero-image-wrapper {
    height: 280px;
  }
  
  .intro-features-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 40px;
    padding-top: 28px;
  }
  
  .feature-item {
    gap: 16px;
  }
  
  .feature-icon-wrapper {
    width: 48px;
    height: 48px;
  }
  
  .feature-bold-title {
    font-size: 1.05rem;
  }
  
  .feature-desc-line {
    font-size: 0.9rem;
  }
  
  .btn-book-appointment {
    width: 100%;
    min-width: unset;
    padding: 14px 20px;
  }
  
  .spotlight-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .doctor-photo-wrapper {
    max-width: 100%;
    width: 100%;
    margin: 0 auto;
    padding: 0 8px;
  }
  
  .doctor-photo-card {
    width: 100%;
    max-width: 100%;
    border-radius: 20px;
    overflow: hidden;
    padding: 0;
  }
  
  .doctor-photo-card img {
    width: 100%;
    height: auto;
    max-height: 440px;
    object-fit: cover;
    object-position: center top;
    border-radius: 0;
  }
  
  .doctor-info {
    width: 100%;
    align-items: center;
    text-align: center;
  }
  
  .doctor-title {
    font-size: clamp(1.8rem, 5vw, 2.4rem);
  }
  
  .doctor-credentials {
    margin-bottom: 18px;
  }
  
  .doctor-bio {
    font-size: 0.95rem;
    line-height: 1.65;
  }
  
  .doctor-checklist {
    gap: 10px;
  }
  
  .home-resource-card {
    padding: 40px 0;
  }
  
  .resource-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  .resource-card {
    padding: 28px 20px;
  }
  
  .float-container {
    animation: none !important;
  }
}

@media (max-width: 576px) {
  .hero-section {
    padding: 48px 0 64px 0;
  }
  
  .hero-title {
    font-size: clamp(1.5rem, 5vw, 2rem);
    line-height: 1.25;
    margin-bottom: 12px;
  }
  
  .hero-title .anim-line {
    line-height: 1.25;
    letter-spacing: -0.02em;
    white-space: normal;
  }
  
  .hero-title .line-2,
  .hero-title .line-3 {
    margin-top: 0;
  }
  
  .hero-description {
    font-size: 0.9rem;
    line-height: 1.5;
  }
  
  .hero-image-wrapper {
    height: 240px;
    border-radius: 12px;
  }
  
  .intro-features-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 32px;
    padding-top: 20px;
  }
  
  .feature-item {
    gap: 12px;
  }
  
  .feature-icon-wrapper {
    width: 44px;
    height: 44px;
    min-width: 44px;
  }
  
  .feature-icon-wrapper svg {
    width: 20px;
    height: 20px;
  }
  
  .feature-bold-title {
    font-size: 0.95rem;
  }
  
  .feature-desc-line {
    font-size: 0.85rem;
  }
  
  .btn-book-appointment {
    width: 100%;
    min-width: unset;
    padding: 12px 20px;
    min-height: 44px;
  }
  
  .home-resource-card {
    padding: 32px 0;
  }
  
  .home-resource-card .section-title {
    font-size: clamp(1.3rem, 4.5vw, 1.8rem) !important;
  }
  
  .home-resource-card .section-desc {
    font-size: 0.9rem;
  }
  
  .resource-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .resource-card {
    padding: 24px 16px;
    border-radius: 12px;
  }
  
  .resource-card-badge {
    width: 40px;
    height: 40px;
  }
  
  .resource-card-title {
    font-size: 1rem;
  }
  
  .resource-card-desc {
    font-size: 0.85rem;
    line-height: 1.5;
  }
  
  .doctor-photo-card {
    width: 80%;
    max-width: 200px;
  }
}

@media (max-width: 480px) {
  .hero-section {
    padding: 40px 0 56px 0;
  }
  
  .hero-title {
    font-size: clamp(1.3rem, 4.5vw, 1.8rem);
  }
  
  .hero-description {
    font-size: 0.85rem;
  }
  
  .hero-image-wrapper {
    height: 200px;
  }
  
  .doctor-photo-wrapper {
    max-width: 280px;
    margin: 0 auto;
  }
  
  .doctor-photo-card {
    width: 100%;
    max-width: 280px;
  }
  
  .doctor-photo-card img {
    width: 100%;
    height: auto;
    max-height: 420px;
    object-fit: cover;
    object-position: center top;
  }
  
  .doctor-info {
    width: 100%;
    align-items: center;
    text-align: center;
  }
  
  .doctor-title {
    font-size: clamp(1.6rem, 5vw, 2rem);
  }
  
  .doctor-credentials {
    margin-bottom: 18px;
  }
  
  .doctor-bio {
    font-size: 0.9rem;
    line-height: 1.6;
  }
  
  .doctor-checklist {
    gap: 10px;
  }
  
  .intro-features-grid {
    margin-top: 24px;
    padding-top: 16px;
    gap: 12px;
  }
  
  .feature-item {
    gap: 10px;
  }
  
  .feature-icon-wrapper {
    width: 40px;
    height: 40px;
  }
  
  .feature-bold-title {
    font-size: 0.9rem;
  }
  
  .feature-desc-line {
    font-size: 0.8rem;
  }
}

.home-resource-card {
  padding: 56px 0;
  background: linear-gradient(135deg, #F0FDFD 0%, #FFF5F3 100%);
  border-top: 1px solid rgba(15, 163, 163, 0.15);
  border-bottom: 1px solid rgba(255, 107, 91, 0.15);
}

.home-resource-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
}

.home-resource-copy {
  max-width: 650px;
}

.home-resource-badge {
  display: inline-block;
  background: #0FA3A3;
  color: #FFFFFF;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 5px 14px;
  border-radius: 50px;
  margin-bottom: 12px;
}

.home-resource-copy h2 {
  font-size: 2rem;
  font-weight: 700;
  color: #1E293B;
  margin-bottom: 10px;
  line-height: 1.25;
}

.home-resource-copy p {
  font-size: 0.98rem;
  color: #64748B;
  line-height: 1.6;
  margin-bottom: 12px;
}

.home-resource-points {
  display: grid;
  gap: 8px;
  padding-left: 1.1rem;
  margin: 0;
  color: #334155;
  font-size: 0.95rem;
}

.home-resource-points li::marker {
  color: #0FA3A3;
}

.home-resource-actions {
  display: flex;
  align-items: center;
}

.btn-health-library {
  background: linear-gradient(135deg, #7A1F3D 0%, #C0447A 100%);
  color: #FFFFFF;
  font-weight: 700;
  padding: 14px 32px;
  border-radius: 50px;
  box-shadow: 0 4px 18px rgba(122, 31, 75, 0.25);
}

.btn-health-library:hover {
  color: #FFFFFF;
  filter: brightness(1.02);
}

/* STATS STRIP */
.stats-strip {
  position: relative;
  margin-top: -60px;
  margin-bottom: 80px;
  z-index: 3;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1), transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.stats-strip.visible {
  opacity: 1;
  transform: translateY(0);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background-color: var(--bg-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 30px 10px;
  border: 1px solid rgba(122, 31, 75, 0.04);
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 10px 20px;
  border-right: 1px solid rgba(122, 31, 75, 0.08);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.stat-item:last-child {
  border-right: none;
}

.stats-strip.visible .stat-item {
  opacity: 1;
  transform: translateY(0);
}

.stats-strip.visible .stat-item:nth-child(1) { transition: opacity 0.6s ease 0.1s, transform 0.6s ease 0.1s; }
.stats-strip.visible .stat-item:nth-child(2) { transition: opacity 0.6s ease 0.2s, transform 0.6s ease 0.2s; }
.stats-strip.visible .stat-item:nth-child(3) { transition: opacity 0.6s ease 0.3s, transform 0.6s ease 0.3s; }
.stats-strip.visible .stat-item:nth-child(4) { transition: opacity 0.6s ease 0.4s, transform 0.6s ease 0.4s; }

@media (hover: hover) {
  .stats-strip.visible .stat-item:hover {
    transform: scale(1.03);
    transition: transform 0.2s ease;
    z-index: 10;
  }
  .stat-item .stat-num {
    transition: color 0.2s ease;
  }
  .stats-strip.visible .stat-item:hover .stat-num {
    color: var(--primary-dark);
  }
}

.stat-num {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.2;
  margin-bottom: 4px;
}

.stat-desc {
  font-size: 0.85rem;
  color: var(--text-body);
  font-weight: 500;
}

/* SECTION COMMON STYLING */
.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 52px auto;
}

.section-subtitle {
  color: #E8A33D !important;
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 10px;
  display: inline-block;
}

.section-title {
  font-size: clamp(2rem, 3.8vw, 2.5rem);
  font-weight: 800;
  color: #7A1B4C !important;
  margin-bottom: 14px;
  line-height: 1.25;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-body);
  line-height: 1.6;
  max-width: 650px;
  margin: 0 auto;
}

/* PATIENT-CENTRIC EXCELLENCE VALUES FLOW SECTION */
.values-flow-section {
  padding: 80px 0 140px 0;
  position: relative;
  background-color: #F5F5F5;
  overflow: hidden;
  z-index: 1;
}

/* Drifting Background Blobs */
.values-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.08;
  z-index: -1;
  pointer-events: none;
  mix-blend-mode: multiply;
}

.values-blob-1 {
  width: 450px;
  height: 450px;
  background-color: #7A1F3D; /* Deep Maroon */
  top: -10%;
  left: 5%;
  animation: blob-drift-1 25s infinite alternate ease-in-out;
}

.values-blob-2 {
  width: 400px;
  height: 400px;
  background-color: #E8A33D; /* Gold */
  bottom: -10%;
  right: 5%;
  animation: blob-drift-2 20s infinite alternate ease-in-out;
}

.values-blob-3 {
  width: 350px;
  height: 350px;
  background-color: #F8E1E7; /* Blush Pink */
  top: 30%;
  right: 25%;
  animation: blob-drift-3 22s infinite alternate ease-in-out;
}

@keyframes blob-drift-1 {
  0% { transform: translate3d(0, 0, 0) scale(1) rotate(0deg); }
  50% { transform: translate3d(40px, 60px, 0) scale(1.1) rotate(180deg); }
  100% { transform: translate3d(-30px, -20px, 0) scale(0.95) rotate(360deg); }
}

@keyframes blob-drift-2 {
  0% { transform: translate3d(0, 0, 0) scale(0.9) rotate(0deg); }
  50% { transform: translate3d(-50px, -40px, 0) scale(1.1) rotate(-180deg); }
  100% { transform: translate3d(30px, 40px, 0) scale(1) rotate(-360deg); }
}

@keyframes blob-drift-3 {
  0% { transform: translate3d(0, 0, 0) scale(1.1); }
  50% { transform: translate3d(30px, -50px, 0) scale(0.85); }
  100% { transform: translate3d(-20px, 30px, 0) scale(1.05); }
}

/* Heading Animated Underline */
.values-flow-header {
  margin-bottom: 80px;
  position: relative;
}

.values-flow-header .section-title {
  color: #1A1A1A; /* Charcoal */
  position: relative;
  display: inline-block;
  margin-bottom: 20px;
}

.values-flow-header .animated-underline {
  display: block;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, #7A1F3D 0%, #E8A33D 100%);
  margin: 8px auto 0 auto;
  border-radius: 2px;
  transition: width 1.2s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.values-flow-section.revealed .values-flow-header .animated-underline {
  width: 100px;
}

/* Flow Grid and Items */
.values-flow-grid {
  display: grid;
  grid-template-columns: 1fr 2px 1fr;
  gap: 0;
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
}

.values-flow-item {
  position: relative;
  padding: 30px 40px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1);
  opacity: 0;
  transform: translateY(40px);
}

.values-flow-section.revealed .values-flow-item {
  opacity: 1;
}

/* Desktop Staggering */
@media (min-width: 769px) {
  .values-flow-section.revealed .values-flow-item[data-index="1"] {
    transform: translateY(0);
  }
  
  .values-flow-section.revealed .values-flow-item[data-index="2"] {
    transform: translateY(0);
    transition-delay: 0.15s;
  }
}

/* Large Numerals */
.values-flow-num {
  font-family: var(--font-heading);
  font-size: 6.5rem;
  font-weight: 700;
  line-height: 1;
  color: rgba(122, 31, 61, 0.05); /* Wine color at 5% opacity */
  position: absolute;
  top: -35px;
  right: 35px;
  user-select: none;
  z-index: -1;
  transition: color 0.4s ease, transform 0.4s ease;
}

.values-flow-item:hover .values-flow-num {
  color: rgba(232, 163, 61, 0.09); /* Golden orange on hover */
  transform: translateY(-5px) scale(1.03);
}

/* Badges and SVGs */
.values-flow-badge {
  width: 56px;
  height: 56px;
  background-color: #F8E1E7; /* Blush pink */
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), background-color 0.4s ease;
  position: relative;
  z-index: 2;
}

.values-flow-item:hover .values-flow-badge {
  transform: scale(1.1) rotate(5deg);
  background-color: #fcecef;
}

.values-flow-badge svg {
  width: 24px;
  height: 24px;
}

/* SVG stroke drawing styles */
.svg-icon-draw path,
.svg-icon-draw circle,
.svg-icon-draw rect {
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  transition: stroke-dashoffset 2s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.values-flow-section.revealed .svg-icon-draw path,
.values-flow-section.revealed .svg-icon-draw circle,
.values-flow-section.revealed .svg-icon-draw rect {
  stroke-dashoffset: 0 !important;
}

/* Stagger SVG stroke delays */
.values-flow-item[data-index="2"] .svg-icon-draw path,
.values-flow-item[data-index="2"] .svg-icon-draw circle,
.values-flow-item[data-index="2"] .svg-icon-draw rect {
  transition-delay: 0.2s;
}

/* Titles and Underlines */
.values-flow-title {
  font-size: 1.3rem;
  font-weight: 600;
  color: #1A1A1A; /* Charcoal */
  margin-bottom: 12px;
  position: relative;
  display: inline-block;
  font-family: var(--font-heading);
}

.values-flow-title .title-underline {
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #7A1F3D 0%, #E8A33D 100%);
  transition: width 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.values-flow-item:hover .values-flow-title .title-underline {
  width: 100%;
}

/* Descriptions */
.values-flow-desc {
  font-size: 0.95rem;
  color: #5F5F5F; /* Gray body text */
  margin-bottom: 24px;
  line-height: 1.6;
}

/* Links & Arrows */
.values-flow-link {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  color: #7A1F3D; /* Maroon */
  display: inline-flex;
  align-items: center;
  gap: 8px;
  position: relative;
  transition: color 0.3s ease;
}

.values-flow-link .btn-arrow {
  display: inline-block;
  transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.values-flow-link:hover {
  color: #E8A33D; /* Gold accent */
}

.values-flow-link:hover .btn-arrow {
  transform: translateX(6px);
}

/* Divider Lines */
.values-flow-divider {
  background: linear-gradient(to bottom, rgba(122, 31, 61, 0) 0%, rgba(122, 31, 61, 0.15) 30%, rgba(232, 163, 61, 0.15) 70%, rgba(232, 163, 61, 0) 100%);
  width: 100%;
  height: 0;
  min-height: 250px;
  align-self: stretch;
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 1.2s cubic-bezier(0.25, 1, 0.5, 1);
}

.values-flow-section.revealed .values-flow-divider {
  transform: scaleY(1);
}

/* RESPONSIVE LAYOUT BREAKPOINTS */
@media (max-width: 768px) {
  .values-flow-section {
    padding: 60px 0 80px 0;
  }
  
  .values-flow-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .values-flow-item {
    padding: 20px 10px;
    align-items: center;
    text-align: center;
    transform: translateY(20px) !important;
  }
  
  .values-flow-section.revealed .values-flow-item {
    transform: translateY(0) !important;
  }
  
  .values-flow-badge {
    margin-bottom: 16px;
  }
  
  .values-flow-num {
    top: 10px;
    right: 15px;
    font-size: 5rem;
  }
  
  .values-flow-divider {
    grid-column: auto;
    height: 2px;
    width: 80%;
    margin: 0 auto;
    min-height: auto;
    background: linear-gradient(to right, rgba(122, 31, 61, 0) 0%, rgba(122, 31, 61, 0.15) 30%, rgba(232, 163, 61, 0.15) 70%, rgba(232, 163, 61, 0) 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 1s ease;
  }
  
  .values-flow-section.revealed .values-flow-divider {
    transform: scaleX(1);
  }
}

/* PREFERS REDUCED MOTION */
@media (prefers-reduced-motion: reduce) {
  .values-blob {
    animation: none !important;
  }
  
  .values-flow-item,
  .values-flow-divider,
  .values-flow-link .btn-arrow,
  .values-flow-badge,
  .values-flow-num,
  .treatment-card,
  .treatment-card .icon-badge,
  .facility-card-large,
  .facility-card-large .facility-img,
  .facility-card-small,
  .facility-card-small .feature-title::before,
  .testimonial-carousel-track,
  .testimonial-card,
  .quote-mark {
    transition: none !important;
    transform: none !important;
    opacity: 1 !important;
    animation: none !important;
    transition-delay: 0s !important;
  }
  
  .facility-pill {
    transform: scale(1) !important;
    transition: none !important;
  }
  
  .svg-icon-draw path,
  .svg-icon-draw circle,
  .svg-icon-draw rect {
    stroke-dashoffset: 0 !important;
    transition: none !important;
  }
  
  .values-flow-header .animated-underline {
    width: 100px !important;
    transition: none !important;
  }
}
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.card-link:hover {
  gap: 10px;
}

/* TREATMENTS SECTION */
.treatments-section {
  padding: 80px 0;
  position: relative;
}

/* Header entrance translation */
.treatments-section .section-header {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1), transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.treatments-section.visible .section-header {
  opacity: 1;
  transform: translateY(0);
}

/* Header divider */
.header-divider {
  width: 50px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary) 0%, #C0447A 100%);
  margin: 16px auto 0 auto;
  border-radius: 2px;
}

.treatments-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.treatment-card {
  background-color: var(--bg-card);
  border-radius: 40px 16px; /* Leaf shape rounded rectangle */
  padding: 36px 28px;
  box-shadow: 0 10px 30px rgba(122, 31, 61, 0.04);
  border: 1.5px solid rgba(122, 31, 71, 0.15); /* Light tint of maroon (#7A1F3D) */
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1), border-color 0.3s ease, box-shadow 0.3s ease;
}

.treatments-section.visible .treatment-card {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger entrance delays (applied separate values for transform/opacity and hover colors) */
.treatments-section.visible .treatment-card:nth-child(1) { transition-delay: 0.05s, 0.05s, 0s, 0s; }
.treatments-section.visible .treatment-card:nth-child(2) { transition-delay: 0.15s, 0.15s, 0s, 0s; }
.treatments-section.visible .treatment-card:nth-child(3) { transition-delay: 0.25s, 0.25s, 0s, 0s; }
.treatments-section.visible .treatment-card:nth-child(4) { transition-delay: 0.35s, 0.35s, 0s, 0s; }
.treatments-section.visible .treatment-card:nth-child(5) { transition-delay: 0.45s, 0.45s, 0s, 0s; }
.treatments-section.visible .treatment-card:nth-child(6) { transition-delay: 0.55s, 0.55s, 0s, 0s; }
.treatments-section.visible .treatment-card:nth-child(7) { transition-delay: 0.65s, 0.65s, 0s, 0s; }
.treatments-section.visible .treatment-card:nth-child(8) { transition-delay: 0.75s, 0.75s, 0s, 0s; }

/* Icon badge entrance bounce animation */
@keyframes iconBounce {
  0% { transform: scale(0.3); opacity: 0; }
  50% { transform: scale(1.15); }
  80% { transform: scale(0.95); }
  100% { transform: scale(1); opacity: 1; }
}

.treatments-section.visible .treatment-card .icon-badge {
  animation: iconBounce 0.6s cubic-bezier(0.25, 0.8, 0.25, 1) both;
}

.treatments-section.visible .treatment-card:nth-child(1) .icon-badge { animation-delay: 0.15s; }
.treatments-section.visible .treatment-card:nth-child(2) .icon-badge { animation-delay: 0.25s; }
.treatments-section.visible .treatment-card:nth-child(3) .icon-badge { animation-delay: 0.35s; }
.treatments-section.visible .treatment-card:nth-child(4) .icon-badge { animation-delay: 0.45s; }
.treatments-section.visible .treatment-card:nth-child(5) .icon-badge { animation-delay: 0.55s; }
.treatments-section.visible .treatment-card:nth-child(6) .icon-badge { animation-delay: 0.65s; }
.treatments-section.visible .treatment-card:nth-child(7) .icon-badge { animation-delay: 0.75s; }
.treatments-section.visible .treatment-card:nth-child(8) .icon-badge { animation-delay: 0.85s; }

@media (hover: hover) {
  .treatments-section.visible .treatment-card:hover {
    transform: translateY(-8px) scale(1.03); /* scale and float dynamic highlights */
    box-shadow: 0 20px 40px rgba(122, 31, 61, 0.12);
    border-color: #7A1F3D; /* solid brand maroon */
    transition-delay: 0s !important; /* Responds immediately */
    z-index: 5;
  }
  
  .treatment-card .icon-badge {
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), color 0.3s ease, background-color 0.3s ease;
  }
  
  .treatments-section.visible .treatment-card:hover .icon-badge {
    animation: none; /* override entrance animation */
    transform: scale(1.1);
    background-color: #F8E1E7; /* blush pink */
    color: #7A1F3D; /* deep maroon */
  }
}

.treatment-card .icon-badge {
  width: 48px;
  height: 48px;
  background-color: #F8E1E7; /* blush pink */
  color: #7A1F3D; /* deep maroon */
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.treatment-title {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: #1A1A1A; /* Charcoal heading text */
  line-height: 1.3;
}

.treatment-desc {
  font-size: 0.85rem;
  color: #5F5F5F; /* Gray body text */
  line-height: 1.6;
}

/* CHIEF CONSULTANT SPOTLIGHT */
.spotlight-section {
  padding: 80px 0;
  background-color: var(--accent-pink-light);
  background: linear-gradient(180deg, var(--accent-pink-light) 0%, rgba(255,255,255,0) 100%);
}

.spotlight-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 60px;
  align-items: center;
}

.doctor-photo-wrapper {
  position: relative;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
  will-change: opacity, transform;
}

.doctor-photo-wrapper.revealed {
  opacity: 1;
  transform: translateY(0);
}

.doctor-parallax-container {
  width: 100%;
  position: relative;
  will-change: transform;
  transition: transform 0.1s ease-out;
}

.doctor-float-container {
  width: 100%;
  height: 100%;
}

.doctor-photo-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 4px solid var(--bg-card);
  position: relative;
  z-index: 2;
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.4s cubic-bezier(0.25, 1, 0.5, 1), border-color 0.4s ease;
  will-change: transform, box-shadow;
  /* Pulsing soft border glow before reveal */
  animation: doctorCardGlow 4s infinite alternate ease-in-out;
}

/* Run the float animation loop ONLY after the wrapper has been revealed */
.doctor-photo-wrapper.revealed .doctor-photo-card {
  animation: doctorCardGlow 4s infinite alternate ease-in-out, doctorFloat 4.5s infinite ease-in-out;
}

.doctor-photo-card img {
  width: 100%;
  height: 460px; /* Slightly taller aspect ratio for portrait close-up */
  object-fit: cover;
  object-position: center top; /* Focus on the face */
  clip-path: inset(0 0 100% 0); /* Wipe reveal from top */
  transform: scale(1.08);
  transition: clip-path 1.2s cubic-bezier(0.25, 1, 0.3, 1), transform 1.2s cubic-bezier(0.25, 1, 0.3, 1);
  transition-delay: 0.1s;
  will-change: clip-path, transform;
}

.doctor-photo-wrapper.revealed .doctor-photo-card img {
  clip-path: inset(0 0 0 0);
  transform: scale(1);
}

.doctor-photo-wrapper::after {
  content: '';
  position: absolute;
  top: 20px;
  left: -20px;
  width: 100%;
  height: 100%;
  border-radius: var(--radius-lg);
  background-color: var(--primary);
  opacity: 0;
  transform: scale(0.9) translate3d(20px, -20px, 0);
  z-index: 1;
  transition: opacity 0.8s ease-out, transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
  transition-delay: 0.25s;
  will-change: opacity, transform;
}

.doctor-photo-wrapper.revealed::after {
  opacity: 0.1;
  transform: scale(1) translate3d(0, 0, 0);
}

/* Hover lift, scale, and pause floating */
.doctor-photo-wrapper:hover .doctor-photo-card {
  animation-play-state: paused;
  transform: translateY(-12px) scale(1.02) !important;
  box-shadow: 0 30px 50px rgba(122, 31, 75, 0.22), 0 0 25px rgba(232, 169, 59, 0.25) !important;
}

@keyframes doctorCardGlow {
  0% {
    border-color: var(--bg-card);
  }
  50% {
    border-color: rgba(232, 169, 59, 0.35);
  }
  100% {
    border-color: var(--bg-card);
  }
}

@keyframes doctorFloat {
  0% {
    transform: translateY(10px);
    /* Lowest point: shadow is darker/more concentrated and smaller */
    box-shadow: 0 10px 25px rgba(122, 31, 75, 0.12), 0 0 10px rgba(232, 169, 59, 0.05);
  }
  50% {
    transform: translateY(-10px);
    /* Highest point: shadow is softer, blurrier, and opacity decreases (lighter) */
    box-shadow: 0 25px 45px rgba(122, 31, 75, 0.07), 0 0 20px rgba(232, 169, 59, 0.12);
  }
  100% {
    transform: translateY(10px);
    box-shadow: 0 10px 25px rgba(122, 31, 75, 0.12), 0 0 10px rgba(232, 169, 59, 0.05);
  }
}

@keyframes doctorFloatMobile {
  0% {
    transform: translateY(5px);
    box-shadow: 0 10px 20px rgba(122, 31, 75, 0.12);
  }
  50% {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(122, 31, 75, 0.08);
  }
  100% {
    transform: translateY(5px);
    box-shadow: 0 10px 20px rgba(122, 31, 75, 0.12);
  }
}

.doctor-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.doctor-title {
  font-size: 2.5rem;
  margin: 6px 0 10px 0;
}

.doctor-credentials {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--primary);
  font-size: 1.1rem;
  margin-bottom: 24px;
}

.doctor-bio {
  font-size: 0.95rem;
  color: var(--text-body);
  margin-bottom: 24px;
  line-height: 1.7;
}

.doctor-checklist {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 32px;
}

.doctor-checklist li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text-heading);
}

.doctor-checklist svg {
  width: 20px;
  height: 20px;
  color: #27AE60;
  flex-shrink: 0;
}

/* SECTION SOFT DIVIDER */
.section-soft-divider {
  height: 1px;
  width: 90%;
  max-width: 1140px;
  margin: 0 auto;
  background: linear-gradient(90deg, rgba(122, 31, 61, 0) 0%, rgba(122, 31, 61, 0.15) 30%, rgba(232, 163, 61, 0.2) 70%, rgba(122, 31, 61, 0) 100%);
}

/* MENTAL WELLNESS & COUNSELING SECTION */
.mental-wellness-section {
  padding: 85px 0 90px;
  background: linear-gradient(180deg, rgba(248, 225, 231, 0.28) 0%, rgba(255, 255, 255, 0.95) 50%, rgba(248, 225, 231, 0.2) 100%);
  position: relative;
  overflow: hidden;
}

.mental-wellness-section .section-header {
  margin-bottom: 50px;
  text-align: center;
}

.mental-wellness-section .animated-underline {
  display: block;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--accent-gold) 100%);
  margin: 8px auto 0;
  border-radius: 2px;
  transition: width 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.mental-wellness-section.revealed .animated-underline {
  width: 120px;
}

.counseling-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: center;
}

.counseling-photo-col {
  position: relative;
  display: flex;
  justify-content: center;
}

.counseling-photo-container {
  position: relative;
  width: 100%;
  max-width: 420px;
}

.counseling-photo-card {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 20px 45px rgba(122, 31, 61, 0.14), 0 0 25px rgba(232, 163, 61, 0.12);
  border: 4px solid #ffffff;
  background: #ffffff;
  z-index: 2;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.counseling-photo-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 28px 55px rgba(122, 31, 61, 0.2), 0 0 30px rgba(232, 163, 61, 0.2);
}

.counseling-photo-card img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: transform 0.6s ease;
}

.counseling-photo-card:hover img {
  transform: scale(1.03);
}

.counseling-photo-backdrop {
  position: absolute;
  top: 18px;
  left: -18px;
  width: 100%;
  height: 100%;
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(122, 31, 61, 0.12) 0%, rgba(232, 163, 61, 0.15) 100%);
  z-index: 1;
  transition: transform 0.4s ease;
}

.counseling-photo-card:hover + .counseling-photo-backdrop {
  transform: translate(6px, -6px);
}

.counseling-floating-badge {
  position: absolute;
  bottom: 22px;
  left: 20px;
  right: 20px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 10px 18px;
  border-radius: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--primary);
  box-shadow: 0 8px 24px rgba(122, 31, 61, 0.14);
  border: 1px solid rgba(122, 31, 61, 0.1);
  z-index: 3;
}

.badge-status-dot {
  width: 9px;
  height: 9px;
  background-color: #27AE60;
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(39, 174, 96, 0.25);
  animation: pulseDot 2s infinite ease-in-out;
}

@keyframes pulseDot {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 0 3px rgba(39, 174, 96, 0.25);
  }
  50% {
    transform: scale(1.15);
    box-shadow: 0 0 0 6px rgba(39, 174, 96, 0.12);
  }
}

.counseling-content-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.counseling-doctor-name {
  font-size: 2.1rem;
  font-family: var(--font-heading);
  color: var(--text-heading);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 6px;
}

.counseling-doctor-name .degree {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--primary);
}

.counseling-doctor-role {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--accent-gold);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}

.counseling-bio {
  font-size: 0.98rem;
  color: var(--text-body);
  line-height: 1.7;
  margin-bottom: 24px;
}

.counseling-services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  width: 100%;
  margin-bottom: 32px;
}

.counseling-service-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #ffffff;
  border: 1px solid rgba(122, 31, 61, 0.08);
  padding: 10px 14px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.counseling-service-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(122, 31, 61, 0.09);
  border-color: rgba(122, 31, 61, 0.2);
}

.counseling-icon-box {
  width: 36px;
  height: 36px;
  background-color: #F8E1E7;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background-color 0.25s ease, transform 0.25s ease;
}

.counseling-service-item:hover .counseling-icon-box {
  background-color: var(--primary);
  transform: scale(1.05);
}

.counseling-icon-box svg {
  width: 18px;
  height: 18px;
  stroke: var(--primary);
  transition: stroke 0.25s ease;
}

.counseling-service-item:hover .counseling-icon-box svg {
  stroke: #ffffff;
}

.counseling-service-item span {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-heading);
  line-height: 1.35;
}

.counseling-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

@media (max-width: 960px) {
  .counseling-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .counseling-photo-col {
    order: 1;
  }
  
  .counseling-content-col {
    order: 2;
  }
  
  .counseling-photo-card img {
    height: 380px;
  }
}

@media (max-width: 580px) {
  .counseling-services-grid {
    grid-template-columns: 1fr;
  }
  
  .counseling-actions {
    flex-direction: column;
    width: 100%;
  }
  
  .counseling-actions .btn {
    width: 100%;
    justify-content: center;
  }
  
  .counseling-doctor-name {
    font-size: 1.7rem;
  }
}

/* FACILITIES SECTION */
.facilities-section {
  padding: 80px 0;
  background-color: #F5F5F5; /* Off-white section background */
  overflow: hidden;
  position: relative;
  z-index: 1;
}

.facilities-grid {
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  column-gap: 40px;
  row-gap: 0;
  position: relative;
  align-items: stretch;
}

/* Large Featured Area (Diagnostic Lab) */
.facility-card-large {
  background-color: transparent;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
  border: none;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 36px;
  align-items: center;
  grid-row: span 3;
  opacity: 0;
  transform: translate3d(-40px, 0, 0);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.facilities-section.revealed .facility-card-large {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.facility-card-large .facility-img {
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 15px 40px rgba(122, 31, 61, 0.12); /* Float effect shadow */
  height: 100%;
  opacity: 0;
  transform: translate3d(40px, 0, 0);
  transition: opacity 0.8s ease 0.15s, transform 0.8s cubic-bezier(0.25, 0.8, 0.25, 1) 0.15s;
}

.facilities-section.revealed .facility-card-large .facility-img {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.facility-card-large .facility-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.facility-card-large:hover .facility-img img {
  transform: scale(1.02);
}

.facility-details {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.facility-pills {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
}

.facility-pill {
  display: inline-block;
  padding: 6px 14px;
  background-color: #F8E1E7; /* Blush pink */
  color: #7A1F3D; /* Deep maroon */
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  transform: scale(0);
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  transform-origin: center;
}

.facilities-section.revealed .facility-pill {
  transform: scale(1);
}

.facilities-section.revealed .facility-pill:nth-child(1) { transition-delay: 0.3s; }
.facilities-section.revealed .facility-pill:nth-child(2) { transition-delay: 0.4s; }

/* Custom Secondary Button Fill Hover */
.facility-card-large .btn-secondary {
  border: 2px solid #7A1F3D;
  color: #7A1F3D;
  background-color: transparent;
  transition: background-color 0.4s ease, color 0.4s ease, border-color 0.4s ease, transform 0.3s ease;
  padding: 12px 24px;
  font-family: var(--font-heading);
  font-weight: 500;
  border-radius: 50px;
}

.facility-card-large .btn-secondary:hover {
  background-color: #7A1F3D;
  border-color: #7A1F3D;
  color: #FFFFFF;
  transform: translateY(-2px);
}

/* Small Cards (Pharmacy, ECG, Physio) */
.facility-card-small {
  background-color: transparent;
  border-radius: 0;
  padding: 24px 0;
  box-shadow: none;
  border: none;
  border-bottom: 1px solid rgba(122, 31, 61, 0.08); /* Subtle horizontal divider */
  display: flex;
  gap: 20px;
  align-items: flex-start;
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
  opacity: 0;
  transform: translate3d(0, 20px, 0);
}

.facility-card-small:last-child {
  border-bottom: none; /* No separator for the last item */
}

.facilities-section.revealed .facility-card-small {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.facilities-section.revealed .facility-card-small:nth-child(2) { transition-delay: 0.1s; }
.facilities-section.revealed .facility-card-small:nth-child(3) { transition-delay: 0.2s; }
.facilities-section.revealed .facility-card-small:nth-child(4) { transition-delay: 0.3s; }

.facility-card-small .icon-badge {
  width: 56px;
  height: 56px;
  background-color: #F8E1E7; /* Blush pink */
  color: #7A1F3D; /* Deep maroon */
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.facility-card-small:hover .icon-badge {
  transform: scale(1.1) rotate(5deg);
}

.facility-card-small .icon-badge svg {
  width: 24px;
  height: 24px;
}

/* Headings left border accent lines */
.facility-card-small .feature-title {
  position: relative;
  padding-left: 18px; /* generous padding */
  margin-bottom: 8px;
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 600;
  color: #1A1A1A; /* Charcoal heading text */
  line-height: 1.2;
  display: inline-block;
}

.facility-card-small .feature-title::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%) scaleY(0); /* Starts collapsed */
  width: 3px;
  height: 80%;
  border-radius: 2px;
  transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
  transform-origin: center;
}

/* Alternating border accent line colors */
.facility-card-small:nth-child(2) .feature-title::before { background-color: #7A1F3D; } /* Maroon */
.facility-card-small:nth-child(3) .feature-title::before { background-color: #E8A33D; } /* Gold */
.facility-card-small:nth-child(4) .feature-title::before { background-color: #7A1F3D; } /* Maroon */

/* Grow/animate left border line on scroll */
.facilities-section.revealed .facility-card-small .feature-title::before {
  transform: translateY(-50%) scaleY(1);
}

.facilities-section.revealed .facility-card-small:nth-child(2) .feature-title::before { transition-delay: 0.3s; }
.facilities-section.revealed .facility-card-small:nth-child(3) .feature-title::before { transition-delay: 0.4s; }
.facilities-section.revealed .facility-card-small:nth-child(4) .feature-title::before { transition-delay: 0.5s; }

.facility-card-small .feature-desc {
  font-size: 0.85rem;
  color: #5F5F5F; /* Gray body text */
  line-height: 1.6;
}



/* TESTIMONIALS SECTION */

.testimonials-section {
  padding: 80px 0;
  background-color: var(--bg-neutral);
  overflow: hidden;
  position: relative;
}

.testimonial-carousel-container {
  position: relative;
  max-width: 100%;
  margin: 50px auto 0 auto;
  opacity: 0;
  transform: translate3d(0, 40px, 0);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.testimonials-section.revealed .testimonial-carousel-container {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.testimonial-carousel-wrapper {
  overflow: visible; /* Allows card peek-previews to show outside boundaries */
  width: 100%;
  padding: 20px 0;
}

.testimonial-carousel-track {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
  will-change: transform;
  cursor: grab;
}

.testimonial-carousel-track:active {
  cursor: grabbing;
}

.testimonial-card {
  width: 60%;
  flex-shrink: 0;
  margin: 0 20px;
  padding: 44px 48px;
  background: linear-gradient(135deg, #FAF8F6 0%, #FCF5F6 100%); /* soft off-white to blush pink */
  border-radius: 36px; /* soft/organic rounded corners */
  box-shadow: 0 10px 30px rgba(122, 31, 61, 0.02);
  border: 1px solid rgba(122, 31, 61, 0.04);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  opacity: 0.4;
  transform: scale(0.9);
  transition: opacity 0.6s cubic-bezier(0.25, 1, 0.5, 1), transform 0.6s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.6s ease;
  z-index: 1;
}

.testimonial-card.active {
  opacity: 1;
  transform: scale(1);
  box-shadow: 0 20px 40px rgba(122, 31, 61, 0.06);
  z-index: 2;
}

/* Decorative Quote Mark */
.quote-mark {
  font-family: var(--font-heading);
  font-size: 11rem;
  font-weight: 900;
  line-height: 1;
  color: rgba(122, 31, 61, 0.04); /* Maroon/pink tint at 4% */
  position: absolute;
  top: -20px;
  left: 30px;
  z-index: 0;
  pointer-events: none;
  user-select: none;
  transform: scale(0.7);
  opacity: 0;
  transition: transform 1s cubic-bezier(0.34, 1.56, 0.64, 1) 0.3s, opacity 1s ease 0.3s;
}

.testimonial-card.active .quote-mark {
  transform: scale(1);
  opacity: 1;
}

/* Star Rating */
.star-rating {
  color: #E8A33D; /* Gold accent */
  display: flex;
  gap: 4px;
  margin-bottom: 20px;
  position: relative;
  z-index: 2;
}

.star-rating svg {
  width: 18px;
  height: 18px;
}

.testimonial-quote {
  font-size: 1.05rem;
  line-height: 1.6;
  color: #5F5F5F; /* Gray body text */
  margin-bottom: 30px;
  font-style: italic;
  position: relative;
  z-index: 2;
}

.patient-info {
  display: flex;
  align-items: center;
  gap: 16px;
  position: relative;
  z-index: 2;
}

.patient-avatar {
  width: 56px; /* resized circular avatar */
  height: 56px;
  border-radius: 50%;
  background-color: #F8E1E7; /* Blush pink */
  color: #7A1F3D; /* Deep maroon */
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.25rem;
  border: 2px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
  flex-shrink: 0;
  text-transform: uppercase;
}

.patient-avatar.avatar-green {
  background-color: #2E7D32;
  color: #FFFFFF;
  box-shadow: 0 4px 14px rgba(46, 125, 50, 0.28);
}

.patient-avatar.avatar-teal {
  background-color: #00897B;
  color: #FFFFFF;
  box-shadow: 0 4px 14px rgba(0, 137, 123, 0.28);
}

.patient-avatar.avatar-blue {
  background-color: #1976D2;
  color: #FFFFFF;
  box-shadow: 0 4px 14px rgba(25, 118, 210, 0.28);
}

.patient-avatar.avatar-purple {
  background-color: #7B1FA2;
  color: #FFFFFF;
  box-shadow: 0 4px 14px rgba(123, 31, 162, 0.28);
}

.patient-details {
  display: flex;
  flex-direction: column;
}

.patient-name {
  font-family: var(--font-heading);
  font-weight: 600;
  color: #1A1A1A; /* Charcoal heading text */
  font-size: 0.98rem;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.local-guide-tag {
  font-size: 0.72rem;
  font-weight: 600;
  color: #D97706;
  background: rgba(245, 158, 11, 0.12);
  padding: 1px 7px;
  border-radius: 4px;
  border: 1px solid rgba(245, 158, 11, 0.2);
}

.patient-type {
  font-size: 0.82rem;
  color: #7A1F3D; /* Deep maroon */
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 2px;
}

.patient-type .google-g-icon {
  flex-shrink: 0;
  display: inline-block;
}

/* Navigation dots */
.testimonial-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 35px;
}

.testimonial-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: rgba(122, 31, 61, 0.2);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.testimonial-dot.active {
  width: 28px; /* dot expands into small pill */
  border-radius: 50px;
  background-color: #7A1F3D; /* Maroon active */
}

@media (max-width: 768px) {
  .testimonial-card {
    width: 82%; /* peek size on mobile */
    padding: 36px 28px;
    margin: 0 10px;
  }
  
  .testimonial-quote {
    font-size: 0.95rem;
  }
}

/* CTA BANNER */
.cta-banner-section {
  padding: 80px 0;
}

.cta-banner-wrapper {
  background: var(--primary-gradient);
  border-radius: var(--radius-lg);
  padding: 70px 60px;
  color: var(--text-white);
  box-shadow: var(--shadow-lg);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
  position: relative;
  overflow: hidden;
}

.cta-banner-wrapper::after {
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  right: -100px;
  top: -100px;
}

.cta-banner-content {
  flex: 1;
  z-index: 2;
}

.cta-banner-title {
  color: var(--text-white);
  font-size: 2.5rem;
  margin-bottom: 12px;
}

.cta-banner-subtitle {
  font-size: 1.1rem;
  opacity: 0.9;
}

.cta-banner-actions {
  display: flex;
  gap: 20px;
  align-items: center;
  z-index: 2;
  flex-wrap: wrap;
}

.cta-phone-btn {
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--text-white);
}

.cta-phone-btn:hover {
  background-color: var(--text-white);
  color: var(--primary);
  transform: translateY(-2px);
}

/* RESPONSIVE DESIGN - HOME */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }
  
  .hero-content {
    align-items: center;
  }
  
  .hero-title {
    font-size: 2.8rem;
  }
  
  .hero-actions {
    justify-content: center;
  }
  
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  
  .stat-item {
    border-right: none;
  }
  
  .stat-item:nth-child(odd) {
    border-right: 1px solid rgba(122, 31, 75, 0.08);
  }
  
  .features-grid {
    grid-template-columns: 1fr;
    max-width: 600px;
    margin: 0 auto;
  }
  
  .treatments-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .spotlight-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .doctor-photo-wrapper {
    max-width: 400px;
    margin: 0 auto;
  }
  
  .facilities-grid {
    grid-template-columns: 1fr;
  }
  
  .facility-card-large {
    grid-row: span 1;
  }
  
  .testimonials-grid {
    grid-template-columns: 1fr;
    max-width: 500px;
    margin: 0 auto;
  }
  
  .cta-banner-wrapper {
    flex-direction: column;
    text-align: center;
    padding: 50px 30px;
  }
  
  .cta-banner-actions {
    justify-content: center;
  }
}

@media (max-width: 576px) {
  .hero-title {
    font-size: 2.2rem;
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  .stat-item {
    border-right: none !important;
    border-bottom: 1px solid rgba(122, 31, 75, 0.08);
    padding-bottom: 20px;
  }
  
  .stat-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
  }
  
  .treatments-header-row {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
  }
  
  .treatments-grid {
    grid-template-columns: 1fr;
  }
  
  .facility-card-large {
    grid-template-columns: 1fr;
    gap: 24px;
    transform: none !important;
  }
  
  .facility-card-large .facility-img {
    height: 250px;
    transform: none !important;
  }
  
  .facility-card-small {
    flex-direction: row;
    align-items: flex-start;
    text-align: left;
    padding: 20px 0;
    transform: none !important;
  }
}



