/* ==========================================================================
   SERVICES PAGE — HERO SECTION (Redesigned)
   ========================================================================== */

/* ---- Wrapper ---- */
.services-hero {
  position: relative;
  padding: 96px 0 110px 0;
  text-align: center;
  overflow: hidden;
  background: linear-gradient(160deg, #FAF0F6 0%, #F9E6EE 45%, #FBEAF3 100%);
}

/* ---- Background image layer (parallaxed) ---- */
.svh-bg-image {
  position: absolute;
  inset: -40px 0 -40px 0; /* extra height for parallax travel */
  background-image: url('../assets/images/services-hero-bg.png');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  will-change: transform;
  z-index: 0;
}

/* ---- Pink-to-white gradient overlay (82% opacity) ---- */
.svh-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(251, 234, 243, 0.86) 0%,
    rgba(249, 230, 238, 0.82) 50%,
    rgba(252, 243, 248, 0.88) 100%
  );
  z-index: 1;
}

/* ---- Canvas particle layer ---- */
.svh-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
}

/* ---- Content sits above all layers ---- */
.svh-content {
  position: relative;
  z-index: 3;
}

/* ---- Heading — matches About page hero (Montserrat 900, tight) ---- */
.services-hero-title {
  font-family: var(--font-display);   /* Montserrat, same as About hero */
  font-weight: 900;
  font-size: clamp(2.4rem, 5vw, 4rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
  margin-top: 12px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.services-hero-title span.maroon {
  color: var(--primary);
  display: block;
}

.services-hero-title span.purple {
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block;
}

/* ---- Gradient shimmer on 'Under One Roof' ---- */
.svh-shimmer {
  background: linear-gradient(
    90deg,
    #7A1F4B 0%,
    #C0447A 30%,
    #E8A33D 60%,
    #7A1F4B 100%
  );
  background-size: 250% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: svh-shimmer-sweep 1.4s ease-out 0.7s 1 forwards;
}

@keyframes svh-shimmer-sweep {
  from { background-position: 100% center; }
  to   { background-position:   0% center; }
}

/* ---- Subtext ---- */
.services-hero-desc {
  max-width: 640px;
  margin: 0 auto;
  font-size: 1.08rem;
  color: var(--text-body);
  line-height: 1.76;
  letter-spacing: 0.01em;
}

/* ==========================================================================
   STAGGERED ENTRANCE ANIMATIONS
   ========================================================================== */
@keyframes svh-fade-up {
  from { opacity: 0; transform: translateY(22px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0)    scale(1); }
}

/* Badge leads first */
.svh-entrance-badge {
  opacity: 0;
  animation: svh-fade-up 0.65s cubic-bezier(0.22, 1, 0.36, 1) 0.08s forwards;
}

/* Heading second */
.svh-entrance-title {
  opacity: 0;
  animation: svh-fade-up 0.70s cubic-bezier(0.22, 1, 0.36, 1) 0.24s forwards;
}

/* Subtext last */
.svh-entrance-desc {
  opacity: 0;
  animation: svh-fade-up 0.70s cubic-bezier(0.22, 1, 0.36, 1) 0.44s forwards;
}

/* Respect prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  .svh-entrance-badge,
  .svh-entrance-title,
  .svh-entrance-desc,
  .svh-shimmer {
    opacity: 1;
    animation: none;
    background-position: 0% center;
  }
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
  .services-hero {
    padding: 64px 0 72px 0;
  }
  .services-hero-title {
    font-size: 2rem;
  }
}

/* ============================================================
   ACCORDION SPECIALITIES SECTION
   ============================================================ */
.services-accordion-section {
  padding: 90px 0 100px 0;
  background-color: #FFFFFF;
  position: relative;
  overflow: hidden;
}

.services-accordion-section .section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 44px auto;
}

.services-accordion-section .section-subtitle {
  color: #E8A33D !important;
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: 10px;
  display: inline-block;
  text-align: center;
}

.services-accordion-section .section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.8vw, 2.5rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  color: #7A1B4C !important;
  margin-bottom: 14px;
  line-height: 1.15;
  text-align: center;
}

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

/* Accordion Stack Container */
.services-accordion-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
}

/* Accordion Row Item */
.accordion-row {
  background-color: #FFFFFF;
  border: 1px solid rgba(0, 0, 0, 0.07);
  border-left: 5px solid transparent;
  border-radius: 16px;
  padding: 24px 28px;
  cursor: pointer;
  position: relative;
  transition: background-color 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
  outline: none;
  overflow: hidden; /* Prevent expanded body from escaping and blocking rows below */
}

.accordion-row:hover {
  border-color: rgba(122, 31, 75, 0.2);
  box-shadow: 0 6px 20px rgba(122, 31, 75, 0.05);
}

/* Active Row State */
.accordion-row.active {
  background-color: #FDF2F5; /* Light blush/pink tint */
  border-left-color: #F5A623; /* Vibrant orange accent left border */
  border-top-color: rgba(122, 31, 75, 0.15);
  border-right-color: rgba(122, 31, 75, 0.15);
  border-bottom-color: rgba(122, 31, 75, 0.15);
  box-shadow: 0 10px 30px rgba(122, 31, 75, 0.08);
}

/* Header Flex Layout */
.accordion-row-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.accordion-row-left {
  display: flex;
  align-items: center;
  gap: 22px;
  flex: 1;
}

/* Large Number (01, 02...) */
.accordion-row-num {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1;
  min-width: 48px;
  -webkit-text-stroke: 1.5px #D8C5CF;
  color: transparent;
  transition: color 0.35s ease, -webkit-text-stroke 0.35s ease;
  user-select: none;
}

.accordion-row.active .accordion-row-num,
.accordion-row:hover .accordion-row-num {
  -webkit-text-stroke: 0;
  color: #7A1F3D; /* Solid bold maroon */
}

/* Icon Badge */
.accordion-row-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background-color: rgba(245, 166, 35, 0.12); /* Soft orange/pink tint */
  display: flex;
  align-items: center;
  justify-content: center;
  color: #7A1F3D;
  flex-shrink: 0;
  transition: transform 0.3s ease, background-color 0.3s ease, color 0.3s ease;
}

.accordion-row-icon svg {
  width: 22px;
  height: 22px;
  stroke: #7A1F3D;
  stroke-width: 2;
  transition: stroke 0.3s ease;
}

.accordion-row.active .accordion-row-icon {
  background-color: #7A1F3D;
  color: #FFFFFF;
  transform: scale(1.05);
}

.accordion-row.active .accordion-row-icon svg {
  stroke: #FFFFFF;
}

/* Department Name Title */
.accordion-row-title {
  font-family: var(--font-heading);
  font-size: 1.24rem;
  font-weight: 700;
  color: #1A1A2E;
  margin: 0;
  line-height: 1.35;
  letter-spacing: -0.01em;
  transition: color 0.3s ease;
}

.accordion-row.active .accordion-row-title {
  color: #1A1A2E;
}

/* Right Side Controls */
.accordion-row-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Book Now CTA Button */
.btn-accordion-action {
  background-color: #7A1F3D;
  color: #FFFFFF !important;
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 50px;
  padding: 10px 22px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 14px rgba(122, 31, 61, 0.25);
  opacity: 0;
  visibility: hidden;
  transform: translateX(12px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease, background-color 0.2s ease, box-shadow 0.2s ease;
  white-space: nowrap;
  text-decoration: none;
}

.accordion-row.active .btn-accordion-action {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

.btn-accordion-action:hover {
  background-color: #63143B;
  box-shadow: 0 6px 18px rgba(122, 31, 61, 0.35);
  transform: translateY(-2px) !important;
}

/* Chevron Arrow */
.accordion-row-chevron {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background-color: rgba(122, 31, 75, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #7A1F3D;
  transition: transform 0.35s cubic-bezier(0.25, 0.8, 0.25, 1), background-color 0.3s ease;
  flex-shrink: 0;
}

.accordion-row-chevron svg {
  width: 18px;
  height: 18px;
}

.accordion-row.active .accordion-row-chevron {
  transform: rotate(180deg);
  background-color: rgba(122, 31, 75, 0.12);
}

/* Collapsible Body Content */
.accordion-row-body {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), opacity 0.35s ease, margin-top 0.35s ease;
  padding-left: 116px; /* Aligned nicely under department title */
  margin-top: 0;
}

.accordion-row.active .accordion-row-body {
  max-height: 600px; /* Tall enough for any content — was 260px which caused overflow click-blocking */
  opacity: 1;
  margin-top: 14px;
}

/* Description Text */
.accordion-row-desc {
  color: #6B7280;
  font-size: 0.98rem;
  line-height: 1.72;
  max-width: 820px;
  margin-bottom: 14px;
}

/* Tag Chips Row */
.accordion-row-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-bottom: 4px;
}

/* Individual Tag Chip */
.tag-chip {
  background-color: #FDF2F5;
  color: #7A1F3D;
  border: 1px solid rgba(122, 31, 75, 0.14);
  border-radius: 50px;
  padding: 5px 14px;
  font-size: 0.8rem;
  font-weight: 600;
  transition: all 0.2s ease;
  display: inline-block;
}

.tag-chip:hover {
  background-color: #7A1F3D;
  color: #FFFFFF;
  border-color: #7A1F3D;
}

/* Mobile Responsive Adjustments */
@media (max-width: 768px) {
  .services-accordion-section {
    padding: 60px 0;
  }

  .accordion-row {
    padding: 16px 16px;
  }

  .accordion-row-header {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }

  .accordion-row-left {
    gap: 12px;
    min-width: 0;
    width: 100%;
    flex: 1 1 auto;
  }

  .accordion-row-num {
    font-size: 1.6rem;
    min-width: 32px;
  }

  .accordion-row-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
  }

  .accordion-row-icon svg {
    width: 18px;
    height: 18px;
  }

  .accordion-row-title {
    font-size: 1.1rem;
    width: 100%;
    min-width: 0;
  }

  .accordion-row-right {
    justify-content: flex-start;
    width: 100%;
    gap: 10px;
    flex-wrap: wrap;
  }

  .btn-accordion-action {
    padding: 8px 16px;
    font-size: 0.75rem;
    width: auto;
  }

  .accordion-row-body {
    padding-left: 0;
    margin-top: 10px;
  }
}

@media (max-width: 576px) {
  .accordion-row-right {
    gap: 8px;
  }

  .btn-accordion-action {
    padding: 6px 12px;
    font-size: 0.7rem;
  }
}

/* SPECIALIZED TREATMENTS & FILTER SYSTEM */
.services-section {
  padding: 80px 0;
}

.filter-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 48px;
  flex-wrap: wrap;
  gap: 20px;
}

.filter-tabs {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  position: relative;
  z-index: 0;
}

.filter-btn {
  padding: 10px 24px;
  border-radius: var(--radius-pill);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  background-color: transparent !important;
  color: var(--text-heading);
  border: 1px solid rgba(122, 31, 75, 0.15);
  transition: color 0.3s ease, border-color 0.3s ease;
  position: relative;
  z-index: 2;
}

.filter-btn:hover {
  color: var(--primary);
  border-color: var(--primary);
}

.filter-btn.active {
  color: var(--text-white);
  border-color: transparent !important;
  box-shadow: none !important;
}

.filter-slider-pill {
  position: absolute;
  border-radius: var(--radius-pill);
  background: var(--primary-gradient);
  box-shadow: 0 4px 15px rgba(192, 68, 122, 0.35);
  z-index: 1;
  transition: all 0.38s cubic-bezier(0.25, 0.8, 0.25, 1);
  pointer-events: none;
}

/* Services Grid & Transitions */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.service-card {
  background-color: #FFFFFF;
  border-radius: 48px 24px 28px 28px; /* Soft arch curvature on top-left matching reference */
  border: 1.5px solid #E8C4D0; /* Light maroon/pink tint border */
  padding: 36px 28px 32px 28px;
  box-shadow: 0 4px 18px rgba(122, 31, 75, 0.04);
  transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.3s ease, border-color 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  opacity: 1;
  transform: scale(1);
  position: relative;
}

.service-card.hidden {
  display: none;
  opacity: 0;
  transform: scale(0.9);
}

.service-card .icon-badge {
  width: 52px;
  height: 52px;
  background-color: #F8E1E7; /* Blush pink tint */
  color: #7A1F3D; /* Deep maroon */
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px auto;
  transition: transform 0.3s ease, background-color 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
}

.service-card .icon-badge svg {
  width: 24px;
  height: 24px;
  stroke: #7A1F3D;
  transition: stroke 0.3s ease;
}

.service-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: #1A1A2E; /* Bold dark navy/black */
  margin-bottom: 12px;
  text-align: center;
}

.service-desc {
  font-size: 0.88rem;
  color: #6B7280; /* Comfortable gray */
  line-height: 1.65;
  margin-bottom: 24px;
  text-align: center;
  flex: 1;
}

/* Solid Pill-Shaped Learn More Button */
.btn-service-learn {
  background-color: #7A1F3D; /* Solid maroon */
  color: #FFFFFF !important;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  border-radius: 9999px; /* Fully rounded pill shape */
  padding: 11px 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: auto;
  align-self: center; /* Centered horizontally near bottom */
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 4px 14px rgba(122, 31, 61, 0.22);
  transition: background-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
  text-decoration: none;
  white-space: nowrap;
}

.btn-service-learn:hover {
  background-color: #63143B;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(122, 31, 61, 0.35);
}

@media (hover: hover) {
  .service-card:hover {
    transform: translateY(-6px) !important;
    box-shadow: 0 16px 36px rgba(122, 31, 75, 0.12) !important;
    border-color: #7A1F3D !important;
  }

  .service-card:hover .icon-badge {
    transform: scale(1.08);
    background-color: #7A1F3D;
    color: #FFFFFF;
  }

  .service-card:hover .icon-badge svg {
    stroke: #FFFFFF;
  }
}

/* INTEGRATED HEALTH FACILITIES STRIP */
.facilities-strip {
  background-color: var(--accent-pink-light);
  padding: 60px 0;
  border-top: 1px solid rgba(122, 31, 75, 0.05);
  border-bottom: 1px solid rgba(122, 31, 75, 0.05);
}

.facilities-strip-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.facility-strip-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.facility-strip-item .icon-badge {
  background-color: var(--bg-card);
  box-shadow: var(--shadow-sm);
  margin-bottom: 16px;
  width: 52px;
  height: 52px;
  color: var(--primary);
}

.facility-strip-item .icon-badge svg {
  width: 22px;
  height: 22px;
}

.facility-strip-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-heading);
  margin-bottom: 4px;
}

.facility-strip-subtitle {
  font-size: 0.8rem;
  color: var(--text-body);
}

/* JOURNEY / TIMELINE SECTION */
.journey-section {
  padding: 80px 0;
}

.timeline-container {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-top: 60px;
  gap: 20px;
}

/* Connecting Dashed Line */
.timeline-container::before {
  content: '';
  position: absolute;
  top: 30px;
  left: 5%;
  width: 0%;
  height: 2px;
  background-color: transparent;
  border-top: 2px dashed rgba(122, 31, 75, 0.2);
  z-index: 1;
  transition: width 1.2s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.journey-section.revealed .timeline-container::before {
  width: 90%;
}

.timeline-step {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex: 1;
  z-index: 2;
}

.timeline-circle {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: var(--primary);
  color: var(--text-white);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(122, 31, 75, 0.25);
  margin-bottom: 20px;
  border: 4px solid var(--bg-neutral);
  opacity: 0;
  transform: scale(0.3);
  transition: opacity 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), background-color 0.3s ease, box-shadow 0.3s ease;
}

.journey-section.revealed .timeline-step:nth-child(1) .timeline-circle { transition-delay: 0.15s; }
.journey-section.revealed .timeline-step:nth-child(2) .timeline-circle { transition-delay: 0.45s; }
.journey-section.revealed .timeline-step:nth-child(3) .timeline-circle { transition-delay: 0.75s; }
.journey-section.revealed .timeline-step:nth-child(4) .timeline-circle { transition-delay: 1.05s; }

.journey-section.revealed .timeline-circle {
  opacity: 1;
  transform: scale(1);
}

.timeline-step:hover .timeline-circle {
  transform: scale(1.1) !important;
  background-color: var(--accent-orange);
  box-shadow: 0 6px 18px rgba(245, 166, 35, 0.35);
  transition: transform 0.25s cubic-bezier(0.25, 0.8, 0.25, 1), background-color 0.25s ease, box-shadow 0.25s ease;
}

.timeline-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-heading);
}

.timeline-desc {
  font-size: 0.85rem;
  color: var(--text-body);
  line-height: 1.5;
  max-width: 220px;
}

/* CTA CARD */
.services-cta-section {
  padding: 50px 0 95px 0;
}

.services-cta-card {
  background: var(--primary-gradient);
  color: var(--text-white);
  border-radius: var(--radius-lg);
  padding: 70px 48px;
  text-align: center;
  box-shadow: var(--shadow-lg), 0 20px 45px rgba(122, 31, 75, 0.28);
  position: relative;
  overflow: hidden;
}

/* Decorative background glowing blobs */
.services-cta-blob {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(2px);
}

.blob-top-right {
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0) 70%);
  top: -120px;
  right: -90px;
}

.blob-bottom-left {
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.09) 0%, rgba(255, 255, 255, 0) 70%);
  bottom: -90px;
  left: -70px;
}

.services-cta-inner {
  position: relative;
  z-index: 2;
  max-width: 720px;
  margin: 0 auto;
}

/* Compass / Guidance Icon Badge */
.services-cta-icon-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(6px);
  color: #FFFFFF;
  margin-bottom: 18px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  transition: transform 0.4s ease;
}

.services-cta-card:hover .services-cta-icon-badge {
  transform: rotate(20deg) scale(1.08);
}

.services-cta-icon-badge svg {
  width: 26px;
  height: 26px;
}

.services-cta-title {
  color: var(--text-white);
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 14px;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.22);
  letter-spacing: -0.01em;
}

.services-cta-desc {
  font-size: 1.05rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.95);
  max-width: 620px;
  margin: 0 auto 34px auto;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
}

/* DUAL CTA ACTIONS */
.services-cta-actions {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-services-cta-primary {
  background-color: #FFFFFF;
  color: var(--primary);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.96rem;
  padding: 13px 32px;
  border-radius: var(--radius-pill);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
  transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1),
              box-shadow 0.25s cubic-bezier(0.2, 0.8, 0.2, 1),
              background-color 0.25s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  white-space: nowrap;
}

.btn-services-cta-primary:hover {
  background-color: #FFFFFF;
  color: var(--primary);
  transform: scale(1.05) translateY(-2px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28), 0 0 20px rgba(255, 255, 255, 0.45);
}

.btn-services-cta-secondary {
  background-color: rgba(255, 255, 255, 0.12);
  border: 1.5px solid rgba(255, 255, 255, 0.45);
  color: #FFFFFF;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.96rem;
  padding: 12px 28px;
  border-radius: var(--radius-pill);
  backdrop-filter: blur(6px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1),
              box-shadow 0.25s cubic-bezier(0.2, 0.8, 0.2, 1),
              background-color 0.25s ease,
              border-color 0.25s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  white-space: nowrap;
}

.btn-services-cta-secondary .cta-btn-icon {
  width: 17px;
  height: 17px;
  margin-right: 7px;
}

.btn-services-cta-secondary:hover {
  background-color: rgba(255, 255, 255, 0.24);
  border-color: #FFFFFF;
  color: #FFFFFF;
  transform: scale(1.05) translateY(-2px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22), 0 0 18px rgba(255, 255, 255, 0.35);
}

/* RESPONSIVE DESIGN - SERVICES */
@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .facilities-strip-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
  }
  
  .timeline-container {
    flex-direction: column;
    align-items: center;
    gap: 40px;
  }
  
  .timeline-container::before {
    display: none; /* Hide horizontal dashed line on mobile */
  }
  
  .timeline-step {
    max-width: 300px;
  }
}

@media (max-width: 768px) {
  .services-hero-title {
    font-size: 2.5rem;
  }
  
  .filter-header-row {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}

@media (max-width: 576px) {
  .services-hero-title {
    font-size: 2rem;
  }
  
  .services-grid {
    grid-template-columns: 1fr;
  }
  
  .facilities-strip-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

/* Facility strip items: fade + slide up stagger */
.facility-strip-item {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s cubic-bezier(0.25, 1, 0.5, 1),
              transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.facilities-strip.revealed .facility-strip-item { opacity: 1; transform: translateY(0); }
.facilities-strip.revealed .facility-strip-item:nth-child(1) { transition-delay: 0.05s; }
.facilities-strip.revealed .facility-strip-item:nth-child(2) { transition-delay: 0.15s; }
.facilities-strip.revealed .facility-strip-item:nth-child(3) { transition-delay: 0.25s; }
.facilities-strip.revealed .facility-strip-item:nth-child(4) { transition-delay: 0.35s; }

/* Services CTA card: slide-up reveal */
.services-cta-card {
  opacity: 0;
  transform: translateY(30px) scale(0.98);
  transition: opacity 0.6s cubic-bezier(0.25, 1, 0.5, 1),
              transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.services-cta-section.revealed .services-cta-card {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Facilities strip badge pulse on reveal (refined from existing) */
.facility-strip-item .icon-badge {
  position: relative;
}

.facility-strip-item .icon-badge::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background-color: var(--primary);
  opacity: 0;
  z-index: -1;
  pointer-events: none;
}

.facilities-strip.revealed .facility-strip-item .icon-badge::after {
  animation: pulse 1.4s cubic-bezier(0.25, 0.8, 0.25, 1) 1;
}

.facilities-strip.revealed .facility-strip-item:nth-child(1) .icon-badge::after { animation-delay: 0.2s; }
.facilities-strip.revealed .facility-strip-item:nth-child(2) .icon-badge::after { animation-delay: 0.35s; }
.facilities-strip.revealed .facility-strip-item:nth-child(3) .icon-badge::after { animation-delay: 0.5s; }
.facilities-strip.revealed .facility-strip-item:nth-child(4) .icon-badge::after { animation-delay: 0.65s; }

/* Timeline Connecting Line Glow Fill */
.timeline-container::after {
  content: '';
  position: absolute;
  top: 30px;
  left: 5%;
  width: 0%;
  height: 2px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--accent-orange) 50%, var(--primary) 100%);
  z-index: 1;
  transition: width 1.2s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.journey-section.revealed .timeline-container::after {
  width: 90%;
}

/* Step Circle Glowing Pulse */
@keyframes stepGlow {
  0% { box-shadow: 0 0 0 0 rgba(122, 31, 75, 0.6); }
  70% { box-shadow: 0 0 0 10px rgba(122, 31, 75, 0); }
  100% { box-shadow: 0 0 0 0 rgba(122, 31, 75, 0); }
}

.journey-section.revealed .timeline-step .timeline-circle {
  animation: stepGlow 1.2s ease-out 1;
}

.journey-section.revealed .timeline-step:nth-child(1) .timeline-circle { animation-delay: 0.15s; }
.journey-section.revealed .timeline-step:nth-child(2) .timeline-circle { animation-delay: 0.45s; }
.journey-section.revealed .timeline-step:nth-child(3) .timeline-circle { animation-delay: 0.75s; }
.journey-section.revealed .timeline-step:nth-child(4) .timeline-circle { animation-delay: 1.05s; }

/* Responsive alignment tweaks for CTA and timeline */
@media (max-width: 640px) {
  .services-cta-card {
    padding: 46px 20px;
    border-radius: 16px;
  }
  
  .services-cta-title {
    font-size: 1.85rem;
  }
  
  .services-cta-desc {
    font-size: 0.95rem;
  }
  
  .services-cta-actions {
    flex-direction: column;
    width: 100%;
    gap: 12px;
  }
  
  .btn-services-cta-primary,
  .btn-services-cta-secondary {
    width: 100%;
  }
}

@media (max-width: 1024px) {
  .timeline-container::after {
    display: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .facility-strip-item,
  .services-cta-card {
    transition: none !important;
    transform: none !important;
    opacity: 1 !important;
  }
  .facility-strip-item .icon-badge::after,
  .timeline-container::after {
    display: none !important;
  }
  .journey-section.revealed .timeline-step .timeline-circle,
  .services-cta-card .btn {
    animation: none !important;
  }
}

/* ============================================================
   DIABETES CARE CTA BANNER SECTION
   ============================================================ */
.diabetes-cta-section {
  padding: 40px 0 80px 0;
  position: relative;
}

.diabetes-cta-card {
  background: linear-gradient(135deg, #7A1F3D 0%, #5C1730 100%);
  border-radius: 24px;
  padding: 48px 56px;
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  align-items: center;
  gap: 40px;
  box-shadow: 0 16px 48px rgba(122, 31, 61, 0.22);
}

/* Background Rings */
.cta-bg-rings {
  position: absolute;
  pointer-events: none;
  z-index: 1;
}

.rings-top-right {
  top: -40px;
  right: -40px;
  width: 280px;
  height: 280px;
}

.rings-bottom-left {
  bottom: -50px;
  left: -50px;
  width: 240px;
  height: 240px;
}

/* Columns */
.cta-illustration-col {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  align-items: center;
}

.cta-illustration-wrapper {
  width: 100%;
  max-width: 380px;
}

.diabetes-illustration-svg {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.15));
}

.cta-content-col {
  position: relative;
  z-index: 2;
  color: #FFFFFF;
}

.cta-heading {
  font-family: var(--font-heading);
  font-size: 2.35rem;
  font-weight: 700;
  line-height: 1.25;
  color: #FFFFFF;
  margin-bottom: 14px;
}

.cta-accent-text {
  font-family: 'Poppins', var(--font-heading);
  font-style: italic;
  font-weight: 600;
  color: #F5A623; /* Vibrant orange accent */
}

.cta-subtitle {
  font-size: 0.98rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.6;
  margin-bottom: 28px;
  max-width: 460px;
}

.cta-action-wrapper {
  display: flex;
  align-items: center;
}

/* Outlined Pill CTA Button */
.btn-cta-pill {
  background-color: #FFFFFF;
  color: #7A1F3D !important;
  border: 2px solid #FFFFFF;
  border-radius: 50px;
  padding: 12px 30px;
  font-family: var(--font-heading);
  font-size: 0.92rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.15);
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  text-decoration: none;
  white-space: nowrap;
}

.btn-cta-pill .bullet-dot {
  color: #F5A623; /* Orange bullet dot */
  font-size: 1.2rem;
  line-height: 1;
}

.btn-cta-pill:hover {
  background-color: #F5A623;
  border-color: #F5A623;
  color: #7A1F3D !important;
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(245, 166, 35, 0.35);
}

.btn-cta-pill:hover .bullet-dot {
  color: #7A1F3D;
}

/* Responsive Tablet & Mobile */
@media (max-width: 1024px) {
  .diabetes-cta-card {
    padding: 40px 36px;
    gap: 30px;
  }

  .cta-heading {
    font-size: 1.95rem;
  }
}

@media (max-width: 768px) {
  .diabetes-cta-section {
    padding: 30px 0 60px 0;
  }

  .diabetes-cta-card {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 40px 24px;
    gap: 28px;
  }

  .cta-content-col {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .cta-subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .cta-heading {
    font-size: 1.75rem;
  }

  .cta-illustration-wrapper {
    max-width: 300px;
  }
}

/* ============================================================
   SERVICE MEDICAL INFORMATION LIGHTBOX MODAL
   ============================================================ */
.service-modal {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  padding: 20px;
}
.service-modal.active {
  opacity: 1;
  pointer-events: auto;
}
.service-modal-backdrop {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background-color: rgba(0, 0, 0, 0.76);
  backdrop-filter: blur(4px);
}
.service-modal-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 680px;
  max-height: 88vh;
  overflow-y: auto;
  background-color: #FFFFFF;
  border-radius: 24px;
  padding: 32px 30px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35);
  transform: scale(0.93) translateY(10px);
  transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.service-modal.active .service-modal-content {
  transform: scale(1) translateY(0);
}
.service-modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background-color: #FDF2F5;
  color: #7A1F3D;
  border: none;
  font-size: 24px;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease, transform 0.2s ease;
}
.service-modal-close:hover {
  background-color: #7A1F3D;
  color: #FFFFFF;
  transform: scale(1.08);
}
.service-modal-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1.5px solid #F3F4F6;
}
.service-modal-icon-badge {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background-color: #F8E1E7;
  color: #7A1F3D;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.service-modal-icon-badge svg {
  width: 26px;
  height: 26px;
  stroke: #7A1F3D;
}
.service-modal-category {
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 700;
  color: #F5A623;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 4px;
}
.service-modal-title {
  font-size: 1.65rem;
  font-weight: 800;
  color: #7A1F3D;
  line-height: 1.25;
  margin: 0;
}
.service-modal-body {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.modal-block-label {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: #1A1A2E;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.modal-block-label svg {
  width: 20px;
  height: 20px;
  stroke: #7A1F3D;
}
.modal-block-text {
  font-size: 0.95rem;
  line-height: 1.65;
  color: #4B5563;
  margin: 0;
}
.modal-divider {
  height: 1px;
  background-color: #F3F4F6;
  width: 100%;
}
.modal-symptom-grid {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px 16px;
}
.modal-symptom-grid li {
  font-size: 0.9rem;
  color: #374151;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
}
.modal-symptom-grid li::before {
  content: '•';
  color: #7A1F3D;
  font-size: 1.2rem;
  line-height: 1;
}
.doctor-info-box {
  background-color: #FDF2F5;
  border: 1px solid rgba(122, 31, 61, 0.12);
  border-radius: 16px;
  padding: 16px 20px;
}
.doctor-info-header {
  display: flex;
  align-items: center;
  gap: 14px;
}
.doctor-avatar-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(122, 31, 61, 0.1);
}
.doctor-avatar-circle svg {
  width: 22px;
  height: 22px;
}
.doctor-sublabel {
  font-size: 0.72rem;
  font-weight: 700;
  color: #7A1F3D;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: block;
}
.doctor-name {
  font-size: 1.02rem;
  font-weight: 700;
  color: #1A1A2E;
  margin: 2px 0 0 0;
}
.doctor-qualification {
  font-size: 0.8rem;
  color: #6B7280;
  margin: 0;
}
.service-modal-footer {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1.5px solid #F3F4F6;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.btn-modal-book {
  background-color: #7A1F3D !important;
  color: #FFFFFF !important;
  border-radius: 50px !important;
  padding: 12px 28px !important;
  font-family: var(--font-heading);
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(122, 31, 61, 0.22);
  transition: all 0.2s ease;
}
.btn-modal-book:hover {
  background-color: #63143B !important;
  transform: translateY(-2px);
}
.modal-full-detail-link {
  font-size: 0.85rem;
  color: #7A1F3D;
  font-weight: 600;
  text-decoration: none;
}
.modal-full-detail-link:hover {
  text-decoration: underline;
}

@media (max-width: 640px) {
  .modal-symptom-grid {
    grid-template-columns: 1fr;
  }
  .service-modal-footer {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }
}

