@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* ===== DESIGN TOKENS ===== */
:root {
  --primary: #0b5cba;
  --primary-dark: #093e82;
  --primary-light: #e8f1fb;
  --secondary: #0ba3ba;
  --accent: #ff6b6b;
  --success: #10b981;
  --warning: #f59e0b;
  --text-dark: #111827;
  --text-mid: #374151;
  --text-light: #6b7280;
  --border: #e5e7eb;
  --bg-white: #ffffff;
  --bg-light: #f8fafc;
  --bg-section: #f1f5f9;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-xl: 32px;
  --shadow-xs: 0 1px 3px rgba(0,0,0,.06);
  --shadow-sm: 0 4px 10px rgba(0,0,0,.07);
  --shadow-md: 0 8px 24px rgba(0,0,0,.09);
  --shadow-lg: 0 16px 40px rgba(0,0,0,.12);
  --shadow-xl: 0 24px 64px rgba(0,0,0,.14);
  --transition: all .3s cubic-bezier(.4,0,.2,1);
  --nav-height: 70px;
}

/* ===== RESET ===== */
*,*::before,*::after { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', sans-serif;
  color: var(--text-dark);
  background: var(--bg-light);
  line-height: 1.7;
  font-size: 16px;
}
img { max-width:100%; display:block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ===== TYPOGRAPHY ===== */
h1 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 800; line-height: 1.15; }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 700; line-height: 1.2; }
h3 { font-size: 1.3rem; font-weight: 700; }
h4 { font-size: 1.1rem; font-weight: 600; }
/* p inherits dark-section color; only set color in light-bg contexts */
p { color: var(--text-mid); }
.page-hero p, .home-hero p, .cta-banner p, .site-footer p { color: inherit; opacity: .88; }
/* Reset opacity for specific overrides */
.page-hero .breadcrumb { opacity: 1; }
.page-hero .breadcrumb a { opacity: .75; }
.page-hero .breadcrumb a:hover { opacity: 1; }

.section-tag {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: .35rem .9rem;
  border-radius: 50px;
  margin-bottom: .75rem;
}
.section-title { color: var(--text-dark); margin-bottom: 1rem; }
.section-subtitle { color: var(--text-light); font-size: 1.05rem; max-width: 620px; margin-bottom: 2.5rem; }

/* ===== LAYOUT ===== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
section { padding: 5rem 0; }
.text-center { text-align: center; }
.text-center .section-subtitle { margin-left: auto; margin-right: auto; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .85rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: .95rem;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  box-shadow: 0 4px 14px rgba(11,92,186,.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(11,92,186,.4); }
.btn-secondary {
  background: #fff;
  color: var(--primary);
  border: 2px solid var(--primary);
}
.btn-secondary:hover { background: var(--primary); color: #fff; }
.btn-white {
  background: #fff;
  color: var(--primary);
  box-shadow: var(--shadow-sm);
}
.btn-white:hover { background: var(--primary-light); }
.btn-accent {
  background: linear-gradient(135deg, var(--accent), #ff9a3c);
  color: #fff;
  box-shadow: 0 4px 14px rgba(255,107,107,.35);
}
.btn-accent:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(255,107,107,.4); }

/* ===== MEGA MENU NAV ===== */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 9999;
  background: #fff;
  box-shadow: 0 2px 20px rgba(0,0,0,.08);
  height: var(--nav-height);
  display: flex;
  align-items: center;
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-size: 1.25rem;         /* reduced so long name fits */
  font-weight: 800;
  color: var(--primary);
  flex-shrink: 0;
  white-space: nowrap;
}
.nav-brand .brand-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.1rem;
}
.nav-menu {
  display: flex;
  align-items: center;
  gap: .15rem;
}

/* Remove default button styling for nav trigger buttons */
.nav-link-btn {
  background: none;
  border: none;
  font-family: inherit;
  cursor: pointer;
  user-select: none;
}
.nav-item, .menu-item {
  position: relative;
}
.nav-link, .menu-item > a {
  display: flex;
  align-items: center;
  gap: .3rem;
  padding: .55rem 1rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: .9rem;
  color: var(--text-mid);
  transition: var(--transition);
  cursor: pointer;
  white-space: nowrap;
}
.nav-link:hover, .nav-link.active,
.menu-item > a:hover, .current-menu-item > a {
  color: var(--primary);
  background: var(--primary-light);
}
.nav-link .nav-arrow, .menu-item > a .nav-arrow {
  font-size: .7rem;
  transition: transform .3s;
  display: inline-block;
}
/* Desktop: arrow rotates on hover */
@media (min-width: 769px) {
  .nav-item:hover .nav-arrow,
  .menu-item:hover .nav-arrow { transform: rotate(180deg); }
}

/* ===== MEGA MENU DROPDOWN ===== */
.mega-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  padding: 2rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s ease, visibility .25s ease, transform .25s ease;
  border: 1px solid var(--border);
  min-width: 600px;
  z-index: 10000;
}
/* Desktop: show on hover */
@media (min-width: 769px) {
  .nav-item:hover .mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
  }
}
.mega-menu-header {
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  font-weight: 700;
  color: var(--text-light);
  margin-bottom: 1rem;
  padding-bottom: .75rem;
  border-bottom: 1px solid var(--border);
}
.mega-menu-grid {
  display: grid;
  gap: .5rem;
}
.mega-menu-grid.cols-2 { grid-template-columns: 1fr 1fr; }
.mega-menu-grid.cols-3 { grid-template-columns: 1fr 1fr 1fr; }
.mega-item {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .75rem 1rem;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}
.mega-item:hover {
  background: var(--primary-light);
}
.mega-item-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}
.mega-item-text strong {
  display: block;
  font-size: .9rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: .15rem;
}
.mega-item-text span {
  font-size: .8rem;
  color: var(--text-light);
}

/* Small dropdown and WP sub-menus */
.dropdown-menu, .sub-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: .75rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s ease, visibility .25s ease, transform .25s ease;
  border: 1px solid var(--border);
  min-width: 220px;
  z-index: 10000;
}
/* Desktop: show on hover */
@media (min-width: 769px) {
  .nav-item:hover .dropdown-menu,
  .menu-item-has-children:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
  }
}
.dropdown-item, .sub-menu li a {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .65rem .9rem;
  border-radius: 8px;
  font-size: .9rem;
  font-weight: 500;
  color: var(--text-mid);
  transition: var(--transition);
}
.dropdown-item:hover, .sub-menu li a:hover { background: var(--primary-light); color: var(--primary); }

/* Emergency badge */
.nav-emergency {
  display: flex;
  align-items: center;
  gap: .5rem;
  background: var(--accent);
  color: white;
  padding: .5rem 1.25rem;
  border-radius: 50px;
  font-size: .85rem;
  font-weight: 700;
  flex-shrink: 0;
}

/* Mobile hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: .5rem;
  background: none;
  border: none;
  z-index: 10001;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-dark);
  border-radius: 2px;
  transition: var(--transition);
  transform-origin: center;
}
/* Hamburger → X animation */
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== PAGE HERO BANNER (for inner pages) ===== */
.page-hero {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--secondary) 100%);
  padding: 5rem 0 4rem;
  color: white;
}
.page-hero .breadcrumb {
  display: flex;
  gap: .5rem;
  font-size: .85rem;
  opacity: .8;
  margin-bottom: 1rem;
}
.page-hero .breadcrumb a { color: rgba(255,255,255,.75); }
.page-hero .breadcrumb a:hover { color: white; }
.page-hero .breadcrumb-sep { color: rgba(255,255,255,.4); }
.page-hero h1 { color: white; margin-bottom: .75rem; }
.page-hero p { opacity: .85; font-size: 1.1rem; max-width: 600px; }

/* ===== HOMEPAGE HERO ===== */
.home-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 45%, var(--secondary) 100%);
  padding: 8rem 0 6rem;
  color: white;
}
.home-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.home-hero .hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.home-hero h1 { color: white; letter-spacing: -.02em; }
.home-hero .hero-sub {
  font-size: 1.15rem;
  opacity: .88;
  margin: 1.5rem 0 2.5rem;
  max-width: 520px;
}
.hero-btns { display: flex; flex-wrap: wrap; gap: 1rem; }
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 3rem;
}
.hero-stat {
  background: rgba(255,255,255,.12);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  text-align: center;
}
.hero-stat .stat-num { font-size: 2rem; font-weight: 800; color: white; }
.hero-stat .stat-label { font-size: .8rem; opacity: .75; margin-top: .25rem; }
.hero-img-block {
  position: relative;
  display: flex;
  justify-content: center;
}
.hero-img-block img {
  width: 100%;
  max-width: 480px;
  border-radius: var(--radius-xl);
  object-fit: cover;
  box-shadow: var(--shadow-xl);
}
.hero-badge {
  position: absolute;
  bottom: 2rem;
  left: -1rem;
  background: white;
  border-radius: var(--radius-md);
  padding: .85rem 1.25rem;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: .75rem;
}
.hero-badge .badge-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.2rem;
}
.hero-badge strong { display: block; color: var(--text-dark); font-size: .95rem; }
.hero-badge span { color: var(--text-light); font-size: .8rem; }

/* ===== CARDS ===== */
.card {
  background: var(--bg-white);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: var(--transition);
  box-shadow: var(--shadow-xs);
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-light);
}
.card img { width: 100%; height: 200px; object-fit: cover; }
.card-body { padding: 1.5rem; }
.card-tag {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary);
  font-size: .75rem;
  font-weight: 700;
  padding: .25rem .75rem;
  border-radius: 50px;
  margin-bottom: .75rem;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.card-body h3 { margin-bottom: .6rem; }
.card-body p { font-size: .95rem; color: var(--text-light); }

/* ===== DOCTOR CARD ===== */
.doctor-card {
  background: var(--bg-white);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: var(--transition);
  box-shadow: var(--shadow-xs);
}
.doctor-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.doctor-card img { width: 100%; height: 240px; object-fit: cover; }
.doctor-info { padding: 1.25rem; }
.doctor-name { font-size: 1.05rem; font-weight: 700; color: var(--text-dark); margin-bottom: .25rem; }
.doctor-degree { font-size: .8rem; color: var(--text-light); margin-bottom: .4rem; }
.doctor-spec {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-size: .8rem;
  font-weight: 600;
  color: var(--primary);
  background: var(--primary-light);
  padding: .25rem .75rem;
  border-radius: 50px;
  margin-bottom: .75rem;
}
.doctor-bio { font-size: .85rem; color: var(--text-light); margin-bottom: 1rem; line-height: 1.6; }
.doctor-schedule { font-size: .8rem; color: var(--text-light); background: var(--bg-section); padding: .6rem .8rem; border-radius: 6px; margin-bottom: 1rem; }

/* ===== DEPT CARD (detailed) ===== */
.dept-card {
  background: var(--bg-white);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: var(--transition);
  box-shadow: var(--shadow-xs);
}
.dept-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.dept-card-img { width: 100%; height: 200px; object-fit: cover; }
.dept-card-body { padding: 1.5rem; }
.dept-card-body h3 { margin-bottom: .6rem; color: var(--primary); }
.dept-card-body p { font-size: .9rem; color: var(--text-light); margin-bottom: 1rem; }
.dept-doctors-list { font-size: .82rem; color: var(--text-light); background: var(--bg-section); padding: .6rem .9rem; border-radius: 6px;}
.dept-doctors-list strong { color: var(--primary); }

/* ===== TESTIMONIALS ===== */
.testimonial-card {
  background: var(--bg-white);
  border-radius: var(--radius-md);
  padding: 2rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-xs);
  position: relative;
}
.testimonial-card::before {
  content: '"';
  font-size: 5rem;
  line-height: 1;
  font-family: Georgia, serif;
  color: var(--primary);
  opacity: .1;
  position: absolute;
  top: 1rem;
  left: 1.5rem;
}
.testimonial-stars { color: #f59e0b; margin-bottom: 1rem; font-size: 1.1rem; }
.testimonial-text { font-style: italic; color: var(--text-mid); margin-bottom: 1.5rem; line-height: 1.7; }
.testimonial-author { display: flex; align-items: center; gap: .75rem; }
.testimonial-avatar { width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(135deg, var(--primary), var(--secondary)); display: flex; align-items: center; justify-content: center; color: white; font-weight: 700; font-size: 1rem; }
.testimonial-name strong { display: block; font-weight: 700; font-size: .95rem; }
.testimonial-name span { font-size: .8rem; color: var(--text-light); }

/* ===== CTA BANNER ===== */
.cta-banner {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary), var(--secondary));
  border-radius: var(--radius-xl);
  padding: 4rem 3rem;
  color: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  box-shadow: var(--shadow-xl);
  flex-wrap: wrap;
}
.cta-banner h2 { color: white; font-size: 2rem; }
.cta-banner p { color: rgba(255,255,255,.88); margin-top: .5rem; }

/* ===== GRID ===== */
.grid { display: grid; gap: 2rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-5 { grid-template-columns: repeat(5, 1fr); }

/* ===== STATS STRIP ===== */
.stats-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  border: 1px solid var(--border);
}
.stat-box {
  padding: 2.5rem 2rem;
  text-align: center;
  border-right: 1px solid var(--border);
}
.stat-box:last-child { border-right: none; }
.stat-box .stat-num { font-size: 2.5rem; font-weight: 800; color: var(--primary); display: block; }
.stat-box .stat-label { font-size: .875rem; color: var(--text-light); margin-top: .25rem; }

/* ===== DEPT DETAIL PAGE ===== */
.dept-detail-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.dept-detail-img { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.dept-detail-img img { width: 100%; height: 400px; object-fit: cover; }

.info-list { list-style: none; padding: 0; margin: 0; }
.info-list li {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  padding: .85rem 0;
  border-bottom: 1px solid var(--border);
  font-size: .95rem;
}
.info-list li:last-child { border-bottom: none; }
.info-list .icon { color: var(--primary); font-size: 1.2rem; margin-top: .1rem; flex-shrink: 0; }

/* ===== FORMS ===== */
.form-wrap {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 3rem;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
}
.form-grid { display: grid; gap: 1.5rem; }
.form-grid-2 { grid-template-columns: 1fr 1fr; }
.form-group { display: flex; flex-direction: column; gap: .4rem; }
.form-label { font-size: .875rem; font-weight: 600; color: var(--text-dark); }
.form-control {
  padding: .8rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: .95rem;
  font-family: inherit;
  color: var(--text-dark);
  background: var(--bg-white);
  transition: var(--transition);
  width: 100%;
}
.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(11,92,186,.15);
}
select.form-control { appearance: none; cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 20 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M7 7l3 3 3-3' stroke='%236b7280' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; background-size: 20px; }
textarea.form-control { min-height: 130px; resize: vertical; }

/* ===== CONTACT INFO CARDS ===== */
.contact-card {
  background: var(--bg-white);
  border-radius: var(--radius-md);
  padding: 2rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-xs);
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  transition: var(--transition);
}
.contact-card:hover { box-shadow: var(--shadow-sm); transform: translateY(-3px); }
.contact-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}
.contact-card h4 { margin-bottom: .35rem; }
.contact-card p { font-size: .9rem; }

/* ===== BLOG ===== */
.blog-card { background: var(--bg-white); border-radius: var(--radius-md); border: 1px solid var(--border); overflow: hidden; transition: var(--transition); box-shadow: var(--shadow-xs); display: flex; flex-direction: column; }
.blog-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.blog-card img { width: 100%; height: 220px; object-fit: cover; }
.blog-card-body { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; }
.blog-meta { font-size: .8rem; color: var(--text-light); margin-bottom: .75rem; display: flex; gap: 1rem; flex-wrap: wrap; }
.blog-card-body h3 { margin-bottom: .75rem; font-size: 1.1rem; }
.blog-card-body p { font-size: .9rem; color: var(--text-light); flex: 1; }
.blog-read-more {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  margin-top: 1.25rem;
  font-size: .875rem;
  font-weight: 600;
  color: var(--primary);
  transition: var(--transition);
}
.blog-read-more:hover { gap: .65rem; color: var(--secondary); }

/* ===== FOOTER ===== */
.site-footer {
  background: #0a1628;
  color: #94a3b8;
  padding: 5rem 0 2rem;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; padding-bottom: 3rem; border-bottom: 1px solid rgba(255,255,255,.08); }
.footer-brand { font-size: 1.5rem; font-weight: 800; color: white; display: flex; align-items: center; gap: .6rem; margin-bottom: 1rem; }
.footer-brand .brand-icon { width: 36px; height: 36px; background: linear-gradient(135deg, var(--primary), var(--secondary)); border-radius: 10px; display:flex; align-items:center; justify-content:center; color:white; font-size:1rem; }
.footer-desc { font-size: .9rem; line-height: 1.7; margin-bottom: 1.5rem; }
.footer-social { display: flex; gap: .75rem; }
.footer-social a {
  width: 38px;
  height: 38px;
  background: rgba(255,255,255,.08);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  font-size: .85rem;
  font-weight: 700;
  transition: var(--transition);
}
.footer-social a:hover { background: var(--primary); color: white; transform: translateY(-2px); }
.footer-col h4 { color: white; font-size: .95rem; margin-bottom: 1.25rem; }
.footer-col ul li { margin-bottom: .6rem; }
.footer-col ul li a { font-size: .875rem; color: #94a3b8; transition: var(--transition); }
.footer-col ul li a:hover { color: var(--secondary); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 2rem; flex-wrap: wrap; gap: 1rem; }
.footer-bottom p { font-size: .875rem; }
.footer-bottom-links { display: flex; gap: 1.5rem; }
.footer-bottom-links a { font-size: .875rem; color: #94a3b8; transition: var(--transition); }
.footer-bottom-links a:hover { color: var(--secondary); }

/* ===== UTILITY ===== */
.mt-1 { margin-top: .5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-auto { margin-top: auto; }
.mb-1 { margin-bottom: .5rem; }
.mb-2 { margin-bottom: 1rem; }
.gap-1 { gap: .5rem; }
.flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.pill {
  display: inline-flex;
  align-items: center;
  padding: .25rem .75rem;
  border-radius: 50px;
  font-size: .8rem;
  font-weight: 600;
}
.pill-primary { background: var(--primary-light); color: var(--primary); }
.pill-success { background: #d1fae5; color: #065f46; }
.pill-warning { background: #fef3c7; color: #92400e; }
.divider { height: 1px; background: var(--border); margin: 2rem 0; }
.bg-white { background: var(--bg-white); }
.bg-section { background: var(--bg-section); }
.rounded-lg { border-radius: var(--radius-lg); }
.shadow-md { box-shadow: var(--shadow-md); }
.p-8 { padding: 3rem; }
.badge-emergency {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: rgba(255,0,0,.1);
  color: #dc2626;
  border: 1px solid rgba(220,38,38,.2);
  border-radius: 50px;
  padding: .35rem 1rem;
  font-size: .85rem;
  font-weight: 700;
}
.badge-emergency .pulse {
  width: 8px;
  height: 8px;
  background: #dc2626;
  border-radius: 50%;
  animation: pulse 1.5s infinite;
}
@keyframes pulse { 0%,100% { opacity:1; transform:scale(1); } 50% { opacity:.6; transform:scale(1.3); } }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-5 { grid-template-columns: repeat(2, 1fr); }
  .stats-strip { grid-template-columns: repeat(2, 1fr); }
  .stats-strip .stat-box:nth-child(2) { border-right: none; }
  .stats-strip .stat-box:nth-child(3) { border-top: 1px solid var(--border); }
  .stats-strip .stat-box:last-child { border-top: 1px solid var(--border); }
  .home-hero .hero-inner { grid-template-columns: 1fr; }
  .hero-img-block { display: none; }
  .dept-detail-hero { grid-template-columns: 1fr; }
  .dept-detail-img { display: none; }
}
@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
  section { padding: 3rem 0; }

  /* ─── Mobile Nav overlay ─── */
  .nav-menu {
    display: none;
    position: fixed;           /* fixed so it overlays all content */
    top: var(--nav-height);
    left: 0;
    right: 0;
    bottom: 0;
    background: white;
    flex-direction: column;
    padding: 1rem 1.25rem 2rem;
    box-shadow: var(--shadow-xl);
    align-items: flex-start;
    overflow-y: auto;
    z-index: 9998;
    gap: 0;
  }
  .nav-menu.open { display: flex; }

  /* Each nav item takes full width */
  .nav-menu .nav-item, .nav-menu .menu-item { width: 100%; border-bottom: 1px solid var(--border); }
  .nav-menu .nav-item:last-child, .nav-menu .menu-item:last-child { border-bottom: none; }
  .nav-menu .nav-link,
  .nav-menu .nav-link-btn,
  .nav-menu .menu-item > a {
    width: 100%;
    padding: .85rem .5rem;
    font-size: 1rem;
    justify-content: space-between;
    border-radius: 0;
  }

  /* ─── Mobile dropdowns: hidden by default, shown via JS .mob-open ─── */
  .mega-menu, .dropdown-menu, .sub-menu {
    position: static;
    transform: none !important;
    opacity: 1;
    visibility: visible;
    box-shadow: none;
    border: none;
    border-left: 3px solid var(--primary);
    border-radius: 0;
    padding: .25rem 0 .5rem 1rem;
    min-width: auto;
    width: 100%;
    /* Hidden until .mob-open added by JS */
    display: none;
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s ease;
  }
  .mega-menu.mob-open, .dropdown-menu.mob-open, .sub-menu.mob-open {
    display: block;
    max-height: 600px;
  }

  /* Stack mega menu grid to single column */
  .mega-menu-grid.cols-2,
  .mega-menu-grid.cols-3 { grid-template-columns: 1fr; }
  .mega-menu { padding: .5rem 0 .75rem 0; }
  .mega-menu-header { padding-left: 1rem; }
  .mega-item { padding: .5rem .75rem; }
  .mega-item-icon { width: 32px; height: 32px; font-size: 1rem; }

  /* Dropdown items */
  .dropdown-item { padding: .6rem .5rem; font-size: .9rem; }

  /* Hide emergency button on mobile */
  .nav-emergency { display: none; }
  .nav-toggle { display: flex; }

  /* ─── Layouts ─── */
  .footer-grid { grid-template-columns: 1fr; }
  .grid-2, .grid-3, .grid-4, .grid-5 { grid-template-columns: 1fr; }
  .form-grid-2 { grid-template-columns: 1fr; }
  .cta-banner { text-align: center; justify-content: center; padding: 2.5rem 1.5rem; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .form-wrap { padding: 1.5rem; }
  .nav-brand { font-size: 1.05rem; }
}
b o d y . a d m i n - b a r   . s i t e - n a v   {   t o p :   3 2 p x ;   }   @ m e d i a   s c r e e n   a n d   ( m a x - w i d t h :   7 8 2 p x )   {   b o d y . a d m i n - b a r   . s i t e - n a v   {   t o p :   4 6 p x ;   }   }  
 