/* ══════════════════════════════════════════════
   ROOT TOKENS
   (unchanged)
══════════════════════════════════════════════ */
:root {
  --blue:        #003087;
  --blue-mid:    #1a4fa0;
  --blue-light:  #e8f0fb;
  --gold:        #e8a020;
  --gold-light:  #fdf3e3;
  --teal:        #1a9baf;
  --text:        #1a2332;
  --text-mid:    #4a5568;
  --text-light:  #6b7a8d;
  --border:      #e2e8f0;
  --white:       #ffffff;
  --bg-light:    #f8fafc;
  --stats-bg:    #0a2461;
  --radius:      8px;
  --shadow:      0 2px 16px rgba(0,48,135,0.10);
  --shadow-md:   0 8px 32px rgba(0,48,135,0.14);
}

*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Inter', -apple-system, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width:100%; display:block; }
a  { text-decoration:none; color:inherit; }
ul { list-style:none; }

/* ══════════════════════════════════════════════
   TOP BAR (unchanged)
══════════════════════════════════════════════ */
.topbar {
  background: var(--blue);
  color: #c5d8ff;
  font-size: 0.78rem;
  padding: 7px 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.topbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.topbar-left { display:flex; gap:1.4rem; align-items:center; flex-wrap:wrap; }
.topbar-left span {
  display:inline-flex; align-items:center; gap:6px;
  color: var(--gold);
}
.topbar-left a {
  color: var(--gold);
  display:flex; align-items:center; gap:6px;
  transition: color .2s;
}
.topbar-left a:hover { color:#fff; }
.topbar-right { display:flex; align-items:center; gap:1rem; margin-left:auto; }
.lang-btn {
  background:none; border:1px solid rgba(255,255,255,0.35);
  color:#c5d8ff; font-size:0.75rem; padding:0px 1rem;
  border-radius:3px; cursor:pointer;
  transition: all .2s;
}
.lang-btn:hover { background:rgba(255,255,255,.1); color:#fff; }
.topbar-donate {
  background: var(--gold);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0px 1rem;
  border-radius: 20px;
  display: flex; align-items:center; gap:5px;
  transition: background .2s, transform .2s;
}
.topbar-donate:hover { background:#c98000; transform:translateY(-1px); }

/* ══════════════════════════════════════════════
   HEADER / NAV (unchanged)
══════════════════════════════════════════════ */
.main-header {
  background: var(--white);
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
  position: sticky;
  top: 0;
  z-index: 1000;
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 70px;
}
.brand { display:flex; align-items:center; gap:24px; flex-shrink:0; }
.brand-logo {
  width: 55px; height: 55px;
  background: var(--blue-light);
  display: flex; align-items:center; justify-content:center;
  font-size: 1.6rem; color: var(--blue); font-weight:800;
  overflow:hidden;
}
.brand-logo img { width:100%; height:100%; object-fit:cover; }
.brand-text { line-height:1.2; }
.brand-text .sub  { font-size:0.9rem; color:var(--text-light); text-transform:uppercase; letter-spacing:.06em; }
.brand-text .name { font-size:1.15rem; font-weight:1300; color:var(--blue); text-transform:uppercase; letter-spacing:.02em; }
.brand-text .tagline { font-size:0.9rem; color:var(--text-light); }
.partner-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.partner-logo img {
  height: 55px;
  width: auto;
  object-fit: contain;
  transition: transform 0.3s ease;
}
.partner-logo img:hover {
  transform: scale(1.05);
}
.partner-logo-wrap {
  display:flex; align-items:center; gap:10px;
  padding-left:16px; margin-left:16px;
  border-left: 1px solid var(--border);
  flex-shrink:0;
}
.partner-logo-wrap img { height:42px; width:auto; }
.nav-menu {
  display: flex; align-items:center; gap:0px;
  font-size: 0.8rem; font-weight:600;
  margin-left: auto;
}
.nav-menu > li { position:relative; }
.nav-menu > li > a {
  padding: 8px 11px;
  display: flex; align-items:center; gap:4px;
  color: var(--blue);
  border-radius:4px;
  transition: background .2s, color .2s;
  white-space:nowrap;
}
.nav-menu > li > a:hover,
.nav-menu > li > a.active { color:var(--blue); background:var(--blue-light); }
.nav-menu > li > a i { font-size:.65rem; color:var(--text-light); }
.dropdown { position:absolute; top:calc(100%); left:0;
  background:#fff; min-width:200px; border-radius:var(--radius);
  box-shadow: var(--shadow-md); border:1px solid var(--border);
  padding:6px 0; opacity:0; visibility:hidden; pointer-events:none;
  transform:translateY(8px); transition:all .22s ease;
  z-index:200;
}
.nav-menu > li:hover .dropdown {
  opacity:1; visibility:visible; pointer-events:all; transform:translateY(0);
}
.dropdown li a {
  display:block; padding:9px 18px; font-size:0.82rem;
  color:var(--text-mid); transition:background .15s, color .15s;
}
.dropdown li a:hover { background:var(--blue-light); color:var(--blue); }
.nav-actions { display:flex; align-items:center; gap:10px; }
.nav-search-btn {
  background:none; border:none; color:var(--text-mid);
  font-size:1rem; cursor:pointer; padding:6px;
  border-radius:4px; transition:color .2s, background .2s;
}
.nav-search-btn:hover { color:var(--blue); background:var(--blue-light); }
.hamburger {
  display:none; flex-direction:column; gap:4px;
  background:none; border:none; cursor:pointer; padding:6px;
}
.hamburger span { width:22px; height:2px; background:var(--text); border-radius:2px; transition:all .3s; display:block; }
.mobile-nav {
  display:none; position:fixed; top:0; left:0; right:0; bottom:0;
  background:rgba(0,48,135,.97); z-index:2000;
  flex-direction:column; padding:2rem;
  overflow-y:auto;
}
.mobile-nav.open { display:flex; animation:fadeIn .25s ease; }
.mobile-close {
  align-self:flex-end; background:none; border:none;
  color:#fff; font-size:1.6rem; cursor:pointer; margin-bottom:2rem;
}
.mobile-nav a {
  color:#fff; padding:14px 0; font-size:1.1rem; font-weight:600;
  border-bottom:1px solid rgba(255,255,255,.12);
  display:block; transition:color .2s;
}
.mobile-nav a:hover { color:var(--gold); }
.mobile-nav-section {
  border-bottom:1px solid rgba(255,255,255,.12);
}
.mobile-nav-toggle {
  width:100%;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:1rem;
  padding:14px 0;
  background:none;
  border:0;
  color:#fff;
  font:inherit;
  font-size:1.1rem;
  font-weight:600;
  text-align:left;
  cursor:pointer;
}
.mobile-nav-toggle i {
  font-size:.8rem;
  transition:transform .2s ease;
}
.mobile-nav-section.open .mobile-nav-toggle i {
  transform:rotate(180deg);
}
.mobile-submenu {
  display:none;
  padding:0 0 10px 1rem;
}
.mobile-nav-section.open .mobile-submenu {
  display:block;
}
.mobile-submenu a {
  padding:9px 0;
  font-size:.95rem;
  font-weight:500;
  color:rgba(255,255,255,.88);
  border-bottom:0;
}

@keyframes fadeIn { from{opacity:0} to{opacity:1} }


/* ══════════════════════════════════════════════
   HEADER – fit everything on a laptop screen
   (no overflow, no clipping)
══════════════════════════════════════════════ */

/* Slightly tighter layout */
.nav-inner {
  gap: 1.2rem;               /* reduce space between groups */
  height: 66px;              /* a little shorter */
  padding: 0 1.5rem;
  flex-wrap: nowrap;         /* keep everything in one row */
}

/* Shrink the brand */
.brand {
  gap: 12px;
}
.brand-logo {
  width: 44px;
  height: 44px;
}
.brand-text .name {
  font-size: 0.85rem;
}

/* Make the partner logo smaller */
.partner-logo img {
  height: 38px;              /* was 55px */
}

/* Compact navigation menu */
.nav-menu {
  font-size: 0.80rem;
  gap: 0;
}
.nav-menu > li > a {
  padding: 6px 8px;
  white-space: nowrap;
}

/* Search button spacing */
.nav-actions {
  gap: 6px;
}
.nav-search-btn {
  padding: 5px;
  font-size: 0.95rem;
}

/* ⭐ On screens ≤ 1200px, hide the partner logo to keep the search button visible */
@media (max-width: 1200px) {
  .partner-logo {
    display: none;
  }
  .nav-menu {
    font-size: 0.72rem;
  }
  .nav-menu > li > a {
    padding: 5px 6px;
  }
}
/* Container for search elements */
.header-search {
  display: flex;
  align-items: center;
  position: relative;
}

/* The icon button (always visible) */
.nav-search-btn {
  background: none;
  border: none;
  color: #fff;          /* change to your header text colour */
  font-size: 1.2rem;
  cursor: pointer;
  padding: 6px;
  display: flex;
  align-items: center;
  z-index: 2;           /* keep above form when overlapping */
}

/* The expandable form - collapsed by default */
.search-form {
  display: flex;
  align-items: center;
  max-width: 0;
  overflow: hidden;
  transition: max-width 0.3s ease, opacity 0.3s ease;
  opacity: 0;
  white-space: nowrap;
}

/* When active, expand */
.search-form.active {
  max-width: 250px;      /* adjust as needed */
  opacity: 1;
  margin-left: 8px;
}

/* Container for search elements */
.header-search {
  display: flex;
  align-items: center;
  position: relative;
}

/* The icon button (always visible) */
.nav-search-btn {
  background: none;
  border: none;
  color: #fff;          /* change to your header text colour */
  font-size: 1.2rem;
  cursor: pointer;
  padding: 6px;
  display: flex;
  align-items: center;
  z-index: 2;           /* keep above form when overlapping */
}

/* The expandable form - collapsed by default */
.search-form {
  display: flex;
  align-items: center;
  max-width: 0;
  overflow: hidden;
  transition: max-width 0.3s ease, opacity 0.3s ease;
  opacity: 0;
  white-space: nowrap;
}

/* When active, expand */
.search-form.active {
  max-width: 250px;      /* adjust as needed */
  opacity: 1;
  margin-left: 8px;
}

/* Text input inside the form */
.search-form input {
  border: 1px solid rgba(255,255,255,0.3);
  background: rgba(255,255,255,0.15);
  color: #fff;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.9rem;
  outline: none;
  width: 180px;
  transition: all 0.3s;
}

.search-form input::placeholder {
  color: rgba(255,255,255,0.7);
}

.search-form input:focus {
  background: rgba(255,255,255,0.25);
  border-color: #f59e0b; /* accent colour */
  box-shadow: 0 0 0 2px rgba(245,158,11,0.3);
}

/* Submit button inside the form (another magnifying glass) */
.search-submit-btn {
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  padding: 6px 8px;
  display: flex;
  align-items: center;
  font-size: 1rem;
}

/* On smaller screens, reduce input width */
@media (max-width: 768px) {
  .search-form.active {
    max-width: 160px;
  }
  .search-form input {
    width: 120px;
  }
}
/* ══════════════════════════════════════════════
   HERO
   (h1 size increased)
══════════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 580px;
  background: linear-gradient(135deg, #dce9f8 0%, #edf4fd 50%, #c8dff7 100%);
  display: flex; align-items:center;
  overflow: hidden;
}
.hero-photo {
  position:absolute; right:0; top:0; bottom:0;
  width:52%;
  background: url('../Gallary/BMC-MD-Dr.-Bereket.webp') center/cover no-repeat;
  mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,.15) 18%, #000 45%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,.15) 18%, #000 45%);
}
.hero-inner {
  position:relative; z-index:2;
  max-width:1200px; margin:0 auto;
  padding: 5rem 1.5rem 4rem;
  width:100%;
}
.hero-content { max-width:520px; }

/* ✅ H1 larger + bolder, stacked as: "Dedicated Care" / "for" / "Mothers and Children" */
.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.5rem);   /* increased from 2rem to 2.2rem, max 3.5rem */
  font-weight: 900;
  letter-spacing: -0.01em;
  line-height: 1.1;
  color: var(--blue);
  margin-bottom: 1rem;
}
.hero h1 span { color: var(--gold); }

.hero-sub {
  font-size: 1rem;
  color: var(--gold);
  margin-bottom: 1.8rem;
  line-height:1.7;
  max-width: 420px;
}
.hero-highlights {
  display:flex;
  flex-wrap:wrap;
  gap:.55rem;
  max-width:470px;
  margin-bottom:1.5rem;
}
.hero-highlights span {
  display:inline-flex;
  align-items:center;
  gap:.4rem;
  padding:.45rem .7rem;
  border:1px solid rgba(0,48,135,.12);
  border-radius:999px;
  background:rgba(255,255,255,.72);
  color:var(--blue);
  font-size:.76rem;
  font-weight:700;
  box-shadow:0 2px 10px rgba(0,48,135,.06);
}
.hero-highlights i { color:var(--gold); }

.hero-search {
  display:flex; max-width:380px; margin-bottom:1.8rem;
  border:1.5px solid var(--border); border-radius:6px;
  background:#fff; overflow:hidden;
  box-shadow: 0 2px 10px rgba(0,48,135,.08);
}
.hero-search input {
  flex:1; border:none; outline:none;
  padding:11px 16px; font-size:.9rem; color:var(--text);
  background:transparent;
}
.hero-search input::placeholder { color:var(--text-light); }
.hero-search button {
  background:var(--blue); border:none; color:#fff;
  padding:0 18px; font-size:.95rem; cursor:pointer;
  transition:background .2s;
}
.hero-search button:hover { background:var(--blue-mid); }

.hero-btns { display:flex; gap:.75rem; flex-wrap:wrap; }
.btn {
  display:inline-flex; align-items:center; gap:6px;
  padding:10px 22px; border-radius:6px;
  font-size:.85rem; font-weight:600;
  cursor:pointer; border:2px solid transparent;
  transition: all .22s ease;
}
.btn-primary { background:var(--blue); color:#fff; border-color:var(--blue); }
.btn-primary:hover { background:#00256e; border-color:#00256e; transform:translateY(-1px); box-shadow:0 4px 14px rgba(0,48,135,.25); }
.btn-outline { background:transparent; color:var(--text); border-color:var(--border); }
.btn-outline:hover { background:var(--blue-light); border-color:var(--blue); color:var(--blue); }
.btn-gold { background:var(--gold); color:#071a3d; border-color:var(--gold); }
.btn-gold:hover { background:#c98000; color:#071a3d; border-color:#c98000; }

.hero-scroll {
  position:absolute; bottom:1.5rem; left:50%; transform:translateX(-50%);
  width:32px; height:32px; border-radius:50%;
  background:#fff; box-shadow:var(--shadow);
  display:flex; align-items:center; justify-content:center;
  color:var(--blue); font-size:.85rem; cursor:pointer;
  animation: bounce 2s infinite;
}
@keyframes bounce {
  0%,100%{transform:translateX(-50%) translateY(0)} 50%{transform:translateX(-50%) translateY(-5px)}
}

/* ══════════════════════════════════════════════
   SECTION SHARED
   (section‑title font increased)
══════════════════════════════════════════════ */
.section { padding: 5rem 1.5rem; }
.section-inner { max-width:1200px; margin:0 auto; }
.section-tag {
  display:inline-block; color:var(--blue); font-size:.75rem;
  font-weight:700; text-transform:uppercase; letter-spacing:.1em;
  margin-bottom:.5rem;
}
.section-tag::before {
  content:''; display:inline-block; width:24px; height:2px;
  background:var(--gold); vertical-align:middle; margin-right:8px;
}

/* ✅ section‑title now larger */
.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.2rem);  /* was 1.5rem … 2rem */
  font-weight:800;
  color:var(--text); line-height:1.25; margin-bottom:.5rem;
}
.section-title span { color:var(--blue); }
.section-sub { color:var(--text-mid); font-size:.95rem; margin-bottom:2.5rem; }

/* ══════════════════════════════════════════════
   SERVICES CARDS
   (card‑body h3 size increased)
══════════════════════════════════════════════ */
.services-section { background:#fff; }
.services-head { text-align:center; margin-bottom:2.5rem; }
.services-head .section-title { color:var(--text); }
.services-head .section-title span { color:var(--blue); }

.cards-grid {
  display:grid; grid-template-columns:repeat(3,1fr); gap:1.5rem;
}
.service-card {
  border:1px solid var(--border); border-radius:var(--radius);
  overflow:hidden; background:#fff;
  transition: box-shadow .25s, transform .25s;
}
.service-card:hover { box-shadow:var(--shadow-md); transform:translateY(-4px); }

.card-img-wrap { position:relative; height:190px; overflow:hidden; background:var(--blue-light); }
.card-img-wrap img { width:100%; height:100%; object-fit:cover; transition:transform .5s; }
.service-card:hover .card-img-wrap img { transform:scale(1.05); }

.card-icon {
  position:absolute; top:12px; left:12px;
  width:38px; height:38px; border-radius:50%;
  background:var(--blue); color:#fff;
  display:flex; align-items:center; justify-content:center;
  font-size:.95rem; box-shadow:0 2px 8px rgba(0,0,0,.2);
}

.card-body { padding:1.2rem 1.3rem 1.4rem; }

/* ✅ h3 now bigger */
.card-body h3 {
  font-size: 1.1rem;   /* increased from .95rem */
  font-weight: 700;
  color: var(--blue);
  margin-bottom: .5rem;
}

.card-body p { font-size:.83rem; color:var(--text-mid); line-height:1.65; margin-bottom:1rem; }
.card-link {
  font-size:.8rem; font-weight:600; color:var(--blue);
  display:inline-flex; align-items:center; gap:4px;
  transition:gap .2s;
}
.card-link:hover { gap:8px; }

/* ══════════════════════════════════════════════
   NICU + VIDEO ROW (unchanged)
══════════════════════════════════════════════ */
.nicu-video-row {
  display:grid; grid-template-columns:1fr 1fr; gap:2rem;
  padding:4rem 1.5rem;
  background:var(--bg-light);
}
.nv-inner { max-width:1200px; margin:0 auto; }
.nicu-block, .video-block { }
.nicu-block h2, .video-block h2 {
  font-size:1.1rem; font-weight:800; color:var(--text);
  margin-bottom:1.2rem; text-align:center;
}
.nicu-block h2 span, .video-block h2 { color:var(--blue); }
.ba-container {
  position:relative; display:flex; gap:.75rem;
  align-items:stretch;
}
.ba-side {
  flex:1; position:relative; border-radius:var(--radius); overflow:hidden;
  min-height:200px; background:var(--blue-light);
}
.ba-side img {
  width:100%; height:200px; object-fit:cover; display:block;
}
.ba-badge {
  position:absolute; top:8px; left:8px;
  background:rgba(0,0,0,.65); color:#fff;
  font-size:.65rem; font-weight:700; text-transform:uppercase;
  padding:3px 9px; border-radius:3px; letter-spacing:.08em;
}
.ba-caption {
  font-size:.72rem; color:var(--text-mid); text-align:center;
  margin-top:.5rem; line-height:1.4;
}
.ba-nav {
  position:absolute; top:50%; left:50%;
  transform:translate(-50%,-50%);
  display:flex; gap:.4rem; z-index:5;
}
.ba-nav button {
  width:28px; height:28px; border-radius:50%;
  background:#fff; border:1px solid var(--border);
  display:flex; align-items:center; justify-content:center;
  font-size:.7rem; color:var(--text-mid); cursor:pointer;
  box-shadow:0 2px 6px rgba(0,0,0,.12);
  transition:background .2s, color .2s;
}
.ba-nav button:hover { background:var(--blue); color:#fff; }
.video-thumb {
  position:relative; border-radius:var(--radius); overflow:hidden;
  height:200px; background:#1a2332; cursor:pointer;
}
.video-thumb img {
  width:100%; height:100%; object-fit:cover;
  transition:transform .5s, opacity .3s;
}
.video-thumb:hover img { transform:scale(1.04); opacity:.85; }
.play-btn {
  position:absolute; top:50%; left:50%; transform:translate(-50%,-50%);
  width:52px; height:52px; border-radius:50%;
  background:rgba(255,255,255,.95); color:var(--blue);
  display:flex; align-items:center; justify-content:center;
  font-size:1.1rem; box-shadow:0 4px 16px rgba(0,0,0,.25);
  transition: transform .2s, box-shadow .2s;
}
.video-thumb:hover .play-btn { transform:translate(-50%,-50%) scale(1.1); box-shadow:0 8px 24px rgba(0,0,0,.3); }
.play-btn i { margin-left:3px; }
.video-desc {
  font-size:.82rem; color:var(--text-mid); margin-top:.75rem; line-height:1.6;
}
.video-link {
  display:inline-flex; align-items:center; gap:5px;
  font-size:.82rem; font-weight:600; color:var(--blue); margin-top:.5rem;
  transition:gap .2s;
}
.video-link:hover { gap:9px; }

/* ══════════════════════════════════════════════
   NICU "Our Impact" title (minimal addition)
══════════════════════════════════════════════ */
.nicu-impact-title {
  grid-column: 1 / -1;          /* span the full width of the grid */
  text-align: center;
  margin-bottom: 1.8rem;
}

.nicu-impact-title h2 {
  font-size: clamp(2rem, 4.5vw, 2.8rem);
  font-weight: 800;
  color: var(--text);
  margin: 0 0 0.4rem;
  line-height: 1.2;
}

.nicu-impact-title h2 span {
  color: var(--blue);
}

.nicu-impact-divider {
  width: 50px;
  height: 3px;
  background: var(--gold);
  margin: 0 auto;
  border-radius: 2px;
}

/* ══════════════════════════════════════════════
   CARE SECTION SPLIT  ←  NEW STYLING
   (increased sizes, better coloring, arrangement)
══════════════════════════════════════════════ */
.care-section-split {
  padding: 5rem 2rem;
  background: var(--white);              /* clean white background */
}

.care-container-split {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 4rem;
  flex-wrap: wrap;
}

/* ── LEFT TEXT ── */
.care-text {
  flex: 1;
  min-width: 280px;
}

.care-title {
  font-size: clamp(2.4rem, 5vw, 3.2rem);
  font-weight: 900;
  line-height: 1.1;
  color: var(--blue);                    /* main colour */
  margin-bottom: 0.3rem;
}
.care-title span {
  color: var(--gold);                    /* highlight */
}

.care-subtitle {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  line-height: 1.25;
  color: var(--text);
  margin-bottom: 0.8rem;
}
.care-subtitle span {
  color: var(--gold);
  font-weight: 800;
}

.care-divider {
  width: 60px;
  height: 4px;
  background: var(--gold);
  margin-bottom: 1.5rem;
  border-radius: 2px;
}

.care-description {
  font-size: 1rem;
  color: var(--text-mid);
  line-height: 1.8;
  max-width: 480px;
}

/* ── RIGHT IMAGE ── */
.care-image {
  flex: 1;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(0,48,135,0.12);
}
.care-image img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.4s ease;
}
.care-image img:hover {
  transform: scale(1.02);
}

/* ══════════════════════════════════════════════
   STATS STRIP (unchanged)
══════════════════════════════════════════════ */
.stats-strip {
  background: var(--stats-bg);
  padding: 2rem 1.5rem;
}
.stats-inner {
  max-width:1200px; margin:0 auto;
  display:grid; grid-template-columns:repeat(4,1fr); gap:1rem;
}
.stat-item {
  display:flex; align-items:center; gap:1rem;
  padding:.75rem 1rem;
}
.stat-icon {
  width:50px; height:50px; border-radius:50%;
  background:rgba(255,255,255,.1);
  display:flex; align-items:center; justify-content:center;
  font-size:1.3rem; color:var(--gold); flex-shrink:0;
}
.stat-num {
  font-size:1.75rem; font-weight:800; color:#fff;
  line-height:1; display:block;
}
.stat-label { font-size:.72rem; color:rgba(255,255,255,.65); display:block; margin-top:2px; }
.stat-divider {
  border:none; border-right:1px solid rgba(255,255,255,.12);
  margin:0;
}

/* ══════════════════════════════════════════════
   MISSION + WHY CHOOSE (unchanged)
══════════════════════════════════════════════ */
.mission-choose-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  padding: 4.5rem 2rem;
  background: #fff;
  max-width: 100%;
}
.mc-inner {
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
}
.mission-block {}
.mission-block .section-tag { display:block; margin-bottom:.3rem; }
.mission-block h2 {
  font-size:1.25rem; font-weight:800; color:var(--text);
  margin-bottom:1rem;
  border-left:3px solid var(--gold); padding-left:.75rem;
}
.mission-block p {
  font-size:.88rem; color:var(--text-mid); line-height:1.75; margin-bottom:1.5rem;
}
.mission-img {
  border-radius:var(--radius); overflow:hidden;
  height:170px; background:var(--blue-light);
  float:right; width:46%; margin:0 0 1rem 1.5rem;
}
.mission-img img { width:100%; height:100%; object-fit:cover; }
.why-block {}
.why-block h2 {
  font-size:1.25rem; font-weight:800; color:var(--text);
  margin-bottom:1.25rem;
}
.why-block h2 span { color:var(--blue); }
.why-list { margin-bottom:1.5rem; }
.why-item {
  display:flex; align-items:flex-start; gap:.75rem;
  padding:.6rem 0; border-bottom:1px solid var(--border);
  font-size:.87rem; color:var(--text-mid); line-height:1.5;
}
.why-item:last-child { border-bottom:none; }
.why-check {
  width:20px; height:20px; border-radius:50%;
  background:var(--blue-light); color:var(--blue);
  display:flex; align-items:center; justify-content:center;
  font-size:.6rem; flex-shrink:0; margin-top:1px;
}
.why-img {
  float:right; width:42%; margin:0 0 1rem 1.5rem;
  border-radius:var(--radius); overflow:hidden; height:190px;
  background:var(--blue-light);
}
.why-img img { width:100%; height:100%; object-fit:cover; }

/* ══════════════════════════════════════════════
   PARTNERS (unchanged, but slightly wider)
══════════════════════════════════════════════ */
.partners-section { 
    background: var(--bg-light); 
    padding: 2rem 1.5rem; 
}
.partners-inner { 
    max-width: 1400px; 
    margin: 0 auto; 
    text-align: center; 
}
.partners-title {
    font-size: 1.1rem; 
    font-weight: 800; 
    color: var(--blue);
    margin-bottom: 2.5rem; 
    display: flex; 
    align-items: center;
    justify-content: center; 
    gap: .75rem;
}
.partners-title::before, 
.partners-title::after {
    content: ''; 
    flex: 1; 
    height: 1px; 
    background: var(--border); 
    max-width: 120px;
}
.partners-content-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 3rem;
    max-width: 1400px;
    margin: 0 auto;
}
.partner-image-container {
    flex: 0 0 40%;
    max-width: 500px;
    position: relative;
}
.partner-image-container img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    border-radius: var(--radius);
    box-shadow: 0 8px 24px rgba(0, 48, 135, 0.15);
    border: 3px solid var(--white);
}
.partners-content-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}
.partners-grid {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 3rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}
.partner-card {
    background: #fff; 
    border: 1px solid var(--border); 
    border-radius: var(--radius);
    padding: 1.5rem 2.5rem; 
    display: flex; 
    align-items: center; 
    gap: 1.2rem;
    min-width: 260px;
}
.partner-logo-big {
    width: 70px; 
    height: 70px; 
    object-fit: contain;
    flex-shrink: 0;
}
.partner-cross {
    font-size: 2.8rem; 
    color: #e63946; 
    font-weight: 300; 
    line-height: 1;
}
.partner-info h4 { 
    font-size: 1.2rem; 
    font-weight: 800; 
    color: var(--text); 
    margin-bottom: 2px; 
}
.partner-info p { 
    font-size: .78rem; 
    color: var(--text-light); 
}
.partner-desc {
    max-width: 600px;
    font-size: .88rem; 
    color: var(--text-mid); 
    line-height: 1.7; 
    text-align: left;
    margin-bottom: 1.5rem;
}
.partner-btn {
    display: inline-flex; 
    align-items: center; 
    gap: 6px;
    padding: 9px 22px; 
    border: 1.5px solid var(--blue);
    border-radius: 6px; 
    color: var(--blue); 
    font-size: .82rem; 
    font-weight: 600;
    transition: all .2s;
}
.partner-btn:hover { 
    background: var(--blue); 
    color: #fff; 
}

/* ══════════════════════════════════════════════
   FOOTER (unchanged)
══════════════════════════════════════════════ */
footer {
  background:var(--blue); color:rgba(255,255,255,.8);
  padding:3.5rem 1.5rem 0;
}
.footer-inner {
  max-width:1200px; margin:0 auto;
  display:grid; grid-template-columns:1.6fr 1fr 1fr 1fr 1.4fr; gap:2rem;
  padding-bottom:3rem;
}
.footer-brand .fb-logo {
  display:flex; align-items:center; gap:10px; margin-bottom:1rem;
}
.fb-logo {
  display: flex;
  align-items: center;    
  gap: 14px;              
  margin-bottom: 1rem;
}
.fb-logo-img {
  width: 64px;            
  height: auto;
  display: block;
  border-radius: 8px;     
  flex-shrink: 0;         
}
.fb-name {
  font-size: .82rem;
  font-weight: 700;
  text-transform: uppercase;   
  letter-spacing: .08em;       
  color: #fff;
  line-height: 1.3;
  margin: 0;                   
}
.footer-social { display:flex; gap:.5rem; }
.footer-social a {
  width:32px; height:32px; border-radius:50%;
  background:rgba(255,255,255,.1); color:rgba(255,255,255,.7);
  display:flex; align-items:center; justify-content:center;
  font-size:.8rem; transition:background .2s, color .2s;
}
.footer-social a:hover { background:var(--gold); color:#fff; }
.footer-col h4 {
  font-size:.82rem; font-weight:700; color:#fff;
  text-transform:uppercase; letter-spacing:.08em;
  margin-bottom:1rem;
}
.footer-col ul li { margin-bottom:.55rem; }
.footer-col ul li a {
  font-size:.8rem; color:rgba(255,255,255,.6);
  transition:color .2s;
}
.footer-col ul li a:hover { color:var(--gold); }
.contact-item {
  display:flex; gap:.65rem; margin-bottom:.65rem; align-items:flex-start;
}
.contact-item i { color:var(--gold); font-size:.8rem; margin-top:3px; flex-shrink:0; }
.contact-item span { font-size:.8rem; color:rgba(255,255,255,.65); line-height:1.5; }
.newsletter-form {
  display:flex; flex-direction:column; gap:.6rem; margin-top:1rem;
}
.newsletter-form input {
  background:rgba(255,255,255,.08); border:1px solid rgba(255,255,255,.2);
  border-radius:4px; padding:9px 14px; color:#fff; font-size:.82rem;
  outline:none; transition:border .2s;
}
.newsletter-form input::placeholder { color:rgba(255,255,255,.4); }
.newsletter-form input:focus { border-color:var(--gold); }
.newsletter-form button {
  background:var(--gold); border:none; border-radius:4px;
  padding:10px; color:#fff; font-size:.82rem; font-weight:700;
  cursor:pointer; transition:background .2s;
}
.newsletter-form button:hover { background:#c98000; }
.footer-bottom {
  border-top:1px solid rgba(255,255,255,.12);
  max-width:1200px; margin:0 auto;
  padding:1.2rem 0;
  display:flex; justify-content:space-between; align-items:center;
  flex-wrap:wrap; gap:.75rem;
}
.footer-bottom span { font-size:.75rem; color:rgba(255,255,255,.45); }
.footer-bottom-links { display:flex; gap:1.5rem; }
.footer-bottom-links a {
  font-size:.75rem; color:rgba(255,255,255,.45); transition:color .2s;
}
.footer-bottom-links a:hover { color:rgba(255,255,255,.8); }

/* ══════════════════════════════════════════════
   SCROLL ANIMATIONS
   Smoother easing + a new "drop from above" variant
══════════════════════════════════════════════ */
.animate { opacity:0; transform:translateY(28px);
  transition:opacity .8s cubic-bezier(.22,1,.36,1), transform .8s cubic-bezier(.22,1,.36,1); }
.animate.in { opacity:1; transform:translateY(0); }

.animate-left { opacity:0; transform:translateX(-40px);
  transition:opacity .8s cubic-bezier(.22,1,.36,1), transform .8s cubic-bezier(.22,1,.36,1); }
.animate-left.in { opacity:1; transform:translateX(0); }

.animate-right { opacity:0; transform:translateX(40px);
  transition:opacity .8s cubic-bezier(.22,1,.36,1), transform .8s cubic-bezier(.22,1,.36,1); }
.animate-right.in { opacity:1; transform:translateX(0); }

.animate-top { opacity:0; transform:translateY(-44px);
  transition:opacity .8s cubic-bezier(.22,1,.36,1), transform .8s cubic-bezier(.22,1,.36,1); }
.animate-top.in { opacity:1; transform:translateY(0); }

/* stagger helper - add alongside any animate-* class for a slight delay */
.delay-1 { transition-delay: .08s; }
.delay-2 { transition-delay: .16s; }
.delay-3 { transition-delay: .24s; }
.delay-4 { transition-delay: .32s; }

/* ══════════════════════════════════════════════
   RESPONSIVE ADJUSTMENTS
   (care section stack, other breakpoints unchanged)
══════════════════════════════════════════════ */
@media(max-width:1024px){
  .cards-grid { grid-template-columns:repeat(2,1fr); }
  .footer-inner { grid-template-columns:repeat(2,1fr); }
}
@media(max-width:900px){
  .nicu-video-row { grid-template-columns:1fr; }
  .mission-choose-row { grid-template-columns:1fr; }
  .stats-inner { grid-template-columns:repeat(2,1fr); }
  .nav-menu { display:none; }
  .hamburger { display:flex; }
  .partner-logo-wrap { display:none; }
  .partner-logo { display:none; }
  .nav-inner { height:auto; min-height:72px; }
  .brand { gap:12px; min-width:0; }
  .brand-text .name { font-size:.9rem; }
  /* ✅ stack care section on tablets */
  .care-container-split {
    flex-direction: column;
    gap: 2.5rem;
  }
  .care-text, .care-image {
    flex: none;
    width: 100%;
  }
  .care-title { font-size: clamp(2rem, 6vw, 2.6rem); }
  .care-subtitle { font-size: 1.4rem; }
  .care-description { max-width: 100%; }
}
@media(max-width:640px){
  .cards-grid { grid-template-columns:1fr; }
  .hero h1 { font-size:1.8rem; }
  .stats-inner { grid-template-columns:repeat(2,1fr); }
  .footer-inner { grid-template-columns:1fr; }
  .topbar-inner { align-items:flex-start; }
  .topbar-left span:not(:first-child) { display:none; }
  .topbar-right { margin-left:auto; }
  .partners-grid { flex-direction:column; align-items:center; }
  .hero-photo { width:100%; opacity:.25; }
  .hero-inner { padding: 3.5rem 1.25rem 4rem; }
  .hero-search { max-width:100%; }
  .hero-btns .btn { width:100%; justify-content:center; }
  .hero-highlights span { width:100%; }
  /* care section already stacks */
  .care-title { font-size: 1.9rem; }
  .care-subtitle { font-size: 1.3rem; }
}
@media(prefers-reduced-motion:reduce){
  .animate,.animate-left,.animate-right { opacity:1; transform:none; transition:none; }
}
/* Home page polish fixes - header fit, footer contrast, why choose spacing */
html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
}

.topbar,
.main-header,
.hero,
.section,
.nicu-video-row,
.stats-strip,
.care-section-split,
.mission-choose-row,
.partners-section,
footer {
  width: 100%;
  max-width: 100vw;
}

.topbar-inner,
.nav-inner,
.hero-inner,
.section-inner,
.footer-inner,
.footer-bottom,
.mission-choose-inner {
  max-width: 1180px !important;
  width: min(100%, 1180px) !important;
}

.nav-inner {
  padding-inline: clamp(0.75rem, 2vw, 1.25rem);
  gap: 0.7rem;
}

.brand {
  min-width: 0;
  gap: 0.65rem;
}

.brand-logo {
  width: 40px;
  height: 40px;
}

.brand-text {
  min-width: 0;
}

.brand-text .name {
  max-width: 190px;
  font-size: 0.78rem;
  line-height: 1.2;
}

.brand-text .sub,
.brand-text .tagline {
  font-size: 0.62rem;
}

.partner-logo img {
  height: 34px;
}

.nav-menu {
  flex: 1 1 auto;
  justify-content: flex-end;
  min-width: 0;
  font-size: 0.69rem;
}

.nav-menu > li > a {
  padding: 5px 5px;
  gap: 3px;
}

.nav-actions {
  flex-shrink: 0;
}

.nav-search-btn {
  width: 36px;
  height: 36px;
  justify-content: center;
  color: var(--blue) !important;
  background: var(--blue-light) !important;
  border-radius: 50%;
  font-size: 0.95rem !important;
  padding: 0 !important;
}

.search-form.active {
  max-width: 210px;
}

.search-form input {
  width: 155px;
  color: var(--text);
  background: #fff;
  border-color: var(--border);
}

.search-form input::placeholder {
  color: var(--text-light);
}

.search-submit-btn {
  color: var(--blue);
}

@media (max-width: 1320px) {
  .partner-logo {
    display: none;
  }

  .nav-menu {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .nav-inner {
    height: 68px;
  }
}

@media (max-width: 560px) {
  .topbar {
    font-size: 0.7rem;
  }

  .topbar-inner {
    padding-inline: 0.85rem;
  }

  .brand-text .name {
    max-width: 155px;
    font-size: 0.72rem;
  }

  .brand-text .sub,
  .brand-text .tagline {
    display: none;
  }

  .search-form.active {
    position: absolute;
    right: 0;
    top: calc(100% + 12px);
    max-width: min(82vw, 280px);
    padding: 8px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
  }

  .search-form input {
    width: min(62vw, 210px);
  }
}

.mission-choose-row {
  padding: clamp(3rem, 6vw, 5rem) 1.25rem;
  background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
}

.mission-choose-inner {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: clamp(1.25rem, 3vw, 2rem) !important;
  align-items: stretch;
}

.mission-block,
.why-block {
  min-width: 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(1.25rem, 2vw, 1.75rem);
  box-shadow: 0 10px 28px rgba(0, 48, 135, 0.08);
  overflow: hidden;
}

.mission-img,
.why-img {
  float: none;
  width: 100%;
  height: 220px;
  margin: 0 0 1.2rem 0;
  border-radius: var(--radius);
}

.mission-block h2,
.why-block h2 {
  font-size: clamp(1.45rem, 2.4vw, 2rem);
  line-height: 1.2;
  margin-bottom: 0.85rem;
  letter-spacing: 0;
}

.why-block h2 {
  max-width: 460px;
}

.why-list {
  display: grid;
  gap: 0.65rem;
  margin: 1rem 0 0;
}

.why-item {
  align-items: center;
  gap: 0.7rem;
  padding: 0.78rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-light);
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 600;
}

.why-check {
  width: 24px;
  height: 24px;
  background: var(--blue);
  color: #fff;
  margin-top: 0;
}

@media (max-width: 900px) {
  .mission-choose-inner {
    grid-template-columns: 1fr !important;
  }
}

footer,
footer p,
footer span,
footer a,
.footer-brand p,
.footer-col ul li a,
.contact-item span,
.footer-bottom span,
.footer-bottom-links a {
  color: #fff !important;
}

.footer-social a {
  color: #fff !important;
  background: rgba(255,255,255,.16);
}

.newsletter-form input {
  color: #fff !important;
  border-color: rgba(255,255,255,.45);
}

.newsletter-form input::placeholder {
  color: rgba(255,255,255,.78) !important;
}

/* Screenshot refinement - wider desktop header and better mission/why layout */
@media (min-width: 1321px) {
  .nav-inner {
    max-width: 1500px !important;
    width: min(100%, 1500px) !important;
    justify-content: flex-start;
    padding-inline: 1.2rem;
    gap: 0.75rem;
  }

  .topbar-inner {
    max-width: 1500px !important;
    width: min(100%, 1500px) !important;
    padding-inline: 1.2rem !important;
  }

  .brand {
    flex: 0 0 255px;
  }

  .brand-logo {
    width: 42px;
    height: 42px;
  }

  .brand-text .name {
    max-width: 185px;
    font-size: 0.72rem;
    line-height: 1.08;
  }

  .brand-text .sub,
  .brand-text .tagline {
    font-size: 0.56rem;
    line-height: 1.12;
  }

  .partner-logo {
    display: none;
  }

  .nav-menu {
    flex: 1 1 auto;
    justify-content: flex-end;
    margin-left: auto;
    font-size: 0.9rem;
    gap: 0.08rem;
  }

  .nav-menu > li > a {
    padding: 7px 7px;
  }

  .nav-actions {
    margin-left: 0.25rem;
  }
}

@media (min-width: 901px) {
  .mission-choose-inner {
    max-width: 1400px !important;
    width: min(100%, 1400px) !important;
    grid-template-columns: minmax(340px, 0.85fr) minmax(560px, 1.35fr) !important;
  }

  .mission-block {
    padding: 1.55rem;
  }

  .why-block {
    display: grid;
    grid-template-columns: minmax(250px, 0.85fr) minmax(320px, 1fr);
    column-gap: 1.5rem;
    align-items: center;
    padding: 1.55rem;
  }

  .why-block .why-img {
    grid-row: 1 / span 2;
    height: 100%;
    min-height: 360px;
    margin: 0;
  }

  .why-block h2 {
    align-self: end;
    max-width: 100%;
    font-size: clamp(1.85rem, 2.4vw, 2.55rem);
    margin: 0 0 1rem;
  }

  .why-list {
    align-self: start;
    margin: 0;
    gap: 0.55rem;
  }

  .why-item {
    padding: 0.68rem 0.75rem;
    font-size: 0.86rem;
    line-height: 1.35;
  }
}

.mission-img img,
.why-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.mission-block h2 {
  font-size: clamp(1.65rem, 2.1vw, 2.25rem);
}

.mission-block p {
  font-size: 0.92rem;
  line-height: 1.7;
}

@media (max-width: 1180px) and (min-width: 901px) {
  .why-block {
    grid-template-columns: 1fr;
  }

  .why-block .why-img {
    grid-row: auto;
    height: 240px;
    min-height: 0;
    margin-bottom: 1rem;
  }
}

/* Screenshot correction - restore header logo and match mission/why card style */
@media (min-width: 1321px) {
  .nav-inner {
    max-width: 1600px !important;
    width: min(100%, 1600px) !important;
    gap: 0.65rem;
  }

  .topbar-inner {
    max-width: 1600px !important;
    width: min(100%, 1600px) !important;
  }

  .brand {
    flex: 0 0 255px;
  }

  .partner-logo {
    display: flex !important;
    flex: 0 0 auto;
    margin-right: 0.6rem;
  }

  .partner-logo img {
    height: 42px;
  }

  .nav-menu {
    justify-content: flex-end;
    font-size: 0.82rem;
    gap: 0;
  }

  .nav-menu > li > a {
    padding: 7px 6px;
  }
}

@media (max-width: 1320px) and (min-width: 901px) {
  .partner-logo {
    display: flex !important;
  }

  .partner-logo img {
    height: 38px;
  }
}

.mission-choose-row {
  display: block !important;
  grid-template-columns: none !important;
  padding: clamp(3rem, 5vw, 4.5rem) clamp(1rem, 3vw, 2rem);
}

.mission-choose-inner {
  margin: 0 auto !important;
  max-width: 1180px !important;
  width: min(100%, 1180px) !important;
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: clamp(2rem, 4vw, 3rem) !important;
  align-items: stretch;
}

.mission-block,
.why-block {
  display: flex !important;
  flex-direction: column;
  padding: clamp(1.45rem, 2.2vw, 1.9rem);
}

.mission-img,
.why-img,
.why-block .why-img {
  float: none !important;
  width: 100% !important;
  height: clamp(230px, 22vw, 285px) !important;
  min-height: 0 !important;
  margin: 0 0 1.35rem 0 !important;
  grid-row: auto !important;
}

.mission-img img,
.why-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.mission-block h2,
.why-block h2 {
  max-width: 100%;
  font-size: clamp(1.8rem, 2.7vw, 2.75rem);
  line-height: 1.12;
  margin-bottom: 1rem;
}

.why-list {
  display: grid;
  gap: 0.7rem;
  margin: 0;
}

.why-item {
  padding: 0.72rem 0.85rem;
  font-size: 0.9rem;
  line-height: 1.45;
}

@media (max-width: 900px) {
  .mission-choose-inner {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
  }
}

/* Reference layout correction - equal header logos and inline mission/why section */
@media (min-width: 1321px) {
  .brand-logo,
  .partner-logo {
    width: 42px !important;
    height: 42px !important;
    flex: 0 0 42px !important;
  }

  .partner-logo {
    display: flex !important;
    align-items: center;
    justify-content: center;
    margin-right: 0.8rem;
  }

  .partner-logo img {
    width: 42px !important;
    height: 42px !important;
    object-fit: contain;
  }
}

.mission-choose-row {
  display: block !important;
  padding: clamp(3.2rem, 5vw, 4.8rem) clamp(1rem, 3vw, 2rem) !important;
  background: #fff !important;
}

.mission-choose-inner {
  max-width: 1280px !important;
  width: min(100%, 1280px) !important;
  margin: 0 auto !important;
  display: grid !important;
  grid-template-columns: minmax(430px, 1fr) minmax(480px, 1.08fr) !important;
  gap: clamp(2.6rem, 5vw, 4.6rem) !important;
  align-items: start !important;
}

.mission-block,
.why-block {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  padding: 0 !important;
  overflow: visible !important;
}

.mission-block {
  display: grid !important;
  grid-template-columns: minmax(190px, 0.72fr) minmax(190px, 1.14fr);
  column-gap: clamp(1.6rem, 3vw, 2.3rem);
  align-items: start;
}

.mission-block .section-tag {
  grid-column: 1;
  margin: 0 0 0.5rem;
  font-size: 0.78rem;
  color: var(--blue);
}

.mission-block h2 {
  grid-column: 1;
  border-left: 3px solid var(--gold) !important;
  padding-left: 0.65rem !important;
  margin: 0 0 1rem !important;
  color: var(--text) !important;
  font-size: clamp(1.35rem, 1.8vw, 1.75rem) !important;
  line-height: 1.15 !important;
}

.mission-block p {
  grid-column: 1;
  margin: 0 0 1.45rem !important;
  color: var(--text-mid) !important;
  font-size: 1rem !important;
  line-height: 1.65 !important;
}

.mission-block .btn {
  grid-column: 1;
  justify-self: start;
}

.mission-img {
  grid-column: 2;
  grid-row: 1 / span 4;
  float: none !important;
  width: 50% !important;
  height: 270px !important;
  min-height: 0 !important;
  margin: 1.55rem 0 0 !important;
  border-radius: 6px !important;
  background: transparent !important;
}

.why-block {
  display: grid !important;
  grid-template-columns: minmax(270px, 1fr) minmax(170px, 0.45fr);
  column-gap: clamp(1.5rem, 3vw, 2rem);
  align-items: start;
}

.why-block h2 {
  grid-column: 1;
  margin: 0 0 1.55rem !important;
  color: var(--text) !important;
  font-size: clamp(1.45rem, 2vw, 1.95rem) !important;
  line-height: 1.28 !important;
  font-weight: 800 !important;
}

.why-block h2 span {
  color: var(--blue) !important;
}

.why-list {
  grid-column: 1;
  display: block !important;
  margin: 0 !important;
}

.why-item {
  display: flex !important;
  align-items: flex-start !important;
  gap: 0.8rem !important;
  padding: 0.72rem 0 !important;
  background: transparent !important;
  border: 0 !important;
  border-bottom: 1px solid var(--border) !important;
  border-radius: 0 !important;
  color: var(--text-mid) !important;
  font-size: 1rem !important;
  font-weight: 500 !important;
  line-height: 1.45 !important;
}

.why-check {
  width: 20px !important;
  height: 20px !important;
  flex: 0 0 20px !important;
  margin-top: 0.12rem !important;
  background: var(--blue-light) !important;
  color: var(--blue) !important;
  font-size: 0.58rem !important;
}

.why-img,
.why-block .why-img {
  grid-column: 2;
  grid-row: 1 / span 2;
  float: none !important;
  width: 100% !important;
  height: 210px !important;
  min-height: 0 !important;
  margin: 0 !important;
  border-radius: 6px !important;
}

.mission-img img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center top !important;
}

.why-img img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center top !important;
}

@media (max-width: 1100px) and (min-width: 901px) {
  .mission-choose-inner {
    grid-template-columns: 1fr !important;
    gap: 3rem !important;
  }
}

@media (max-width: 700px) {
  .mission-block,
  .why-block {
    grid-template-columns: 1fr !important;
  }

  .mission-img,
  .why-img,
  .why-block .why-img {
    grid-column: 1 !important;
    grid-row: auto !important;
    margin: 0 0 1.2rem !important;
    height: 230px !important;
  }

  .mission-block .section-tag,
  .mission-block h2,
  .mission-block p,
  .mission-block .btn,
  .why-block h2,
  .why-list {
    grid-column: 1 !important;
  }
}

/* Header logo balance - equal spacing around hospital title */
@media (min-width: 901px) {
  .nav-inner {
    column-gap: 0 !important;
  }

  .brand {
    flex: 0 0 auto !important;
    gap: 12px !important;
    margin-right: 12px !important;
  }

  .brand-logo,
  .partner-logo,
  .brand-logo img,
  .partner-logo img {
    width: 42px !important;
    height: 42px !important;
  }

  .brand-logo,
  .partner-logo {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 0 0 42px !important;
  }

  .brand-logo img,
  .partner-logo img {
    object-fit: contain !important;
  }

  .brand-text {
    width: 190px !important;
    max-width: 190px !important;
  }

  .partner-logo {
    margin-left: 0 !important;
    margin-right: clamp(1.4rem, 2vw, 2rem) !important;
  }

  .nav-menu {
    margin-left: auto !important;
  }
}

@media (min-width: 1321px) {
  .brand {
    flex-basis: auto !important;
  }
}

/* Header logo/text equal visible gaps - remove invisible fixed text width */
@media (min-width: 901px) {
  .brand {
    flex-basis: auto !important;
    flex-shrink: 0 !important;
    gap: 10px !important;
    margin-right: 10px !important;
  }

  .brand-text {
    width: auto !important;
    max-width: none !important;
    flex: 0 0 auto !important;
    display: block !important;
  }

  .brand-text .sub,
  .brand-text .name,
  .brand-text .tagline {
    width: max-content !important;
    max-width: none !important;
  }

  .partner-logo {
    margin-left: 0 !important;
    margin-right: clamp(1.2rem, 2vw, 1.8rem) !important;
  }
}

/* Uniform page loading style for every page */
.site-page-loader,
.loading-bar,
.b-loader,
.bar {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: auto !important;
  bottom: auto !important;
  width: 100% !important;
  height: 4px !important;
  z-index: 20000 !important;
  pointer-events: none !important;
  background: linear-gradient(90deg, var(--blue, #003087), var(--gold, #e8a020), var(--blue, #003087)) !important;
  background-size: 220% 100% !important;
  transform: scaleX(0) !important;
  transform-origin: left center !important;
  opacity: 1 !important;
  box-shadow: 0 0 14px rgba(232, 160, 32, 0.45) !important;
  animation: siteLoadBar 1.05s ease-out forwards, siteLoadGlow 1.25s linear infinite !important;
}

.site-page-loader.is-hidden {
  opacity: 0 !important;
  transform: scaleX(1) !important;
  transition: opacity 0.25s ease !important;
}

.site-page-loader.is-active {
  opacity: 1 !important;
  animation: siteLoadBar 0.9s ease-out forwards, siteLoadGlow 1.25s linear infinite !important;
}

.loader:not(.site-page-loader) {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 4px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: linear-gradient(90deg, var(--blue, #003087), var(--gold, #e8a020), var(--blue, #003087)) !important;
  transform-origin: left center !important;
  animation: siteLoadBar 1.05s ease-out forwards, siteLoadGlow 1.25s linear infinite !important;
}

@keyframes siteLoadBar {
  0% { transform: scaleX(0); }
  65% { transform: scaleX(0.78); }
  100% { transform: scaleX(1); }
}

@keyframes siteLoadGlow {
  from { background-position: 0% 50%; }
  to { background-position: 220% 50%; }
}

@media (prefers-reduced-motion: reduce) {
  .site-page-loader,
  .loading-bar,
  .b-loader,
  .bar,
  .loader:not(.site-page-loader) {
    animation-duration: 0.01ms !important;
  }
}

/* ══════════════════════════════════════════════
   FINAL POLISH — smaller nav menu, bigger brand
   (requested tweak: shrink nav text a bit, and
   make the hospital logo/name a bit larger and
   easier to read without breaking the layout)
══════════════════════════════════════════════ */

/* Slightly bigger brand logo + text at every size */
.brand-logo {
  width: 46px !important;
  height: 46px !important;
}

.brand-text .name {
  font-size: 0.88rem !important;
  line-height: 1.25 !important;
}

.brand-text .sub,
.brand-text .tagline {
  font-size: 0.68rem !important;
  line-height: 1.25 !important;
}

@media (min-width: 901px) {
  .brand-logo,
  .partner-logo,
  .brand-logo img,
  .partner-logo img {
    width: 48px !important;
    height: 48px !important;
    flex: 0 0 48px !important;
  }

  .brand-text .name {
    font-size: 0.92rem !important;
  }

  .brand-text .sub,
  .brand-text .tagline {
    font-size: 0.7rem !important;
  }
}

@media (min-width: 1321px) {
  .brand-logo,
  .partner-logo,
  .brand-logo img,
  .partner-logo img {
    width: 50px !important;
    height: 50px !important;
    flex: 0 0 50px !important;
  }

  .brand-text .name {
    font-size: 0.95rem !important;
  }

  .brand-text .sub,
  .brand-text .tagline {
    font-size: 0.72rem !important;
  }

  /* Trim the desktop nav menu down a notch */
  .nav-menu {
    font-size: 0.72rem !important;
    gap: 0 !important;
  }

  .nav-menu > li > a {
    padding: 6px 5px !important;
  }

  .nav-menu > li > a i {
    font-size: 0.55rem !important;
  }
}

@media (max-width: 560px) {
  .brand-text .name {
    font-size: 0.78rem !important;
  }
}

/* ══════════════════════════════════════════════
   ROUND 2 POLISH — trim nav further, and make the
   search box float as a dropdown so expanding it
   never overlaps or pushes the menu items
══════════════════════════════════════════════ */

/* Shrink the nav menu a bit more to save space */
@media (min-width: 1321px) {
  .nav-menu {
    font-size: 0.66rem !important;
  }

  .nav-menu > li > a {
    padding: 6px 4px !important;
  }
}

@media (min-width: 901px) and (max-width: 1320px) {
  .nav-menu {
    font-size: 0.68rem !important;
  }

  .nav-menu > li > a {
    padding: 5px 4px !important;
  }
}

/* Search box: always expand as a floating dropdown,
   never inline, so it can't overlap or shove the nav */
.header-search {
  position: relative !important;
}

.search-form {
  position: absolute !important;
  right: 0 !important;
  top: calc(100% + 12px) !important;
  max-width: 0 !important;
  margin-left: 0 !important;
  padding: 0 !important;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  overflow: hidden !important;
  z-index: 500 !important;
}

.search-form.active {
  max-width: min(88vw, 260px) !important;
  padding: 6px !important;
}

.search-form input {
  width: min(72vw, 210px) !important;
}

@media (max-width: 560px) {
  .search-form.active {
    max-width: min(82vw, 280px) !important;
    padding: 8px !important;
  }

  .search-form input {
    width: min(62vw, 210px) !important;
  }
}


/* ══════════════════════════════════════════════
   PAGE TRANSITION — "book opening/closing"
   Loaded once via header.php, so every page in the
   site gets the exact same transition in and out.
══════════════════════════════════════════════ */
#pageTransition {
  position: fixed;
  inset: 0;
  z-index: 99999;
  pointer-events: none;
  perspective: 1800px;
  transform-style: preserve-3d;
}

#pageTransition .pt-panel {
  position: absolute;
  left: 0;
  width: 100%;
  height: 50%;
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-mid) 100%);
  backface-visibility: hidden;
  will-change: transform, opacity;
}

#pageTransition .pt-top {
  top: 0;
  transform-origin: bottom center;
  box-shadow: 0 10px 30px rgba(0,0,0,.28);
  border-bottom: 1px solid rgba(255,255,255,.12);
}

#pageTransition .pt-bottom {
  bottom: 0;
  background: linear-gradient(135deg, var(--blue-mid) 0%, var(--blue) 100%);
  transform-origin: top center;
  box-shadow: 0 -10px 30px rgba(0,0,0,.28);
  border-top: 1px solid rgba(255,255,255,.12);
}

/* Emblem in the centre seam while the "book" is shut */
#pageTransition::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 46px;
  height: 46px;
  margin: -23px 0 0 -23px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 4px 16px rgba(0,0,0,.35);
  opacity: 0;
  transition: opacity .25s ease;
}
#pageTransition.pt-closed::after,
#pageTransition.pt-closing::after {
  opacity: 1;
}

#pageTransition.pt-hidden { display: none; }

/* Opening: panels fold outward like book covers, revealing the page */
#pageTransition.pt-opening .pt-top {
  animation: ptOpenTop .9s cubic-bezier(.65,0,.35,1) forwards;
}
#pageTransition.pt-opening .pt-bottom {
  animation: ptOpenBottom .9s cubic-bezier(.65,0,.35,1) forwards;
}

/* Closing: panels fold back in like shutting a book, before navigating */
#pageTransition.pt-closing .pt-top {
  animation: ptCloseTop .5s cubic-bezier(.55,0,.45,1) forwards;
}
#pageTransition.pt-closing .pt-bottom {
  animation: ptCloseBottom .5s cubic-bezier(.55,0,.45,1) forwards;
}

@keyframes ptOpenTop {
  0%   { transform: rotateX(0deg);    opacity: 1; }
  100% { transform: rotateX(-100deg); opacity: 0; }
}
@keyframes ptOpenBottom {
  0%   { transform: rotateX(0deg);   opacity: 1; }
  100% { transform: rotateX(100deg); opacity: 0; }
}
@keyframes ptCloseTop {
  0%   { transform: rotateX(-100deg); opacity: 0; }
  100% { transform: rotateX(0deg);    opacity: 1; }
}
@keyframes ptCloseBottom {
  0%   { transform: rotateX(100deg); opacity: 0; }
  100% { transform: rotateX(0deg);   opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  #pageTransition.pt-opening .pt-top,
  #pageTransition.pt-opening .pt-bottom,
  #pageTransition.pt-closing .pt-top,
  #pageTransition.pt-closing .pt-bottom {
    animation-duration: .01ms !important;
  }
}

/* ══════════════════════════════════════════════
   HEADER — always fixed, on every page & subpage
   (position:sticky can silently break if any page
   wraps content in an overflow:hidden container,
   so we force position:fixed + JS-measured offset
   instead, which can't be broken that way)
══════════════════════════════════════════════ */
.topbar {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  z-index: 1001 !important;
}

.main-header {
  position: fixed !important;
  top: var(--topbar-h, 38px) !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  z-index: 1000 !important;
}

/* Push page content down by the real (measured) height of the
   topbar + header combined, so nothing loads hidden underneath
   them. --topbar-h / --header-h are set by the script in
   header.php and update automatically on resize. */
body {
  padding-top: calc(var(--topbar-h, 38px) + var(--header-h, 88px)) !important;
}


/* FINAL MENU SIZE ADJUSTMENT
   Slightly reduce only the desktop navigation text.
   Keeps the menu spacing and layout intact. */
@media (min-width: 1321px) {
  .nav-menu {
    font-size: 0.62rem !important;
  }

  .nav-menu > li > a {
    padding: 6px 4px !important;
  }
}
