:root {
  /* Concept C — Digital Government */
  --navy: #1D4ED8;
  --navy-deep: #1E3A8A;
  --navy-mid: #3B82F6;
  --gold: #F59E0B;
  --gold-light: #FCD34D;
  --gold-pale: rgba(245,158,11,0.10);
  --bg: #F4F7FF;
  --surface: #FFFFFF;
  --surface2: #EEF2FF;
  --text: #0F172A;
  --text-mid: #475569;
  --text-muted: #94A3B8;
  --border: #E2E8F0;
  --shadow: 0 1px 4px rgba(15,23,42,0.06), 0 4px 12px rgba(15,23,42,0.04);
  --shadow-md: 0 4px 20px rgba(15,23,42,0.10);
  --radius: 8px;
  --nav-h: 60px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0F172A;
    --surface: #1E293B;
    --surface2: #1A2744;
    --text: #F1F5F9;
    --text-mid: #CBD5E1;
    --text-muted: #64748B;
    --border: #1E3A5F;
    --shadow: 0 2px 12px rgba(0,0,0,0.4);
    --shadow-md: 0 4px 24px rgba(0,0,0,0.5);
    --navy: #3B82F6;
    --navy-deep: #1E3A8A;
    --navy-mid: #60A5FA;
    --gold-pale: rgba(245,158,11,0.15);
  }
}

:root[data-theme="dark"] {
  --bg: #0F172A; --surface: #1E293B; --surface2: #1A2744;
  --text: #F1F5F9; --text-mid: #CBD5E1; --text-muted: #64748B;
  --border: #1E3A5F;
  --shadow: 0 2px 12px rgba(0,0,0,0.4);
  --shadow-md: 0 4px 24px rgba(0,0,0,0.5);
  --navy: #3B82F6; --navy-deep: #1E3A8A; --navy-mid: #60A5FA;
  --gold-pale: rgba(245,158,11,0.15);
}

:root[data-theme="light"] {
  --navy: #1D4ED8; --navy-deep: #1E3A8A; --navy-mid: #3B82F6;
  --gold: #F59E0B; --gold-light: #FCD34D; --gold-pale: rgba(245,158,11,0.10);
  --bg: #F4F7FF; --surface: #FFFFFF; --surface2: #EEF2FF;
  --text: #0F172A; --text-mid: #475569; --text-muted: #94A3B8;
  --border: #E2E8F0;
  --shadow: 0 1px 4px rgba(15,23,42,0.06), 0 4px 12px rgba(15,23,42,0.04);
  --shadow-md: 0 4px 20px rgba(15,23,42,0.10);
}

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

body {
  font-family: 'Sarabun', 'Noto Sans Thai', 'TH Sarabun New', -apple-system, 'Segoe UI', sans-serif;
  background: var(--bg); color: var(--text);
  font-size: 15px; line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
.ibm { font-family: 'IBM Plex Sans Thai', 'Sarabun', sans-serif; }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; }

/* ── TOP BAR ── */
.top-bar { background: var(--navy-deep); height: 36px; display: flex; align-items: center; }
.top-bar-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between; width: 100%;
}
.top-bar-left { font-size: 10.5px; color: rgba(255,255,255,0.45); display: flex; gap: 12px; align-items: center; letter-spacing: .01em; }
.top-bar-right { display: flex; gap: 12px; align-items: center; }
.top-bar-right a { font-size: 10.5px; color: rgba(255,255,255,0.45); transition: color .15s; }
.top-bar-right a:hover { color: var(--gold); }
.theme-toggle-top { background: none; border: none; cursor: pointer; font-size: 13px; color: rgba(255,255,255,.45); }
.topbar-login-btn {
  font-family: 'IBM Plex Sans Thai','Sarabun',sans-serif;
  font-size: 11px; font-weight: 600; letter-spacing: .03em;
  color: #fff; background: rgba(255,255,255,.13);
  border: 1px solid rgba(255,255,255,.22); border-radius: 4px;
  padding: 4px 13px; line-height: 1; cursor: pointer;
  transition: background .15s, border-color .15s; white-space: nowrap;
  display: inline-flex; align-items: center; gap: 5px;
}
.topbar-login-btn:hover { background: rgba(255,255,255,.22); border-color: rgba(255,255,255,.35); }
.topbar-admin-btn {
  background: rgba(245,158,11,.22); border-color: rgba(245,158,11,.40);
  color: var(--gold-light);
}
.topbar-admin-btn:hover { background: rgba(245,158,11,.35); }
.topbar-user { display: flex; align-items: center; gap: 6px; }
.topbar-user-name { font-size: 10.5px; color: rgba(255,255,255,.40); }
.topbar-logout-btn {
  font-size: 10.5px; color: rgba(255,255,255,.35);
  padding: 4px 8px; border-radius: 3px;
  transition: color .15s, background .15s;
}
.topbar-logout-btn:hover { color: #fca5a5; background: rgba(239,68,68,.12); }

/* ── NAV ── */
nav {
  position: sticky; top: 0; z-index: 100;
  background: var(--surface); height: var(--nav-h);
  display: flex; align-items: center;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 8px rgba(15,23,42,.06);
}
.nav-inner {
  width: 100%; max-width: 1200px; margin: 0 auto;
  padding: 0 24px; display: flex; align-items: center; gap: 4px;
}
.nav-logo { display: flex; align-items: center; gap: 10px; margin-right: auto; flex-shrink: 0; }
.logo-emblem {
  width: 36px; height: 36px; border-radius: 8px;
  background: var(--navy); display: flex; align-items: center; justify-content: center;
  font-family: 'IBM Plex Sans Thai', 'Sarabun', sans-serif;
  font-size: 14px; font-weight: 700; color: #fff; flex-shrink: 0;
  letter-spacing: -.5px;
}
.logo-text { line-height: 1.2; }
.logo-text .line1 { font-family: 'IBM Plex Sans Thai', 'Sarabun', sans-serif; font-size: 9.5px; color: var(--text-muted); letter-spacing: .04em; }
.logo-text .line2 { font-family: 'IBM Plex Sans Thai', 'Sarabun', sans-serif; font-size: 14px; color: var(--text); font-weight: 700; }

.nav-links { display: flex; align-items: stretch; height: var(--nav-h); list-style: none; }
.nav-links li { position: relative; }
.nav-links > li > a {
  display: flex; align-items: center; padding: 0 13px;
  font-family: 'IBM Plex Sans Thai', 'Sarabun', sans-serif;
  font-size: 13px; color: var(--text-mid); font-weight: 500;
  height: 100%; white-space: nowrap;
  transition: color .15s;
  border-bottom: 2px solid transparent;
}
.nav-links > li > a:hover { color: var(--navy); }
.nav-links > li > a.active { color: var(--navy); font-weight: 600; border-bottom-color: var(--navy); }

.nav-links li:hover > .dropdown { display: block; }
.dropdown {
  display: none; position: absolute; top: 100%; left: 0;
  background: var(--surface); border: 1px solid var(--border);
  border-top: 2px solid var(--navy);
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: var(--shadow-md); min-width: 190px; z-index: 200; list-style: none;
}
.dropdown li a {
  display: block; padding: 10px 16px;
  color: var(--text-mid); font-size: 13px;
  border-bottom: 1px solid var(--border);
  transition: background .1s, color .1s, padding-left .1s;
}
.dropdown li:last-child a { border-bottom: none; }
.dropdown li a:hover { background: var(--surface2); color: var(--navy); padding-left: 20px; }

.nav-search {
  display: flex; align-items: center; margin-left: 8px;
  background: var(--surface2); border: 1px solid var(--border);
  border-radius: 20px; overflow: hidden; height: 32px;
}
.nav-search input {
  background: transparent; border: none; outline: none;
  padding: 0 12px; font-size: 12px; color: var(--text); width: 120px;
  font-family: inherit;
}
.nav-search input::placeholder { color: var(--text-muted); }
.nav-search button {
  background: var(--navy); border: none; cursor: pointer;
  padding: 0 12px; height: 100%; color: #fff; font-size: 13px;
  transition: background .15s;
}
.nav-search button:hover { background: var(--navy-deep); }
.nav-admin {
  margin-left: 8px; padding: 0 14px; height: 32px; border-radius: 6px;
  background: var(--navy); color: #fff;
  font-family: 'IBM Plex Sans Thai', 'Sarabun', sans-serif;
  font-size: 12px; font-weight: 600; display: flex; align-items: center;
  gap: 5px; cursor: pointer; border: none; white-space: nowrap;
  transition: background .15s;
}
.nav-admin:hover { background: var(--navy-deep); }
.nav-hamburger { display: none; background: none; border: none; color: var(--text); font-size: 22px; cursor: pointer; }

/* ── SLIDER ── */
.slider-wrap { position: relative; overflow: hidden; background: var(--navy-deep); height: 380px; }
.slider-track { display: flex; transition: transform .6s cubic-bezier(.4,0,.2,1); height: 100%; }
.slide { min-width: 100%; height: 100%; position: relative; overflow: hidden; display: flex; align-items: center; }
.slide-bg { position: absolute; inset: 0; }
.slide-1 .slide-bg { background: #1B3A7A; }
.slide-2 .slide-bg { background: #163260; }
.slide-3 .slide-bg { background: #14415A; }
.slide-has-image { background-size: cover; background-position: center; }
.slide-has-image .slide-bg { background: linear-gradient(90deg, rgba(10,20,50,.88) 0%, rgba(10,20,50,.55) 55%, rgba(10,20,50,.25) 100%); }
/* geometric grid pattern — replaces emoji circle */
.slide-circle {
  position: absolute; right: 60px; top: 50%; transform: translateY(-50%);
  width: 240px; height: 240px;
  background-image: radial-gradient(circle, rgba(255,255,255,.22) 1.5px, transparent 1.5px);
  background-size: 22px 22px;
  font-size: 0; /* hide any text/emoji */
  overflow: hidden;
}
.slide-circle::after {
  content: '';
  position: absolute; inset: 0;
  border: 1px solid rgba(255,255,255,.10);
  transform: rotate(12deg) scale(1.1);
}
.slide-content {
  position: relative; z-index: 2;
  max-width: 1200px; margin: 0 auto; padding: 0 24px; width: 100%;
}
.slide-tag {
  display: inline-block; margin-bottom: 14px;
  font-size: 11px; font-weight: 600;
  color: var(--gold);
  padding: 0 0 6px; border-bottom: 2px solid var(--gold);
}
.slide-title { font-size: clamp(20px,3vw,34px); font-weight: 900; color: #fff; line-height: 1.25; max-width: 560px; margin-bottom: 10px; text-wrap: balance; }
.slide-desc { font-size: 14px; color: rgba(255,255,255,.65); max-width: 480px; margin-bottom: 24px; line-height: 1.6; }
.slide-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--gold); color: var(--navy-deep);
  font-size: 13px; font-weight: 800; padding: 10px 22px; border-radius: 6px;
  transition: background .15s, transform .1s; cursor: pointer; border: none;
  font-family: inherit;
}
.slide-btn:hover { background: var(--gold-light); transform: translateY(-1px); }

.slider-prev, .slider-next {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2);
  color: #fff; width: 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; cursor: pointer; z-index: 10; transition: background .15s;
}
.slider-prev:hover, .slider-next:hover { background: rgba(255,255,255,.25); }
.slider-prev { left: 20px; }
.slider-next { right: 20px; }
.slider-dots { position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; z-index: 10; }
.slider-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.35); cursor: pointer; transition: all .2s; border: none; }
.slider-dot.active { background: var(--gold); width: 24px; border-radius: 4px; }

/* ── STATS HERO ── */
.stats-hero { background: var(--navy); }
.stats-hero-inner {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(4,1fr);
}
.stat-hero-block {
  padding: 28px 28px 24px;
  border-right: 1px solid rgba(255,255,255,.08);
  position: relative;
}
.stat-hero-block:last-child { border-right: none; }
.stat-hero-label {
  font-family: 'IBM Plex Sans Thai', 'Sarabun', sans-serif;
  font-size: 9.5px; font-weight: 600; letter-spacing: .16em;
  text-transform: uppercase; color: rgba(255,255,255,.45);
  margin-bottom: 8px;
}
.stat-hero-num {
  font-family: 'IBM Plex Sans Thai', 'Sarabun', sans-serif;
  font-size: 38px; font-weight: 700; color: #fff;
  font-variant-numeric: tabular-nums; line-height: 1;
  letter-spacing: -1px;
}
.stat-hero-unit {
  font-size: 12px; color: rgba(255,255,255,.45);
  margin-top: 6px; font-weight: 400;
}

/* ── STATS BAR (legacy compat) ── */
.stats-bar { background: var(--navy); border-bottom: 1px solid rgba(255,255,255,.06); }
.stats-bar-inner { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: repeat(4,1fr); }
.stat-item {
  padding: 16px 24px; display: flex; align-items: center; gap: 12px;
  border-right: 1px solid rgba(255,255,255,.08);
}
.stat-item:last-child { border-right: none; }
.stat-icon { width: 40px; height: 40px; border-radius: 10px; background: rgba(245,158,11,.15); display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; }
.stat-num { font-size: 22px; font-weight: 900; color: var(--gold-light); font-variant-numeric: tabular-nums; line-height: 1; }
.stat-label { font-size: 11px; color: rgba(255,255,255,.5); margin-top: 1px; }

/* ── STATS CARDS ── */
.stats-cards-section { margin-bottom: 36px; }
.stats-cards-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
}
.stats-card {
  border-radius: 14px;
  padding: 22px 16px 18px;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: transform .2s, box-shadow .2s;
}
.stats-card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(0,0,0,.15); }
.stats-card::before {
  content: '';
  position: absolute;
  top: -30px; right: -30px;
  width: 90px; height: 90px;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
}
.stats-card-icon { font-size: 28px; margin-bottom: 10px; display: block; }
.stats-card-num {
  font-size: 32px;
  font-weight: 900;
  color: #fff;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  letter-spacing: -1px;
}
.stats-card-label { font-size: 12px; font-weight: 700; color: rgba(255,255,255,.9); margin-top: 6px; line-height: 1.3; }
.stats-card-sub   { font-size: 10px; color: rgba(255,255,255,.55); margin-top: 4px; }

.stats-card-blue   { background: linear-gradient(135deg, #1B4080 0%, #2755A8 100%); box-shadow: 0 4px 20px rgba(27,64,128,.35); }
.stats-card-gold   { background: linear-gradient(135deg, #C47F00 0%, #F0A500 100%); box-shadow: 0 4px 20px rgba(240,165,0,.35); }
.stats-card-green  { background: linear-gradient(135deg, #1a7f4b 0%, #27ae60 100%); box-shadow: 0 4px 20px rgba(39,174,96,.35); }
.stats-card-purple { background: linear-gradient(135deg, #5b2d8e 0%, #8e44ad 100%); box-shadow: 0 4px 20px rgba(142,68,173,.35); }
.stats-card-red    { background: linear-gradient(135deg, #b71c1c 0%, #e53935 100%); box-shadow: 0 4px 20px rgba(229,57,53,.35); }
.stats-card-teal   { background: linear-gradient(135deg, #006064 0%, #00897b 100%); box-shadow: 0 4px 20px rgba(0,137,123,.35); }

@media (max-width: 900px) { .stats-cards-grid { grid-template-columns: repeat(3,1fr); } }
@media (max-width: 540px) { .stats-cards-grid { grid-template-columns: repeat(2,1fr); } }

/* ── METRIC CARDS (editorial style) ── */
.sc-metrics-grid {
  display: grid; grid-template-columns: repeat(6,1fr); gap: 14px;
}
.sc-metric {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 14px; padding: 24px 20px 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
  display: flex; flex-direction: column; gap: 0; align-items: center; text-align: center;
  position: relative; overflow: hidden;
  transition: box-shadow .18s, transform .18s;
}
.sc-metric:hover { box-shadow: 0 6px 20px rgba(0,0,0,.1); transform: translateY(-2px); }
.sc-metric-bar { display: none; }
.sc-metric-icon {
  position: absolute; bottom: -8px; right: -4px;
  font-size: 101px; line-height: 1; opacity: .1;
  pointer-events: none; user-select: none;
}
.sc-metric-abbr { display: none; }
.sc-metric-num {
  font-family: 'IBM Plex Sans Thai','Sarabun',sans-serif;
  font-size: 44px; font-weight: 900; line-height: 1;
  color: var(--navy); font-variant-numeric: tabular-nums; letter-spacing: -2px;
  margin-bottom: 8px; position: relative;
}
.sc-metric-label {
  font-size: 12px; font-weight: 700; color: var(--text); line-height: 1.35;
  position: relative;
}
.sc-metric-sub { font-size: 11px; color: var(--text-muted); margin-top: 4px; position: relative; }
@media (max-width: 1100px) { .sc-metrics-grid { grid-template-columns: repeat(3,1fr); } }
@media (max-width: 600px)  { .sc-metrics-grid { grid-template-columns: repeat(2,1fr); } }

/* ── MAIN ── */
main { max-width: 1200px; margin: 0 auto; padding: 36px 24px 60px; }

/* ── BREADCRUMB ── */
.breadcrumb { font-size: 12px; color: var(--text-muted); margin-bottom: 20px; display: flex; gap: 6px; align-items: center; }
.breadcrumb a { color: var(--navy-mid); }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span { color: var(--text-muted); }

/* ── SECTION HEADER ── */
.section-header {
  display: flex; align-items: flex-end; justify-content: space-between;
  margin-bottom: 18px; padding-bottom: 14px;
  border-bottom: 2px solid var(--text);
}
.section-eyebrow { display: none; }
.section-title {
  font-family: 'IBM Plex Sans Thai', 'Sarabun', sans-serif;
  font-size: 20px; font-weight: 800; color: var(--text);
  letter-spacing: -.3px;
}
.section-link {
  font-family: 'IBM Plex Sans Thai', 'Sarabun', sans-serif;
  font-size: 12px; color: var(--navy); font-weight: 600; white-space: nowrap;
}
.section-link:hover { color: var(--navy-deep); text-decoration: underline; }

/* ── SHORTCUTS ── */
.shortcuts-grid { display: grid; grid-template-columns: repeat(8,1fr); gap: 12px; margin-bottom: 8px; }
.shortcut-card {
  background: transparent; border: none; border-radius: 10px;
  padding: 12px 6px 10px; display: flex; flex-direction: column; align-items: center;
  text-align: center; gap: 10px; cursor: pointer;
  transition: transform .2s;
  text-decoration: none;
}
.shortcut-card:hover { transform: translateY(-4px); }
.shortcut-icon {
  width: 64px; height: 64px; border-radius: 18px;
  background: linear-gradient(145deg, var(--navy) 0%, #2563eb 100%);
  display: flex; align-items: center; justify-content: center;
  font-size: 28px; color: #fff;
  box-shadow: 0 4px 14px rgba(27,58,122,.30);
  transition: box-shadow .2s, transform .2s;
}
.shortcut-card:hover .shortcut-icon {
  box-shadow: 0 8px 22px rgba(27,58,122,.42);
  transform: scale(1.06);
}
.shortcut-name {
  font-family: 'IBM Plex Sans Thai', 'Sarabun', sans-serif;
  font-size: 11.5px; font-weight: 600; color: var(--text); line-height: 1.35;
}

/* ── CONTENT GRID ── */
.content-grid { display: grid; grid-template-columns: 1fr 280px; gap: 24px; margin-bottom: 32px; align-items: start; }

/* ── NEWS TABS ── */
.news-tabs { display: flex; margin-bottom: 12px; border-bottom: 2px solid var(--border); flex-wrap: wrap; }
.news-tab { padding: 8px 14px; font-size: 13px; font-weight: 600; color: var(--text-muted); cursor: pointer; border: none; background: transparent; border-bottom: 2px solid transparent; margin-bottom: -2px; transition: color .15s; font-family: inherit; }
.news-tab { font-family: 'IBM Plex Sans Thai', 'Sarabun', sans-serif; }
.news-tab.active { color: var(--navy); border-bottom-color: var(--navy); }
.news-tab:hover { color: var(--text); }

/* ── NEWS LIST ── */
.news-list { display: flex; flex-direction: column; }
.news-row {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 12px 0; border-bottom: 1px solid var(--border);
  cursor: pointer; transition: background .1s; border-radius: 0;
}
.news-row:last-child { border-bottom: none; }
.news-row:hover { background: var(--gold-pale); margin: 0 -10px; padding: 12px 10px; border-radius: 6px; }
.news-row-thumb {
  width: 80px; height: 56px; flex-shrink: 0; border-radius: 6px; overflow: hidden;
  background: linear-gradient(135deg,var(--navy) 0%,var(--navy-mid) 100%);
  display: flex; align-items: center; justify-content: center; font-size: 22px;
}
.news-row-thumb img { width: 100%; height: 100%; object-fit: cover; }
.news-row-body { flex: 1; min-width: 0; }

.news-tag {
  font-family: 'IBM Plex Sans Thai', 'Sarabun', sans-serif;
  font-size: 9px; font-weight: 600; letter-spacing: .10em; padding: 2px 8px;
  border-radius: 4px; text-transform: uppercase; display: inline-block; margin-bottom: 4px;
}
.tag-news     { background: rgba(29,78,216,.10); color: #1D4ED8; }
.tag-event    { background: rgba(16,185,129,.12); color: #059669; }
.tag-announce { background: rgba(245,158,11,.12); color: #D97706; }
.tag-meeting  { background: rgba(139,92,246,.12); color: #7C3AED; }

.news-row-title { font-size: 13.5px; font-weight: 700; color: var(--text); line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 4px; }
.news-row-meta { font-size: 11px; color: var(--text-muted); display: flex; gap: 10px; }

/* ── SIDEBAR ── */
.sidebar { display: flex; flex-direction: column; gap: 16px; }

/* Director */
.director-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.director-photo { width: 100%; height: 180px; background: linear-gradient(160deg,var(--navy-deep) 0%,var(--navy-mid) 100%); display: flex; align-items: center; justify-content: center; position: relative; }
.director-photo-placeholder { width: 90px; height: 90px; border-radius: 50%; background: rgba(255,255,255,.1); border: 3px solid var(--gold); display: flex; align-items: center; justify-content: center; font-size: 38px; color: rgba(255,255,255,.5); }
.director-photo img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.director-badge { position: absolute; bottom: 0; left: 0; right: 0; background: linear-gradient(to top,rgba(14,37,84,.95) 0%,transparent 100%); padding: 24px 14px 10px; text-align: center; }
.director-name { font-size: 14px; font-weight: 800; color: #fff; line-height: 1.2; }
.director-title-txt { font-size: 10px; color: var(--gold-light); font-weight: 600; margin-top: 2px; }
.director-body { padding: 12px 14px; }
.director-quote { font-size: 12px; color: var(--text-mid); line-height: 1.6; border-left: 2px solid var(--gold); padding-left: 10px; font-style: italic; margin-bottom: 10px; }
.director-manage-btn { font-size: 11px; color: var(--text-muted); background: var(--surface2); border: 1px solid var(--border); border-radius: 4px; padding: 5px 10px; cursor: pointer; width: 100%; text-align: center; transition: border-color .15s,color .15s; font-family: inherit; display: block; }
.director-manage-btn:hover { border-color: var(--gold); color: var(--gold); }

/* Related links */
.related-links-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.related-links-header { background: var(--navy); padding: 10px 14px; font-size: 12px; font-weight: 800; color: #fff; }
.related-link-item { display: flex; align-items: center; gap: 10px; padding: 9px 14px; border-bottom: 1px solid var(--border); cursor: pointer; transition: background .1s; }
.related-link-item:last-child { border-bottom: none; }
.related-link-item:hover { background: var(--gold-pale); }
.related-link-icon { font-size: 16px; flex-shrink: 0; }
.related-link-name { font-size: 12.5px; font-weight: 600; color: var(--text); }
.related-link-url { font-size: 10px; color: var(--text-muted); }
.related-link-arrow { margin-left: auto; font-size: 11px; color: var(--text-muted); }

/* ── CALENDAR ROW ── */
.cal-row { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 32px; align-items: start; }
.cal-widget { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.cal-header { background: var(--navy); padding: 12px 16px; display: flex; align-items: center; justify-content: space-between; }
.cal-month-nav { display: flex; align-items: center; gap: 12px; }
.cal-month-title { font-size: 14px; font-weight: 800; color: #fff; }
.cal-nav-btn { background: rgba(255,255,255,.12); border: none; border-radius: 4px; width: 24px; height: 24px; color: #fff; font-size: 13px; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.cal-nav-btn:hover { background: rgba(255,255,255,.22); }
.cal-google-badge { display: flex; align-items: center; gap: 5px; font-size: 10px; color: rgba(255,255,255,.55); }
.gcal-dot { width: 7px; height: 7px; border-radius: 50%; background: #4285F4; }
.cal-grid { display: grid; grid-template-columns: repeat(7,1fr); }
.cal-dow { padding: 7px 0; text-align: center; font-size: 10px; font-weight: 700; color: var(--text-muted); border-bottom: 1px solid var(--border); }
.cal-cell { aspect-ratio: 1; padding: 5px; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); font-size: 11px; color: var(--text-mid); cursor: pointer; transition: background .1s; display: flex; flex-direction: column; align-items: flex-start; }
.cal-cell:nth-child(7n) { border-right: none; }
.cal-cell:hover { background: var(--gold-pale); }
.cal-cell.other-month { opacity: .35; }
.cal-cell.today { background: var(--gold-pale); }
.cal-cell.today .cal-day { color: var(--gold); font-weight: 900; }
.cal-day { font-size: 12px; font-weight: 600; line-height: 1; margin-bottom: 2px; }
.cal-dots { display: flex; flex-direction: column; gap: 2px; margin-top: 2px; width: 100%; }
.cal-dot { display: flex; align-items: center; gap: 3px; border-radius: 4px; padding: 1px 4px; font-size: 9px; font-weight: 700; color: #fff; line-height: 1.4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.cal-dot::before { content: ''; display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: rgba(255,255,255,.7); flex-shrink: 0; }
.cal-dot.ev-blue { background: #3b82f6; }
.cal-dot.ev-green { background: #10b981; }
.cal-footer { padding: 8px 14px; border-top: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; }
.cal-legend { display: flex; gap: 12px; }
.legend-item { display: flex; align-items: center; gap: 4px; font-size: 10px; color: var(--text-muted); }
.legend-dot { width: 7px; height: 7px; border-radius: 2px; }
.cal-settings-btn { font-size: 10px; color: var(--text-muted); background: none; border: none; cursor: pointer; font-family: inherit; }

/* ── UPCOMING EVENTS ── */
.upcoming-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.upcoming-header { background: var(--navy); padding: 12px 16px; font-size: 14px; font-weight: 800; color: #fff; display: flex; align-items: center; justify-content: space-between; }
.upcoming-list {}
.upcoming-item { display: flex; gap: 14px; padding: 12px 16px; border-bottom: 1px solid var(--border); align-items: flex-start; }
.upcoming-item:last-child { border-bottom: none; }
.upcoming-date-box { flex-shrink: 0; width: 44px; text-align: center; background: var(--navy-deep); border-radius: 6px; padding: 4px 0; border-top: 3px solid var(--gold); }
.upcoming-date-box.ev-blue { border-top-color: #3b82f6; }
.upcoming-date-box.ev-green { border-top-color: #10b981; }
.upcoming-day { font-size: 20px; font-weight: 900; color: #fff; line-height: 1; }
.upcoming-month { font-size: 9px; color: rgba(255,255,255,.5); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.upcoming-title { font-size: 13px; font-weight: 700; color: var(--text); line-height: 1.4; margin-bottom: 3px; }
.upcoming-meta { font-size: 11px; color: var(--text-muted); display: flex; gap: 8px; flex-wrap: wrap; }

/* ── LIVE CHAT WIDGET ── */
#liveChatWidget { position: fixed; right: 20px; bottom: 20px; z-index: 9998; font-family: inherit; }
#lcToggleBtn {
  height: 44px; padding: 0 16px 0 12px; border-radius: 999px; border: none; cursor: pointer;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-deep) 100%); color: #fff;
  font-size: 13px; font-weight: 700; font-family: inherit;
  display: flex; align-items: center; gap: 8px;
  box-shadow: 0 6px 20px rgba(27,58,122,.4);
  transition: transform .18s, box-shadow .18s; white-space: nowrap;
}
#lcToggleBtn .lc-icon { font-size: 20px; line-height: 1; }
#lcToggleBtn:hover { transform: scale(1.05); box-shadow: 0 8px 24px rgba(27,58,122,.5); }
#lcPanel {
  display: none; flex-direction: column; position: absolute; right: 0; bottom: 68px;
  width: 320px; max-width: calc(100vw - 40px); height: 440px; max-height: 70vh;
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px;
  box-shadow: 0 16px 40px rgba(0,0,0,.25); overflow: hidden;
}
#lcHeader {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-deep) 100%); color: #fff;
  padding: 14px 16px; font-size: 14px; font-weight: 700;
  display: flex; align-items: center; justify-content: space-between; flex-shrink: 0;
}
#lcHeader button { background: none; border: none; color: #fff; cursor: pointer; font-size: 15px; opacity: .8; }
#lcHeader button:hover { opacity: 1; }
#lcStart { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 10px; padding: 20px; }
#lcStart p { font-size: 13px; color: var(--text-mid); margin-bottom: 4px; }
#lcNameInput {
  border: 1px solid var(--border); border-radius: 8px; padding: 9px 12px; font-family: inherit;
  font-size: 13px; background: var(--bg); color: var(--text);
}
#lcStartBtn {
  appearance: none; border: none; cursor: pointer; background: var(--gold); color: #fff;
  font-family: inherit; font-size: 13px; font-weight: 700; padding: 10px; border-radius: 8px;
}
#lcThread { display: flex; flex-direction: column; height: 100%; }
#lcMessages { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 8px; }
.lc-msg { display: flex; max-width: 82%; }
.lc-msg span {
  display: inline-block; padding: 8px 12px; border-radius: 12px; font-size: 13px; line-height: 1.5;
  word-break: break-word;
}
.lc-msg-visitor { align-self: flex-end; }
.lc-msg-visitor span { background: var(--navy); color: #fff; border-bottom-right-radius: 3px; }
.lc-msg-admin { align-self: flex-start; }
.lc-msg-admin span { background: var(--bg); color: var(--text); border: 1px solid var(--border); border-bottom-left-radius: 3px; }
#lcInputRow { display: flex; gap: 6px; padding: 10px; border-top: 1px solid var(--border); flex-shrink: 0; }
#lcMsgInput {
  flex: 1; border: 1px solid var(--border); border-radius: 8px; padding: 8px 12px;
  font-family: inherit; font-size: 13px; background: var(--bg); color: var(--text);
}
#lcSendBtn {
  appearance: none; border: none; cursor: pointer; background: var(--navy); color: #fff;
  font-family: inherit; font-size: 13px; font-weight: 700; padding: 8px 16px; border-radius: 8px;
}
@media (max-width: 480px) {
  #lcPanel { width: calc(100vw - 32px); right: -4px; }
}

/* ── SATISFACTION FLOATING WIDGET ── */
#satisfactionWidget { position: fixed; right: 20px; bottom: 92px; z-index: 9997; font-family: inherit; }
#swToggleBtn {
  height: 44px; padding: 0 16px 0 12px; border-radius: 999px; border: none; cursor: pointer;
  background: linear-gradient(135deg, var(--gold) 0%, #d97706 100%); color: #fff;
  font-size: 13px; font-weight: 700; font-family: inherit;
  display: flex; align-items: center; gap: 8px;
  box-shadow: 0 6px 20px rgba(217,119,6,.4);
  transition: transform .18s, box-shadow .18s; white-space: nowrap;
}
#swToggleBtn .sw-icon { font-size: 20px; line-height: 1; }
#swToggleBtn:hover { transform: scale(1.05); box-shadow: 0 8px 24px rgba(217,119,6,.5); }
#swPanel {
  display: none; flex-direction: column; position: absolute; right: 0; bottom: 68px;
  width: 300px; max-width: calc(100vw - 40px);
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px;
  box-shadow: 0 16px 40px rgba(0,0,0,.25); overflow: hidden;
}
#swHeader {
  background: linear-gradient(135deg, var(--gold) 0%, #d97706 100%); color: #fff;
  padding: 14px 16px; font-size: 14px; font-weight: 700;
  display: flex; align-items: center; justify-content: space-between; flex-shrink: 0;
}
#swHeader button { background: none; border: none; color: #fff; cursor: pointer; font-size: 15px; opacity: .8; }
#swHeader button:hover { opacity: 1; }
.satisfaction-card, .satisfaction-thanks { text-align: center; padding: 24px 20px; }
.satisfaction-icon { font-size: 30px; margin-bottom: 8px; }
.satisfaction-title { font-size: 14px; font-weight: 800; color: var(--text); margin-bottom: 4px; }
.satisfaction-sub { font-size: 12px; color: var(--text-muted); margin-bottom: 14px; }
.satisfaction-stars { display: flex; justify-content: center; gap: 4px; margin-bottom: 4px; }
.sat-star {
  appearance: none; background: none; border: none; cursor: pointer;
  font-size: 28px; line-height: 1; color: var(--border); transition: color .12s, transform .12s;
}
.sat-star:hover, .sat-star.active { color: var(--gold); transform: scale(1.12); }
.satisfaction-comment {
  width: 100%; margin: 12px auto 0; display: block;
  border: 1px solid var(--border); border-radius: 8px; padding: 9px 11px;
  font-family: inherit; font-size: 12.5px; color: var(--text); background: var(--bg); resize: vertical;
}
.satisfaction-submit-btn {
  margin-top: 12px; width: 100%; appearance: none; border: none; cursor: pointer;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-deep) 100%); color: #fff;
  font-family: inherit; font-size: 13px; font-weight: 700; padding: 10px; border-radius: 8px;
  transition: transform .15s, box-shadow .15s;
}
.satisfaction-submit-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(27,58,122,.3); }
.satisfaction-submit-btn:disabled { opacity: .6; cursor: default; transform: none; }
@media (max-width: 480px) {
  #swPanel { width: calc(100vw - 32px); right: -4px; }
  #satisfactionWidget { bottom: 88px; }
}

/* Chat closed → rate prompt inside chat panel */
.lc-rating { padding: 20px 16px; text-align: center; }
.lc-rating .satisfaction-stars { margin-bottom: 4px; }

/* ── SYS LINKS ── */
.sys-links-grid { display: grid; grid-template-columns: repeat(6,1fr); gap: 12px; }
.sys-link-card {
  background: transparent; border: none; border-radius: 12px;
  padding: 12px 8px 10px; text-align: center; display: flex; flex-direction: column;
  align-items: center; gap: 10px; cursor: pointer;
  transition: transform .2s; text-decoration: none;
}
.sys-link-card:hover { transform: translateY(-4px); }
.sys-link-icon {
  width: 68px; height: 68px; border-radius: 20px;
  background: linear-gradient(145deg, #eef2ff 0%, #dde6ff 100%);
  display: flex; align-items: center; justify-content: center;
  font-size: 30px;
  box-shadow: 0 4px 14px rgba(27,58,122,.12);
  transition: box-shadow .2s, transform .2s;
}
.sys-link-card:hover .sys-link-icon {
  box-shadow: 0 8px 22px rgba(27,58,122,.22);
  transform: scale(1.08);
}
.sys-link-name { font-size: 12.5px; font-weight: 700; color: var(--text); line-height: 1.35; }
.sys-link-type { font-size: 10.5px; color: var(--text-muted); font-weight: 500; }

/* ── ADMIN BARS ── */
.admin-section-bar { background: var(--gold-pale); border: 1px dashed var(--gold); border-radius: 6px; padding: 7px 14px; margin-top: 10px; display: flex; align-items: center; justify-content: space-between; }
.admin-bar-label { font-size: 11px; color: var(--gold); font-weight: 700; }
.admin-bar-actions { display: flex; gap: 8px; }
.admin-btn { font-size: 11px; padding: 4px 12px; border-radius: 4px; cursor: pointer; border: 1px solid; font-weight: 700; transition: all .15s; font-family: inherit; }
.admin-btn-primary { background: var(--gold); color: var(--navy-deep); border-color: var(--gold); }
.admin-btn-primary:hover { background: var(--gold-light); }
.admin-btn-ghost { background: transparent; color: var(--gold); border-color: var(--gold); }
.admin-btn-ghost:hover { background: var(--gold-pale); }

/* ── PAGE HERO ── */
.page-hero { background: linear-gradient(135deg,var(--navy-deep) 0%,var(--navy) 100%); padding: 40px 24px; margin-bottom: 36px; }
.page-hero-inner { max-width: 1200px; margin: 0 auto; }
.page-hero-title { font-size: 26px; font-weight: 900; color: #fff; margin-bottom: 6px; }
.page-hero-sub { font-size: 14px; color: rgba(255,255,255,.6); }

/* ── CARDS ── */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.card-body { padding: 20px; }

/* ── PAGE TABS ── */
.page-tabs {
  display: flex; justify-content: center; flex-wrap: wrap; gap: 8px;
  background: var(--bg); border: 1px solid var(--border); border-radius: 14px;
  padding: 8px; margin: 0 auto 28px; max-width: fit-content;
  box-shadow: var(--shadow);
}
.page-tab {
  flex-shrink: 0; appearance: none; border: none; cursor: pointer;
  padding: 11px 24px; font-family: inherit; font-size: 14px; font-weight: 700;
  color: var(--text-mid); background: transparent; border-radius: 10px;
  transition: background .18s, color .18s, box-shadow .18s;
  white-space: nowrap;
}
.page-tab:hover { color: var(--navy); background: rgba(27,58,122,.06); }
.page-tab.active {
  color: #fff; background: linear-gradient(135deg, var(--navy) 0%, var(--navy-deep) 100%);
  box-shadow: 0 4px 14px rgba(27,58,122,.35);
}
.page-tab-panel { display: none; animation: pageTabFade .25s ease; }
.page-tab-panel.active { display: block; }
@keyframes pageTabFade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }

/* ── DOWNLOADS ── */
.dl-search {
  display: flex; align-items: center; gap: 10px; max-width: 560px; margin: 0 auto 24px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
  padding: 6px 8px 6px 16px; box-shadow: var(--shadow);
}
.dl-search-icon { font-size: 14px; opacity: .6; }
.dl-search input {
  flex: 1; border: none; outline: none; background: none; font-family: inherit;
  font-size: 14px; color: var(--text); padding: 8px 0;
}
.dl-search-clear { font-size: 12px; color: var(--text-muted); text-decoration: none; white-space: nowrap; }
.dl-search-clear:hover { color: #dc2626; }
.dl-search button {
  appearance: none; border: none; cursor: pointer; background: var(--navy); color: #fff;
  font-family: inherit; font-size: 13px; font-weight: 700; padding: 9px 20px; border-radius: 8px;
  transition: background .15s;
}
.dl-search button:hover { background: var(--navy-deep); }

.dl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.dl-card {
  display: flex; align-items: center; gap: 14px; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 16px; transition: transform .15s, box-shadow .15s;
}
.dl-card:hover { transform: translateY(-3px); box-shadow: 0 10px 22px rgba(27,58,122,.12); }
.dl-card-icon {
  flex-shrink: 0; width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
}
.dl-card-icon svg { display: block; transition: transform .2s; }
.dl-card:hover .dl-card-icon svg { transform: translateY(-2px) rotate(-2deg); }
.dl-card-body { flex: 1; min-width: 0; }
.dl-card-name {
  font-size: 14px; font-weight: 700; color: var(--text); margin-bottom: 5px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.dl-card-meta { display: flex; align-items: center; gap: 8px; font-size: 11px; color: var(--text-muted); flex-wrap: wrap; }
.dl-card-ext { font-weight: 800; padding: 2px 7px; border-radius: 5px; font-size: 10px; letter-spacing: .02em; }
.dl-card-downloads { font-weight: 700; color: var(--navy-mid); }

.dl-card-btn {
  flex-shrink: 0; width: 42px; height: 42px; border-radius: 50%; display: flex;
  align-items: center; justify-content: center; text-decoration: none; font-size: 16px;
  position: relative; overflow: hidden; isolation: isolate;
  background: linear-gradient(135deg, var(--gold) 0%, #d97706 100%);
  box-shadow: 0 3px 10px rgba(217,119,6,.35);
  transition: transform .25s cubic-bezier(.34,1.56,.64,1), box-shadow .25s;
}
.dl-card-btn::before {
  content: ''; position: absolute; inset: 0; border-radius: 50%;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-deep) 100%);
  opacity: 0; transform: scale(.6); transition: opacity .22s, transform .22s; z-index: -1;
}
.dl-card-btn:hover { transform: scale(1.12) rotate(-6deg); box-shadow: 0 6px 18px rgba(27,58,122,.4); }
.dl-card-btn:hover::before { opacity: 1; transform: scale(1); }
.dl-card-btn:active { transform: scale(.94); }
.dl-arrow { display: inline-block; color: #fff; animation: dlBob 1.8s ease-in-out infinite; }
.dl-card-btn:hover .dl-arrow { animation: dlDrop .5s ease-in-out; }
@keyframes dlBob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(2px); } }
@keyframes dlDrop {
  0%   { transform: translateY(-4px); opacity: 0; }
  40%  { transform: translateY(0);    opacity: 1; }
  70%  { transform: translateY(3px); }
  100% { transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .dl-arrow { animation: none; }
  .dl-card-btn, .dl-card-btn::before, .dl-card-icon svg { transition: none; }
}
.dl-empty {
  text-align: center; padding: 70px 20px; color: var(--text-muted); background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius); font-size: 14px;
}
.dl-empty-icon { font-size: 34px; margin-bottom: 10px; opacity: .5; }

/* ── MEMBER GRID ── */
.member-group { margin-bottom: 32px; }
.member-group:last-child { margin-bottom: 0; }
.member-group-header {
  display: flex; align-items: baseline; gap: 10px; margin-bottom: 16px;
  padding-bottom: 8px; border-bottom: 2px solid var(--border);
}
.member-group-title { font-size: 15px; font-weight: 800; color: var(--navy); }
.member-group-count { font-size: 12px; color: var(--text-muted); font-weight: 600; }
.member-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; }
.member-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 24px 18px; text-align: center;
  transition: transform .18s, box-shadow .18s;
}
.member-card:hover { transform: translateY(-4px); box-shadow: 0 10px 24px rgba(27,58,122,.14); }
.member-photo {
  width: 92px; height: 92px; border-radius: 50%; overflow: hidden; margin: 0 auto 14px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-deep) 100%);
  display: flex; align-items: center; justify-content: center;
  border: 3px solid var(--bg); box-shadow: 0 0 0 2px var(--border);
}
.member-photo img { width: 100%; height: 100%; object-fit: cover; }
.member-photo-placeholder { font-size: 34px; color: rgba(255,255,255,.85); }
.member-name { font-size: 15px; font-weight: 800; color: var(--text); margin-bottom: 2px; }
.member-position { font-size: 12.5px; font-weight: 600; color: var(--gold-dark, var(--gold)); margin-bottom: 2px; }
.member-unit { font-size: 12px; color: var(--text-muted); margin-bottom: 10px; }
.member-contact { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--text-mid); border-top: 1px dashed var(--border); padding-top: 10px; margin-top: 4px; }
.member-contact a { color: var(--navy-mid); text-decoration: none; }
.member-contact a:hover { text-decoration: underline; }
@media (max-width: 640px) {
  .member-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 14px; }
  .member-card { padding: 18px 12px; }
  .member-photo { width: 72px; height: 72px; }
}
@media (max-width: 640px) {
  .page-tabs { max-width: 100%; overflow-x: auto; flex-wrap: nowrap; justify-content: flex-start; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .page-tabs::-webkit-scrollbar { display: none; }
  .page-tab { padding: 9px 18px; font-size: 13px; }
}

/* ── FOOTER ── */
footer { background: var(--navy-deep); border-top: 3px solid var(--gold); }
.footer-map-bar { background: var(--navy); height: 140px; display: flex; align-items: center; justify-content: center; border-bottom: 1px solid rgba(255,255,255,.06); }
.footer-map-placeholder { display: flex; align-items: center; gap: 16px; }
.fmap-name { color: rgba(255,255,255,.6); font-size: 14px; font-weight: 700; }
.fmap-addr { color: rgba(255,255,255,.35); font-size: 12px; }
.fmap-link { color: var(--gold); font-size: 11px; margin-top: 6px; display: block; }
.fmap-link:hover { text-decoration: underline; }
.footer-inner { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; padding: 36px 24px 24px; }
.footer-brand .line1 { color: rgba(255,255,255,.4); }
.footer-brand .line2 { color: #fff; }
.footer-desc { margin-top: 12px; font-size: 12px; color: rgba(255,255,255,.4); line-height: 1.8; max-width: 240px; }
.footer-social { display: flex; gap: 8px; margin-top: 14px; }
.social-btn { width: 32px; height: 32px; border-radius: 6px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); display: flex; align-items: center; justify-content: center; font-size: 15px; cursor: pointer; transition: background .15s; }
.social-btn:hover { background: rgba(240,165,0,.25); border-color: var(--gold); }
.footer-col-title { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); font-weight: 800; margin-bottom: 12px; padding-bottom: 8px; border-bottom: 1px solid rgba(240,165,0,.2); }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 7px; }
.footer-links a { font-size: 12.5px; color: rgba(255,255,255,.5); transition: color .15s; }
.footer-links a:hover { color: var(--gold-light); }
/* ── FOOTER COUNTER ── */
.footer-counter-bar {
  background: rgba(0,0,0,.25);
  border-top: 1px solid rgba(255,255,255,.05);
  border-bottom: 1px solid rgba(255,255,255,.05);
}
.footer-counter-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: stretch;
}
.footer-counter-item {
  flex: 1; display: flex; flex-direction: column; align-items: center;
  justify-content: center; padding: 18px 12px; text-align: center;
}
.footer-counter-sep {
  width: 1px; background: rgba(255,255,255,.07);
  align-self: stretch; flex-shrink: 0;
}
.footer-counter-label {
  font-size: 9.5px; font-weight: 600; letter-spacing: .14em;
  text-transform: uppercase; color: rgba(255,255,255,.35);
  margin-bottom: 5px;
}
.footer-counter-num {
  font-family: 'IBM Plex Sans Thai','Sarabun',sans-serif;
  font-size: 26px; font-weight: 700; color: var(--gold-light);
  font-variant-numeric: tabular-nums; letter-spacing: -1px; line-height: 1;
}
.footer-bottom { max-width: 1200px; margin: 0 auto; padding: 16px 24px; border-top: 1px solid rgba(255,255,255,.07); display: flex; justify-content: space-between; align-items: center; }
.footer-copy { font-size: 11px; color: rgba(255,255,255,.28); }
.theme-toggle { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); border-radius: 6px; padding: 5px 12px; color: rgba(255,255,255,.45); font-size: 11px; cursor: pointer; transition: all .15s; font-family: inherit; }
.theme-toggle:hover { background: rgba(255,255,255,.13); color: #fff; }

/* ── ADMIN LAYOUT ── */
.admin-wrap { display: flex; min-height: 100vh; }
.admin-sidebar { width: 220px; flex-shrink: 0; background: var(--navy-deep); border-right: 1px solid rgba(255,255,255,.06); }
.admin-logo { padding: 20px 16px; border-bottom: 2px solid var(--gold); display: flex; align-items: center; gap: 10px; }
.admin-logo-text { font-size: 13px; color: #fff; font-weight: 800; line-height: 1.3; }
.admin-logo-sub { font-size: 10px; color: rgba(255,255,255,.45); }
.admin-menu { list-style: none; padding: 12px 0; }
.admin-menu a { display: flex; align-items: center; gap: 10px; padding: 10px 16px; font-size: 13px; color: rgba(255,255,255,.7); transition: background .15s, color .15s; }
.admin-menu a:hover, .admin-menu a.active { background: rgba(255,255,255,.08); color: #fff; }
.admin-menu a.active { border-left: 3px solid var(--gold); }
.admin-menu-divider { height: 1px; background: rgba(255,255,255,.06); margin: 8px 0; }
.admin-menu-label { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: rgba(255,255,255,.35); padding: 10px 16px 4px; }
.admin-content { flex: 1; overflow: auto; }
.admin-topbar { background: var(--surface); border-bottom: 1px solid var(--border); padding: 12px 24px; display: flex; align-items: center; justify-content: space-between; }
.admin-topbar-title { font-size: 16px; font-weight: 800; color: var(--text); }
.admin-topbar-right { display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--text-muted); }
.admin-main { padding: 24px; }
.admin-body { padding: 24px; }

/* Admin table */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th { padding: 10px 14px; text-align: left; font-size: 12px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: .06em; border-bottom: 2px solid var(--border); }
td { padding: 12px 14px; font-size: 13.5px; border-bottom: 1px solid var(--border); color: var(--text); vertical-align: middle; }
tr:hover td { background: var(--gold-pale); }
.badge { display: inline-block; padding: 2px 8px; border-radius: 4px; font-size: 11px; font-weight: 700; }
.badge-active { background: rgba(16,185,129,.15); color: #059669; }
.badge-inactive { background: rgba(239,68,68,.1); color: #dc2626; }
.btn { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 6px; font-size: 13px; font-weight: 700; cursor: pointer; border: none; transition: all .15s; font-family: inherit; }
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-mid); }
.btn-gold { background: var(--gold); color: var(--navy-deep); }
.btn-gold:hover { background: var(--gold-light); }
.btn-danger { background: #dc2626; color: #fff; }
.btn-danger:hover { background: #b91c1c; }
.btn-ghost { background: var(--surface2); color: var(--text); border: 1px solid var(--border); }
.btn-ghost:hover { border-color: var(--navy-mid); }
.btn-sm { padding: 4px 10px; font-size: 12px; border-radius: 4px; }
.btn-outline { background: transparent; color: var(--navy); border: 1px solid var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; }
.admin-card { background: var(--surface); border: 1px solid var(--border); border-radius: 6px; overflow: hidden; margin-bottom: 16px; }
.admin-card-header { padding: 12px 16px; border-bottom: 1px solid var(--border); font-size: 14px; font-weight: 800; color: var(--text); background: var(--surface2); }
.admin-card form { padding: 16px; }
.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th { padding: 10px 14px; text-align: left; font-size: 11px; font-weight: 700; color: var(--text-muted); letter-spacing:.06em; border-bottom: 2px solid var(--border); background: var(--surface2); }
.admin-table td { padding: 11px 14px; font-size: 13px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.admin-table tr:hover td { background: var(--gold-pale); }

/* Admin form */
.form-group { margin-bottom: 18px; }
.form-label { display: block; font-size: 13px; font-weight: 700; color: var(--text); margin-bottom: 6px; }
.form-control {
  width: 100%; padding: 9px 12px; border: 1px solid var(--border); border-radius: 6px;
  font-size: 14px; color: var(--text); background: var(--surface);
  transition: border-color .15s; font-family: inherit;
}
.form-control:focus { outline: none; border-color: var(--navy-mid); box-shadow: 0 0 0 3px rgba(39,85,168,.12); }
.form-hint { font-size: 11px; color: var(--text-muted); margin-top: 4px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.alert { padding: 12px 16px; border-radius: 6px; font-size: 13px; margin-bottom: 16px; }
.alert-success { background: rgba(16,185,129,.12); color: #059669; border: 1px solid rgba(16,185,129,.25); }
.alert-danger { background: rgba(239,68,68,.1); color: #dc2626; border: 1px solid rgba(239,68,68,.2); }

/* ── DRAG DROP ZONE ── */
#drop-zone:hover, #drop-zone.dz-over {
  border-color: var(--navy-mid); background: var(--surface2);
}
#drop-zone.dz-over { border-style: solid; }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .shortcuts-grid { grid-template-columns: repeat(4,1fr); }
  .sys-links-grid { grid-template-columns: repeat(3,1fr); }
  .stats-bar-inner { grid-template-columns: repeat(2,1fr); }
  .stats-hero-inner { grid-template-columns: repeat(2,1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 24px; }
}
@media (max-width: 900px) {
  .content-grid { grid-template-columns: 1fr; }
  .cal-row { grid-template-columns: 1fr; }
  .slide-circle { display: none; }
}
@media (max-width: 640px) {
  .nav-links {
    display: none; position: absolute; top: var(--nav-h); left: 0; right: 0;
    flex-direction: column; background: var(--surface); height: auto;
    border-bottom: 2px solid var(--border);
    box-shadow: var(--shadow-md);
  }
  .nav-links.open { display: flex; }
  .nav-links > li > a { border-bottom: 1px solid var(--border); color: var(--text-mid); }
  .nav-hamburger { display: block; }
  .nav-search { display: none; }
  .shortcuts-grid { grid-template-columns: repeat(4,1fr); }
  .footer-inner { grid-template-columns: 1fr; padding: 24px; }
  .sys-links-grid { grid-template-columns: repeat(2,1fr); }
  .top-bar { display: none; }
  .form-row { grid-template-columns: 1fr; }
  .slider-wrap { height: 260px; }
  .slide-title { font-size: 18px; }
  .stats-hero-inner { grid-template-columns: repeat(2,1fr); }
  .stat-hero-num { font-size: 30px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ── Toggle Switch ── */
.sw-label { display:inline-flex;align-items:center;cursor:pointer }
.sw-track {
  position:relative;display:inline-block;width:44px;height:24px;
  background:#d1d5db;border-radius:12px;transition:background .2s;flex-shrink:0;
}
.sw-track.sw-on { background:var(--navy,#1b3a7a) }
.sw-thumb {
  position:absolute;top:3px;left:3px;width:18px;height:18px;
  background:#fff;border-radius:50%;transition:left .2s;box-shadow:0 1px 3px rgba(0,0,0,.25);
}
.sw-track.sw-on .sw-thumb { left:23px }
