/* ============================================================
   NeuraTwin.in — Shared Design System
   India's GIS · Digital Twin · Policy Intelligence Platform
   ============================================================ */

/* ── 1. Root Variables ─────────────────────────────────────── */
:root {
  --navy:        #1e3a5f;
  --navy-dark:   #142847;
  --navy-light:  #2d5282;
  --blue:        #2563eb;
  --blue-light:  #3b82f6;
  --teal:        #0891b2;
  --teal-light:  #06b6d4;
  --saffron:     #ea580c;
  --saffron-lt:  #f97316;
  --green:       #16a34a;
  --green-light: #22c55e;
  --red:         #dc2626;
  --purple:      #7c3aed;

  --bg:          #f0f4f8;
  --bg-alt:      #e8eef5;
  --white:       #ffffff;
  --border:      #d1dbe8;
  --border-lt:   #e8eef5;

  --text:        #1e293b;
  --text-muted:  #64748b;
  --text-light:  #94a3b8;

  --shadow-sm:   0 1px 3px rgba(30,58,95,.08), 0 1px 2px rgba(30,58,95,.06);
  --shadow:      0 4px 12px rgba(30,58,95,.10), 0 2px 4px rgba(30,58,95,.06);
  --shadow-lg:   0 10px 30px rgba(30,58,95,.14), 0 4px 8px rgba(30,58,95,.08);

  --radius-sm:   6px;
  --radius:      10px;
  --radius-lg:   16px;
  --radius-xl:   24px;

  --transition:  all .22s ease;
  --font:        'Inter', 'Segoe UI', sans-serif;
}

/* ── 2. Reset & Base ───────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--blue); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--navy); }
img { max-width: 100%; display: block; }
ul { list-style: none; }
button { cursor: pointer; font-family: var(--font); }
input, select, textarea { font-family: var(--font); }

/* ── 3. Typography ─────────────────────────────────────────── */
h1 { font-size: clamp(1.75rem, 3vw, 2.5rem); font-weight: 800; line-height: 1.2; }
h2 { font-size: clamp(1.35rem, 2.5vw, 1.9rem); font-weight: 700; line-height: 1.3; }
h3 { font-size: clamp(1.1rem, 2vw, 1.35rem); font-weight: 700; line-height: 1.35; }
h4 { font-size: 1.05rem; font-weight: 600; }
h5 { font-size: .95rem; font-weight: 600; }
p  { color: var(--text-muted); line-height: 1.7; }
small { font-size: .8rem; }

.section-label {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: .5rem;
  display: block;
}

/* ── 4. Layout & Container ─────────────────────────────────── */
.container { width: 100%; max-width: 1260px; margin: 0 auto; padding: 0 24px; }
.container-wide { width: 100%; max-width: 1440px; margin: 0 auto; padding: 0 24px; }

.section { padding: 64px 0; }
.section-sm { padding: 40px 0; }
.section-lg { padding: 96px 0; }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }

.flex { display: flex; }
.flex-center { display: flex; align-items: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-wrap { flex-wrap: wrap; }
.gap-8  { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.gap-24 { gap: 24px; }

/* ── 5. Topbar ─────────────────────────────────────────────── */
.topbar {
  background: var(--navy-dark);
  color: rgba(255,255,255,.65);
  font-size: .78rem;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.topbar .container { display: flex; align-items: center; justify-content: space-between; }
.topbar a { color: rgba(255,255,255,.65); }
.topbar a:hover { color: #fff; }
.topbar-left { display: flex; align-items: center; gap: 16px; }
.topbar-right { display: flex; align-items: center; gap: 16px; }
.topbar-social { display: flex; gap: 10px; }
.topbar-social a {
  width: 22px; height: 22px;
  background: rgba(255,255,255,.1);
  border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  font-size: .65rem;
}
.topbar-social a:hover { background: var(--teal); color: #fff; }

/* ── 6. Header / Navbar ────────────────────────────────────── */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-sm);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 20px;
}

/* Logo */
.logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.logo-icon {
  width: 42px; height: 42px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--teal) 100%);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: -.5px;
  flex-shrink: 0;
}
.logo-text { line-height: 1.1; }
.logo-text .name {
  font-size: 1.15rem; font-weight: 800;
  background: linear-gradient(135deg, var(--navy), var(--teal));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.logo-text .tag {
  font-size: .65rem; color: var(--text-muted); font-weight: 500;
  letter-spacing: .02em;
}

/* Main nav */
.main-nav ul { display: flex; align-items: center; gap: 4px; }
.main-nav a {
  font-size: .875rem; font-weight: 500; color: var(--text);
  padding: 6px 12px; border-radius: var(--radius-sm);
  display: flex; align-items: center; gap: 5px;
  white-space: nowrap;
}
.main-nav a i { font-size: .75rem; color: var(--text-muted); }
.main-nav a:hover, .main-nav a.active {
  background: var(--bg); color: var(--navy);
}
.main-nav a.active { color: var(--blue); font-weight: 600; }

/* Dropdown */
.nav-dropdown { position: relative; }
.dropdown-menu {
  display: none; position: absolute; top: calc(100% + 8px); left: 0;
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow-lg);
  min-width: 220px; padding: 8px; z-index: 999;
}
.nav-dropdown:hover .dropdown-menu { display: block; }
.dropdown-menu a {
  display: block; padding: 8px 12px; font-size: .85rem;
  color: var(--text); border-radius: var(--radius-sm);
}
.dropdown-menu a:hover { background: var(--bg); color: var(--blue); }

/* Header actions */
.header-actions { display: flex; align-items: center; gap: 10px; }
.header-search {
  display: flex; align-items: center;
  background: var(--bg); border: 1px solid var(--border);
  border-radius: 8px; padding: 0 12px; gap: 8px; height: 38px;
}
.header-search input {
  border: none; background: transparent; font-size: .85rem;
  color: var(--text); outline: none; width: 180px;
}
.header-search i { color: var(--text-muted); font-size: .85rem; }

.btn-login {
  background: var(--navy); color: #fff;
  border: none; border-radius: 8px;
  padding: 8px 18px; font-size: .85rem; font-weight: 600;
  transition: var(--transition); white-space: nowrap;
}
.btn-login:hover { background: var(--navy-light); color: #fff; }

/* Mobile hamburger */
.hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; padding: 6px;
}
.hamburger span {
  width: 22px; height: 2px; background: var(--text);
  border-radius: 2px; transition: var(--transition);
}

/* ── 7. Page Hero Banners ──────────────────────────────────── */
.page-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 60%, var(--teal) 100%);
  color: #fff; padding: 52px 0 48px;
  position: relative; overflow: hidden;
}
.page-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");
}
.page-hero .container { position: relative; }
.page-hero h1 { color: #fff; margin-bottom: 12px; }
.page-hero p   { color: rgba(255,255,255,.80); font-size: 1.05rem; max-width: 620px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,.15); backdrop-filter: blur(4px);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 20px; padding: 4px 12px;
  font-size: .75rem; font-weight: 600; color: rgba(255,255,255,.9);
  margin-bottom: 16px;
}
.hero-badge i { color: var(--teal-light); }

.page-hero-meta { display: flex; align-items: center; gap: 20px; margin-top: 24px; flex-wrap: wrap; }
.hero-stat { text-align: center; }
.hero-stat .num { font-size: 1.6rem; font-weight: 800; color: #fff; line-height: 1; }
.hero-stat .lbl { font-size: .7rem; color: rgba(255,255,255,.65); text-transform: uppercase; letter-spacing: .08em; }
.hero-divider { width: 1px; height: 36px; background: rgba(255,255,255,.2); }

/* ── 8. Breadcrumb ─────────────────────────────────────────── */
.breadcrumb {
  background: var(--white);
  border-bottom: 1px solid var(--border-lt);
  padding: 10px 0;
}
.breadcrumb ol {
  display: flex; align-items: center; gap: 6px;
  font-size: .8rem; color: var(--text-muted);
}
.breadcrumb li { display: flex; align-items: center; gap: 6px; }
.breadcrumb li::after { content: '›'; color: var(--text-light); }
.breadcrumb li:last-child::after { display: none; }
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--blue); }
.breadcrumb .current { color: var(--navy); font-weight: 500; }

/* ── 9. Cards ──────────────────────────────────────────────── */
.card {
  background: var(--white); border-radius: var(--radius);
  border: 1px solid var(--border); box-shadow: var(--shadow-sm);
  transition: var(--transition); overflow: hidden;
}
.card:hover { box-shadow: var(--shadow); border-color: var(--blue-light); transform: translateY(-2px); }
.card-body { padding: 24px; }
.card-header { padding: 18px 24px; border-bottom: 1px solid var(--border-lt); }
.card-footer { padding: 14px 24px; border-top: 1px solid var(--border-lt); background: var(--bg); }

/* Module cards (home page) */
.module-card {
  background: var(--white); border-radius: var(--radius-lg);
  border: 1px solid var(--border); padding: 28px;
  transition: var(--transition); position: relative; overflow: hidden;
  display: flex; flex-direction: column; gap: 14px;
  cursor: pointer;
}
.module-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 4px; background: var(--module-color, var(--blue));
}
.module-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); border-color: var(--module-color, var(--blue)); }
.module-card .mod-icon {
  width: 48px; height: 48px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: color-mix(in srgb, var(--module-color, var(--blue)) 12%, transparent);
  color: var(--module-color, var(--blue)); font-size: 1.25rem;
}
.module-card h3 { font-size: 1rem; color: var(--text); }
.module-card p { font-size: .85rem; color: var(--text-muted); line-height: 1.55; }
.module-card .mod-tag {
  font-size: .7rem; font-weight: 600; letter-spacing: .05em;
  text-transform: uppercase; color: var(--module-color, var(--blue));
}
.module-card .mod-link {
  margin-top: auto; font-size: .82rem; font-weight: 600;
  color: var(--module-color, var(--blue));
  display: flex; align-items: center; gap: 4px;
}

/* ── 10. Badges & Tags ─────────────────────────────────────── */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 10px; border-radius: 20px; font-size: .72rem; font-weight: 600;
}
.badge-blue   { background: #dbeafe; color: #1d4ed8; }
.badge-teal   { background: #cffafe; color: #0e7490; }
.badge-green  { background: #dcfce7; color: #15803d; }
.badge-orange { background: #fed7aa; color: #c2410c; }
.badge-red    { background: #fee2e2; color: #dc2626; }
.badge-purple { background: #ede9fe; color: #6d28d9; }
.badge-navy   { background: #e0e7ff; color: #3730a3; }
.badge-grey   { background: var(--bg); color: var(--text-muted); }
.badge-new    { background: var(--teal); color: #fff; }

.tag {
  display: inline-flex; align-items: center;
  padding: 4px 10px; border-radius: 6px;
  font-size: .75rem; font-weight: 500;
  background: var(--bg); color: var(--text-muted);
  border: 1px solid var(--border);
  transition: var(--transition); cursor: pointer;
}
.tag:hover, .tag.active {
  background: var(--navy); color: #fff; border-color: var(--navy);
}

/* ── 11. Buttons ───────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 20px; border-radius: 8px;
  font-size: .875rem; font-weight: 600; transition: var(--transition);
  border: none; cursor: pointer;
}
.btn-primary   { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-light); color: #fff; }
.btn-secondary { background: var(--white); color: var(--navy); border: 1.5px solid var(--navy); }
.btn-secondary:hover { background: var(--navy); color: #fff; }
.btn-teal  { background: var(--teal); color: #fff; }
.btn-teal:hover { background: var(--teal-light); color: #fff; }
.btn-saffron { background: var(--saffron); color: #fff; }
.btn-saffron:hover { background: var(--saffron-lt); color: #fff; }
.btn-ghost { background: transparent; color: var(--text); }
.btn-ghost:hover { background: var(--bg); }
.btn-sm { padding: 6px 14px; font-size: .8rem; }
.btn-lg { padding: 12px 28px; font-size: 1rem; }
.btn-outline { background: transparent; border: 1.5px solid var(--border); color: var(--text); }
.btn-outline:hover { border-color: var(--navy); color: var(--navy); }

/* ── 12. Search Bar ────────────────────────────────────────── */
.search-bar {
  display: flex; gap: 0; background: var(--white);
  border: 1.5px solid var(--border); border-radius: 10px;
  overflow: hidden; box-shadow: var(--shadow-sm);
}
.search-bar input {
  flex: 1; padding: 12px 16px; border: none; outline: none;
  font-size: .9rem; color: var(--text);
}
.search-bar select {
  border: none; border-left: 1px solid var(--border);
  padding: 0 12px; background: var(--bg); color: var(--text-muted);
  font-size: .82rem; outline: none; cursor: pointer;
}
.search-bar button {
  background: var(--navy); color: #fff; border: none;
  padding: 0 20px; font-size: .875rem; font-weight: 600;
  display: flex; align-items: center; gap: 6px; transition: var(--transition);
}
.search-bar button:hover { background: var(--navy-light); }

/* ── 13. Tables ────────────────────────────────────────────── */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--border); }
table { width: 100%; border-collapse: collapse; font-size: .875rem; }
thead { background: var(--navy); color: #fff; }
thead th { padding: 13px 16px; text-align: left; font-weight: 600; font-size: .8rem; letter-spacing: .03em; white-space: nowrap; }
tbody tr { border-bottom: 1px solid var(--border-lt); transition: var(--transition); }
tbody tr:last-child { border-bottom: none; }
tbody tr:hover { background: #f5f8ff; }
tbody td { padding: 13px 16px; color: var(--text); vertical-align: middle; }
tfoot td { background: var(--bg); padding: 12px 16px; font-size: .8rem; color: var(--text-muted); }

/* ── 14. Stats Bar ─────────────────────────────────────────── */
.stats-bar {
  background: var(--white); border-bottom: 1px solid var(--border);
  padding: 0;
}
.stats-bar .container { display: flex; align-items: stretch; }
.stat-item {
  flex: 1; padding: 20px 24px;
  border-right: 1px solid var(--border-lt);
  display: flex; align-items: center; gap: 14px;
}
.stat-item:last-child { border-right: none; }
.stat-icon {
  width: 44px; height: 44px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; flex-shrink: 0;
}
.stat-item .stat-num { font-size: 1.5rem; font-weight: 800; color: var(--navy); line-height: 1; }
.stat-item .stat-lbl { font-size: .72rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: .06em; margin-top: 2px; }

/* ── 15. Sidebar ───────────────────────────────────────────── */
.page-layout { display: grid; grid-template-columns: 280px 1fr; gap: 32px; padding: 40px 0; }
.sidebar {
  position: sticky; top: 80px; height: fit-content;
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
}
.sidebar-header {
  background: var(--navy); color: #fff; padding: 16px 20px;
  font-size: .85rem; font-weight: 700; display: flex; align-items: center; gap: 8px;
}
.sidebar-nav a {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 20px; font-size: .85rem; color: var(--text);
  border-bottom: 1px solid var(--border-lt); transition: var(--transition);
}
.sidebar-nav a i { width: 16px; color: var(--text-muted); }
.sidebar-nav a:hover { background: var(--bg); color: var(--blue); padding-left: 26px; }
.sidebar-nav a.active { background: #eff6ff; color: var(--blue); font-weight: 600; border-left: 3px solid var(--blue); }
.sidebar-nav a:last-child { border-bottom: none; }

/* ── 16. Timeline ──────────────────────────────────────────── */
.timeline { position: relative; padding-left: 24px; }
.timeline::before { content: ''; position: absolute; left: 7px; top: 0; bottom: 0; width: 2px; background: var(--border); }
.timeline-item { position: relative; padding-bottom: 28px; }
.timeline-item::before {
  content: ''; position: absolute; left: -21px; top: 4px;
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--white); border: 2px solid var(--teal);
}
.timeline-item:last-child { padding-bottom: 0; }
.timeline-date { font-size: .72rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 4px; }

/* ── 17. Progress Steps ────────────────────────────────────── */
.steps { display: flex; flex-direction: column; gap: 0; }
.step {
  display: flex; gap: 16px; position: relative;
  padding-bottom: 28px;
}
.step:last-child { padding-bottom: 0; }
.step-num {
  width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: .85rem; font-weight: 800; position: relative; z-index: 1;
}
.step-num::after {
  content: ''; position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
  width: 2px; height: calc(100% + 16px); background: var(--border);
}
.step:last-child .step-num::after { display: none; }
.step-content { flex: 1; padding-top: 6px; }

/* ── 18. Accordion ─────────────────────────────────────────── */
.accordion-item {
  border: 1px solid var(--border); border-radius: var(--radius);
  margin-bottom: 8px; overflow: hidden;
}
.accordion-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px; cursor: pointer; background: var(--white);
  font-weight: 600; font-size: .9rem; transition: var(--transition);
  user-select: none;
}
.accordion-header:hover { background: var(--bg); }
.accordion-header.open { background: var(--navy); color: #fff; }
.accordion-header.open i { color: rgba(255,255,255,.7); transform: rotate(180deg); }
.accordion-header i { transition: var(--transition); color: var(--text-muted); }
.accordion-body { display: none; padding: 20px; border-top: 1px solid var(--border-lt); font-size: .875rem; }
.accordion-body.open { display: block; }

/* ── 19. Tabs ──────────────────────────────────────────────── */
.tabs { border-bottom: 2px solid var(--border); display: flex; gap: 0; }
.tab-btn {
  padding: 11px 20px; font-size: .875rem; font-weight: 500;
  color: var(--text-muted); border: none; background: transparent;
  border-bottom: 2px solid transparent; margin-bottom: -2px;
  transition: var(--transition); display: flex; align-items: center; gap: 6px;
}
.tab-btn:hover { color: var(--navy); }
.tab-btn.active { color: var(--navy); border-bottom-color: var(--navy); font-weight: 700; }
.tab-pane { display: none; }
.tab-pane.active { display: block; }

/* ── 20. Filter Bar ────────────────────────────────────────── */
.filter-bar {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 16px 20px;
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  margin-bottom: 24px;
}
.filter-label { font-size: .8rem; font-weight: 600; color: var(--text-muted); white-space: nowrap; }
.filter-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.filter-select {
  padding: 6px 12px; border: 1px solid var(--border); border-radius: 7px;
  background: var(--bg); color: var(--text); font-size: .82rem; outline: none;
}

/* ── 21. News / Feed Cards ─────────────────────────────────── */
.news-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px; transition: var(--transition);
  display: flex; flex-direction: column; gap: 10px;
}
.news-card:hover { box-shadow: var(--shadow); border-color: var(--border); }
.news-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.news-date { font-size: .75rem; color: var(--text-muted); display: flex; align-items: center; gap: 4px; }
.news-source { font-size: .72rem; font-weight: 700; color: var(--teal); text-transform: uppercase; letter-spacing: .04em; }
.news-card h4 { font-size: .95rem; color: var(--text); line-height: 1.4; }
.news-card p  { font-size: .83rem; color: var(--text-muted); line-height: 1.6; }
.news-card a.read-more { font-size: .8rem; font-weight: 600; color: var(--blue); }

/* ── 22. Comparison Table ──────────────────────────────────── */
.compare-table th { text-align: center; background: var(--navy); color: #fff; padding: 14px 12px; font-size: .8rem; }
.compare-table td { text-align: center; padding: 12px; }
.compare-table td:first-child { text-align: left; font-weight: 600; background: var(--bg); }
.compare-yes { color: var(--green); font-weight: 700; }
.compare-no  { color: var(--red);   font-weight: 700; }
.compare-partial { color: var(--saffron); font-weight: 700; }

/* ── 23. Alert / Notice Boxes ──────────────────────────────── */
.alert {
  padding: 14px 18px; border-radius: var(--radius);
  font-size: .875rem; display: flex; align-items: flex-start; gap: 10px;
  border-left: 4px solid;
}
.alert i { margin-top: 2px; font-size: 1rem; flex-shrink: 0; }
.alert-info   { background: #eff6ff; border-color: var(--blue);    color: #1d4ed8; }
.alert-warn   { background: #fffbeb; border-color: var(--saffron); color: #92400e; }
.alert-success{ background: #f0fdf4; border-color: var(--green);   color: #15803d; }
.alert-error  { background: #fef2f2; border-color: var(--red);     color: #991b1b; }

/* ── 24. Section Headers ───────────────────────────────────── */
.section-head { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 28px; }
.section-head h2 { color: var(--navy); }
.section-head a  { font-size: .85rem; font-weight: 600; color: var(--blue); }

/* ── 25. Footer ────────────────────────────────────────────── */
.site-footer { background: var(--navy-dark); color: rgba(255,255,255,.75); margin-top: auto; }
.footer-top { padding: 52px 0 40px; }
.footer-grid { display: grid; grid-template-columns: 1.8fr 1fr 1fr 1.2fr; gap: 40px; }
.footer-brand .logo-wrap { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.footer-brand .logo-icon { background: linear-gradient(135deg,var(--navy-light),var(--teal)); }
.footer-brand .site-name { font-size: 1.1rem; font-weight: 800; color: #fff; }
.footer-brand .tagline { font-size: .78rem; color: rgba(255,255,255,.55); margin-top: 2px; }
.footer-brand p { font-size: .82rem; line-height: 1.7; margin-bottom: 20px; color: rgba(255,255,255,.6); }
.footer-col h5 { color: #fff; font-size: .85rem; font-weight: 700; margin-bottom: 16px; letter-spacing: .04em; text-transform: uppercase; }
.footer-col ul li { margin-bottom: 9px; }
.footer-col ul a { font-size: .83rem; color: rgba(255,255,255,.6); transition: var(--transition); display: flex; align-items: center; gap: 6px; }
.footer-col ul a i { font-size: .7rem; }
.footer-col ul a:hover { color: #fff; padding-left: 4px; }
.footer-social { display: flex; gap: 8px; margin-top: 20px; }
.footer-social a {
  width: 34px; height: 34px; border-radius: 8px;
  background: rgba(255,255,255,.08); display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.6); transition: var(--transition); font-size: .85rem;
}
.footer-social a:hover { background: var(--teal); color: #fff; }
.newsletter-form {
  display: flex; margin-top: 4px; border-radius: 8px; overflow: hidden;
  border: 1px solid rgba(255,255,255,.15);
}
.newsletter-form input {
  flex: 1; padding: 10px 14px; background: rgba(255,255,255,.08);
  border: none; color: #fff; font-size: .82rem; outline: none;
}
.newsletter-form input::placeholder { color: rgba(255,255,255,.35); }
.newsletter-form button {
  background: var(--teal); color: #fff; border: none; padding: 0 16px;
  font-size: .8rem; font-weight: 600; cursor: pointer; white-space: nowrap;
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08); padding: 18px 0;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px;
}
.footer-bottom p { font-size: .78rem; color: rgba(255,255,255,.4); }
.footer-bottom-links { display: flex; gap: 20px; }
.footer-bottom-links a { font-size: .78rem; color: rgba(255,255,255,.4); }
.footer-bottom-links a:hover { color: rgba(255,255,255,.8); }

/* ── 26. Back to Top ───────────────────────────────────────── */
.back-top {
  position: fixed; bottom: 28px; right: 28px; z-index: 999;
  width: 42px; height: 42px; border-radius: 10px;
  background: var(--navy); color: #fff; border: none;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow); cursor: pointer; transition: var(--transition);
  opacity: 0; pointer-events: none;
}
.back-top.visible { opacity: 1; pointer-events: auto; }
.back-top:hover { background: var(--teal); transform: translateY(-2px); }

/* ── 27. Utilities ─────────────────────────────────────────── */
.text-navy    { color: var(--navy) !important; }
.text-blue    { color: var(--blue) !important; }
.text-teal    { color: var(--teal) !important; }
.text-saffron { color: var(--saffron) !important; }
.text-green   { color: var(--green) !important; }
.text-muted   { color: var(--text-muted) !important; }
.text-white   { color: #fff !important; }
.text-center  { text-align: center; }
.text-right   { text-align: right; }

.bg-navy    { background: var(--navy); }
.bg-teal    { background: var(--teal); }
.bg-saffron { background: var(--saffron); }
.bg-white   { background: var(--white); }
.bg-light   { background: var(--bg); }

.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-40 { margin-top: 40px; }
.mb-8  { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }

.rounded    { border-radius: var(--radius); }
.rounded-lg { border-radius: var(--radius-lg); }
.shadow     { box-shadow: var(--shadow); }

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

/* ── 28. Mobile Responsive ─────────────────────────────────── */
@media (max-width: 1100px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .main-nav { display: none; }
  .hamburger { display: flex; }
  .header-search { display: none; }
  .page-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; }
}
@media (max-width: 768px) {
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .stats-bar .container { flex-direction: column; }
  .stat-item { border-right: none; border-bottom: 1px solid var(--border-lt); }
  .footer-grid { grid-template-columns: 1fr; }
  .topbar-right { display: none; }
  .section { padding: 40px 0; }
}
@media (max-width: 480px) {
  .grid-4 { grid-template-columns: 1fr; }
  .container { padding: 0 16px; }
  .page-hero { padding: 36px 0 32px; }
}

/* ── 29. Mobile Nav Overlay ────────────────────────────────── */
.mobile-nav {
  display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(14,25,40,.95); z-index: 9999;
  flex-direction: column; padding: 24px;
  overflow-y: auto;
}
.mobile-nav.open { display: flex; }
.mobile-nav-close {
  align-self: flex-end; background: rgba(255,255,255,.1);
  border: none; color: #fff; width: 38px; height: 38px;
  border-radius: 8px; display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; margin-bottom: 24px;
}
.mobile-nav a {
  color: rgba(255,255,255,.85); font-size: 1rem; font-weight: 500;
  padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.08);
  display: flex; align-items: center; gap: 12px;
}
.mobile-nav a i { width: 20px; text-align: center; color: var(--teal-light); }
.mobile-nav a:hover { color: #fff; }

/* ── 30. Print Styles ──────────────────────────────────────── */
@media print {
  .site-header, .topbar, .site-footer, .back-top, .mobile-nav { display: none !important; }
  .page-hero { print-color-adjust: exact; -webkit-print-color-adjust: exact; }
}

/* ── 31. Animations ────────────────────────────────────────── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .6; } }
.fade-in-up { animation: fadeInUp .4s ease forwards; }
.live-dot {
  width: 8px; height: 8px; background: var(--green);
  border-radius: 50%; display: inline-block;
  animation: pulse 2s infinite;
}

/* ── 32. Scrollbar ─────────────────────────────────────────── */
::-webkit-scrollbar { width: 7px; height: 7px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-light); }
