/* ============================================================
   AKG Memorial Co-Operative Hospital – Kannur
   1440px design · Inter · Figma-accurate
   ============================================================ */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --primary: #1A3C5E;
  --primary-dark: #132D47;
  --primary-light: #2A5A8A;
  --accent: #D42027;
  --accent-hover: #B71C1C;
  --white: #ffffff;
  --off-white: #F7F8FA;
  /* Slightly richer neutrals: clearer separation from white cards */
  --gray-50: #F5F7FA;
  --gray-100: #EAEDF2;
  --gray-200: #E5E7EB;
  --gray-300: #D1D5DB;
  --gray-400: #9CA3AF;
  --gray-500: #6B7280;
  --gray-600: #4B5563;
  --gray-700: #374151;
  --gray-800: #1F2937;
  --amber: #F59E0B;
  /* Section bands (tinted blocks) */
  --surface-band: #eceff3;
  --surface-band-soft: #E4ECF5;
  /* Inner / strip sections: diagonal wash (pairs with --surface-band) */
  --surface-inner-gradient: linear-gradient(135deg, #EDF2F8 0%, #F4F7FB 40%, #FAFCFE 100%);
  --font: 'Inter', system-ui, -apple-system, sans-serif;
  --max-w: 1320px;
  --px: 20px;
  --measure-prose: 65ch;
  /* Vertical rhythm: section padding (mobile / tablet / desktop) */
  --section-y: 48px;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-card: 16px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.08);
  --shadow: 0 4px 12px rgba(0,0,0,.08);
  --shadow-lg: 0 12px 32px rgba(0,0,0,.1);
  --transition: .25s ease;
}

@media (min-width:640px) { :root { --px: 32px; } }
@media (min-width:1024px) { :root { --px: 60px; } }
@media (min-width:768px) { :root { --section-y: 64px; } }
@media (min-width:1024px) { :root { --section-y: 96px; } }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--gray-700);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Inner pages: soft vertical wash using the same palette as section bands / gradient */
body:not(.page-home) {
  background: linear-gradient(180deg, #EDF2F8 0%, #FAFCFE 18%, var(--white) 52%);
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* Keyboard focus: visible ring (matches accent; no ring on mouse click) */
:focus { outline: none; }
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
a.btn:focus-visible,
button.btn:focus-visible,
.btn:focus-visible {
  outline-offset: 3px;
}
ul, ol { list-style: none; }
input { font-family: inherit; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

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

/*
 * Scroll reveal by surface (background):
 * - Light (white): short fade + small lift
 * - Tinted (--surface-band / --surface-inner-gradient / --surface-band-soft): opacity only
 * - Dark (gradients): opacity only, slightly longer (softer on light text)
 */
.fade-up {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.45s ease-out, transform 0.45s ease-out;
}
.fade-up.visible {
  opacity: 1;
  transform: none;
}
.fade-up-d1 { transition-delay: 0.05s; }
.fade-up-d2 { transition-delay: 0.1s; }
.fade-up-d3 { transition-delay: 0.15s; }
.fade-up-d4 { transition-delay: 0.2s; }

/* Tinted section bands */
.about .fade-up,
.departments .fade-up,
.education .fade-up,
.testimonials .fade-up,
.gallery .fade-up,
.news .fade-up,
.page-content--alt .fade-up,
body:not(.page-home) > section.page-content .fade-up,
body:not(.page-home) main > section.page-content .fade-up {
  transform: none;
  transition: opacity 0.45s ease-out;
}

/* Dark / high-contrast blocks (CTA + footer only) */
.cta-banner.fade-up,
.cta-banner .fade-up,
.footer .fade-up {
  transform: none;
  transition: opacity 0.55s ease-out;
}

/*
 * Inner .page-hero: no staggered fade-in — opacity animation + ::before sheen
 * reads as overlapping; match homepage hero (always visible).
 */
.page-hero .fade-up,
.page-hero .fade-up.fade-up-d1,
.page-hero .fade-up.fade-up-d2,
.page-hero .fade-up.fade-up-d3,
.page-hero .fade-up.fade-up-d4 {
  opacity: 1;
  transform: none;
  transition: none;
}

/* Live dot: pulse on white/light only; static on tinted (same hues as BG) */
.about .section-tag--live .section-tag__dot,
.departments .section-tag--live .section-tag__dot,
.education .section-tag--live .section-tag__dot,
.gallery .section-tag--live .section-tag__dot,
.news .section-tag--live .section-tag__dot,
.testimonials .section-tag--live .section-tag__dot,
.page-content--alt .section-tag--live .section-tag__dot,
body:not(.page-home) > section.page-content .section-tag--live .section-tag__dot,
body:not(.page-home) main > section.page-content .section-tag--live .section-tag__dot {
  animation: none;
  opacity: 1;
}

/* Hero: do not hide above-the-fold content — fade-up + delayed IO can prevent LCP in lab tools (e.g. PSI NO_LCP) */
.hero .fade-up,
.hero .fade-up.fade-up-d1,
.hero .fade-up.fade-up-d2,
.hero .fade-up.fade-up-d3,
.hero .fade-up.fade-up-d4 {
  opacity: 1;
  transform: none;
  transition: none;
}

/* ---- Buttons (hero + site-wide: 46px tall, 14px type) ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0 28px;
  font-size: 14px; font-weight: 600; line-height: 1;
  border-radius: var(--radius-sm);
  min-height: 46px; height: 46px;
  box-sizing: border-box;
  transition: all var(--transition); gap: 8px; white-space: nowrap;
  vertical-align: middle;
}
.btn--block {
  display: flex;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}
.btn--accent { background: var(--accent); color: var(--white); }
.btn--accent:hover { background: var(--accent-hover); }
.btn--outline { border: 2px solid var(--primary); color: var(--primary); background: transparent; }
.btn--outline:hover { background: var(--primary); color: var(--white); }
.btn--primary { background: var(--primary); color: var(--white); }
.btn--primary:hover { background: var(--primary-light); }
.btn--white { background: var(--white); color: var(--primary); }
.btn--white:hover { background: var(--gray-100); }

a.btn { text-decoration: none; }
button.btn {
  appearance: none;
  -webkit-appearance: none;
  font-family: inherit;
}

/* ---- Reusable: Section Tag (red dot + label) ---- */
.section-tag {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .875rem; font-weight: 600; color: var(--accent);
  margin-bottom: 12px;
}
.section-tag--center { justify-content: center; width: 100%; }
.section-tag__dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent); display: inline-block;
}

/* ---- Reusable: Section Heading ---- */
.section-heading {
  font-size: 2rem; font-weight: 800; line-height: 1.2;
  color: var(--primary); margin-top: 12px;
}
@media (min-width:768px) { .section-heading { font-size: 2.5rem; } }
@media (min-width:1024px) { .section-heading { font-size: 2.75rem; } }

/* ---- Reusable: Section Description ---- */
.section-desc {
  margin-top: 16px; color: var(--gray-500);
  max-width: min(620px, var(--measure-prose));
  font-size: .9375rem; line-height: 1.6;
}

/* ---- Reusable: Section Head (centered wrapper) ---- */
.section-head {
  text-align: center; margin-bottom: 32px;
}
.section-head .section-heading { max-width: 720px; margin-inline: auto; }
.section-head .section-desc { margin-inline: auto; }
@media (min-width:768px) { .section-head { margin-bottom: 48px; } }

/* ---- Reusable: Card Base ---- */
.card {
  background: var(--white); border-radius: var(--radius-card);
  padding: 28px 24px;
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
  transition: box-shadow .3s ease, transform .3s ease;
  position: relative;
  overflow: hidden;
}
.card:hover {
  box-shadow: 0 8px 28px rgba(0,0,0,.1);
  transform: translateY(-2px);
}

/* Subtle moving sheen (same family as CTA banner + footer app bar) */
@keyframes ui-sheen-light {
  0%, 100% { transform: translateX(-26%) translateY(-22%) rotate(10deg); }
  50% { transform: translateX(26%) translateY(18%) rotate(10deg); }
}

.cta-banner,
.footer__app-bar,
.topbar,
.header,
.page-hero,
.hero__legacy,
.card,
.service-card,
.doctor-card,
.video-card,
.gallery__item,
.hero__contact-card,
.hero__stat,
.about__card-wrap,
.info-box,
.contact-map__frame {
  position: relative;
  overflow: hidden;
}

.card::after,
.service-card::after,
.doctor-card::after,
.video-card::after,
.gallery__item::after,
.hero__contact-card::after,
.hero__stat::after,
.about__card-wrap::after,
.info-box::after,
.contact-map__frame::after {
  content: '';
  position: absolute;
  inset: -55%;
  background: linear-gradient(
    105deg,
    transparent 43%,
    rgba(255, 255, 255, 0.65) 50%,
    transparent 57%
  );
  animation: ui-sheen-light 14s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
  opacity: 0.4;
}

.card > *,
.service-card > *,
.doctor-card > *,
.video-card > *,
.gallery__item > *,
.hero__contact-card > *,
.hero__stat > *,
.about__card-wrap > *,
.info-box > * {
  position: relative;
  z-index: 1;
}

/* ---- Reusable: Scroll Row (mobile horizontal) ---- */
.scroll-row {
  display: flex; gap: 16px;
  overflow-x: auto; scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.scroll-row::-webkit-scrollbar { display: none; }

/* ---- Homepage mobile: horizontal scroll rows (shorter page) + edge-aligned peek ---- */
@media (max-width: 639px) {
  .page-home .scroll-row {
    margin-inline: -20px;
    padding-inline: 20px;
    padding-bottom: 10px;
    scroll-padding-inline: 20px;
    position: relative;
  }
  /* Fade at end of row → more content off-screen (tint matches section BG) */
  .page-home .scroll-row-hint {
    display: block;
    text-align: center;
    font-size: .6875rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gray-400);
    margin-top: 10px;
    margin-bottom: 0;
  }
}
@media (max-width: 1023px) {
  .page-home .hero__badges {
    flex-wrap: wrap;
    overflow-x: visible;
    margin-inline: 0;
    padding-inline: 0;
    scroll-snap-type: none;
    justify-content: flex-start;
  }
  .page-home .hero__badge {
    flex: 0 1 auto;
    scroll-snap-align: none;
  }
}

/* ---- Live marquees (seamless loop: two identical .live-marquee__group) ---- */
.live-marquee {
  --live-marquee-duration: 42s;
  position: relative;
  z-index: 2;
  overflow: hidden;
  padding: 14px 0;
  border-block: 1px solid rgba(26, 46, 68, 0.08);
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* Hero / compact: outer is full-width shell; .live-marquee__inner matches .container + holds the panel */
.live-marquee--hero,
.live-marquee--compact {
  padding: 0;
  border: none;
  border-block: none;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  max-width: none;
  width: 100%;
}
.live-marquee--hero {
  margin-top: 0;
  margin-bottom: 16px;
}
@media (min-width: 1024px) {
  .live-marquee--hero {
    margin-bottom: 20px;
  }
}
.live-marquee--compact {
  margin-bottom: 12px;
}

/* Full-bleed strips only (not compact panels) */
.live-marquee--accent:not(.live-marquee--compact) {
  background: linear-gradient(90deg, rgba(198, 59, 59, 0.1) 0%, rgba(26, 46, 68, 0.06) 50%, rgba(198, 59, 59, 0.08) 100%);
  border-color: rgba(198, 59, 59, 0.15);
}
.live-marquee--muted:not(.live-marquee--compact) {
  background: rgba(237, 242, 248, 0.9);
  border-color: rgba(26, 46, 68, 0.06);
}
.live-marquee--dark {
  background: linear-gradient(90deg, #1a2e44 0%, #152638 100%);
  border-color: rgba(255, 255, 255, 0.08);
}
.live-marquee--dark .live-marquee__item {
  color: rgba(255, 255, 255, 0.92);
}
.live-marquee--dark .live-marquee__sep {
  color: rgba(212, 32, 39, 0.75);
}
.live-marquee--slow {
  --live-marquee-duration: 58s;
}
.live-marquee--fast {
  --live-marquee-duration: 32s;
}
/* Match .container: max-width + 20px horizontal padding (not var(--px)) */
.live-marquee__inner {
  display: flex;
  align-items: center;
  gap: 18px;
  width: 100%;
  max-width: var(--max-w);
  margin-left: auto;
  margin-right: auto;
  padding: 0 20px;
}
.live-marquee--hero .live-marquee__inner {
  padding: 8px 14px;
  gap: 12px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(26, 46, 68, 0.08);
  border-radius: 14px;
  box-shadow: 0 6px 18px rgba(13, 26, 42, 0.05);
}
@media (min-width: 640px) {
  .live-marquee--hero .live-marquee__inner {
    padding: 10px 18px;
    gap: 14px;
    border-radius: 15px;
  }
}
.live-marquee--hero .live-marquee__clock-pill {
  padding: 6px 11px;
  gap: 6px;
  font-size: 0.6875rem;
  border-radius: 9px;
  box-shadow: 0 2px 8px rgba(13, 26, 42, 0.16);
}
.live-marquee--hero .live-marquee__clock-pill svg {
  width: 12px;
  height: 12px;
}
.live-marquee--hero .live-marquee__item {
  padding: 2px 18px;
  font-size: 0.75rem;
}
@media (min-width: 640px) {
  .live-marquee--hero .live-marquee__item {
    padding: 3px 22px;
    font-size: 0.8125rem;
  }
}
.live-marquee--compact .live-marquee__inner {
  padding: 12px 20px;
  gap: 18px;
  overflow: hidden;
  border: 1px solid rgba(26, 46, 68, 0.08);
  border-radius: 14px;
}
@media (min-width: 640px) {
  .live-marquee--compact .live-marquee__inner {
    padding: 14px 20px;
  }
}
.live-marquee--compact.live-marquee--accent .live-marquee__inner {
  background: linear-gradient(90deg, rgba(198, 59, 59, 0.1) 0%, rgba(26, 46, 68, 0.06) 50%, rgba(198, 59, 59, 0.08) 100%);
  border-color: rgba(198, 59, 59, 0.15);
}
.live-marquee--compact.live-marquee--muted .live-marquee__inner {
  background: rgba(237, 242, 248, 0.9);
  border-color: rgba(26, 46, 68, 0.06);
}
.live-marquee__clock-pill {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: 11px;
  background: linear-gradient(145deg, #1a2e44 0%, #243b55 100%);
  color: rgba(255, 255, 255, 0.95);
  font-size: 0.75rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.03em;
  box-shadow: 0 2px 10px rgba(13, 26, 42, 0.2);
}
.live-marquee__clock-pill svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  opacity: 0.9;
}
.live-marquee__viewport {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 10px, #000 calc(100% - 10px), transparent);
}
.live-marquee > .live-marquee__viewport {
  flex: none;
  width: 100%;
  mask-image: linear-gradient(90deg, transparent, #000 20px, #000 calc(100% - 20px), transparent);
}
.live-marquee__track {
  display: flex;
  width: max-content;
  animation: live-marquee-x var(--live-marquee-duration) linear infinite;
}
.live-marquee--reverse .live-marquee__track {
  animation-name: live-marquee-x-rev;
}
@keyframes live-marquee-x {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
@keyframes live-marquee-x-rev {
  0% { transform: translateX(-50%); }
  100% { transform: translateX(0); }
}
.live-marquee__group {
  display: flex;
  flex-shrink: 0;
  align-items: center;
}
.live-marquee__item {
  display: inline-flex;
  align-items: center;
  padding: 4px 26px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--primary);
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.live-marquee--compact .live-marquee__item {
  font-size: 0.8125rem;
  padding: 3px 22px;
}
.live-marquee__sep {
  color: var(--accent);
  opacity: 0.45;
  font-size: 0.5rem;
  user-select: none;
}
@media (max-width: 639px) {
  .live-marquee__inner {
    flex-wrap: wrap;
    gap: 14px;
  }
  .live-marquee__clock-pill {
    width: 100%;
    justify-content: center;
  }
  .live-marquee__viewport {
    width: 100%;
    flex: none;
    mask-image: none;
  }
}

/* Subtle “live” cue only — no expanding ring (reads badly on #EEF3F8 etc.) */
.section-tag--live .section-tag__dot {
  animation: live-dot-soft 2.5s ease-in-out infinite;
}
@keyframes live-dot-soft {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.55; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .fade-up,
  .fade-up.visible {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .live-marquee__track {
    animation: none;
    flex-wrap: wrap;
    width: 100%;
    justify-content: center;
    row-gap: 6px;
    padding-block: 4px;
  }
  .live-marquee__group:last-of-type {
    display: none;
  }
  .section-tag--live .section-tag__dot {
    animation: none;
  }
  .cta-banner::before,
  .footer__app-bar::after,
  .topbar::after,
  .header::after,
  .page-hero::before,
  .hero__legacy::after,
  .card::after,
  .service-card::after,
  .doctor-card::after,
  .video-card::after,
  .gallery__item::after,
  .hero__contact-card::after,
  .hero__stat::after,
  .about__card-wrap::after,
  .info-box::after,
  .contact-map__frame::after {
    animation: none;
  }
  .hero__circle,
  .deco-circle {
    animation: none !important;
    opacity: 0.42;
    transform: none;
  }
  .deco-circle--on-dark {
    opacity: 0.28;
    filter: brightness(2.4) saturate(1.15);
  }
  .footer > .deco-circles-wrap {
    opacity: 0.18;
  }

  .page-home .scroll-row::after {
    display: none;
  }
}

/* ============================================================
   TOP BAR
   ============================================================ */
.topbar {
  background: #1A2E44;
  color: rgba(255,255,255,.85);
  font-size: .875rem;
  letter-spacing: .02em;
  position: relative;
  overflow: hidden;
}
.topbar::after {
  content: '';
  position: absolute;
  inset: -120% -30%;
  background: linear-gradient(
    100deg,
    transparent 42%,
    rgba(255, 255, 255, 0.06) 50%,
    transparent 58%
  );
  animation: footer-app-shimmer 16s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
  opacity: 0.65;
}
.topbar .container {
  position: relative;
  z-index: 1;
  display: flex; flex-wrap: wrap;
  align-items: center; justify-content: space-between;
  gap: 8px; height: 36px;
}
.topbar__left {
  display: flex; align-items: center; gap: 6px;
}
.topbar__sep {
  color: rgba(255,255,255,.5);
  margin: 0 2px;
}
.topbar__loc {
  margin-left: 16px;
  color: rgba(255,255,255,.6);
}
.topbar__right {
  display: flex; align-items: center; gap: 24px;
}
.topbar a {
  color: rgba(255,255,255,.75);
  transition: color var(--transition);
}
.topbar a:hover { color: var(--white); }

@media (max-width:639px) {
  .topbar__right { display: none; }
  .topbar__loc { display: none; }
}

/* ============================================================
   HEADER
   ============================================================ */
.header {
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  position: sticky; top: 0; z-index: 100;
  overflow: hidden;
}
.header::after {
  content: '';
  position: absolute;
  inset: -65%;
  background: linear-gradient(
    110deg,
    transparent 44%,
    rgba(26, 60, 94, 0.07) 50%,
    transparent 56%
  );
  animation: ui-sheen-light 17s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
  opacity: 0.45;
}
body.mobile-menu-open .header {
  z-index: 1000;
}
.header .container {
  position: relative;
  z-index: 1;
  display: flex; align-items: center; justify-content: space-between;
  height: 88px; gap: 16px;
}
@media (min-width:1024px) { .header .container { height: 96px; } }

/* Logo — full wordmark SVG */
.logo {
  display: flex; align-items: center; flex-shrink: 0;
  text-decoration: none;
}
.logo__img {
  height: 70px;
  width: auto;
  max-width: min(220px, 90vw);
  object-fit: contain;
  flex-shrink: 0;
  display: block;
}
@media (min-width: 1024px) {
  .logo__img {
    height: 80px;
    max-width: min(250px, 90vw);
  }
}

/* Desktop nav */
.nav {
  display: none; align-items: center; gap: 24px;
}
@media (min-width:1080px) { .nav { display: flex; } }

.nav a {
  font-size: .9375rem; font-weight: 500; color: var(--gray-600);
  transition: color var(--transition); white-space: nowrap;
}
.nav a:hover { color: var(--primary); }

@media (min-width: 1080px) {
  .nav a[aria-current="page"] {
    color: var(--primary);
    text-decoration: underline;
    text-decoration-color: var(--accent);
    text-decoration-thickness: 2px;
    text-underline-offset: 6px;
  }
  .nav a[aria-current="page"]:hover {
    color: var(--primary);
    text-decoration-color: var(--accent);
  }
}

/* Header action buttons */
.header__actions { display: none; align-items: center; gap: 10px; flex-shrink: 0; }
@media (min-width:1080px) { .header__actions { display: flex; } }

.btn--ghost {
  background: transparent;
  border: 2px solid var(--gray-200);
  color: var(--gray-600);
  padding: 0 20px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  border-radius: var(--radius-sm);
  min-height: 46px; height: 46px;
}
.btn--ghost:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(26, 60, 94, 0.04);
}

.header__actions .btn--accent {
  padding: 0 20px;
  font-size: 14px;
  line-height: 1;
  border-radius: 6px;
  min-height: 46px; height: 46px;
}

/* Hamburger */
.menu-toggle {
  display: flex; align-items: center; justify-content: center;
  width: 58px; height: 58px; flex-shrink: 0;
  color: var(--primary);
  border-radius: var(--radius-sm);
  transition: background 0.2s ease, color 0.2s ease;
}
.menu-toggle:hover { background: var(--gray-100); }
.menu-toggle svg {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  display: block;
}
.menu-toggle svg path {
  stroke: currentColor;
  fill: none;
}
@media (min-width:1080px) { .menu-toggle { display: none; } }

/* Dimmed backdrop (injected by main.js) */
.mobile-menu-backdrop {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(13, 26, 42, 0.48);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.32s ease, visibility 0.32s ease;
  pointer-events: none;
}
.mobile-menu-backdrop.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

body.mobile-menu-open {
  overflow: hidden;
  touch-action: none;
}

/* Mobile flyout panel (right) — header stays above backdrop + panel for a usable toggle */
.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(100vw, 360px);
  max-width: 100%;
  z-index: 999;
  display: flex;
  flex-direction: column;
  padding: calc(14px + env(safe-area-inset-top, 0px)) 20px calc(20px + env(safe-area-inset-bottom, 0px)) 24px;
  background: linear-gradient(165deg, #ffffff 0%, #f8fafc 55%, #f1f5f9 100%);
  border-left: 1px solid rgba(26, 60, 94, 0.08);
  box-shadow: -16px 0 48px rgba(13, 26, 42, 0.18);
  border-radius: 18px 0 0 18px;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  transform: translate3d(100%, 0, 0);
  visibility: hidden;
  pointer-events: none;
  transition:
    transform 0.38s cubic-bezier(0.32, 0.72, 0, 1),
    visibility 0.38s step-end;
}
.mobile-menu.open {
  transform: translate3d(0, 0, 0);
  visibility: visible;
  pointer-events: auto;
  transition:
    transform 0.38s cubic-bezier(0.32, 0.72, 0, 1),
    visibility 0s step-start;
}
@media (min-width:1024px) and (max-width:1079px) {
  .mobile-menu {
    padding-top: calc(96px + env(safe-area-inset-top, 0px));
  }
}
@media (max-width:380px) {
  .mobile-menu {
    width: 100%;
    max-width: 100%;
    border-radius: 0;
    border-left: none;
    box-shadow: -6px 0 40px rgba(13, 26, 42, 0.14);
  }
}
@media (min-width:1080px) {
  .mobile-menu {
    display: none !important;
    transform: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }
}

.mobile-menu__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-shrink: 0;
  margin: 0 0 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(26, 60, 94, 0.1);
}
.mobile-menu__brand {
  flex: 1;
  min-width: 0;
  margin: 0;
  padding-bottom: 0;
  border-bottom: none;
}
.mobile-menu__close {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin: -4px -6px 0 0;
  padding: 0;
  border: none;
  border-radius: 12px;
  background: rgba(26, 60, 94, 0.08);
  color: var(--primary);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease;
}
.mobile-menu__close:hover {
  background: rgba(26, 60, 94, 0.14);
  color: var(--gray-800);
}
.mobile-menu__close:active {
  transform: scale(0.94);
}
.mobile-menu__close:focus {
  outline: none;
}
.mobile-menu__close:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.mobile-menu__close svg {
  display: block;
}
.mobile-menu__brand-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: inherit;
  border-radius: 12px;
  padding: 4px;
  margin: -4px;
  transition: background 0.2s ease;
}
.mobile-menu__brand-link:hover {
  background: rgba(26, 60, 94, 0.06);
}
.mobile-menu__brand-logo {
  width: 100%;
  max-width: min(220px, 100%);
  height: auto;
  max-height: 70px;
  object-fit: contain;
  flex-shrink: 0;
  display: block;
}

.mobile-menu > a {
  display: flex;
  align-items: center;
  padding: 14px 16px;
  margin-bottom: 4px;
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--gray-800);
  text-decoration: none;
  border-radius: 12px;
  border: 1px solid transparent;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.mobile-menu > a:hover {
  color: var(--primary);
  background: rgba(26, 60, 94, 0.06);
  border-color: rgba(26, 60, 94, 0.06);
}
.mobile-menu > a:active {
  transform: scale(0.98);
}

/* Topbar shortcuts (Tenders, AKG-Hospital) — last in flyout, after main nav + CTAs */
.mobile-menu__topbar-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 16px 0 4px;
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(26, 60, 94, 0.05);
  border: 1px solid rgba(26, 60, 94, 0.08);
  flex-shrink: 0;
  justify-content: center;
}
.mobile-menu__topbar-links a {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid rgba(26, 60, 94, 0.12);
  background: var(--white);
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.mobile-menu__topbar-links a:hover {
  background: rgba(26, 60, 94, 0.08);
  border-color: rgba(26, 60, 94, 0.18);
  color: var(--gray-800);
}
.mobile-menu__topbar-links a:active {
  transform: scale(0.98);
}

.mobile-menu__buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 8px;
  padding-top: 24px;
  border-top: 1px solid rgba(26, 60, 94, 0.1);
  flex-shrink: 0;
}
.mobile-menu__buttons .btn {
  display: flex; justify-content: center; width: 100%;
}
.mobile-menu__buttons .btn--ghost,
.mobile-menu__buttons .btn--accent {
  min-height: 48px; height: 48px; font-size: 14px; line-height: 1;
  border-radius: 10px;
}
.mobile-menu__buttons .btn--accent {
  box-shadow: 0 4px 14px rgba(212, 32, 39, 0.25);
}

@media (prefers-reduced-motion: reduce) {
  .mobile-menu,
  .mobile-menu-backdrop {
    transition-duration: 0.01ms !important;
  }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  background: linear-gradient(135deg, #EDF2F8 0%, #F4F7FB 40%, #FAFCFE 100%);
  padding: 24px 0 80px;
  overflow: hidden;
}
@media (min-width: 640px) {
  .hero {
    padding: 80px 0;
  }
}
@media (min-width: 1024px) {
  .hero {
    padding-top: 60px;
  }
}

/* Decorative floating circles */
.hero__circle {
  position: absolute; pointer-events: none; z-index: 0;
  opacity: 0; animation: circleIn .9s ease-out forwards;
}
.hero__circle--1 {
  width: 520px; top: -120px; left: -200px;
  animation-delay: .2s;
}
.hero__circle--2 {
  width: 760px; bottom: -300px; right: -260px;
  animation-delay: .4s;
}
.hero__circle--3 {
  width: 420px; top: 60px; right: -60px;
  animation-delay: .6s;
}
.hero__circle--4 {
  width: 160px; bottom: 80px; left: 36%;
  animation-delay: .8s;
}

@keyframes circleIn {
  0%   { opacity: 0; transform: scale(.85) translate(0, 0); }
  100% { opacity: 1; transform: scale(1) translate(0, 0); }
}

/* After page load, subtle float */
.hero__circle--1 { animation: circleIn .9s ease-out .2s forwards, float1 8s ease-in-out 1.2s infinite; }
.hero__circle--2 { animation: circleIn .9s ease-out .4s forwards, float2 10s ease-in-out 1.4s infinite; }
.hero__circle--3 { animation: circleIn .9s ease-out .6s forwards, float3 9s ease-in-out 1.6s infinite; }
.hero__circle--4 { animation: circleIn .9s ease-out .8s forwards, float4 7s ease-in-out 1.8s infinite; }

@keyframes float1 { 0%,100% { transform: translate(0,0); } 50% { transform: translate(12px, -10px); } }
@keyframes float2 { 0%,100% { transform: translate(0,0); } 50% { transform: translate(-15px, 12px); } }
@keyframes float3 { 0%,100% { transform: translate(0,0); } 50% { transform: translate(10px, 14px); } }
@keyframes float4 { 0%,100% { transform: translate(0,0); } 50% { transform: translate(-8px, -12px); } }

@media (max-width:767px) {
  .hero__circle--1 { width: 260px; top: -80px; left: -100px; }
  .hero__circle--2 { width: 380px; bottom: -160px; right: -120px; }
  .hero__circle--3 { width: 200px; top: 20px; right: -40px; }
  .hero__circle--4 { width: 100px; }
}

/* ---- Shared decorative circles (page-hero, footer, sections; injected via main.js) ---- */
.deco-circles-wrap {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
/* z-index 0 (not -1): negative z sits behind section background and is invisible */
.page-hero > .deco-circles-wrap,
.cta-banner > .deco-circles-wrap {
  z-index: 0;
}
.footer > .deco-circles-wrap {
  z-index: 0;
  /* Softer than page-hero / CTA — circles stay atmospheric */
  opacity: 0.28;
}
.footer > *:not(.deco-circles-wrap) {
  position: relative;
  z-index: 1;
}

.deco-circle {
  position: absolute;
  pointer-events: none;
  z-index: 0;
  opacity: 0;
  animation: circleIn .9s ease-out forwards;
}
/* Slightly stronger read on dark gradients (page hero, CTA strip, footer) */
.deco-circle--on-dark {
  filter: brightness(2.6) saturate(1.2);
}

/* Footer: one circle reads as cool blue on dark gradient */
.footer .deco-circle--footer-blue.deco-circle--on-dark {
  filter: brightness(2.8) saturate(2.2) hue-rotate(12deg);
}

/* Corner only (all injected deco) — partially off-crop; width often overridden inline */
.deco-circle--corner-tl {
  width: 300px;
  top: -100px;
  left: -100px;
  right: auto;
  bottom: auto;
  animation: circleIn .9s ease-out .15s forwards, float1 8s ease-in-out 1.1s infinite;
}
.deco-circle--corner-tr {
  width: 280px;
  top: -88px;
  right: -92px;
  left: auto;
  bottom: auto;
  animation: circleIn .9s ease-out .2s forwards, float3 9s ease-in-out 1.15s infinite;
}
.deco-circle--corner-bl {
  width: 280px;
  bottom: -110px;
  left: -95px;
  top: auto;
  right: auto;
  animation: circleIn .9s ease-out .25s forwards, float4 7s ease-in-out 1.2s infinite;
}
.deco-circle--corner-br {
  width: 340px;
  bottom: -118px;
  right: -102px;
  top: auto;
  left: auto;
  animation: circleIn .9s ease-out .22s forwards, float2 10s ease-in-out 1.2s infinite;
}

@media (max-width: 767px) {
  .deco-circle--corner-tl { top: -72px; left: -72px; }
  .deco-circle--corner-tr { top: -58px; right: -68px; }
  .deco-circle--corner-bl { bottom: -82px; left: -68px; }
  .deco-circle--corner-br { bottom: -88px; right: -72px; }
}

/* Light bands: make low-opacity SVGs slightly easier to see */
.services-strip .deco-circle:not(.deco-circle--on-dark),
.doctors .deco-circle:not(.deco-circle--on-dark),
.departments .deco-circle:not(.deco-circle--on-dark),
.about .deco-circle:not(.deco-circle--on-dark),
body:not(.page-home) section.page-content .deco-circle:not(.deco-circle--on-dark) {
  filter: brightness(1.25) saturate(1.2);
}

/* Grid layout */
.hero__grid {
  display: grid; gap: 40px; align-items: start;
  position: relative; z-index: 1;
}
@media (min-width:1024px) {
  .hero__grid { grid-template-columns: 1fr 1.15fr; gap: 52px; align-items: center; }
}

/* --- LEFT COLUMN --- */
.hero__left { max-width: 520px; }

.hero__label {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .875rem; font-weight: 500; color: var(--gray-600);
  margin-bottom: 18px;
}
.hero__label-icon {
  width: 28px; height: 28px; border-radius: 50%;
  background: rgba(198,59,59,.1);
  display: inline-flex; align-items: center; justify-content: center;
}
.hero__label-icon svg { width: 14px; height: 14px; stroke: var(--accent); }

.hero__title {
  font-size: 2.25rem; font-weight: 800; color: var(--gray-800);
  line-height: 1.12;
  letter-spacing: -0.02em;
  overflow-wrap: anywhere;
  word-break: break-word;
}
/* Stack lines in one grid cell so row height = tallest line (avoids overlap on long/wrapped copy) */
.hero__title-slot {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  min-width: 0;
}
.hero__title-line {
  grid-column: 1;
  grid-row: 1;
  width: 100%;
  min-width: 0;
  position: relative;
  margin: 0;
  opacity: 0;
  transform: translateY(0.4rem);
  transition: opacity 0.65s ease, transform 0.65s ease;
  pointer-events: none;
}
.hero__title-line.is-visible {
  opacity: 1;
  transform: translateY(0);
  z-index: 1;
}
@media (prefers-reduced-motion: reduce) {
  .hero__title-line {
    transition-duration: 0.01ms;
    transform: none;
  }
  .hero__title-line:not(.is-visible) {
    visibility: hidden;
  }
}
@media (min-width:640px) { .hero__title { font-size: 3.75rem; } }
@media (min-width:1024px) { .hero__title { font-size: 4.25rem; } }

.hero__desc {
  margin-top: 18px; font-size: .9375rem; color: var(--gray-500);
  line-height: 1.7; max-width: min(460px, 100%);
}
@media (min-width: 480px) {
  .hero__desc { max-width: min(36rem, var(--measure-prose)); }
}

.hero__buttons { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero__buttons .btn--accent { border-radius: 8px; }
.hero__buttons .btn--outline { border-radius: 8px; }

/* Trust badges */
.hero__badges {
  display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px;
}
.hero__badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .875rem; font-weight: 500; color: var(--gray-700);
  background: var(--white); border: 1px solid var(--gray-200);
  border-radius: 100px; padding: 6px 14px 6px 8px;
}
.hero__badge svg { width: 16px; height: 16px; flex-shrink: 0; }

/* Stats row */
.hero__stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
  margin-top: 32px;
}
.hero__stat {
  background: var(--white); border: 1px solid var(--gray-200);
  border-radius: 10px; padding: 20px 16px;
  position: relative;
  overflow: hidden;
}
.hero__stat-num {
  display: block; font-size: 1.625rem; font-weight: 800;
  color: var(--gray-800); line-height: 1.1;
}
.hero__stat-label {
  display: block; font-size: .875rem; color: var(--gray-500);
  margin-top: 4px; line-height: 1.35;
}

/* --- RIGHT COLUMN --- */
.hero__right { position: relative; }

.hero__img-label {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .875rem; color: var(--gray-700);
  background: rgba(255,255,255,.85); backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 8px 16px 8px 8px;
  position: absolute; top: -18px; left: 12px;
  z-index: 3; border-radius: 30px;
  box-shadow: 0 4px 16px rgba(0,0,0,.08);
  max-width: calc(100% - 24px);
}
@media (min-width:1024px) {
  .hero__img-label { left: -20px; top: -20px; }
}
.hero__img-label svg {
  flex-shrink: 0;
  width: 30px; height: 30px; padding: 6px;
  background: var(--primary-dark); border-radius: 50%;
  stroke: var(--white);
}
.hero__img-label strong { font-weight: 600; white-space: nowrap; }

.hero__img-wrap {
  position: relative;
  background: var(--white);
  border-radius: 20px;
  padding: 10px;
  box-shadow: var(--shadow-lg);
  margin-top: 20px;
}
.hero__img {
  width: 100%; display: block;
  object-fit: cover;
  aspect-ratio: 4 / 3;
  max-height: min(800px, 90vh);
  border-radius: 14px;
}

/* Contact overlay card — positioned bottom-left, overlapping outside the image frame */
.hero__contact-card {
  position: relative; bottom: auto; left: auto;
  background: var(--white); border-radius: 14px;
  padding: 18px 22px; display: flex; align-items: flex-start; gap: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,.1);
  z-index: 2; margin-top: 16px;
  overflow: hidden;
}
@media (min-width:1024px) {
  .hero__contact-card { position: absolute; bottom: -28px; left: -20px; margin-top: 0; }
}
.hero__contact-icon {
  width: 32px; height: 32px; border-radius: 50%;
  background: rgba(198,59,59,.08);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  margin-top: 2px;
}
.hero__contact-icon svg { width: 16px; height: 16px; }
.hero__contact-label {
  display: block; font-size: .875rem; font-weight: 600;
  color: var(--gray-600); text-transform: uppercase; letter-spacing: .5px;
  margin-bottom: 2px;
}
.hero__contact-num {
  display: block; font-size: .875rem; font-weight: 700;
  color: var(--gray-800); line-height: 1.45;
}

/* Legacy card */
.hero__right { padding-bottom: 40px; }
.hero__legacy {
  position: absolute; bottom: -10px; right: -20px;
  background: var(--primary-dark); color: var(--white);
  border-radius: 14px; padding: 24px 28px;
  max-width: 250px; box-shadow: var(--shadow-lg);
  z-index: 2;
  overflow: hidden;
}
.hero__legacy::after {
  content: '';
  position: absolute;
  inset: -45%;
  background: linear-gradient(
    100deg,
    transparent 40%,
    rgba(255, 255, 255, 0.05) 50%,
    transparent 60%
  );
  animation: footer-app-shimmer 14s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
  opacity: 0.92;
}
.hero__legacy > * {
  position: relative;
  z-index: 1;
}
@media (max-width:1023px) {
  .hero__grid {
    display: flex;
    flex-direction: column;
    gap: 26px;
    align-items: stretch;
  }
  .hero__right {
    order: -1;
    width: 100%;
    padding-bottom: 0;
  }
  .hero__left {
    max-width: none;
  }
  .hero__title {
    font-size: clamp(1.875rem, 1.1rem + 3.8vw, 2.75rem);
    line-height: 1.12;
  }
  .hero__desc {
    margin-top: 14px;
    font-size: 1rem;
    max-width: none;
  }
  .hero__buttons {
    margin-top: 20px;
  }
  .hero__badges {
    margin-top: 18px;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 10px;
    padding-bottom: 8px;
    margin-inline: calc(-1 * var(--px));
    padding-inline: var(--px);
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .hero__badges::-webkit-scrollbar {
    display: none;
  }
  .hero__badge {
    flex: 0 0 auto;
    scroll-snap-align: start;
    font-size: 0.8125rem;
    padding: 8px 12px 8px 8px;
  }
  .hero__stats {
    margin-top: 22px;
    gap: 10px;
  }
  .hero__stat {
    padding: 14px 10px;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(26, 60, 94, 0.06);
  }
  .hero__stat-num {
    font-size: 1.35rem;
  }
  .hero__stat-label {
    font-size: 0.75rem;
    line-height: 1.3;
  }
  .hero__img-wrap {
    margin-top: 0;
    padding: 8px;
    border-radius: 22px;
    box-shadow: 0 16px 44px rgba(13, 26, 42, 0.11), 0 2px 8px rgba(13, 26, 42, 0.05);
  }
  .hero__img {
    aspect-ratio: 8 / 10;
    max-height: min(620px, 78vh);
    border-radius: var(--radius-card);
  }
  .hero__img-label {
    position: relative;
    top: auto;
    left: auto;
    max-width: 100%;
    width: 100%;
    margin: 0 0 12px;
    border-radius: 14px;
    padding: 10px 14px 10px 10px;
  }
  .hero__img-label strong {
    white-space: normal;
    line-height: 1.35;
    font-size: 0.8125rem;
  }
  .hero__contact-card {
    margin-top: 14px;
    border-radius: var(--radius-card);
    padding: 16px 18px;
    box-shadow: 0 8px 28px rgba(13, 26, 42, 0.1);
  }
  .hero__legacy {
    position: relative;
    bottom: auto;
    right: auto;
    margin-top: 20px;
    max-width: 100%;
    border-radius: 18px;
    padding: 20px 22px;
    background: linear-gradient(145deg, var(--primary-dark) 0%, #142a45 100%);
  }
}

@media (max-width: 639px) {
  /* Banner flush under header; keep bottom spacing for content below */
  .hero {
    padding: 0 0 72px;
  }

  /* Full-bleed banner image: no white frame, break out of .container */
  .hero__img-wrap {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    background: transparent;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .hero__img {
    border-radius: 0;
    max-height: min(520px, 70vh);
  }

  /* Badge on image top-left (does not push image down) */
  .hero__img-label {
    position: absolute;
    top: var(--px);
    left: var(--px);
    right: auto;
    margin: 0;
    width: max-content;
    max-width: calc(100% - 2 * var(--px));
  }

  /* Contact card overlaps bottom of banner image */
  .hero__contact-card {
    position: absolute;
    left: var(--px);
    right: auto;
    bottom: 18px;
    margin: 0;
    box-shadow: 0 10px 32px rgba(13, 26, 42, 0.18);
  }

  .hero__buttons {
    flex-direction: column;
    width: 100%;
  }
  .hero__buttons .btn {
    width: 100%;
    justify-content: center;
    min-height: 48px;
  }
}
.hero__legacy-label {
  display: block; font-size: .875rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 1px;
  color: rgba(255,255,255,.75); margin-bottom: 4px;
}
.hero__legacy-num {
  display: block; font-size: 2rem; font-weight: 800;
  line-height: 1.15; margin-bottom: 10px;
}
.hero__legacy p {
  font-size: .875rem; color: rgba(255,255,255,.85); line-height: 1.55;
}

/* ============================================================
   SERVICES STRIP
   ============================================================ */
.services-strip {
  position: relative;
  padding: var(--section-y) 0;
  background: var(--white);
  overflow: hidden;
}
.services-strip > .container {
  position: relative;
  z-index: 1;
}
.services-strip > .deco-circles-wrap {
  z-index: 0;
}

.services-strip__grid { gap: 0; margin-left: -40px !important; margin-right: -40px !important;}
@media (min-width:640px) {
  .services-strip__grid { display: grid; grid-template-columns: repeat(2,1fr); overflow: visible; margin-left: -20px !important; margin-right: -20px !important;}
}
@media (min-width:1024px) { .services-strip__grid { grid-template-columns: repeat(4,1fr); margin-left: -30px !important; margin-right: -30px !important;} }

.service-card {
  padding: 0 28px;
  position: relative;
  overflow: hidden;
  flex: 0 0 75%; scroll-snap-align: start;
}
@media (min-width:640px) { .service-card { flex: none; } }

/* Vertical divider between cards on desktop */
@media (min-width:1024px) {
  .service-card + .service-card::before {
    content: '';
    position: absolute; left: 0; top: 20%; bottom: 20%;
    width: 1px; background: var(--gray-200);
    z-index: 2;
  }
}
/* Horizontal divider between rows on tablet */
@media (min-width:640px) and (max-width:1023px) {
  .service-card:nth-child(n+3) { border-top: 1px solid var(--gray-200); }
  .service-card:nth-child(even)::before {
    content: '';
    position: absolute; left: 0; top: 20%; bottom: 20%;
    width: 1px; background: var(--gray-200);
    z-index: 2;
  }
}

.service-card__icon {
  display: flex; align-items: center; justify-content: flex-start;
  margin-bottom: 20px;
  background: none;
  border: none;
  padding: 0;
  border-radius: 0;
}
.service-card__icon img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  display: block;
}
.service-card h3 { font-size: 1rem; font-weight: 700; color: var(--gray-800); }
.service-card p { margin-top: 10px; font-size: .875rem; color: var(--gray-600); line-height: 1.65; }

/* ============================================================
   ABOUT (two-column with image)
   ============================================================ */
.about {
  position: relative;
  overflow: hidden;
  padding: var(--section-y) 0;
  background: var(--surface-band);
}
.about > .container {
  position: relative;
  z-index: 1;
}
.about > .deco-circles-wrap {
  z-index: 0;
}

.about__grid {
  display: grid; gap: 40px; align-items: center;
}
@media (min-width:1024px) {
  .about__grid {
    grid-template-columns: 1.15fr 1fr;
    gap: 56px;
    align-items: stretch;
  }
}

/* About title inherits .section-heading but adds tighter letter-spacing */
.about__title {
  font-size: 2rem; font-weight: 800; color: var(--primary);
  line-height: 1.2; letter-spacing: -.02em;
}
@media (min-width:768px) { .about__title { font-size: 2.5rem; } }
@media (min-width:1024px) { .about__title { font-size: 2.75rem; } }

.about__desc {
  margin-top: 18px; font-size: .9375rem; color: var(--gray-500);
  line-height: 1.7; max-width: min(540px, var(--measure-prose));
}

/* White card wrapping stats + features */
.about__card-wrap {
  background: var(--white);
  border-radius: var(--radius-card);
  padding: 20px 16px 24px;
  margin-top: 24px;
  box-shadow: 0 2px 12px rgba(0,0,0,.05);
  position: relative;
  overflow: hidden;
}
@media (min-width:640px) { .about__card-wrap { padding: 28px 28px 32px; margin-top: 32px; } }

/* Stat strip: Mission / Location / Focus */
.about__stats {
  display: grid; grid-template-columns: 1fr;
  gap: 0;
}
@media (min-width:640px) { .about__stats { grid-template-columns: repeat(3, 1fr); } }
.about__stat-item {
  padding: 12px 0; position: relative;
}
@media (min-width:640px) { .about__stat-item { padding: 16px 20px 16px 0; } }
.about__stat-item + .about__stat-item {
  border-top: 1px solid var(--gray-100);
}
@media (min-width:640px) {
  .about__stat-item + .about__stat-item {
    padding-left: 20px; border-top: none;
  }
  .about__stat-item + .about__stat-item::before {
    content: ''; position: absolute; left: 0; top: 10%; bottom: 10%;
    width: 1px; background: var(--gray-200);
  }
}
.about__stat-tag {
  display: block; font-size: .875rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .5px; color: var(--gray-500);
  margin-bottom: 4px;
}
.about__stat-item strong {
  font-size: .9375rem; font-weight: 700; color: var(--gray-800);
  line-height: 1.35;
}

/* Feature cards 2x2 */
.about__features {
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px;
  margin-top: 24px; padding-top: 24px;
  border-top: 1px solid var(--gray-100);
}
@media (max-width:639px) { .about__features { grid-template-columns: 1fr; } }

.about__feature {
  display: flex; gap: 14px; align-items: flex-start;
}
.about__feature-icon {
  display: flex; align-items: center; justify-content: flex-start;
  flex-shrink: 0;
  background: none;
  border: none;
  padding: 0;
  border-radius: 0;
}
.about__feature-icon img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  display: block;
}
.about__feature h4 {
  font-size: .875rem; font-weight: 700; color: var(--gray-800);
  margin-bottom: 4px;
}
.about__feature p {
  font-size: .875rem; color: var(--gray-600); line-height: 1.6;
}

/* Footnote */
.about__footnote {
  margin-top: 36px; font-size: .875rem; color: var(--gray-500);
  line-height: 1.65; max-width: 520px;
}

/* RIGHT: Image block */
.about__right { position: relative; }

.about__img-wrap {
  position: relative;
  background: var(--white);
  border-radius: 18px; padding: 8px;
  box-shadow: var(--shadow-lg);
}
.about__img {
  width: 100%; display: block;
  object-fit: cover; border-radius: 14px;
}

/* Tablet & mobile: portrait frame (width : height ≈ 3:4) */
@media (max-width: 1023px) {
  .about__img-wrap {
    display: flex;
    flex-direction: column;
    width: 100%;
    aspect-ratio: 3 / 4;
  }
  .about__img {
    flex: 1 1 0;
    min-height: 0;
    max-height: none;
  }
}

/* Desktop: image block uses ~82.5% of column height (80–85% band), vertically centered */
@media (min-width: 1024px) {
  .about__right {
    display: flex;
    flex-direction: column;
    min-height: 0;
    justify-content: center;
    align-items: stretch;
  }
  .about__img-wrap {
    flex: 0 0 auto;
    width: 100%;
    height: 75%;
    max-height: 75%;
    min-height: 260px;
    display: flex;
    flex-direction: column;
  }
  .about__img {
    flex: 1 1 0;
    min-height: 0;
    width: 100%;
    max-height: none;
    align-self: stretch;
    object-fit: cover;
  }
}

/* Overlay cards — white frosted glass */
.about__overlay {
  position: absolute;
  background: rgba(255, 255, 255, .85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: 14px; padding: 18px 20px;
  box-shadow: 0 8px 28px rgba(0,0,0,.1); z-index: 2; max-width: 180px;
}
@media (min-width:640px) { .about__overlay { max-width: 220px; padding: 22px 24px; } }
.about__overlay p {
  font-size: .875rem; color: var(--gray-600); line-height: 1.55;
  margin-top: 0;
}

.about__overlay--top {
  top: 16px; left: 16px;
}
.about__overlay-num {
  display: block; font-size: 1.75rem; font-weight: 800;
  line-height: 1.15; margin-bottom: 8px; color: var(--primary);
}

.about__overlay--bottom {
  bottom: -16px; right: -8px;
}
@media (max-width:1023px) {
  .about__overlay--bottom { bottom: -12px; right: 8px; }
}
.about__overlay-accent {
  display: block; font-size: 1.625rem; font-weight: 800;
  color: var(--accent); line-height: 1.15; margin-bottom: 8px;
}

/* ============================================================
   DOCTORS
   ============================================================ */
.doctors {
  position: relative;
  padding: var(--section-y) 0;
  background: var(--white);
  overflow: hidden;
}
.doctors > .container {
  position: relative;
  z-index: 1;
}
.doctors > .deco-circles-wrap {
  z-index: 0;
}

.doctors__slider-wrap {
  position: relative;
}

.doctors__slider {
  display: flex; gap: 24px;
  overflow-x: auto; scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 12px 4px 16px;
  margin: -12px -4px -16px;
}
.doctors__slider::-webkit-scrollbar { display: none; }

.doctors__arrow {
  position: absolute; top: 50%; transform: translateY(-70%);
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--white); border: 1px solid var(--gray-200);
  color: var(--primary); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 10px rgba(0,0,0,.08);
  transition: background .2s, box-shadow .2s;
  z-index: 2;
}
.doctors__arrow:hover {
  background: var(--primary); color: var(--white);
  box-shadow: 0 4px 16px rgba(0,0,0,.15);
}
.doctors__arrow--prev { left: -22px; }
.doctors__arrow--next { right: -22px; }
@media (max-width:767px) {
  .doctors__arrow--prev , .doctors__arrow--next { 
    display: none;
  }
}

/* Homepage doctors: native horizontal scroll like .scroll-row (must follow .doctors__slider so padding wins) */
@media (max-width: 639px) {
  /* overflow:hidden on .doctors was clipping the slider’s negative margin (departments has no hidden overflow) */
  .page-home .doctors {
    overflow: visible;
  }
  .page-home .doctors__slider-wrap {
    margin-inline: 0;
    padding-inline: 0;
  }
  .page-home .doctors__slider.scroll-row {
    gap: 16px;
    margin: 0 -20px;
    padding: 0 20px 10px;
    scroll-padding-inline: 20px;
  }
  .page-home .doctors__slider .doctor-card {
    flex: 0 0 72%;
    max-width: 300px;
  }
}

.doctor-card {
  background: var(--white);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
  border: 1px solid var(--gray-100);
  transition: box-shadow .3s ease;
  flex: 0 0 calc(50% - 12px);
  scroll-snap-align: start;
}
@media (min-width:768px) { .doctor-card { flex: 0 0 calc(25% - 18px); } }

.doctor-card:hover { box-shadow: 0 6px 24px rgba(0,0,0,.1); }

.doctor-card img {
  width: 100%; aspect-ratio: 300/240; object-fit: cover;
  display: block;
  transition: transform .4s ease;
}
.doctor-card:hover img { transform: scale(1.03); }

.doctor-card__info {
  padding: 18px 20px 22px;
}
.doctor-card__info h3 {
  font-size: .9375rem; font-weight: 700; color: var(--primary);
  line-height: 1.3;
}
.doctor-card__info p {
  font-size: .875rem; color: var(--accent); margin-top: 4px;
  letter-spacing: .02em; line-height: 1.4;
}
@media (min-width:768px) {
  .doctor-card__info { padding: 22px 24px 28px; }
  .doctor-card__info h3 { font-size: 1rem; }
}

/* Doctors listing grid (reuses .doctor-card from homepage) */
.doctors-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.doctors-grid .doctor-card {
  flex: none;
}
@media (min-width:768px) {
  .doctors-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width:1024px) {
  .doctors-grid { grid-template-columns: repeat(4, 1fr); }
}

/* ============================================================
   DEPARTMENTS GRID
   ============================================================ */
.departments {
  position: relative;
  overflow: hidden;
  padding: var(--section-y) 0;
  background: var(--surface-inner-gradient);
}
.departments > .container {
  position: relative;
  z-index: 1;
}
.departments > .deco-circles-wrap {
  z-index: 0;
}

.departments__header {
  display: flex; flex-direction: column; gap: 16px; margin-bottom: 32px;
}
@media (min-width:640px) {
  .departments__header { flex-direction: row; align-items: flex-end; justify-content: space-between; }
}
@media (min-width:768px) { .departments__header { margin-bottom: 40px; } }

@media (min-width:1024px) { .departments__header .section-heading { max-width: 560px; } }

.departments__view-all {
  flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--primary); color: var(--white);
  border-radius: 10px; padding: 0 28px; font-weight: 600;
  font-size: 14px; line-height: 1;
  min-height: 46px; height: 46px; box-sizing: border-box;
  white-space: nowrap;
  border: 2px solid var(--primary);
  transition: background .2s, color .2s;
}
.departments__view-all:hover {
  background: transparent; color: var(--primary);
}

.departments__grid { padding-bottom: 4px; }
@media (min-width:640px) {
  .departments__grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 20px; overflow: visible; }
}
@media (min-width:1024px) { .departments__grid { grid-template-columns: repeat(4,1fr); } }

.dept-card {
  display: flex; flex-direction: column;
  flex: 0 0 72%; scroll-snap-align: start;
}
@media (min-width:640px) { .dept-card { flex: none; } }

.dept-card__num {
  font-size: .875rem; font-weight: 700; color: var(--accent);
  margin-bottom: 16px; display: block;
}

.dept-card__icon {
  display: flex; align-items: center; justify-content: flex-start;
  margin-bottom: 20px;
  background: none;
  border: none;
  padding: 0;
  border-radius: 0;
}
.dept-card__icon svg { width: 44px; height: 44px; }
.dept-card__icon img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  display: block;
}

.dept-card h3 { font-size: 1rem; font-weight: 700; color: var(--primary); }
.dept-card p {
  margin-top: 8px; font-size: .875rem; color: var(--gray-600);
  line-height: 1.55; flex: 1;
}
.dept-card a {
  display: inline-block; margin-top: 16px;
  font-size: .875rem; font-weight: 700; color: var(--accent);
  text-decoration: none; transition: color .2s ease;
}
.dept-card a:hover { color: var(--accent-hover); }

/* ============================================================
   EDUCATION
   ============================================================ */
.education {
  padding: var(--section-y) 0;
  background: var(--surface-inner-gradient);
}

@media (min-width:768px) {
  .education__grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; overflow: visible; }
}

.edu-card {
  display: flex; flex-direction: column;
  flex: 0 0 80%; scroll-snap-align: start;
}
@media (min-width:768px) { .edu-card { flex: none; } }

.edu-card__logo {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 20px;
}
.edu-card__logo img {
  width: 76px; height: 76px; border-radius: 50%;
  object-fit: contain;
  border: 1px solid var(--gray-100);
}
.edu-card__logo span {
  font-size: .875rem; font-weight: 600; color: var(--gray-600);
}

.edu-card h3 {
  font-size: 1rem; font-weight: 700; color: var(--primary);
  line-height: 1.4; flex: 1;
}

.edu-card__code {
  display: inline-block; margin-top: 14px;
  font-size: .875rem; font-weight: 700; color: var(--accent);
  letter-spacing: .02em;
}

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testimonials {
  padding: var(--section-y) 0;
  background: var(--surface-inner-gradient);
}

.testimonials__layout {
  display: flex; flex-direction: column; gap: 32px;
}
@media (min-width:1024px) {
  .testimonials__layout { flex-direction: row; align-items: flex-start; gap: 56px; }
}

.testimonials__sidebar { flex-shrink: 0; }
@media (min-width:1024px) { .testimonials__sidebar { max-width: 300px; padding-top: 8px; } }

.testimonials__sidebar .btn { margin-top: 28px; }

.testimonials__cards { flex: 1; }
@media (min-width:640px) {
  .testimonials__cards { display: grid; grid-template-columns: repeat(2,1fr); gap: 20px; overflow: visible; }
}

.test-card {
  display: flex; flex-direction: column;
  flex: 0 0 80%; scroll-snap-align: start;
}
@media (min-width:640px) { .test-card { flex: none; } }
.test-card blockquote {
  font-size: .9375rem; color: var(--gray-600);
  line-height: 1.65; flex: 1;
  font-style: normal;
}
.test-card__author {
  display: block; margin-top: 20px;
  font-size: .875rem; font-weight: 700; color: var(--primary);
}

/* ============================================================
   GALLERY (Hospital Facilities)
   ============================================================ */
.gallery {
  padding: var(--section-y) 0;
  background: var(--surface-inner-gradient);
}

@media (min-width:768px) {
  .gallery__grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; overflow: visible; }
}

.gallery__item {
  position: relative;
  background: var(--white); border-radius: var(--radius-card);
  overflow: hidden; padding: 10px;
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
  transition: box-shadow .3s ease, transform .3s ease;
  flex: 0 0 72%; scroll-snap-align: start;
}
@media (min-width:768px) { .gallery__item { flex: none; } }
.gallery__item:hover {
  box-shadow: 0 8px 28px rgba(0,0,0,.1);
  transform: translateY(-2px);
}
.gallery__item img {
  width: 100%; aspect-ratio: 300/240; object-fit: cover;
  display: block; border-radius: 10px;
  transition: transform .4s ease;
}
.gallery__item:hover img { transform: scale(1.03); }

/* ============================================================
   NEWS
   ============================================================ */
.news {
  padding: var(--section-y) 0;
  background: var(--surface-band);
}

@media (min-width:768px) {
  .news__grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; overflow: visible; }
}

.news-card {
  flex: 0 0 80%; scroll-snap-align: start;
}
@media (min-width:768px) { .news-card { flex: none; } }

.news-card__date {
  display: block; font-size: .875rem; font-weight: 600;
  color: var(--accent); margin-bottom: 16px;
}

.news-card h3 {
  font-size: 1rem; font-weight: 700; color: var(--primary);
  line-height: 1.45;
}

/* ============================================================
   CTA BANNER
   ============================================================ */
.cta-section {
  padding: 48px 0;
  background: linear-gradient(135deg, #EDF2F8 0%, #F4F7FB 40%, #FAFCFE 100%);
}
@media (min-width:768px) { .cta-section { padding: 64px 0; } }
@media (min-width:1024px) { .cta-section { padding: 80px 0; } }

.cta-banner {
  position: relative;
  overflow: hidden;
  contain: paint;
  isolation: isolate;
  background: linear-gradient(135deg, #1A2E44 0%, #243b55 60%, #1a3350 100%);
  border-radius: var(--radius-card);
  padding: 32px 24px;
  display: flex; flex-direction: column; gap: 24px;
  align-items: flex-start;
}
/* Sheen sized to banner + small drift — stays inside rounded clip */
.cta-banner::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: -10%;
  right: -10%;
  background: linear-gradient(
    100deg,
    transparent 40%,
    rgba(255, 255, 255, 0.04) 50%,
    transparent 60%
  );
  animation: banner-sheen-contained 14s ease-in-out infinite;
  pointer-events: none;
  z-index: 1;
  opacity: 0.9;
}
.cta-banner__content,
.cta-banner__btn {
  position: relative;
  z-index: 2;
}
@media (min-width:640px) {
  .cta-banner {
    border-radius: 20px;
    flex-direction: row; align-items: center;
    justify-content: space-between;
    padding: 44px 48px;
  }
}

.cta-banner__content {
  flex: 1;
  min-width: 0;
}

.cta-banner h2 {
  font-size: 1.375rem; font-weight: 800; color: var(--white);
  line-height: 1.3;
  overflow-wrap: anywhere;
  word-break: break-word;
}
@media (min-width:768px) { .cta-banner h2 { font-size: 1.625rem; } }

.cta-banner p {
  margin-top: 10px; color: rgba(255,255,255,.7);
  font-size: .875rem; line-height: 1.6; max-width: 520px;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.cta-banner__btn {
  flex-shrink: 0; background: var(--accent); color: var(--white);
  border-radius: 10px; padding: 0 32px;
  font-weight: 700; font-size: 14px; line-height: 1;
  white-space: nowrap;
  min-height: 46px; height: 46px; box-sizing: border-box;
  transition: background .2s ease;
}
.cta-banner__btn:hover { background: var(--accent-hover); }

/* High-attention CTA (glow, full-width tap on small screens) — gallery video, dept booking, etc. */
.cta-banner--prominent .cta-banner__btn {
  box-shadow: 0 4px 22px rgba(212, 32, 39, 0.38);
}
.cta-banner--prominent .cta-banner__btn:hover {
  box-shadow: 0 6px 28px rgba(212, 32, 39, 0.45);
}
@media (max-width: 639px) {
  .cta-banner--prominent {
    align-items: stretch;
  }
  .cta-banner--prominent .cta-banner__btn {
    justify-content: center;
    min-height: 50px;
    height: auto;
    padding-top: 14px;
    padding-bottom: 14px;
  }
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: linear-gradient(180deg, #0d1a2a 0%, #0f1e2e 100%);
  color: var(--white); padding-top: 0px;
  position: relative;
  overflow: hidden;
}

/* Homepage: contact ticker is the first row of the footer (not a floating card above it) */
.page-home .footer__ticker.live-marquee--compact {
  margin-bottom: 0;
  width: 100%;
  padding: 28px 0 22px;
  background: rgba(0, 0, 0, 0.22);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
@media (min-width: 640px) {
  .page-home .footer__ticker.live-marquee--compact {
    padding: 32px 0 26px;
  }
}
.page-home .footer__ticker .live-marquee__inner {
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  padding: 0 20px;
}
@media (min-width: 640px) {
  .page-home .footer__ticker .live-marquee__inner {
    padding: 0 20px;
  }
}
.page-home .footer__ticker .live-marquee__item {
  color: rgba(255, 255, 255, 0.82);
}
.page-home .footer__ticker .live-marquee__sep {
  color: rgba(212, 32, 39, 0.65);
  opacity: 0.9;
}
.page-home .footer__ticker .live-marquee__clock-pill {
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}

/* Breathing room above “Book tokens” app CTA (after ticker on home, below main on inner pages) */
.footer > .container:has(> .footer__app-bar) {
  padding-top: 24px;
}
@media (min-width: 640px) {
  .footer > .container:has(> .footer__app-bar) {
    padding-top: 50px;
  }
}

/* App download bar */
.footer__app-bar {
  display: flex; flex-direction: column; gap: 20px;
  align-items: flex-start;
  background: linear-gradient(135deg, rgba(212,32,39,.12) 0%, rgba(26,60,94,.2) 100%);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius-card); padding: 28px 24px;
  position: relative; overflow: hidden;
}
.footer__app-bar::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--accent);
  border-radius: 4px 0 0 4px;
  z-index: 2;
}
.footer__app-bar::after {
  content: '';
  position: absolute;
  inset: -50%;
  background: linear-gradient(
    100deg,
    transparent 40%,
    rgba(255, 255, 255, 0.05) 50%,
    transparent 60%
  );
  animation: footer-app-shimmer 12s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}
/* Subtle horizontal sheen (.footer__app-bar, .topbar, .hero__legacy) */
@keyframes footer-app-shimmer {
  0%, 100% { transform: translateX(-20%) translateY(0); }
  50% { transform: translateX(15%) translateY(0); }
}

/* Narrow drift only — layer stays near banner box (avoids overflow past .page-hero / .cta-banner) */
@keyframes banner-sheen-contained {
  0%, 100% { transform: translate3d(-4%, 0, 0); }
  50% { transform: translate3d(4%, 0, 0); }
}
.footer__app-bar > * {
  position: relative;
  z-index: 1;
}
@media (min-width:640px) {
  .footer__app-bar {
    border-radius: 20px;
    flex-direction: row; align-items: center;
    justify-content: space-between; padding: 32px 40px 32px 44px;
  }
}
.footer__app-bar-icon {
  width: 52px; height: 52px; border-radius: 14px;
  background: rgba(255,255,255,.08);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; color: var(--accent);
}
@media (max-width:639px) { .footer__app-bar-icon { display: none; } }
.footer__app-bar-text {
  flex: 1;
  min-width: 0;
}
.footer__app-bar h3 {
  font-size: 1.25rem; font-weight: 800; color: var(--white);
  line-height: 1.3;
  overflow-wrap: anywhere;
  word-break: break-word;
}
@media (min-width:768px) { .footer__app-bar h3 { font-size: 1.375rem; } }
.footer__app-bar p {
  margin-top: 6px; font-size: .875rem; color: rgba(255,255,255,.55);
  line-height: 1.5;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.footer__app-meta {
  margin-top: 10px;
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.42);
}
.footer__app-btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  background: var(--accent); color: var(--white);
  padding: 0 28px; border-radius: 10px;
  font-weight: 700; font-size: 14px; line-height: 1;
  white-space: nowrap;
  min-height: 46px; height: 46px; box-sizing: border-box;
  text-decoration: none;
  transition: background .2s, transform .2s, box-shadow .2s;
}
.footer__app-btn:hover {
  background: var(--accent-hover); transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(212,32,39,.3);
}

/* Footer grid */
.footer__grid {
  padding-top: 48px; padding-bottom: 40px;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px;
  border-top: 1px solid rgba(255,255,255,.06);
  margin-top: 48px;
}
.footer__grid > .footer__brand,
.footer__grid > .footer__contact-col {
  grid-column: 1 / -1;
}
@media (min-width:640px) {
  .footer__grid { padding-top: 56px; padding-bottom: 48px; gap: 32px; margin-top: 56px; }
}
@media (min-width:1024px) {
  .footer__grid { grid-template-columns: 1.8fr 1fr 1fr 1fr .85fr 1.35fr; gap: 32px; }
  .footer__grid > .footer__brand,
  .footer__grid > .footer__contact-col { grid-column: auto; }
}

/* Brand column */
.footer__brand-top {
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 24px;
}
.footer__logo {
  width: auto;
  max-width: min(220px, 88vw);
  height: auto;
  max-height: 70px;
  object-fit: contain;
  display: block;
}
@media (min-width: 1024px) {
  .footer__logo {
    max-width: min(250px, 88vw);
    max-height: 80px;
  }
}
.footer__brand > p {
  font-size: .875rem; color: rgba(255,255,255,.55);
  line-height: 1.7;
}
@media (min-width:1024px) { .footer__brand > p { max-width: 280px; } }

.footer__socials { display: flex; gap: 10px; margin-top: 28px; }
.footer__socials a {
  width: 38px; height: 38px; border-radius: 10px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.08);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.6); transition: all .25s;
}
.footer__socials a:hover {
  background: var(--accent); color: var(--white);
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(212,32,39,.25);
}
.footer__socials svg { width: 15px; height: 15px; fill: currentColor; }

/* Link columns */
.footer__col h4 {
  font-size: .8125rem; font-weight: 700; margin-bottom: 20px;
  color: rgba(255,255,255,.45);
  text-transform: uppercase; letter-spacing: .08em;
}
.footer__col ul { display: flex; flex-direction: column; gap: 12px; }
.footer__col a {
  font-size: .875rem; color: rgba(255,255,255,.7);
  transition: color .2s, padding-left .2s;
  display: inline-block;
}
.footer__col a:hover { color: var(--white); padding-left: 4px; }

.footer__view-all {
  color: var(--accent) !important; font-weight: 600;
}
.footer__view-all:hover { color: var(--white) !important; }

/* Contact column */
.footer__contact-col h4 { margin-bottom: 20px; }
.footer__contact-item {
  display: flex; gap: 14px; align-items: flex-start;
  margin-bottom: 22px;
}
.footer__contact-item:last-child { margin-bottom: 0; }

.footer__contact-icon {
  width: 40px; height: 40px; border-radius: 10px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.08);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; color: var(--accent);
}
.footer__contact-item strong {
  display: block; font-size: .875rem; font-weight: 700;
  color: var(--white); margin-bottom: 4px;
}
.footer__contact-item span {
  font-size: .875rem; color: rgba(255,255,255,.6);
  line-height: 1.5;
}

/* Bottom bar */
.footer__bottom {
  padding: 20px 0;
  font-size: .8125rem; color: rgba(255,255,255,.4);
  border-top: 1px solid rgba(255,255,255,.06);
}
.footer__bottom-inner {
  display: flex; flex-direction: column; gap: 12px;
  align-items: center; text-align: center;
}
@media (min-width:640px) {
  .footer__bottom-inner {
    flex-direction: row; justify-content: space-between;
    text-align: left;
  }
}
.footer__bottom-links {
  display: flex; gap: 24px;
}
.footer__bottom-links a {
  color: rgba(255,255,255,.4);
  transition: color .2s;
  font-size: .8125rem;
}
.footer__bottom-links a:hover { color: rgba(255,255,255,.8); }

/* Mobile: plain text links, wrap naturally — no card chrome */
@media (max-width: 639px) {
  .footer__bottom {
    padding: 16px 0 24px;
  }
  .footer__bottom-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    row-gap: 8px;
    column-gap: 0;
    width: 100%;
    max-width: none;
    margin-inline: 0;
  }
  .footer__bottom-links a {
    padding: 4px 0;
    background: none;
    border: none;
    font-size: .75rem;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.5);
  }
  .footer__bottom-links a:not(:last-child)::after {
    content: '';
    display: inline-block;
    width: 3px;
    height: 3px;
    margin: 0 14px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.22);
    vertical-align: middle;
    transform: translateY(-1px);
  }
}

/* ============================================================
   INNER PAGES
   ============================================================ */

/* Page Hero Banner */
.page-hero {
  background-color: #0b1522;
  
  background-image:
    linear-gradient(135deg, rgba(11,21,34,.9) 0%, rgba(26,60,94,.82) 52%, rgba(14,40,62,.92) 100%),
    url('../images/akg-hospital-banner.jpg');
  background-size: cover;
  background-position: center 40%;
  background-repeat: no-repeat;
  padding: 48px 0;
  position: relative;
  overflow: hidden;
  contain: paint;
  isolation: isolate;
}
.page-hero::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: -10%;
  right: -10%;
  background: linear-gradient(
    100deg,
    transparent 40%,
    rgba(255, 255, 255, 0.038) 50%,
    transparent 60%
  );
  animation: banner-sheen-contained 16s ease-in-out infinite;
  pointer-events: none;
  z-index: 1;
  opacity: 0.88;
}
.page-hero .container {
  position: relative;
  z-index: 2;
}
@media (min-width:768px) { .page-hero { padding: 64px 0; } }
@media (min-width:1024px) { .page-hero { padding: 80px 0; } }

.page-hero__title {
  font-size: 2rem; font-weight: 800; color: var(--white);
  line-height: 1.15;
  margin-top: 12px;
  overflow-wrap: anywhere;
  word-break: break-word;
}
@media (min-width:768px) { .page-hero__title { font-size: 2.75rem; } }
@media (min-width:1024px) { .page-hero__title { font-size: 3.25rem; } }

.page-hero__desc {
  margin-top: 14px; font-size: .9375rem; color: rgba(255,255,255,.6);
  line-height: 1.65; max-width: 560px;
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* Breadcrumb */
.breadcrumb {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  font-size: .875rem; color: rgba(255,255,255,.5);
}
.breadcrumb a {
  color: rgba(255,255,255,.65); transition: color .2s;
}
.breadcrumb a:hover { color: var(--white); }
.breadcrumb span { color: rgba(255,255,255,.35); }

/* Page Content Wrapper */
.page-content {
  padding: 48px 0;
}
@media (min-width:768px) { .page-content { padding: 64px 0; } }
@media (min-width:1024px) { .page-content { padding: 80px 0; } }

/* Inner pages: deco circles (injected in main.js) sit behind .container */
body:not(.page-home) section.page-content {
  position: relative;
  overflow: hidden;
}
body:not(.page-home) section.page-content > .container {
  position: relative;
  z-index: 1;
}
body:not(.page-home) section.page-content > .deco-circles-wrap {
  z-index: 0;
}

/*
 * Inner pages: alternate solid band vs diagonal gradient by section order (after .page-hero).
 * Sibling sections are counted by type — first .page-content is always the 2nd <section>.
 */
body:not(.page-home) > section.page-content:nth-of-type(even),
body:not(.page-home) main > section.page-content:nth-of-type(even) {
  background: var(--surface-band);
}

body:not(.page-home) > section.page-content:nth-of-type(odd),
body:not(.page-home) main > section.page-content:nth-of-type(odd) {
  background: var(--surface-inner-gradient);
}

/* Optional override if a page needs a fixed treatment */
.page-content--surface-band { background: var(--surface-band); }
.page-content--surface-gradient { background: var(--surface-inner-gradient); }

/* Content Grid */
.content-grid {
  display: grid; gap: 24px;
  grid-template-columns: 1fr;
}
@media (min-width:640px) { .content-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width:1024px) { .content-grid--3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width:1024px) { .content-grid--4 { grid-template-columns: repeat(4, 1fr); } }

/* Content Card */
.content-card {
  background: var(--white); border-radius: var(--radius-card); padding: 28px 24px;
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
  transition: box-shadow .3s ease, transform .3s ease;
  position: relative;
  overflow: hidden;
}
.content-card:hover {
  box-shadow: 0 8px 28px rgba(0,0,0,.1); transform: translateY(-2px);
}
.content-card__icon {
  width: 48px; height: 48px; border-radius: 12px;
  background: rgba(212,32,39,.06);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.content-card__icon svg { width: 24px; height: 24px; stroke: var(--accent); fill: none; }

/* Departments listing page: larger icons, no tinted box */
.departments-page .content-card__icon {
  width: auto; height: auto; min-height: 0;
  border-radius: 0;
  background: none;
  border: none;
  padding: 0;
  justify-content: flex-start;
}
.departments-page .content-card__icon svg { width: 44px; height: 44px; }
.departments-page .content-card__icon img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  display: block;
}

/* About page: same icon treatment as departments listing */
.about-page .content-card__icon {
  width: auto; height: auto; min-height: 0;
  border-radius: 0;
  background: none;
  border: none;
  padding: 0;
  justify-content: flex-start;
}
.about-page .content-card__icon img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  display: block;
}
.about-page .content-card--icon-center .content-card__icon {
  justify-content: center;
}

/* Patient Services page: same icon treatment as departments listing */
.patient-services-page .content-card__icon {
  width: auto; height: auto; min-height: 0;
  border-radius: 0;
  background: none;
  border: none;
  padding: 0;
  justify-content: flex-start;
}
.patient-services-page .content-card__icon img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  display: block;
}

/* Contact / book appointment: sidebar info icons (no tinted box; brand SVGs like about section) */
.contact-page .info-box .footer__contact-icon,
.book-appointment-page .info-box .footer__contact-icon,
.blood-bank-page .info-box .footer__contact-icon,
.vision-mission-page .info-box .footer__contact-icon {
  width: auto;
  height: auto;
  min-width: 0;
  min-height: 0;
  background: none !important;
  border: none !important;
  padding: 0;
  border-radius: 0;
  color: inherit;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
}
.contact-page .info-box .footer__contact-icon img,
.book-appointment-page .info-box .footer__contact-icon img,
.blood-bank-page .info-box .footer__contact-icon img,
.vision-mission-page .info-box .footer__contact-icon img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  display: block;
}

.page-content .info-box .footer__contact-item strong {
  display: block;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--gray-800);
  margin-bottom: 4px;
}
.page-content .info-box .footer__contact-item span {
  font-size: 0.875rem;
  color: var(--gray-600);
  line-height: 1.5;
}
.page-content .info-box .footer__contact-item .info-box__highlight {
  color: var(--accent);
  font-weight: 700;
}

.page-content .info-box .footer__contact-item strong + .info-box__list {
  margin-top: 8px;
}
.page-content .info-box .info-box__list {
  margin: 0;
  padding-left: 1.375rem;
  font-size: 0.875rem;
  color: var(--gray-600);
  line-height: 1.55;
  list-style: disc;
  list-style-position: outside;
}
.page-content .info-box .info-box__list li {
  margin-bottom: 6px;
  display: list-item;
}
.page-content .info-box .info-box__list li:last-child {
  margin-bottom: 0;
}
.page-content .info-box .footer__contact-item a:not(.btn) {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s ease;
}
.page-content .info-box .footer__contact-item a:not(.btn):hover {
  color: var(--accent-hover);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.content-card h3 { font-size: 1.0625rem; font-weight: 700; color: var(--primary); }
.content-card p { margin-top: 10px; font-size: .875rem; color: var(--gray-600); line-height: 1.65; }
.content-card a:not(.btn) {
  display: inline-block; margin-top: 16px;
  font-size: .875rem; font-weight: 700; color: var(--accent);
  transition: color .2s;
}
.content-card a:not(.btn):hover { color: var(--accent-hover); }

/* Inner pages: hero/banner sheen only — no second layer on content tiles */
.page-content .card::after,
.page-content .service-card::after,
.page-content .doctor-card::after,
.page-content .video-card::after,
.page-content .gallery__item::after,
.page-content .info-box::after,
.page-content .contact-map__frame::after {
  content: none;
  display: none;
}

/* Space above CTA buttons (e.g. health packages: price → Book Now) */
.content-card .btn,
.content-card a.btn,
.content-card button.btn {
  margin-top: 24px;
}

/* Optional cue below horizontal rows (homepage mobile) */
.scroll-row-hint { display: none; }

/* Prose text blocks */
.prose { max-width: min(800px, 100%); }
.prose h2 {
  font-size: 1.5rem; font-weight: 800; color: var(--primary);
  margin: 32px 0 16px; line-height: 1.3;
}
.prose h2:first-child { margin-top: 0; }
.prose h3 {
  font-size: 1.125rem; font-weight: 700; color: var(--primary);
  margin: 24px 0 12px; line-height: 1.35;
}
.prose p { margin-bottom: 16px; font-size: .9375rem; color: var(--gray-600); line-height: 1.7; max-width: var(--measure-prose); }
.prose a:not(.btn) {
  color: var(--accent);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(212, 32, 39, 0.35);
  text-underline-offset: 3px;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}
.prose a:not(.btn):hover {
  color: var(--accent-hover);
  text-decoration-color: var(--accent-hover);
}
/* Keep .btn metrics inside prose (no inline-block / loose line-height from <p>) */
.prose a.btn,
.prose button.btn {
  display: inline-flex;
  line-height: 1;
  margin-top: 8px;
  vertical-align: middle;
}
.prose ul, .prose ol { margin-bottom: 16px; padding-left: 20px; }
.prose li {
  font-size: .9375rem; color: var(--gray-600); line-height: 1.7;
  margin-bottom: 8px; list-style: disc;
  max-width: var(--measure-prose);
}

/* Form Styles */
.form-group { margin-bottom: 20px; }
.form-label {
  display: block; font-size: .875rem; font-weight: 600;
  color: var(--gray-700); margin-bottom: 8px;
}
.form-input, .form-select, .form-textarea {
  width: 100%; padding: 12px 16px;
  border: 1.5px solid var(--gray-200); border-radius: 10px;
  font-size: .9375rem; color: var(--gray-700);
  background: var(--white);
  transition: border-color .2s;
  font-family: var(--font);
}
.form-input:focus, .form-select:focus, .form-textarea:focus,
.form-input:focus-visible, .form-select:focus-visible, .form-textarea:focus-visible {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(26,60,94,.12);
  outline: none;
}
.form-textarea { resize: vertical; min-height: 120px; }
.form-row {
  display: grid; gap: 20px;
  grid-template-columns: 1fr;
}
@media (min-width:640px) { .form-row { grid-template-columns: 1fr 1fr; } }

/* Contact Info Box */
.info-box {
  background: var(--white); border-radius: var(--radius-card); padding: 32px 28px;
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
  position: relative;
  overflow: hidden;
}
.info-box h3 {
  font-size: 1.125rem; font-weight: 700; color: var(--primary); margin-bottom: 24px;
}
.info-box .btn,
.info-box a.btn {
  margin-top: 20px;
}

/* Contact page embedded map */
.contact-map {
  margin-top: 48px;
  padding-top: 40px;
  border-top: 1px solid var(--gray-200);
}
@media (min-width:768px) {
  .contact-map { margin-top: 56px; padding-top: 48px; }
}
.contact-map__title {
  font-size: 1.375rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 8px;
}
.contact-map__desc {
  font-size: .9375rem;
  color: var(--gray-600);
  margin-bottom: 20px;
  line-height: 1.5;
}
.contact-map__frame {
  position: relative;
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
  border: 1px solid var(--gray-200);
  background: var(--gray-100);
}
.contact-map__frame iframe {
  display: block;
  position: relative;
  z-index: 1;
  width: 100%;
  height: 280px;
  border: 0;
}
@media (min-width:640px) {
  .contact-map__frame iframe { height: 360px; }
}
@media (min-width:1024px) {
  .contact-map__frame iframe { height: 420px; }
}
.contact-map__footnote {
  margin-top: 16px;
  font-size: .875rem;
}
.contact-map__footnote a {
  font-weight: 600;
  color: var(--accent);
  transition: color .2s;
}
.contact-map__footnote a:hover { color: var(--accent-hover); }

/* Two Column Layout */
.two-col {
  display: grid; gap: 40px;
}
@media (min-width:1024px) { .two-col { grid-template-columns: 1.2fr .8fr; gap: 56px; } }
.two-col--reverse {
  display: grid; gap: 40px;
}
@media (min-width:1024px) { .two-col--reverse { grid-template-columns: .8fr 1.2fr; gap: 56px; } }

/* Centered CTA Block */
.cta-block {
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}
.cta-block .section-heading { text-align: center; }
.cta-block .section-desc { text-align: center; margin-left: auto; margin-right: auto; }
.cta-block .btn { margin-top: 8px; }

/* ============================================================
   VIDEO GALLERY
   ============================================================ */
.video-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width:640px) { .video-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width:1024px) { .video-grid { grid-template-columns: repeat(3, 1fr); } }

.video-card {
  all: unset;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  position: relative;
  background: var(--white);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
  border: 1px solid var(--gray-100);
  transition: box-shadow .3s ease, transform .3s ease;
}
.video-card:hover {
  box-shadow: 0 8px 28px rgba(0,0,0,.12);
  transform: translateY(-4px);
}
.video-card__thumb {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
}
.video-card__thumb img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  transition: transform .5s ease;
}
.video-card:hover .video-card__thumb img { transform: scale(1.06); }
.video-card__play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,.3);
  transition: background .3s ease;
}
.video-card:hover .video-card__play { background: rgba(0,0,0,.45); }
.video-card__play svg {
  width: 56px; height: 56px;
  color: white;
  background: rgba(255,255,255,.2);
  border-radius: 50%;
  padding: 14px;
  backdrop-filter: blur(4px);
  transition: transform .3s ease, background .3s ease;
}
.video-card:hover .video-card__play svg {
  transform: scale(1.12);
  background: var(--accent);
}
.video-card__badge {
  position: absolute;
  top: 12px; left: 12px;
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(6px);
  color: white;
  font-size: .75rem; font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
  letter-spacing: .03em;
}
.video-card__info {
  padding: 18px 20px 22px;
}
.video-card__info h3 {
  font-size: .9375rem; font-weight: 700;
  color: var(--primary); line-height: 1.3;
  margin-bottom: 6px;
}
.video-card__info p {
  font-size: .875rem; color: #6B7280;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Video Lightbox Modal */
.video-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity .35s ease, visibility .35s ease;
}
.video-modal.open {
  opacity: 1;
  visibility: visible;
}
.video-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.8);
  backdrop-filter: blur(6px);
}
.video-modal__dialog {
  position: relative;
  width: 90vw;
  max-width: 960px;
  transform: scale(.92) translateY(20px);
  transition: transform .35s ease;
}
.video-modal.open .video-modal__dialog {
  transform: scale(1) translateY(0);
}
.video-modal__close {
  all: unset;
  position: absolute;
  top: -44px; right: 0;
  width: 36px; height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  cursor: pointer;
  border-radius: 50%;
  background: rgba(255,255,255,.12);
  transition: background .2s ease;
}
.video-modal__close:hover { background: rgba(255,255,255,.25); }
.video-modal__frame {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  border-radius: 12px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 20px 60px rgba(0,0,0,.5);
}
.video-modal__frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* ============================================================
   GALLERY ITEMS (clickable – listing + homepage slider)
   No `all: unset` so shared .gallery__item layout (flex row, card chrome) still applies.
   ============================================================ */
button.gallery__item {
  appearance: none;
  -webkit-appearance: none;
  font: inherit;
  color: inherit;
  margin: 0;
  border: none;
  cursor: pointer;
  text-align: left;
  box-sizing: border-box;
}
button.gallery__item:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
button.gallery__item img {
  width: 100%;
  aspect-ratio: 300/240;
  object-fit: cover;
  display: block;
  border-radius: 10px;
  transition: transform .45s ease;
}
button.gallery__item::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 10px;
  background: rgba(0,0,0,0);
  transition: background .3s ease;
  pointer-events: none;
}
button.gallery__item:hover::after { background: rgba(0,0,0,.15); }
button.gallery__item:hover img { transform: scale(1.06); }
button.gallery__item::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 48px; height: 48px;
  transform: translate(-50%,-50%) scale(0);
  z-index: 2;
  border-radius: 50%;
  background: rgba(255,255,255,.9) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' viewBox='0 0 24 24' fill='none' stroke='%23192B4A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 3h6v6'/%3E%3Cpath d='M9 21H3v-6'/%3E%3Cpath d='M21 3l-7 7'/%3E%3Cpath d='M3 21l7-7'/%3E%3C/svg%3E") center/22px no-repeat;
  transition: transform .3s ease;
}
button.gallery__item:hover::before { transform: translate(-50%,-50%) scale(1); }

/* ============================================================
   IMAGE LIGHTBOX
   ============================================================ */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s ease, visibility .3s ease;
}
.lightbox.open {
  opacity: 1;
  visibility: visible;
}
.lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.88);
  backdrop-filter: blur(8px);
}
.lightbox__close {
  all: unset;
  position: absolute;
  top: 16px; right: 16px;
  z-index: 3;
  width: 44px; height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  cursor: pointer;
  border-radius: 50%;
  background: rgba(255,255,255,.1);
  transition: background .2s ease;
}
.lightbox__close:hover { background: rgba(255,255,255,.22); }
.lightbox__arrow {
  all: unset;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 48px; height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  cursor: pointer;
  border-radius: 50%;
  background: rgba(255,255,255,.1);
  transition: background .2s ease, transform .2s ease;
}
.lightbox__arrow:hover { background: rgba(255,255,255,.22); }
.lightbox__arrow--prev { left: 16px; }
.lightbox__arrow--next { right: 16px; }
.lightbox__arrow--prev:active { transform: translateY(-50%) scale(.92); }
.lightbox__arrow--next:active { transform: translateY(-50%) scale(.92); }
.lightbox__stage {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 72px 80px;
  box-sizing: border-box;
}
.lightbox__img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 16px 48px rgba(0,0,0,.4);
  opacity: 0;
  transform: scale(.94);
  transition: opacity .3s ease, transform .3s ease;
}
.lightbox.open .lightbox__img {
  opacity: 1;
  transform: scale(1);
}
.lightbox__footer {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  background: linear-gradient(transparent, rgba(0,0,0,.6));
}
.lightbox__caption {
  color: rgba(255,255,255,.9);
  font-size: .9375rem;
  font-weight: 500;
  line-height: 1.4;
}
.lightbox__counter {
  color: rgba(255,255,255,.6);
  font-size: .8125rem;
  font-weight: 600;
  white-space: nowrap;
  letter-spacing: .04em;
}
@media (max-width:767px) {
  .lightbox__stage { padding: 64px 16px; }
  .lightbox__arrow { width: 40px; height: 40px; }
  .lightbox__arrow--prev { left: 8px; }
  .lightbox__arrow--next { right: 8px; }
  .lightbox__footer { padding: 12px 16px; }
  .lightbox__caption { font-size: .8125rem; }
}
