/* =============================================================================
   SUNNYBROOK HEALTHCARE CENTRE
   Design System — Professional Medical Website
   Kawangware 46, Gitanga Road, Nairobi, Kenya
   ============================================================================= */

/* --- Google Fonts ---------------------------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&family=DM+Serif+Display:ital@0;1&display=swap');

/* --- Design Tokens ---------------------------------------------------------- */
:root {
  /* Brand */
  --navy:          #0B2545;
  --navy-mid:      #163768;
  --navy-light:    #1E4D8C;
  --teal:          #0D8B6A;
  --teal-light:    #13A87E;
  --teal-pale:     rgba(13, 139, 106, 0.10);
  --red-alert:     #C0392B;

  /* Neutrals */
  --white:         #FFFFFF;
  --off-white:     #F7F8FA;
  --border:        #E3E8EF;
  --border-dark:   #CDD5E0;
  --muted:         #6B7A8D;
  --body-text:     #2D3748;
  --heading:       #0B2545;

  /* Surfaces */
  --surface:       #FFFFFF;
  --surface-alt:   #F7F8FA;
  --surface-blue:  #EEF3FA;

  /* Typography */
  --font-sans:     'DM Sans', system-ui, -apple-system, sans-serif;
  --font-serif:    'DM Serif Display', Georgia, serif;

  /* Sizing */
  --max-w:         1160px;
  --nav-h:         72px;
  --radius-sm:     6px;
  --radius:        10px;
  --radius-lg:     16px;
  --radius-xl:     24px;

  /* Transitions */
  --ease:          cubic-bezier(0.4, 0, 0.2, 1);
  --t-fast:        0.18s var(--ease);
  --t:             0.28s var(--ease);

  /* Shadows */
  --shadow-xs:  0 1px 3px rgba(11, 37, 69, 0.06), 0 1px 2px rgba(11, 37, 69, 0.04);
  --shadow-sm:  0 2px 8px rgba(11, 37, 69, 0.07), 0 1px 3px rgba(11, 37, 69, 0.05);
  --shadow-md:  0 8px 24px rgba(11, 37, 69, 0.09), 0 3px 8px rgba(11, 37, 69, 0.05);
  --shadow-lg:  0 20px 48px rgba(11, 37, 69, 0.12), 0 8px 20px rgba(11, 37, 69, 0.07);
}

/* --- Reset ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--body-text);
  background: var(--white);
  overflow-x: hidden;
  padding-top: var(--nav-h);
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
input, select, textarea { font-family: inherit; font-size: inherit; }
ul, ol { list-style: none; }

h1, h2, h3, h4, h5 {
  font-family: var(--font-sans);
  font-weight: 700;
  line-height: 1.25;
  color: var(--heading);
}

/* --- Utility --------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 28px;
}

.section-pad   { padding: 88px 0; position: relative; }
.section-pad-sm { padding: 60px 0; position: relative; }

/* Section Backgrounds */
.bg-white { background: var(--white); }
.bg-alt {
  background: linear-gradient(180deg, #F8FAFC 0%, #F1F5F9 100%);
}
.bg-blue {
  background: linear-gradient(180deg, #EEF4FB 0%, #E3EDF8 100%);
}
.bg-navy {
  background: linear-gradient(145deg, var(--navy) 0%, var(--navy-mid) 100%);
  color: var(--white);
}

.label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 12px;
}

.label::before {
  content: '';
  display: block;
  width: 18px;
  height: 2px;
  background: var(--teal);
  border-radius: 2px;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(1.9rem, 3.5vw, 2.6rem);
  font-weight: 400;
  color: var(--navy);
  margin-bottom: 16px;
  line-height: 1.2;
}

.section-sub {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 620px;
  line-height: 1.7;
}

.section-header { margin-bottom: 52px; }
.section-header--center { text-align: center; }
.section-header--center .section-sub { margin: 0 auto; }
.section-header--center .label { justify-content: center; }

/* --- Buttons --------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 600;
  font-size: 0.92rem;
  padding: 13px 26px;
  border-radius: var(--radius);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: linear-gradient(135deg, var(--teal) 0%, var(--teal-light) 100%);
  color: var(--white);
  box-shadow: 0 6px 18px rgba(13, 139, 106, 0.32);
}
.btn-primary:hover {
  background: linear-gradient(135deg, var(--teal-light) 0%, #34D399 100%);
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(13, 139, 106, 0.42);
}

.btn-navy {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  color: var(--white);
  box-shadow: 0 6px 18px rgba(11, 37, 69, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.btn-navy:hover {
  background: linear-gradient(135deg, var(--navy-mid) 0%, #1E4D8C 100%);
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(11, 37, 69, 0.36);
  color: var(--white);
}

.btn-outline {
  background: transparent;
  color: var(--navy);
  border: 1.5px solid var(--border-dark);
}
.btn-outline:hover {
  border-color: var(--teal);
  color: var(--teal);
  background: var(--teal-pale);
}

.btn-ghost {
  background: rgba(255,255,255,0.12);
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.25);
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.20);
}

.btn-sm { padding: 9px 18px; font-size: 0.84rem; }
.btn-lg { padding: 16px 34px; font-size: 1rem; border-radius: var(--radius-lg); }

.btn-emergency {
  background: linear-gradient(135deg, #EF4444 0%, #DC2626 100%);
  color: var(--white);
  box-shadow: 0 6px 18px rgba(220, 38, 38, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.2);
}
.btn-emergency:hover {
  background: linear-gradient(135deg, #F87171 0%, #B91C1C 100%);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(220, 38, 38, 0.45);
  color: var(--white);
}

.btn-whatsapp {
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  color: var(--white);
  box-shadow: 0 6px 18px rgba(37, 211, 102, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.2);
}
.btn-whatsapp:hover {
  background: linear-gradient(135deg, #2ee071 0%, #0d6e63 100%);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(37, 211, 102, 0.45);
  color: var(--white);
}

/* --- Navigation ------------------------------------------------------------ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-h);
  z-index: 900;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--t);
}

.site-header.scrolled {
  box-shadow: 0 2px 20px rgba(11, 37, 69, 0.10);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 32px;
}

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.nav-logo-img {
  height: 44px;
  width: auto;
  object-fit: contain;
}

.nav-logo-text { display: flex; flex-direction: column; }

.nav-logo-name {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--navy);
  letter-spacing: -0.01em;
  line-height: 1.1;
}

.nav-logo-sub {
  font-size: 0.68rem;
  font-weight: 500;
  color: var(--teal);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Nav links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--muted);
  padding: 7px 13px;
  border-radius: var(--radius-sm);
  transition: color var(--t-fast), background var(--t-fast);
  position: relative;
}

.nav-link:hover { color: var(--navy); background: var(--surface-alt); }

.nav-link.active { color: var(--teal); font-weight: 600; }

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 13px;
  right: 13px;
  height: 2px;
  background: var(--teal);
  border-radius: 2px;
}

/* --- Navigation Dropdowns -------------------------------------------------- */
.nav-item-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.nav-dropdown-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--muted);
  padding: 7px 13px;
  border-radius: var(--radius-sm);
  transition: color var(--t-fast), background var(--t-fast);
}

.nav-dropdown-btn:hover,
.nav-item-dropdown:hover .nav-dropdown-btn,
.nav-dropdown-btn:focus-visible {
  color: var(--navy);
  background: var(--surface-alt);
}

.nav-dropdown-btn.active,
.nav-item-dropdown:hover .nav-dropdown-btn.active {
  color: var(--teal);
  font-weight: 600;
}

.nav-chevron {
  transition: transform var(--t-fast);
  color: currentColor;
  opacity: 0.7;
}

.nav-item-dropdown:hover .nav-chevron,
.nav-item-dropdown:focus-within .nav-chevron {
  transform: rotate(180deg);
  opacity: 1;
}

/* Dropdown floating menu card */
.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  padding-top: 10px;
  min-width: 295px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.22s var(--ease), transform 0.22s var(--ease), visibility 0.22s;
  pointer-events: none;
  z-index: 1000;
}

.nav-item-dropdown:hover .nav-dropdown-menu,
.nav-item-dropdown:focus-within .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.nav-dropdown-inner {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 16px 36px rgba(11, 37, 69, 0.12), 0 4px 12px rgba(11, 37, 69, 0.06);
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.nav-dropdown-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--radius);
  text-decoration: none;
  transition: background var(--t-fast), transform var(--t-fast);
}

.nav-dropdown-item:hover {
  background: var(--surface-blue);
  transform: translateX(3px);
}

.nav-dropdown-item.active,
.nav-dropdown-item--active {
  background: rgba(13, 139, 106, 0.08);
}

.nav-dropdown-item--active .nav-dropdown-title {
  color: var(--teal);
  font-weight: 700;
}

.nav-dropdown-item--active .nav-dropdown-icon {
  background: var(--teal);
  color: var(--white);
}

.nav-dropdown-icon {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: rgba(13, 139, 106, 0.10);
  color: var(--teal);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background var(--t-fast), color var(--t-fast), transform var(--t-fast);
}

.nav-dropdown-item:hover .nav-dropdown-icon {
  background: var(--teal);
  color: var(--white);
  transform: scale(1.05);
}

.nav-dropdown-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nav-dropdown-title {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.25;
}

.nav-dropdown-item.active .nav-dropdown-title {
  color: var(--teal);
}

.nav-dropdown-desc {
  font-size: 0.74rem;
  color: var(--muted);
  line-height: 1.3;
}

/* Nav CTA */
.nav-cta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.nav-emergency {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.84rem;
  font-weight: 700;
  color: #DC2626;
  padding: 7px 13px;
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.22);
  border-radius: var(--radius);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
}

.nav-emergency:hover {
  background: linear-gradient(135deg, #EF4444 0%, #DC2626 100%);
  color: var(--white);
  border-color: #DC2626;
  box-shadow: 0 4px 14px rgba(220, 38, 38, 0.35);
  transform: translateY(-1px);
}

.nav-emergency svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  display: block;
}

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: var(--surface-alt);
}

.nav-hamburger span {
  width: 20px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: all var(--t-fast);
}

/* Mobile nav */
.nav-mobile {
  display: none;
  position: fixed;
  top: var(--nav-h);
  left: 0;
  right: 0;
  max-height: calc(100vh - var(--nav-h));
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 16px 24px 28px;
  box-shadow: var(--shadow-lg);
  z-index: 800;
  flex-direction: column;
  gap: 2px;
}

.nav-mobile.open { display: flex; }

.nav-mobile .nav-link {
  display: block;
  padding: 9px 12px;
  font-size: 0.95rem;
  border-radius: var(--radius-sm);
  color: var(--navy);
  font-weight: 500;
}

.nav-mobile .nav-link:hover,
.nav-mobile .nav-link.active {
  background: var(--surface-blue);
  color: var(--teal);
}

.nav-mobile-group-header {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--teal);
  padding: 10px 12px 3px;
  margin-top: 4px;
}

.nav-mobile .nav-link-sub {
  padding-left: 22px;
  font-size: 0.9rem;
  color: var(--body-text);
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-mobile .nav-link-sub::before {
  content: '›';
  font-size: 1.1rem;
  color: var(--teal);
  line-height: 1;
}

.nav-mobile-divider {
  height: 1px;
  background: var(--border);
  margin: 10px 0;
}

/* --- Ken Burns Keyframes -------------------------------------------------- */
@keyframes kenBurnsZoomIn {
  0%   { transform: scale(1)    translate(0, 0); }
  100% { transform: scale(1.12) translate(-2%, -1%); }
}
@keyframes kenBurnsZoomOut {
  0%   { transform: scale(1.12) translate(-2%, -1%); }
  100% { transform: scale(1)    translate(0, 0); }
}
@keyframes kenBurnsDrift {
  0%   { transform: scale(1.08) translate(0, 0); }
  100% { transform: scale(1.12) translate(-3%, -2%); }
}

/* --- Hero ------------------------------------------------------------------ */
.hero {
  color: var(--white);
  padding: 80px 0 90px;
  position: relative;
  overflow: hidden;
  /* NO isolation:isolate — it would bury the slideshow behind the element bg */
}

/* Gradient overlay sits above slides, below content */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(11, 37, 69, 0.60) 0%,
    rgba(13, 139, 106, 0.12) 55%,
    rgba(11, 37, 69, 0.48) 100%
  );
  z-index: 2;       /* above slideshow (1), below content (3) */
  pointer-events: none;
}

/* --- Hero Slideshow -------------------------------------------------------- */
.hero-slideshow {
  position: absolute;
  inset: 0;
  z-index: 1;       /* lowest layer inside .hero */
  pointer-events: none;
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  inset: -8px;      /* hide blur-edge artifacts */
  background-size: cover;
  background-position: center;
  filter: blur(3px) brightness(0.56);
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
  will-change: transform, opacity;
}

.hero-slide.active {
  opacity: 1;
  animation: kenBurnsZoomIn 8s ease-in-out forwards;
}
.hero-slide.exit {
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
}

.hero-slide:nth-child(2).active { animation-name: kenBurnsZoomOut; }
.hero-slide:nth-child(3).active { animation-name: kenBurnsDrift; }
.hero-slide:nth-child(4).active { animation-name: kenBurnsZoomIn; }
.hero-slide:nth-child(5).active { animation-name: kenBurnsZoomOut; }
.hero-slide:nth-child(6).active { animation-name: kenBurnsDrift; }

/* Margin Arrow Navigation Buttons (Forward and Back) */
.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(11, 37, 69, 0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.25s ease;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
  padding: 0;
}

.hero-arrow svg {
  width: 22px;
  height: 22px;
  stroke: var(--white);
  transition: transform 0.2s ease;
}

.hero-arrow:hover {
  background: var(--teal);
  border-color: var(--teal);
  box-shadow: 0 6px 20px rgba(13, 139, 106, 0.45);
  transform: translateY(-50%) scale(1.08);
}

.hero-arrow--prev {
  left: 20px;
}
.hero-arrow--prev:hover svg {
  transform: translateX(-2px);
}

.hero-arrow--next {
  right: 20px;
}
.hero-arrow--next:hover svg {
  transform: translateX(2px);
}

@media (max-width: 768px) {
  .hero-arrow {
    width: 38px;
    height: 38px;
  }
  .hero-arrow svg {
    width: 18px;
    height: 18px;
  }
  .hero-arrow--prev { left: 8px; }
  .hero-arrow--next { right: 8px; }
}

/* Slide indicator dots */
.hero-dots {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 4;       /* above everything */
}
.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.40);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}
.hero-dot.active {
  background: rgba(255,255,255,0.95);
  transform: scale(1.3);
  box-shadow: 0 0 10px rgba(255,255,255,0.6);
}

/* Slide Content Transition Animation */
.hero-slide-content {
  animation: heroTextFadeIn 0.8s ease-out forwards;
}

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

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: 64px;
  align-items: center;
  position: relative;
  z-index: 3;       /* above overlay (2) */
}


.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #7EDEBC;
  margin-bottom: 18px;
}

.hero-eyebrow-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #7EDEBC;
  animation: blink 1.8s ease-in-out infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2.4rem, 4.5vw, 3.6rem);
  font-weight: 400;
  line-height: 1.15;
  color: var(--white);
  margin-bottom: 22px;
}

.hero-title em {
  font-style: italic;
  color: #7EDEBC;
}

.hero-desc {
  font-size: 1.08rem;
  color: rgba(255,255,255,0.78);
  line-height: 1.75;
  max-width: 500px;
  margin-bottom: 38px;
}

.hero-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }

.hero-stats {
  display: flex;
  gap: 32px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.15);
}

.hero-stat-num {
  font-family: var(--font-serif);
  font-size: 2.1rem;
  color: #7EDEBC;
  line-height: 1;
  margin-bottom: 4px;
}

.hero-stat-label {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.6);
  font-weight: 500;
}

.hero-image-block {
  position: relative;
}

.hero-img-wrap {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 3px solid rgba(255,255,255,0.12);
}

.hero-img-wrap img {
  width: 100%;
  height: 440px;
  object-fit: cover;
}

.hero-badge {
  position: absolute;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 14px 18px;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 2;
}

.hero-badge-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.hero-badge-icon--teal { background: var(--teal-pale); color: var(--teal); }
.hero-badge-icon--red  { background: rgba(192,57,43,0.1); color: var(--red-alert); }

.hero-badge-icon svg { width: 20px; height: 20px; }

.hero-badge-text-main { font-weight: 700; font-size: 0.88rem; color: var(--navy); line-height: 1.2; }
.hero-badge-text-sub  { font-size: 0.74rem; color: var(--muted); }

.hero-badge--top-right  { top: -18px; right: -14px; }
.hero-badge--bottom-left { bottom: 20px; left: -14px; }

/* --- Trust Bar ------------------------------------------------------------- */
.trust-bar {
  background: var(--surface-blue);
  border-bottom: 1px solid var(--border);
  padding: 18px 0;
}

.trust-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.87rem;
  font-weight: 500;
  color: var(--body-text);
}

.trust-item svg { color: var(--teal); width: 17px; height: 17px; flex-shrink: 0; }

.trust-divider {
  width: 1px;
  height: 20px;
  background: var(--border-dark);
}

/* --- Emergency Strip ------------------------------------------------------- */
.emergency-strip {
  background: var(--red-alert);
  color: var(--white);
  padding: 20px 0;
}

.emergency-strip-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.emergency-strip-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.emergency-icon-ring {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.emergency-icon-ring svg { width: 22px; height: 22px; }

.emergency-title {
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 2px;
}

.emergency-sub { font-size: 0.88rem; opacity: 0.88; }

.emergency-strip-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* --- Cards (generic) ------------------------------------------------------- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xs);
  transition: box-shadow var(--t), transform var(--t), border-color var(--t);
}

.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
  border-color: var(--border-dark);
}

/* --- Services Grid --------------------------------------------------------- */
#servicesPreview {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94) 0%, rgba(246, 249, 252, 0.95) 100%);
}

#servicesPreview::before {
  content: '';
  position: absolute;
  inset: -15px;
  background-image: url('assets/hero-services.jpg');
  background-size: cover;
  background-position: center;
  filter: blur(14px) brightness(0.98) saturate(0.7);
  opacity: 0.16;
  z-index: 0;
  pointer-events: none;
}

#servicesPreview > .container {
  position: relative;
  z-index: 1;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 24px;
}

.service-card {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1.5px solid rgba(227, 232, 239, 0.9);
  border-radius: var(--radius-xl);
  padding: 34px 30px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(11, 37, 69, 0.04);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--teal) 0%, #34D399 100%);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.service-card:hover {
  box-shadow: 0 20px 42px rgba(11, 37, 69, 0.09), 0 6px 18px rgba(13, 139, 106, 0.12);
  transform: translateY(-8px) scale(1.008);
  border-color: rgba(13, 139, 106, 0.38);
  background: rgba(255, 255, 255, 0.98);
}

.service-card:hover::before { opacity: 1; }

.service-card-img-wrap {
  width: calc(100% + 60px);
  margin: -34px -30px 20px -30px;
  height: 155px;
  overflow: hidden;
  position: relative;
  background: #0B2545;
}

.service-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-card:hover .service-card-img {
  transform: scale(1.06);
}

.service-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(13, 139, 106, 0.12) 0%, rgba(11, 37, 69, 0.06) 100%);
  color: var(--teal);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 12px rgba(13, 139, 106, 0.08);
}

.service-card:hover .service-icon {
  background: linear-gradient(135deg, var(--teal) 0%, var(--teal-light) 100%);
  color: var(--white);
  transform: scale(1.08) rotate(-2deg);
  box-shadow: 0 8px 20px rgba(13, 139, 106, 0.3);
}

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

.service-name {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
}

.service-desc {
  font-size: 0.91rem;
  color: var(--muted);
  line-height: 1.65;
  flex-grow: 1;
  margin-bottom: 20px;
}

.service-features {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.service-feature {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 0.84rem;
  color: var(--body-text);
}

.service-feature svg { color: var(--teal); width: 14px; height: 14px; flex-shrink: 0; }

.service-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.service-hours { font-size: 0.78rem; color: var(--muted); font-weight: 500; }

.service-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--teal);
  display: flex;
  align-items: center;
  gap: 5px;
  transition: gap var(--t-fast);
}

.service-link:hover { gap: 8px; }

/* --- Doctors --------------------------------------------------------------- */
.doctors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}

.doctor-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--t);
}

.doctor-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.doctor-header {
  height: 190px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.doctor-header--navy   { background: linear-gradient(145deg, var(--navy) 0%, var(--navy-mid) 100%); }
.doctor-header--teal   { background: linear-gradient(145deg, #065F46 0%, var(--teal) 100%); }
.doctor-header--red    { background: linear-gradient(145deg, #7F1D1D 0%, var(--red-alert) 100%); }
.doctor-header--violet { background: linear-gradient(145deg, #312E81 0%, #4F46E5 100%); }
.doctor-header--emerald{ background: linear-gradient(145deg, #064E3B 0%, #059669 100%); }
.doctor-header--indigo { background: linear-gradient(145deg, #1E1B4B 0%, #6366F1 100%); }

.doctor-initials {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  border: 2.5px solid rgba(255,255,255,0.38);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.9rem;
  color: var(--white);
  letter-spacing: 1px;
}

.doctor-status-chip {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 5px;
}

.doctor-status-chip--green  { background: rgba(5, 150, 105, 0.9); }
.doctor-status-chip--blue   { background: rgba(37, 99, 235, 0.9); }
.doctor-status-chip--amber  { background: rgba(217, 119, 6, 0.9); }
.doctor-status-chip--purple { background: rgba(124, 58, 237, 0.9); }

.dot-sm {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--white);
  animation: blink 1.5s infinite;
}

.doctor-specialty-tag {
  position: absolute;
  bottom: 10px;
  left: 12px;
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(4px);
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 20px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.doctor-body { padding: 22px; }

.doctor-name { font-size: 1.1rem; font-weight: 700; color: var(--navy); margin-bottom: 3px; }
.doctor-role { font-size: 0.84rem; color: var(--teal); font-weight: 600; margin-bottom: 3px; }
.doctor-quals { font-size: 0.76rem; color: var(--muted); font-weight: 500; margin-bottom: 12px; }
.doctor-bio { font-size: 0.86rem; color: var(--body-text); line-height: 1.58; margin-bottom: 16px; }

.doctor-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--muted);
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

/* --- Lab Table ------------------------------------------------------------- */
.lab-controls {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.lab-search-wrap {
  position: relative;
  flex: 1;
  min-width: 240px;
  max-width: 420px;
}

.lab-search-wrap svg {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: var(--muted);
  pointer-events: none;
}

.lab-search-input {
  width: 100%;
  padding: 11px 14px 11px 42px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--body-text);
  font-size: 0.9rem;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}

.lab-search-input:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(13, 139, 106, 0.14);
}

.lab-table-wrap {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow-x: auto;
  box-shadow: var(--shadow-sm);
}

.lab-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.lab-table th {
  background: var(--surface-alt);
  padding: 13px 18px;
  text-align: left;
  font-weight: 600;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
}

.lab-table td {
  padding: 13px 18px;
  border-bottom: 1px solid var(--border);
  color: var(--body-text);
  vertical-align: middle;
}

.lab-table tr:last-child td { border-bottom: none; }
.lab-table tr:hover td { background: rgba(13, 139, 106, 0.03); }

.tag {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 5px;
  font-size: 0.74rem;
  font-weight: 600;
}

.tag-fasting { background: rgba(217, 119, 6, 0.12); color: #92400E; }
.tag-no-fasting { background: rgba(5, 150, 105, 0.12); color: #065F46; }
.tag-category { background: var(--surface-blue); color: var(--navy-mid); }

/* --- Booking Form ---------------------------------------------------------- */
.booking-wrap {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.booking-header {
  background: var(--navy);
  padding: 36px 40px;
  color: var(--white);
}

.booking-header .section-title { color: var(--white); }
.booking-header .section-sub { color: rgba(255,255,255,0.7); }

.booking-body { padding: 40px; }

.form-row {
  display: grid;
  gap: 22px;
  margin-bottom: 22px;
}

.form-row--2 { grid-template-columns: repeat(2, 1fr); }
.form-row--3 { grid-template-columns: repeat(3, 1fr); }

.form-group {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.form-label {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--navy);
}

.form-label span.req { color: var(--red-alert); margin-left: 2px; }

.form-control {
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.92rem;
  color: var(--body-text);
  background: var(--off-white);
  transition: all var(--t-fast);
  width: 100%;
}

.form-control:focus {
  outline: none;
  border-color: var(--teal);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(13, 139, 106, 0.13);
}

textarea.form-control { resize: vertical; min-height: 96px; }

/* Time Slots */
.time-slots {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 6px;
}

.time-slot {
  padding: 9px 15px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--body-text);
  background: var(--off-white);
  cursor: pointer;
  transition: all var(--t-fast);
}

.time-slot:hover { border-color: var(--teal); color: var(--teal); }

.time-slot.selected {
  background: var(--teal);
  border-color: var(--teal);
  color: var(--white);
}

.booking-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 24px;
  margin-top: 8px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}

.booking-note {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 0.85rem;
  color: var(--muted);
}

.booking-note svg { color: var(--teal); width: 18px; height: 18px; }

/* --- Insurance ------------------------------------------------------------- */
#insurancePreview {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(248, 250, 252, 0.93) 0%, rgba(241, 246, 252, 0.95) 100%);
}

#insurancePreview::before {
  content: '';
  position: absolute;
  inset: -15px;
  background-image: url('assets/hero-insurance.jpg');
  background-size: cover;
  background-position: center;
  filter: blur(14px) brightness(0.97) saturate(0.7);
  opacity: 0.16;
  z-index: 0;
  pointer-events: none;
}

#insurancePreview > .container {
  position: relative;
  z-index: 1;
}

.insurance-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}

@media (max-width: 1024px) {
  .insurance-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }
}

@media (max-width: 640px) {
  .insurance-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }
}

.insurance-card {
  background: #ffffff;
  border: none !important;
  outline: none;
  border-radius: var(--radius-lg);
  padding: 18px 24px;
  min-height: 105px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(11, 37, 69, 0.05);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.insurance-card:hover {
  border: none !important;
  box-shadow: 0 12px 30px rgba(11, 37, 69, 0.12);
  transform: translateY(-4px);
  background: #ffffff;
}

.insurance-badge {
  display: none;
}

.insurance-logo-wrap {
  width: 100%;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: transparent;
  border: none !important;
  margin: 0;
}

.insurance-logo-img {
  max-width: 100%;
  max-height: 58px;
  width: auto;
  height: auto;
  object-fit: contain;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.03));
}

.insurance-card:hover .insurance-logo-img {
  transform: scale(1.08);
}

.insurance-logo-img--scale-md {
  transform: scale(1.18);
}

.insurance-card:hover .insurance-logo-img--scale-md {
  transform: scale(1.26);
}

.insurance-logo-img--scale-lg {
  transform: scale(1.42);
}

.insurance-card:hover .insurance-logo-img--scale-lg {
  transform: scale(1.52);
}

.insurance-name,
.insurance-type {
  display: none;
}

/* Facility Photo Showcase */
.facility-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 36px;
}

.facility-photo-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(11, 37, 69, 0.06);
  border: 1.5px solid rgba(227, 232, 239, 0.9);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

.facility-photo-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 36px rgba(11, 37, 69, 0.12);
  border-color: rgba(13, 139, 106, 0.35);
}

.facility-photo-img-wrap {
  width: 100%;
  height: 210px;
  overflow: hidden;
  position: relative;
  background: #0B2545;
}

.facility-photo-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.facility-photo-card:hover .facility-photo-thumb {
  transform: scale(1.06);
}

.facility-photo-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(11, 37, 69, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #7EDEBC;
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 10px;
  border-radius: 20px;
  border: 1px solid rgba(126, 222, 188, 0.3);
}

.facility-photo-caption {
  padding: 18px 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.facility-photo-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.35;
}

.facility-photo-sub {
  font-size: 0.86rem;
  color: var(--muted);
  line-height: 1.55;
}

/* Partners */
.partners-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
}

.partner-chip {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 26px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: none;
  border-radius: 30px;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--navy);
  box-shadow: 0 4px 18px rgba(11, 37, 69, 0.05);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.partner-chip img { height: 34px; width: auto; object-fit: contain; }

.partner-chip:hover {
  border: none;
  box-shadow: 0 12px 28px rgba(13, 139, 106, 0.18);
  transform: translateY(-4px) scale(1.02);
  background: rgba(255, 255, 255, 0.98);
}

/* --- Contact --------------------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 52px;
  align-items: start;
}

.contact-info-items {
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.contact-icon {
  width: 46px;
  height: 46px;
  border-radius: var(--radius);
  background: var(--teal-pale);
  color: var(--teal);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-icon svg { width: 20px; height: 20px; }

.contact-item-title {
  font-weight: 700;
  font-size: 0.98rem;
  color: var(--navy);
  margin-bottom: 5px;
}

.contact-item-desc {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.65;
}

.contact-item-desc a { color: var(--teal); font-weight: 600; }
.contact-item-desc a:hover { text-decoration: underline; }

.map-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  height: 300px;
  margin-top: 24px;
}

.map-wrap iframe { width: 100%; height: 100%; border: none; display: block; }

.contact-form-wrap {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 36px;
  box-shadow: var(--shadow-sm);
}

/* --- About ----------------------------------------------------------------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

#whyChooseUs {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(238, 244, 251, 0.94) 0%, rgba(227, 237, 248, 0.94) 100%);
}

#whyChooseUs::before {
  content: '';
  position: absolute;
  inset: -10px;
  background-image: url('assets/hero-about.jpg');
  background-size: cover;
  background-position: center;
  filter: blur(10px) brightness(0.92) saturate(0.6);
  opacity: 0.18;
  z-index: 0;
  pointer-events: none;
}

#whyChooseUs > .container {
  position: relative;
  z-index: 1;
}

.about-img-wrap {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 20px 45px rgba(11, 37, 69, 0.12);
  border: 4px solid rgba(255, 255, 255, 0.8);
}

.about-img-wrap img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.about-img-wrap:hover img {
  transform: scale(1.03);
}

.about-stat-block {
  position: absolute;
  bottom: 24px;
  right: 24px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: var(--radius-lg);
  padding: 20px 26px;
  box-shadow: 0 12px 32px rgba(11, 37, 69, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.9);
  animation: floatStat 4s ease-in-out infinite;
}

@keyframes floatStat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.about-stat-number {
  font-family: var(--font-serif);
  font-size: 2.3rem;
  color: var(--teal);
  line-height: 1;
  font-weight: 700;
}

.about-stat-label { font-size: 0.82rem; color: #475569; font-weight: 600; }

.about-highlights {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 32px;
}

.about-highlight {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: var(--radius-lg);
  box-shadow: 0 2px 10px rgba(11, 37, 69, 0.03);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.about-highlight:hover {
  background: rgba(255, 255, 255, 0.95);
  transform: translateX(6px);
  border-color: rgba(13, 139, 106, 0.3);
  box-shadow: 0 8px 24px rgba(11, 37, 69, 0.07);
}

.about-highlight-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(13, 139, 106, 0.15) 0%, rgba(11, 37, 69, 0.08) 100%);
  color: var(--teal);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
  box-shadow: 0 3px 10px rgba(13, 139, 106, 0.1);
  transition: all 0.25s ease;
}

.about-highlight:hover .about-highlight-icon {
  background: var(--teal);
  color: var(--white);
  transform: scale(1.05);
}

.about-highlight-icon svg { width: 20px; height: 20px; }

.about-highlight-title { font-weight: 700; font-size: 1rem; color: var(--navy); margin-bottom: 4px; }
.about-highlight-desc  { font-size: 0.89rem; color: #475569; line-height: 1.62; }

/* Vision / Mission */
.vmv-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.vmv-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  position: relative;
  overflow: hidden;
}

.vmv-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--teal);
}

.vmv-card--navy::before { background: var(--navy); }
.vmv-card--red::before  { background: var(--red-alert); }

.vmv-number {
  font-family: var(--font-serif);
  font-size: 3.5rem;
  color: var(--surface-alt);
  position: absolute;
  top: 16px;
  right: 22px;
  line-height: 1;
  user-select: none;
}

.vmv-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  background: var(--teal-pale);
  color: var(--teal);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.vmv-card--navy .vmv-icon { background: rgba(11,37,69,0.08); color: var(--navy); }
.vmv-card--red  .vmv-icon { background: rgba(192,57,43,0.08); color: var(--red-alert); }

.vmv-icon svg { width: 22px; height: 22px; }

.vmv-title { font-size: 1.2rem; font-weight: 700; color: var(--navy); margin-bottom: 10px; }
.vmv-desc  { font-size: 0.9rem; color: var(--muted); line-height: 1.65; }

/* --- Testimonials ---------------------------------------------------------- */
#testimonials {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.94) 0%, rgba(238, 244, 250, 0.95) 100%);
}

#testimonials::before {
  content: '';
  position: absolute;
  inset: -15px;
  background-image: url('assets/hero-home-2.jpg');
  background-size: cover;
  background-position: center 60%;
  filter: blur(14px) brightness(0.96) saturate(0.7);
  opacity: 0.16;
  z-index: 0;
  pointer-events: none;
}

#testimonials > .container {
  position: relative;
  z-index: 1;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
}

.testimonial-card {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1.5px solid rgba(227, 232, 239, 0.9);
  border-radius: var(--radius-xl);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(11, 37, 69, 0.04);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.testimonial-card::after {
  content: '“';
  position: absolute;
  top: 14px;
  right: 22px;
  font-family: var(--font-serif);
  font-size: 5.5rem;
  line-height: 1;
  color: rgba(13, 139, 106, 0.08);
  pointer-events: none;
  user-select: none;
  transition: color 0.3s ease, transform 0.3s ease;
}

.testimonial-card:hover {
  box-shadow: 0 20px 42px rgba(11, 37, 69, 0.09), 0 6px 16px rgba(13, 139, 106, 0.08);
  transform: translateY(-7px);
  border-color: rgba(13, 139, 106, 0.35);
  background: rgba(255, 255, 255, 0.98);
}

.testimonial-card:hover::after {
  color: rgba(13, 139, 106, 0.16);
  transform: scale(1.08) translateY(-2px);
}

.stars { display: flex; gap: 4px; color: #F59E0B; transition: transform 0.25s ease; }
.testimonial-card:hover .stars { transform: scale(1.04); }
.stars svg { width: 18px; height: 18px; fill: currentColor; }

.testimonial-quote {
  font-size: 0.96rem;
  color: #334155;
  line-height: 1.75;
  font-style: italic;
  flex-grow: 1;
  position: relative;
  z-index: 1;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(227, 232, 239, 0.8);
}

.author-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--teal) 0%, var(--navy) 100%);
  color: var(--white);
  font-weight: 700;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(11, 37, 69, 0.15);
}

.author-name { font-weight: 700; font-size: 0.95rem; color: var(--navy); margin-bottom: 2px; }
.author-loc  { font-size: 0.78rem; color: var(--muted); font-weight: 500; }

/* --- Modals ---------------------------------------------------------------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(11, 37, 69, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity var(--t-fast), visibility var(--t-fast);
}

.modal-overlay.open,
.modal-overlay.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.modal-dialog {
  background: var(--surface);
  border-radius: var(--radius-xl);
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 50px -12px rgba(11, 37, 69, 0.35);
  transform: scale(0.96);
  transition: transform var(--t-fast);
}

.modal-overlay.open .modal-dialog,
.modal-overlay.active .modal-dialog {
  transform: scale(1);
}

.modal-head {
  padding: 24px 28px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-head h3 { font-size: 1.25rem; font-weight: 700; color: var(--navy); }

.modal-close {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--surface-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  transition: all var(--t-fast);
}

.modal-close:hover { background: rgba(192,57,43,0.12); color: var(--red-alert); }
.modal-body { padding: 28px; }

/* Appointment Pass */
.apt-pass {
  background: linear-gradient(135deg, rgba(13,139,106,0.05) 0%, rgba(11,37,69,0.05) 100%);
  border: 2px dashed rgba(13,139,106,0.4);
  border-radius: var(--radius-lg);
  padding: 28px;
  text-align: center;
}

.apt-pass-logo { height: 44px; width: auto; margin: 0 auto 8px; }
.apt-pass-hosp { font-weight: 700; font-size: 1rem; color: var(--navy); }
.apt-pass-addr { font-size: 0.76rem; color: var(--muted); margin-bottom: 16px; }
.apt-pass-divider { height: 1px; background: var(--border); margin: 14px 0; }
.apt-pass-ref {
  display: inline-block;
  background: var(--navy);
  color: var(--white);
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 20px;
}

.apt-pass-rows { text-align: left; }

.apt-pass-row {
  display: flex;
  justify-content: space-between;
  padding: 9px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
}

.apt-pass-row:last-child { border-bottom: none; }
.apt-pass-label { color: var(--muted); font-size: 0.84rem; }
.apt-pass-val { font-weight: 600; color: var(--navy); }

/* Drawer */
.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(11, 37, 69, 0.5);
  backdrop-filter: blur(4px);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all var(--t-fast);
}

.drawer-overlay.open { opacity: 1; visibility: visible; }

.drawer-panel {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: 420px;
  background: var(--surface);
  z-index: 1001;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform var(--t);
}

.drawer-overlay.open .drawer-panel { transform: translateX(0); }

.drawer-head {
  padding: 22px 24px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.drawer-head h3 { font-size: 1.1rem; font-weight: 700; color: var(--navy); }

.drawer-body {
  padding: 20px 24px;
  overflow-y: auto;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.drawer-foot {
  padding: 18px 24px;
  border-top: 1px solid var(--border);
}

.apt-item {
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.apt-item-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.apt-ref {
  background: var(--navy);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  letter-spacing: 0.5px;
}

.apt-cancel {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--red-alert);
  transition: opacity var(--t-fast);
}

.apt-cancel:hover { opacity: 0.7; }

.apt-service { font-weight: 700; font-size: 0.96rem; color: var(--navy); }
.apt-detail  { font-size: 0.82rem; color: var(--muted); }

/* --- Toast ----------------------------------------------------------------- */
.toast-stack {
  position: fixed;
  top: 22px;
  right: 22px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.toast {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 13px 18px;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  border-left: 3px solid var(--teal);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--body-text);
  animation: toastIn 0.3s var(--ease) both;
  max-width: 340px;
}

.toast.toast-error { border-left-color: var(--red-alert); }
.toast svg { width: 18px; height: 18px; flex-shrink: 0; color: var(--teal); }
.toast.toast-error svg { color: var(--red-alert); }

@keyframes toastIn {
  from { transform: translateX(100%); opacity: 0; }
  to   { transform: translateX(0);    opacity: 1; }
}

/* --- FABs ------------------------------------------------------------------ */
.fabs {
  position: fixed;
  bottom: 26px;
  right: 26px;
  display: flex;
  flex-direction: column;
  gap: 13px;
  z-index: 800;
}

.fab {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  position: relative;
  border: 2px solid rgba(255, 255, 255, 0.45);
  box-shadow: 0 8px 24px rgba(11, 37, 69, 0.22), 0 2px 6px rgba(0, 0, 0, 0.12);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
}

.fab:hover {
  transform: scale(1.12) translateY(-3px);
}

.fab svg {
  width: 26px;
  height: 26px;
  display: block;
  transition: transform 0.25s ease;
}

.fab:hover svg {
  transform: scale(1.05);
}

.fab--whatsapp {
  background: linear-gradient(145deg, #25D366 0%, #128C7E 100%);
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45), 0 2px 6px rgba(0, 0, 0, 0.12);
}

.fab--whatsapp:hover {
  background: linear-gradient(145deg, #2ee071 0%, #179c8c 100%);
  box-shadow: 0 12px 30px rgba(37, 211, 102, 0.6), 0 4px 10px rgba(0, 0, 0, 0.16);
}

.fab--phone {
  background: linear-gradient(145deg, #EF4444 0%, #B91C1C 100%);
  box-shadow: 0 8px 24px rgba(239, 68, 68, 0.45), 0 2px 6px rgba(0, 0, 0, 0.12);
  animation: hotlinePulse 2.8s infinite;
}

@keyframes hotlinePulse {
  0% {
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.6), 0 8px 24px rgba(239, 68, 68, 0.45);
  }
  65% {
    box-shadow: 0 0 0 14px rgba(239, 68, 68, 0), 0 8px 24px rgba(239, 68, 68, 0.45);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0), 0 8px 24px rgba(239, 68, 68, 0.45);
  }
}

.fab--phone:hover {
  background: linear-gradient(145deg, #F87171 0%, #DC2626 100%);
  box-shadow: 0 12px 30px rgba(239, 68, 68, 0.6), 0 4px 10px rgba(0, 0, 0, 0.18);
  animation: none;
}

.fab--top {
  background: var(--navy);
  border: 2px solid rgba(255, 255, 255, 0.25);
  opacity: 0;
  visibility: hidden;
}
.fab--top.show {
  opacity: 1;
  visibility: visible;
}
.fab--top:hover {
  background: var(--navy-mid);
  box-shadow: 0 10px 26px rgba(11, 37, 69, 0.4);
}

/* Nav "My Visits" badge btn */
.my-visits-btn {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--muted);
  background: var(--surface);
  transition: all var(--t-fast);
}

.my-visits-btn:hover { border-color: var(--teal); color: var(--teal); }

.visits-badge {
  background: var(--teal);
  color: var(--white);
  font-size: 0.68rem;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 10px;
  min-width: 18px;
  text-align: center;
}

/* --- CTA Banner (Bottom) --------------------------------------------------- */
.cta-banner {
  position: relative;
  overflow: hidden;
  background: #071A2E;
  padding: 88px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}

.cta-banner::before {
  content: '';
  position: absolute;
  inset: -20px;
  background-image: url('assets/hero-home-1.jpg');
  background-size: cover;
  background-position: center 40%;
  filter: blur(12px) brightness(0.42);
  opacity: 0.5;
  z-index: 0;
  pointer-events: none;
}

.cta-banner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 40%, rgba(13, 139, 106, 0.28) 0%, transparent 60%),
              linear-gradient(135deg, rgba(7, 26, 46, 0.88) 0%, rgba(11, 37, 69, 0.82) 100%);
  z-index: 1;
  pointer-events: none;
}

.cta-banner > .container {
  position: relative;
  z-index: 2;
}

/* --- Footer ---------------------------------------------------------------- */
.site-footer {
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at 15% 10%, rgba(13, 139, 106, 0.12) 0%, transparent 45%),
              radial-gradient(circle at 85% 90%, rgba(30, 77, 140, 0.14) 0%, transparent 45%),
              #07192E;
  color: #94A3B8;
  padding: 84px 0 32px;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.site-footer::before {
  content: '';
  position: absolute;
  inset: -15px;
  background-image: url('assets/hero-contact.jpg');
  background-size: cover;
  background-position: center 30%;
  filter: blur(14px) brightness(0.32);
  opacity: 0.12;
  z-index: 0;
  pointer-events: none;
}

.site-footer > .container {
  position: relative;
  z-index: 1;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1.3fr;
  gap: 48px;
  margin-bottom: 56px;
}

.footer-brand { }

.footer-logo-wrap {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 18px;
}

.footer-logo { height: 42px; width: auto; background: var(--white); padding: 4px 8px; border-radius: var(--radius-sm); }

.footer-logo-name {
  font-weight: 700;
  font-size: 1rem;
  color: var(--white);
  line-height: 1.2;
}

.footer-logo-tag { font-size: 0.7rem; color: var(--teal-light); font-weight: 500; letter-spacing: 0.05em; }

.footer-desc {
  font-size: 0.88rem;
  line-height: 1.75;
  color: #94A3B8;
  margin-bottom: 22px;
}

.footer-contact-line {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  margin-bottom: 10px;
}

.footer-contact-line svg { color: var(--teal-light); width: 16px; height: 16px; flex-shrink: 0; }
.footer-contact-line a { color: #CBD5E1; transition: color var(--t-fast); }
.footer-contact-line a:hover { color: var(--white); text-decoration: underline; }

.footer-col-title {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--white);
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 8px;
}

.footer-col-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 24px;
  height: 2px;
  background: var(--teal);
  border-radius: 2px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.footer-link {
  font-size: 0.88rem;
  color: #94A3B8;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-link svg { width: 13px; height: 13px; color: var(--teal-light); transition: transform 0.2s ease; }

.footer-link:hover {
  color: var(--white);
  transform: translateX(4px);
}
.footer-link:hover svg {
  transform: translateX(2px);
}

.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 10px;
}

.footer-social-link {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94A3B8;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.footer-social-link svg { width: 18px; height: 18px; }

.footer-social-link:hover {
  background: var(--teal);
  border-color: var(--teal);
  color: var(--white);
  transform: translateY(-3px) scale(1.08);
  box-shadow: 0 6px 18px rgba(13, 139, 106, 0.4);
}

.footer-tagline {
  text-align: center;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.15rem;
  color: rgba(255,255,255,0.35);
  margin-bottom: 24px;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,0.07);
  font-size: 0.82rem;
  color: #64748B;
  flex-wrap: wrap;
  gap: 12px;
}

/* --- Page Header (inner pages) --------------------------------------------- */
.page-hero {
  padding: 56px 0 64px;
  color: var(--white);
  position: relative;
  overflow: hidden;
}

/* Blurred background image base for inner page headers */
.page-hero::before {
  content: '';
  position: absolute;
  inset: -10px;
  background-size: cover;
  background-position: center 30%;
  filter: blur(4px) brightness(0.52);
  z-index: 1;
  pointer-events: none;
}

/* Distinct blurred background image for each page */
.page-hero--services::before     { background-image: url('assets/hero-services.jpg'); background-position: center 35%; }
.page-hero--lab::before          { background-image: url('assets/hero-lab.jpg'); background-position: center 25%; }
.page-hero--insurance::before    { background-image: url('assets/hero-insurance.jpg'); background-position: center 40%; }
.page-hero--about::before        { background-image: url('assets/hero-about.jpg'); background-position: center 30%; }
.page-hero--contact::before      { background-image: url('assets/hero-contact.jpg'); background-position: center 45%; }
.page-hero--careers::before      { background-image: url('assets/hero-about.jpg'); background-position: center 30%; }
.page-hero--partnerships::before { background-image: url('assets/hero-insurance.jpg'); background-position: center 35%; }
.page-hero--news::before         { background-image: url('assets/community service.jpeg'); background-position: center 30%; }

/* Default fallback image if specific class is omitted */
.page-hero:not([class*="page-hero--"])::before {
  background-image: url('assets/hero-home-1.jpg');
}

/* Gradient overlay on top of blurred image to ensure maximum legibility */
.page-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(11, 37, 69, 0.72) 0%,
    rgba(13, 139, 106, 0.20) 55%,
    rgba(11, 37, 69, 0.62) 100%
  );
  z-index: 2;
  pointer-events: none;
}

.page-hero > * { position: relative; z-index: 3; }

.page-hero-label { color: rgba(126, 222, 188, 0.95); margin-bottom: 12px; }

.page-hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
  color: var(--white);
  margin-bottom: 14px;
}

.page-hero-desc {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.85);
  max-width: 620px;
  line-height: 1.7;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.65);
  margin-bottom: 18px;
}

.breadcrumb a { color: rgba(255,255,255,0.85); transition: color var(--t-fast); }
.breadcrumb a:hover { color: var(--white); }
.breadcrumb-sep { opacity: 0.5; }
.breadcrumb-current { color: #7EDEBC; font-weight: 600; }

/* --- Scroll-Reveal --------------------------------------------------------- */
/* Default safe state: all content is always visible and fully rendered */
.sr {
  opacity: 1;
  transform: none;
  transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1), transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

/* Only when JavaScript scroll-reveal is actively running do unrevealed elements hide */
.js-reveal .sr:not(.visible) {
  opacity: 0;
  transform: translateY(24px) scale(0.985);
}

.sr.visible {
  opacity: 1 !important;
  transform: none !important;
}

@media (prefers-reduced-motion: reduce) {
  .sr { opacity: 1 !important; transform: none !important; transition: none !important; }
}

.sr-delay-1 { transition-delay: 0.08s; }
.sr-delay-2 { transition-delay: 0.16s; }
.sr-delay-3 { transition-delay: 0.24s; }
.sr-delay-4 { transition-delay: 0.32s; }
.sr-delay-5 { transition-delay: 0.40s; }
.sr-delay-6 { transition-delay: 0.48s; }

/* --- Section alternating backgrounds --------------------------------------- */
.bg-white    { background: var(--white); }
.bg-alt      { background: var(--surface-alt); }
.bg-blue     { background: var(--surface-blue); }
.bg-navy     { background: var(--navy); color: var(--white); }

/* --- Care Navigator -------------------------------------------------------- */
#careNavigator {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(248, 250, 252, 0.93) 0%, rgba(241, 245, 249, 0.95) 100%);
}

#careNavigator::before {
  content: '';
  position: absolute;
  inset: -15px;
  background-image: url('assets/hero-home-3.jpg');
  background-size: cover;
  background-position: center 30%;
  filter: blur(14px) brightness(1.02) saturate(0.75);
  opacity: 0.16;
  z-index: 0;
  pointer-events: none;
}

#careNavigator > .container {
  position: relative;
  z-index: 1;
}

.care-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 30px;
  justify-content: center;
}

.care-chip {
  padding: 12px 24px;
  border: 1.5px solid rgba(205, 213, 224, 0.85);
  border-radius: 30px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--navy);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(11, 37, 69, 0.04);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.care-chip:hover {
  border-color: var(--teal);
  color: var(--teal);
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 20px rgba(13, 139, 106, 0.18);
  background: rgba(255, 255, 255, 0.98);
}

.care-chip.active {
  background: linear-gradient(135deg, var(--teal) 0%, #059669 100%);
  border-color: var(--teal);
  color: var(--white);
  box-shadow: 0 10px 25px rgba(13, 139, 106, 0.35);
  transform: translateY(-3px) scale(1.03);
}

.care-result {
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1.5px solid rgba(13, 139, 106, 0.28);
  border-radius: var(--radius-xl);
  padding: 36px 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  box-shadow: 0 18px 45px rgba(11, 37, 69, 0.07), 0 2px 8px rgba(13, 139, 106, 0.08);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.care-result::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 6px;
  height: 100%;
  background: linear-gradient(180deg, var(--teal) 0%, #34D399 100%);
  border-top-left-radius: var(--radius-xl);
  border-bottom-left-radius: var(--radius-xl);
}

.care-result-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--navy);
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.care-badge {
  font-size: 0.74rem;
  font-weight: 700;
  padding: 5px 12px;
  background: rgba(13, 139, 106, 0.12);
  color: var(--teal);
  border-radius: 14px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: 1px solid rgba(13, 139, 106, 0.2);
}

.care-result-desc {
  font-size: 0.95rem;
  color: #475569;
  line-height: 1.7;
  max-width: 620px;
}

@keyframes careResultUpdate {
  0% {
    opacity: 0.3;
    transform: translateY(6px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.care-result.care-update {
  animation: careResultUpdate 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- Price estimator ------------------------------------------------------- */
.estimator-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  max-width: 820px;
  margin: 0 auto;
  box-shadow: var(--shadow-md);
}

.estimator-body {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
}

.estimator-left { padding: 36px; border-right: 1px solid var(--border); }

.addon-item {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 0.9rem;
  color: var(--body-text);
  padding: 9px 0;
  cursor: pointer;
}

.addon-item input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--teal); cursor: pointer; }

.estimator-right {
  background: var(--navy);
  color: var(--white);
  padding: 36px 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 12px;
}

.est-label { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.07em; color: rgba(255,255,255,0.55); }

.est-price {
  font-family: var(--font-serif);
  font-size: 3rem;
  color: #7EDEBC;
  line-height: 1;
}

.est-currency { font-size: 1.2rem; color: rgba(255,255,255,0.8); margin-right: 3px; }

.est-note { font-size: 0.8rem; color: rgba(255,255,255,0.55); line-height: 1.6; }

/* --- Responsive ------------------------------------------------------------- */
@media (max-width: 1024px) {
  .hero-grid       { grid-template-columns: 1fr; gap: 48px; }
  .hero-image-block { max-width: 560px; margin: 0 auto; width: 100%; }
  .about-grid      { grid-template-columns: 1fr; }
  .contact-grid    { grid-template-columns: 1fr; }
  .footer-grid     { grid-template-columns: 1fr 1fr; gap: 36px; }
  .estimator-body  { grid-template-columns: 1fr; }
  .estimator-left  { border-right: none; border-bottom: 1px solid var(--border); }
  .vmv-grid        { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  :root { --nav-h: 64px; }

  .nav-links, .nav-cta { display: none; }
  .nav-hamburger { display: flex; }

  .hero { padding: 60px 0 70px; }
  .section-pad { padding: 64px 0; }
  .section-pad-sm { padding: 44px 0; }

  .form-row--2, .form-row--3 { grid-template-columns: 1fr; }

  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .booking-header, .booking-body { padding: 24px; }

  .hero-stats { flex-wrap: wrap; gap: 24px; }
  .trust-bar-inner { justify-content: flex-start; }
  .trust-divider { display: none; }
  .emergency-strip-inner { flex-direction: column; text-align: center; }
}

@media (max-width: 540px) {
  .container { padding: 0 18px; }
  .services-grid { grid-template-columns: 1fr; }
  .doctors-grid  { grid-template-columns: 1fr; }
  .insurance-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-badge--top-right { display: none; }
  .hero-badge--bottom-left { display: none; }
}

/* --- Print (Apt Pass) ------------------------------------------------------- */
@media print {
  body * { visibility: hidden; }
  .modal-overlay { position: static !important; background: transparent !important; padding: 0 !important; visibility: visible !important; }
  .modal-dialog  { box-shadow: none !important; border: none !important; max-width: 100% !important; transform: none !important; visibility: visible !important; }
  .modal-head, .modal-close, .fabs, .site-header, .site-footer { display: none !important; }
  .modal-body { padding: 0 !important; visibility: visible !important; }
  .apt-pass, .apt-pass * { visibility: visible !important; }
  .apt-pass { position: absolute; left: 0; top: 0; width: 100%; border: 2px solid var(--navy) !important; background: #fff !important; }
}

/* --- Focus visible (accessibility) ----------------------------------------- */
:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
  border-radius: 3px;
}

/* =============================================================================
   MODULE 1: CAREERS & RECRUITMENT STYLES
   ============================================================================= */
.careers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 24px;
  margin-top: 28px;
}

.job-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.job-card:hover {
  border-color: rgba(13, 139, 106, 0.4);
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.job-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--border);
  padding-bottom: 16px;
  margin-bottom: 14px;
}

.job-header-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  flex-wrap: wrap;
  gap: 8px;
}

.job-category-badge {
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 10px;
  border-radius: 20px;
  background: rgba(13, 139, 106, 0.1);
  color: var(--teal);
}

.job-ref-badge {
  font-size: 0.74rem;
  color: var(--navy);
  font-weight: 600;
  font-family: monospace;
  background: var(--surface-blue);
  padding: 3px 8px;
  border-radius: 6px;
  border: 1px solid var(--border);
}

.job-card-title {
  font-size: 1.25rem;
  color: var(--navy);
  font-weight: 700;
  line-height: 1.35;
  margin: 6px 0;
}

.job-card-meta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 4px;
}

.job-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--body-text);
  font-weight: 500;
}

.job-meta-item svg {
  color: var(--teal);
  flex-shrink: 0;
}

.job-card-summary,
.job-card-desc {
  font-size: 0.94rem;
  color: var(--body-text);
  line-height: 1.65;
  margin: 10px 0 16px;
}

/* Key Responsibilities & Requirements Grid */
.job-card-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  margin-bottom: 16px;
}

@media (max-width: 768px) {
  .job-card-details {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}

.job-subheading {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 7px;
}

.job-subheading::before {
  content: '';
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--teal);
  flex-shrink: 0;
}

.job-req-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.job-req-list li {
  font-size: 0.88rem;
  color: var(--body-text);
  line-height: 1.55;
  position: relative;
  padding-left: 20px;
}

.job-req-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 1px;
  color: var(--teal);
  font-weight: 800;
  font-size: 0.88rem;
}

.job-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  margin-top: 4px;
}

.job-deadline {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.86rem;
  color: var(--muted);
}

.job-deadline strong {
  color: var(--navy);
  font-weight: 700;
}

.job-deadline svg {
  color: #DC2626;
  flex-shrink: 0;
}

.job-meta-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 24px;
  padding: 14px 16px;
  background: var(--surface-alt);
  border-radius: var(--radius-md);
  font-size: 0.86rem;
  color: var(--body-text);
}

.job-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}

.medical-licence-callout {
  background: rgba(11, 37, 69, 0.04);
  border-left: 4px solid var(--navy);
  padding: 16px;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin-top: 18px;
  font-size: 0.88rem;
  color: var(--body-text);
}

.doc-upload-zone {
  border: 2px dashed var(--border-dark);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
  background: var(--surface-alt);
  transition: all 0.25s ease;
  cursor: pointer;
  position: relative;
}

.doc-upload-zone:hover, .doc-upload-zone.dragover {
  border-color: var(--teal);
  background: rgba(13, 139, 106, 0.05);
}

.file-preview-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  border: 1px solid var(--border);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--navy);
  margin-top: 8px;
}

.file-preview-chip .remove-file {
  background: none;
  border: none;
  color: var(--red-alert);
  cursor: pointer;
  font-size: 1.1rem;
  line-height: 1;
}

/* =============================================================================
   MODULE 2: PARTNERSHIPS & DONORS STYLES
   ============================================================================= */
.collab-areas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 26px;
}

.collab-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 32px 28px;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 8px rgba(11, 37, 69, 0.05);
  position: relative;
  overflow: hidden;
}

.collab-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--teal), var(--teal-light, #34d399));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
}

.collab-card:hover {
  border-color: rgba(13, 139, 106, 0.35);
  box-shadow: 0 12px 32px rgba(11, 37, 69, 0.12), 0 4px 12px rgba(13, 139, 106, 0.08);
  transform: translateY(-5px);
}

.collab-card:hover::after {
  transform: scaleX(1);
}

.collab-icon-wrap {
  width: 56px;
  height: 56px;
  border-radius: 15px;
  background: linear-gradient(135deg, rgba(13, 139, 106, 0.15), rgba(13, 139, 106, 0.06));
  color: var(--teal);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  transition: background 0.3s ease, transform 0.3s ease;
  flex-shrink: 0;
}

.collab-card:hover .collab-icon-wrap {
  background: linear-gradient(135deg, var(--teal), #0d9e7a);
  color: var(--white);
  transform: scale(1.08);
}

.collab-title {
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 12px;
  line-height: 1.35;
}

.collab-desc {
  font-size: 0.9rem;
  color: var(--body-text);
  line-height: 1.7;
  flex: 1;
}

/* Cards on bg-alt sections: slightly elevated to stand out */
.bg-alt .collab-card {
  background: var(--white);
  box-shadow: 0 3px 14px rgba(11, 37, 69, 0.08);
}

/* Cards on bg-white sections: use surface-alt to differentiate */
.bg-white .collab-card {
  background: var(--surface-alt, #f8fafc);
  border-color: rgba(11, 37, 69, 0.1);
}

.bg-white .collab-card:hover {
  background: var(--white);
}

/* =============================================================================
   MODULE 3: NEWS & ANNOUNCEMENTS STYLES
   ============================================================================= */
.news-hero-featured,
.news-featured-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  box-shadow: var(--shadow-sm);
  margin-bottom: 48px;
  transition: all 0.35s ease;
}

.news-hero-featured:hover,
.news-featured-card:hover {
  box-shadow: var(--shadow-md);
  border-color: rgba(13, 139, 106, 0.4);
}

.news-featured-img-wrap {
  width: 100%;
  height: 100%;
  min-height: 280px;
  overflow: hidden;
  position: relative;
  background: var(--navy);
}

.news-featured-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.news-hero-featured:hover .news-featured-img,
.news-featured-card:hover .news-featured-img {
  transform: scale(1.04);
}

.news-featured-body,
.news-featured-content {
  padding: 36px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

@media (max-width: 860px) {
  .news-hero-featured,
  .news-featured-card {
    grid-template-columns: 1fr;
  }
  .news-featured-body,
  .news-featured-content {
    padding: 24px;
  }
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
}

.news-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  position: relative;
}

.news-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: rgba(13, 139, 106, 0.35);
}

.news-card-img-wrap {
  width: 100%;
  height: 200px;
  overflow: hidden;
  position: relative;
  background: var(--navy);
}

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

.news-card:hover .news-card-img {
  transform: scale(1.05);
}

.news-card-cat {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(11, 37, 69, 0.90);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--white);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  z-index: 2;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.news-card-body,
.news-card-content {
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  background: var(--white);
}

.news-card-meta {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 6px;
}

.news-card-meta svg {
  color: var(--teal);
  flex-shrink: 0;
}

.news-card-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.4;
  margin: 6px 0 10px;
}

.news-card-excerpt {
  font-size: 0.92rem;
  color: var(--body-text);
  line-height: 1.6;
  margin-bottom: 18px;
  flex-grow: 1;
}

.news-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  color: var(--muted);
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

/* Category Filter Buttons */
.filter-btn {
  border-radius: 20px !important;
  font-size: 0.82rem !important;
  padding: 7px 16px !important;
  border: 1.5px solid var(--border-dark) !important;
  color: var(--navy) !important;
  background: var(--white) !important;
  transition: all 0.2s ease !important;
  font-weight: 600 !important;
}

.filter-btn:hover {
  border-color: var(--teal) !important;
  color: var(--teal) !important;
  background: rgba(13, 139, 106, 0.06) !important;
}

.filter-btn.active {
  background: var(--teal) !important;
  color: var(--white) !important;
  border-color: var(--teal) !important;
  box-shadow: 0 4px 14px rgba(13, 139, 106, 0.32) !important;
}

.news-card-footer {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.news-read-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--teal);
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px 0;
  transition: all var(--t-fast);
}

.news-read-more:hover {
  color: var(--navy);
  transform: translateX(3px);
}

/* =============================================================================
   STAFF ADMIN DASHBOARD & CMS PORTAL STYLES
   ============================================================================= */
.admin-shell {
  min-height: 100vh;
  background: #F4F6F9;
  display: flex;
  flex-direction: column;
}

.admin-header {
  background: var(--navy);
  color: var(--white);
  padding: 16px 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid var(--teal);
  position: sticky;
  top: 0;
  z-index: 100;
}

.admin-tabs {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 0 28px;
  display: flex;
  gap: 12px;
  overflow-x: auto;
}

.admin-tab {
  padding: 14px 18px;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--muted);
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.admin-tab.active {
  color: var(--teal);
  border-bottom-color: var(--teal);
}

.admin-tab:hover {
  color: var(--navy);
}

.admin-body {
  padding: 32px 28px;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
  flex-grow: 1;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}

.admin-table th, .admin-table td {
  padding: 14px 18px;
  text-align: left;
  font-size: 0.88rem;
  border-bottom: 1px solid var(--border);
}

.admin-table th {
  background: #F8FAFC;
  font-weight: 700;
  color: var(--navy);
  text-transform: uppercase;
  font-size: 0.76rem;
  letter-spacing: 0.05em;
}

.admin-table tr:hover {
  background: rgba(13, 139, 106, 0.02);
}

.status-chip {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.status-chip--received { background: #E0F2FE; color: #0284C7; }
.status-chip--review   { background: #FEF3C7; color: #D97706; }
.status-chip--shortlist{ background: #ECFDF5; color: #059669; }
.status-chip--interview{ background: #EDE9FE; color: #7C3AED; }
.status-chip--success  { background: #D1FAE5; color: #047857; }
.status-chip--closed   { background: #F1F5F9; color: #64748B; }

@media (max-width: 900px) {
  .news-hero-featured { grid-template-columns: 1fr; }
  .careers-grid, .collab-areas-grid, .news-grid { grid-template-columns: 1fr; }
}

/* =============================================================================
   ADMIN PORTAL & PARTNERSHIPS RESPONSIVE STYLES
   ============================================================================= */

/* Admin header wraps on smaller screens */
@media (max-width: 860px) {
  .admin-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
  }
  .admin-header > div:last-child {
    width: 100%;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 8px;
  }
  .admin-tabs {
    padding: 0 12px;
    gap: 4px;
  }
  .admin-tab {
    padding: 12px 12px;
    font-size: 0.82rem;
  }
  .admin-body {
    padding: 20px 14px;
  }
  /* Make modal dialogs full-width on mobile */
  .modal-dialog {
    max-width: 100% !important;
    max-height: 95vh !important;
    margin: 0;
    border-radius: 12px 12px 0 0;
    align-self: flex-end;
  }
  .modal-overlay {
    align-items: flex-end;
    padding: 0;
  }
  .modal-overlay.open .modal-dialog,
  .modal-overlay.active .modal-dialog {
    transform: translateY(0);
  }
  /* Table cells wrap gracefully */
  .admin-table th,
  .admin-table td {
    padding: 10px 12px;
    font-size: 0.82rem;
  }
  .admin-table th {
    font-size: 0.7rem;
  }
}

@media (max-width: 640px) {
  .admin-header {
    padding: 12px 14px;
  }
  .admin-body {
    padding: 14px 10px;
  }

  /* Stack filter bar items */
  .admin-filter-bar,
  [style*="display: flex"][style*="flex-wrap: wrap"] {
    flex-direction: column;
  }

  /* Admin form grids collapse to single column */
  .admin-form-grid,
  [id^="vacancyModal"] [style*="grid-template-columns: 1fr 1fr"],
  [id^="appDetailModal"] [style*="grid-template-columns: 1fr 1fr"],
  [id^="partnerDetailModal"] [style*="grid-template-columns: 1fr 1fr"],
  [id^="newsModal"] [style*="grid-template-columns: 1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }

  /* Careers and Partnerships page form grids */
  .partner-form-grid,
  .careers-form-grid {
    grid-template-columns: 1fr !important;
  }

  /* Tables - enable horizontal scroll */
  .admin-table {
    font-size: 0.78rem;
  }
  .admin-table th,
  .admin-table td {
    padding: 8px 10px;
  }

  /* Smaller section headers */
  [style*="font-size: 1.5rem"] {
    font-size: 1.2rem !important;
  }

  /* Tab badges hide on very small screens */
  .admin-tabs .admin-badge {
    display: none;
  }

  /* Modal body padding reduction */
  .modal-body,
  .modal-head {
    padding: 16px 16px !important;
  }

  /* Dossier grid inside modal */
  #dossierBody [style*="grid-template-columns: 1fr 1fr"],
  #partnerDetailBody [style*="grid-template-columns: 1fr 1fr"] {
    display: block !important;
  }
  #dossierBody [style*="grid-template-columns: 1fr 1fr"] > div,
  #partnerDetailBody [style*="grid-template-columns: 1fr 1fr"] > div {
    margin-bottom: 12px;
  }

  /* Partnership form grids */
  .partner-form-grid {
    grid-template-columns: 1fr !important;
  }
}

/* Partnerships page form card responsiveness */
@media (max-width: 768px) {
  #partnershipEnquiryForm .card,
  [id="partnershipEnquiryForm"] {
    padding: 20px 16px;
  }
  /* Partnership form card outer padding */
  .card[style*="padding: 36px"] {
    padding: 24px 20px !important;
  }
  .partner-form-grid {
    grid-template-columns: 1fr !important;
  }
}

/* Careers page filter bar */
@media (max-width: 700px) {
  .careers-filter-bar {
    flex-direction: column;
    gap: 10px;
  }
  .careers-filter-bar > div {
    width: 100%;
  }
  .careers-filter-bar select,
  .careers-filter-bar input {
    width: 100%;
  }
  /* Job card footer stacks button */
  .job-card-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .job-card-footer .btn-apply {
    width: 100%;
    justify-content: center;
  }
}

/* Ensure login card is mobile-friendly */
@media (max-width: 480px) {
  .admin-login-card {
    padding: 28px 20px;
  }
}

