/* ==========================================
   SDO Sipalay City — Professional Website
   Design: Forest Green & Gold
   ========================================== */

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

:root {
  --navy:      #0a2e1a;
  --navy-mid:  #145a32;
  --navy-light:#1e8449;
  --gold:      #c9a227;
  --gold-light:#e8c55a;
  --white:     #ffffff;
  --off-white: #f7f8fc;
  --gray-100:  #f1f3f8;
  --gray-200:  #e2e6ee;
  --gray-400:  #9aa3b5;
  --gray-600:  #5a6478;
  --gray-800:  #2c3345;
  --text:      #1e2636;
  --radius:    10px;
  --shadow-sm: 0 2px 8px rgba(13,33,55,.08);
  --shadow:    0 4px 24px rgba(13,33,55,.12);
  --shadow-lg: 0 12px 48px rgba(13,33,55,.18);
  --transition: .25s ease;
}

html { scroll-behavior: smooth; }

@view-transition {
  navigation: auto;
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  overflow-x: clip;
}

body.is-navigating {
  cursor: progress;
}

body.is-navigating a {
  cursor: progress;
}

::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: .24s;
  animation-timing-function: cubic-bezier(.22, 1, .36, 1);
  mix-blend-mode: normal;
}

::view-transition-old(root) {
  animation-name: page-continuity-out;
}

::view-transition-new(root) {
  animation-name: page-continuity-in;
}

::view-transition-old(site-topbar),
::view-transition-new(site-topbar),
::view-transition-old(site-header),
::view-transition-new(site-header),
::view-transition-old(site-navbar),
::view-transition-new(site-navbar) {
  animation: none;
  mix-blend-mode: normal;
}

@keyframes page-continuity-out {
  from { opacity: 1; transform: none; }
  to { opacity: .98; transform: translateY(-2px); }
}

@keyframes page-continuity-in {
  from { opacity: .98; transform: translateY(2px); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  ::view-transition-old(root),
  ::view-transition-new(root),
  ::view-transition-old(site-topbar),
  ::view-transition-new(site-topbar),
  ::view-transition-old(site-header),
  ::view-transition-new(site-header),
  ::view-transition-old(site-navbar),
  ::view-transition-new(site-navbar) {
    animation: none !important;
  }
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
/* Fade-in only for dynamically loaded gallery/carousel images */
img.img-fade { opacity: 0; transition: opacity .35s ease; }
img.img-fade.img-ready { opacity: 1; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Buttons ─────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 6px;
  font-weight: 600;
  font-size: .9rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition);
  letter-spacing: .3px;
}
.btn-primary {
  background: linear-gradient(180deg, #e0b82e 0%, #c9a227 40%, #b08c1a 100%);
  color: var(--navy);
  border: none;
  box-shadow:
    inset 0  1px 0 rgba(255,255,255,.55),
    inset 0 -1px 0 rgba(0,0,0,.35),
    0 3px 0   rgba(0,0,0,.4),
    0 5px 12px rgba(0,0,0,.25);
}
.btn-primary:hover {
  background: linear-gradient(180deg, #edc234 0%, #d4ad2c 40%, #b8941e 100%);
  transform: translateY(-2px);
  box-shadow:
    inset 0  1px 0 rgba(255,255,255,.55),
    inset 0 -1px 0 rgba(0,0,0,.35),
    0 5px 0   rgba(0,0,0,.4),
    0 8px 20px rgba(201,162,39,.35);
}
.btn-primary:active {
  transform: translateY(1px);
  box-shadow:
    inset 0 2px 4px rgba(0,0,0,.3),
    inset 0 1px 0 rgba(0,0,0,.2),
    0 1px 0 rgba(0,0,0,.3);
}
.btn-outline {
  background: rgba(255,255,255,.12);
  color: var(--white);
  border: 1px solid rgba(255,255,255,.45);
  border-radius: 999px;
  backdrop-filter: blur(16px) saturate(1.5);
  -webkit-backdrop-filter: blur(16px) saturate(1.5);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.3),
    inset 0 -1px 0 rgba(0,0,0,.1),
    0 4px 20px rgba(0,0,0,.18);
  text-shadow: 0 1px 2px rgba(0,0,0,.25);
}
.btn-outline:hover {
  background: rgba(255,255,255,.22);
  border-color: rgba(255,255,255,.7);
  transform: translateY(-2px);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.4),
    0 6px 28px rgba(0,0,0,.22);
}

/* ── Liquid Glass — hero card ── */
.hero-glass {
  background: rgba(255,255,255,.08);
  backdrop-filter: blur(20px) saturate(1.6);
  -webkit-backdrop-filter: blur(20px) saturate(1.6);
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 20px;
  padding: 40px 44px;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.25),
    inset 0 -1px 0 rgba(0,0,0,.08),
    0 8px 40px rgba(0,0,0,.22),
    0 2px 8px rgba(0,0,0,.12);
  max-width: 520px;
}

.full-width { width: 100%; justify-content: center; }

/* ── Top Bar ─────────────────────────────── */
.topbar {
  view-transition-name: site-topbar;
  contain: paint;
  /* Deepest layer — darker than navbar, sits at the very top */
  background: linear-gradient(180deg,
    #0e2318 0%,
    #091a11 50%,
    #061309 100%
  );
  color: rgba(255,255,255,.75);
  font-size: .75rem;
  padding: 7px 0;
  /* Gold bottom line + raised slab shadows */
  border-bottom: 2px solid var(--gold);
  box-shadow:
    inset 0  1px 0 rgba(255,255,255,.15),   /* top rim highlight */
    inset 0  2px 0 rgba(255,255,255,.04),   /* specular sheen */
    inset 0 -2px 0 rgba(0,0,0,.5),          /* shadow above the gold border */
    0 3px 0   rgba(0,0,0,.55),              /* solid lift below */
    0 5px 14px rgba(0,0,0,.3);              /* diffuse drop shadow */
}
.topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.topbar-left {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: -24px;
}
.topbar-seal-logo {
  width: 28px;
  height: 28px;
  object-fit: contain;
  border-radius: 2px;
  flex-shrink: 0;
}
.topbar-links { display: flex; gap: 8px; }
.topbar-links a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(255,255,255,.82);
  font-size: .74rem;
  font-weight: 500;
  padding: 3px 10px 3px 8px;
  border-radius: 4px;
  border: 1px solid rgba(255,255,255,.15);
  background: rgba(255,255,255,.06);
  transition: background var(--transition), color var(--transition), border-color var(--transition);
  white-space: nowrap;
}
.topbar-links a:hover {
  color: var(--gold);
  background: rgba(201,162,39,.12);
  border-color: rgba(201,162,39,.35);
}
.topbar-icon {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
  opacity: .85;
}

/* ── Header ──────────────────────────────── */
.header {
  view-transition-name: site-header;
  contain: paint;
  /* Convex inflated white panel — bright center, darker edges */
  background:
    radial-gradient(ellipse 80% 120% at 50% -10%,
      #ffffff  0%,
      #f5f5f5 40%,
      #ebebeb 70%,
      #e0e0e0 100%
    );
  padding: 16px 0;
  position: relative;
  z-index: 100;
  border-top:    1px solid rgba(255,255,255,1);
  border-bottom: 1px solid rgba(0,0,0,.18);
  box-shadow:
    /* Strong convex top highlight — the inflated sheen */
    inset 0  4px 12px rgba(255,255,255,.95),
    inset 0  1px 0    rgba(255,255,255,1),
    /* Bottom concave shadow — panel curves away */
    inset 0 -4px 10px rgba(0,0,0,.08),
    inset 0 -1px 0    rgba(0,0,0,.12),
    /* Outer lift — raised off the surface */
    0 3px 0    rgba(0,0,0,.18),
    0 5px 12px rgba(0,0,0,.12),
    0 12px 28px rgba(0,0,0,.07);
  transition: box-shadow var(--transition), background var(--transition);
}
.header.scrolled {
  background:
    radial-gradient(ellipse 80% 120% at 50% -10%,
      #ffffff  0%,
      #f2f2f2 40%,
      #e6e6e6 70%,
      #dadada 100%
    );
  box-shadow:
    inset 0  1px 0 rgba(255,255,255,1),
    inset 0 -1px 0 rgba(0,0,0,.14),
    0 3px 0   rgba(0,0,0,.18),
    0 5px 10px rgba(0,0,0,.1),
    0 14px 32px rgba(0,0,0,.1);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; }
.logo-area { display: flex; align-items: center; gap: 16px; }
.logo-seal {
  width: 64px;
  height: 64px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #0a2e1a, #145a32);
}
.logo-seal img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  object-position: center;
  display: block;
}
.logo-text { display: flex; flex-direction: column; }
.logo-republic { font-size: .65rem; color: var(--gray-600); text-transform: uppercase; letter-spacing: .8px; }
.logo-title { font-size: 1.15rem; font-weight: 800; color: var(--navy); line-height: 1.2; }
.logo-sub { font-size: .72rem; color: var(--gray-600); letter-spacing: .4px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span { width: 26px; height: 2px; background: var(--navy); border-radius: 2px; transition: var(--transition); }

/* ── Navbar ──────────────────────────────── */
.navbar {
  view-transition-name: site-navbar;
  /* Realistic anodized green metal — lit from above */
  background: linear-gradient(180deg,
    #2d6b3a 0%,    /* bright highlight — direct light on top face */
    #1f5229 8%,    /* rapid falloff — metallic sheen */
    #164020 22%,   /* upper body */
    #0f2e17 52%,   /* core — ambient lit */
    #0a2011 80%,   /* lower body — self-shadow */
    #061409 100%   /* deep floor edge */
  );
  position: sticky;
  top: 0;
  z-index: 99;
  border-top:    1px solid rgba(255,255,255,.28);
  border-bottom: 1px solid rgba(0,0,0,.4);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.15),
    inset 0 -1px 0 rgba(0,0,0,.3),
    0 2px 0 rgba(0,0,0,.3),
    0 4px 8px rgba(0,0,0,.12);
}
.navbar-inner { position: relative; }
.nav-links { display: flex; align-items: center; }
.nav-link {
  display: block;
  padding: 16px 18px;
  color: rgba(255,255,255,.85);
  font-size: .88rem;
  font-weight: 500;
  transition: color var(--transition), background var(--transition), box-shadow var(--transition), transform .22s ease;
  position: relative;
  cursor: pointer;
  overflow: hidden;
}
.nav-link::before {
  content: '';
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, rgba(201,162,39,.1), rgba(201,162,39,.95), rgba(201,162,39,.1));
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .28s cubic-bezier(.22,1,.36,1);
}
.nav-link:hover, .nav-link.active {
  color: var(--gold);
  background: linear-gradient(180deg,
    rgba(0,0,0,.25) 0%,
    rgba(0,0,0,.1)  50%,
    rgba(255,255,255,.03) 100%
  );
  box-shadow:
    inset 0 2px 4px rgba(0,0,0,.4),
    inset 0 1px 0 rgba(0,0,0,.3);
}
.nav-link:hover::before,
.nav-link.active::before { transform: scaleX(1); }
.nav-link:hover { transform: translateY(-1px); }
.nav-link.nav-clicking {
  transform: translateY(1px) scale(.985);
  transition-duration: .12s;
}
.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0; left: 18px; right: 18px;
  height: 3px;
  background: var(--gold);
  border-radius: 3px 3px 0 0;
}
.caret { font-size: .65rem; margin-left: 4px; }

.dropdown { position: relative; }
.dropdown-menu {
  position: absolute;
  top: 100%; left: 0;
  background: var(--white);
  min-width: 220px;
  border-radius: 0 0 8px 8px;
  box-shadow: var(--shadow);
  overflow: visible;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  transition: all var(--transition);
  border-top: 3px solid var(--gold);
}
.dropdown:hover .dropdown-menu { opacity: 1; pointer-events: all; transform: translateY(0); }
.dropdown-menu li a {
  display: block;
  padding: 11px 20px;
  font-size: .85rem;
  color: var(--gray-800);
  border-bottom: 1px solid var(--gray-100);
  transition: background var(--transition), color var(--transition);
}
.dropdown-menu li a:hover { background: var(--off-white); color: var(--navy-mid); padding-left: 26px; }

/* ── Dropdown submenu ── */
.dropdown-sub { position: relative; }
.dropdown-sub > a { display: flex; justify-content: space-between; align-items: center; }
.dropdown-sub > a .caret { font-size: .6rem; margin-left: 8px; }
.dropdown-submenu {
  position: absolute;
  top: -3px; left: 100%;
  background: var(--white);
  min-width: 200px;
  border-radius: 0 8px 8px 8px;
  box-shadow: var(--shadow);
  border-top: 3px solid var(--gold);
  opacity: 0;
  pointer-events: none;
  transform: translateX(-6px);
  transition: all var(--transition);
  z-index: 9999;
}
.dropdown-sub:hover .dropdown-submenu { opacity: 1; pointer-events: all; transform: translateX(0); }
.dropdown-submenu li a:hover { padding-left: 26px; }
.dropdown-submenu li a { border-bottom: 1px solid var(--gray-100); font-size: .85rem; }

/* ── Section Shared ──────────────────────── */
.section { padding: 80px 0; }
.section-header { text-align: center; margin-bottom: 52px; }
.section-header h2 { font-family: 'Playfair Display', serif; font-size: 2.2rem; color: var(--navy); margin: 8px 0 12px; }
.section-header p { color: var(--gray-600); max-width: 540px; margin: 0 auto; font-size: .95rem; }
.section-header.light h2 { color: var(--white); }
.section-header.light p  { color: rgba(255,255,255,.75); }
.section-tag {
  display: inline-block;
  background: rgba(201,162,39,.15);
  color: var(--gold);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 20px;
  border: 1px solid rgba(201,162,39,.3);
}
.section-tag.light { background: rgba(201,162,39,.2); color: var(--gold-light); }

/* ── Hero ────────────────────────────────── */
.hero {
  position: relative;
  /* Deep realistic dark slab — layered dark greens */
  background: linear-gradient(160deg,
    #1a3d22 0%,
    #0e2818 30%,
    #091d12 60%,
    #061409 100%
  );
  padding: 100px 0 80px;
  overflow: hidden;
  min-height: 520px;
  display: flex;
  align-items: center;
  /* Top rim from navbar + deep floor shadow */
  box-shadow:
    inset 0  1px 0 rgba(255,255,255,.12),
    inset 0 -3px 0 rgba(0,0,0,.6),
    0 6px 0   rgba(0,0,0,.5),
    0 10px 30px rgba(0,0,0,.4),
    0 24px 60px rgba(0,0,0,.25);
}

/* Carousel */
.carousel {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.carousel-track {
  display: flex;
  height: 100%;
  transition: transform .7s cubic-bezier(.4,0,.2,1);
  will-change: transform;
}
.carousel-slide {
  flex-shrink: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  overflow: hidden;
}
/* Overlay so text stays readable over any photo */
.carousel::after {
  content: '';
  position: absolute;
  inset: 0;
  background: transparent;
  pointer-events: none;
  z-index: 1;
}
.carousel-btn {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  z-index: 2;
  /* Realistic raised pill button */
  background: linear-gradient(180deg, rgba(255,255,255,.18) 0%, rgba(255,255,255,.08) 100%);
  border: none;
  color: #fff;
  width: 42px; height: 42px;
  border-radius: 50%;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: box-shadow .2s, transform .2s, background .2s;
  backdrop-filter: blur(6px);
  box-shadow:
    inset 0  1px 0 rgba(255,255,255,.35),
    inset 0 -1px 0 rgba(0,0,0,.4),
    0 3px 0   rgba(0,0,0,.45),
    0 5px 12px rgba(0,0,0,.3);
}
.carousel-btn:hover {
  background: linear-gradient(180deg, rgba(255,255,255,.28) 0%, rgba(255,255,255,.14) 100%);
  transform: translateY(calc(-50% - 2px));
  box-shadow:
    inset 0  1px 0 rgba(255,255,255,.45),
    inset 0 -1px 0 rgba(0,0,0,.45),
    0 5px 0   rgba(0,0,0,.5),
    0 8px 16px rgba(0,0,0,.35);
}
.carousel-btn.prev { left: 20px; }
.carousel-btn.next { right: 20px; }
.carousel-dots {
  position: absolute;
  bottom: 16px; left: 50%;
  transform: translateX(-50%);
  display: flex; gap: 8px;
  z-index: 2;
}
.carousel-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,.4);
  border: none; cursor: pointer;
  transition: background .25s, transform .25s;
  padding: 0;
}
.carousel-dot.active {
  background: var(--gold);
  transform: scale(1.3);
}

.hero-bg { display: none; }
.hero::before { display: none; }
.hero-content {
  position: relative; z-index: 2;
  max-width: 680px;
}

/* ── Bunting Flags ── */
.activities-bunting-wrap {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 80px;
  z-index: 2;
  pointer-events: none;
  overflow: hidden;
}
.hero .section-tag { margin-bottom: 20px; }
.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 20px;
}
.hero-title span { color: var(--gold); }
.hero-desc { color: rgba(255,255,255,.85); font-size: 1.05rem; line-height: 1.75; margin-bottom: 36px; max-width: 580px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat-card {
  display: flex; flex-direction: column; align-items: center;
  padding: 28px 20px;
  border-right: 1px solid rgba(255,255,255,.08);
  text-align: center;
  /* Recessed panel — like a pressed-in inset on the hero surface */
  background: linear-gradient(180deg,
    rgba(0,0,0,.2) 0%,
    rgba(0,0,0,.1) 50%,
    rgba(255,255,255,.03) 100%
  );
  box-shadow:
    inset 0  2px 4px rgba(0,0,0,.35),
    inset 0  1px 0 rgba(0,0,0,.25),
    inset 0 -1px 0 rgba(255,255,255,.06);
}
.stat-card:last-child { border-right: none; }
.stat-number { font-size: 2rem; font-weight: 800; color: var(--gold); line-height: 1; margin-bottom: 6px; }
.stat-label { font-size: .8rem; color: rgba(255,255,255,.7); text-transform: uppercase; letter-spacing: .8px; }

/* ── About / Vision-Mission ──────────────── */
.about-section { background: var(--off-white); }

/* ── Charter / Historic About Layout ── */
.about-charter {
  background:
    repeating-linear-gradient(45deg,  rgba(180,150,80,.06) 0px, rgba(180,150,80,.06) 1px, transparent 1px, transparent 30px),
    repeating-linear-gradient(-45deg, rgba(180,150,80,.06) 0px, rgba(180,150,80,.06) 1px, transparent 1px, transparent 30px),
    linear-gradient(160deg, #fdf8f0 0%, #f9f3e8 50%, #fdf8f0 100%);
  padding: 0 0 60px;
  border-bottom: 4px solid var(--gold);
}
.charter-header, .charter-footer-rule {
  display: flex; align-items: center; gap: 16px; margin-bottom: 32px;
}
.charter-rule {
  flex: 1; height: 1px;
  background: linear-gradient(to right, transparent, var(--gold), transparent);
}
.charter-emblem {
  color: var(--gold); font-size: 1rem;
}
.charter-title-block {
  text-align: center; margin-bottom: 10px;
}
.charter-kicker {
  font-size: .72rem; letter-spacing: 3px; text-transform: uppercase;
  color: #8b6f3a; font-weight: 600; margin-bottom: 14px;
}
.charter-headline {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  color: var(--navy); line-height: 1.2; margin-bottom: 14px;
}
.charter-sub {
  font-size: .78rem; color: #9a7c4a; letter-spacing: 1px;
  font-style: italic;
}
.charter-ornament {
  text-align: center; color: var(--gold); font-size: .85rem;
  letter-spacing: 10px; margin: 28px 0;
}
.charter-sep {
  text-align: center; color: var(--gold); font-size: .8rem;
  margin: 48px 0; opacity: .6;
}
.charter-article {
  display: grid; grid-template-columns: 180px 1fr; gap: 52px;
  align-items: start; margin-bottom: 0;
}
.charter-article-label {
  text-align: right; padding-right: 32px;
  border-right: 2px solid var(--gold);
  padding-top: 4px;
}
.charter-roman {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: 2.8rem; font-weight: 700;
  color: rgba(10,46,26,.12); line-height: 1;
}
.charter-article-name {
  display: block; font-size: .65rem; letter-spacing: 3px;
  text-transform: uppercase; color: var(--gold); font-weight: 700;
  margin-top: 6px;
}
.charter-article-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.55rem; color: var(--navy);
  margin-bottom: 16px; font-weight: 700;
}
.charter-drop {
  font-size: .97rem; color: #3d2f1a; line-height: 1.85;
  text-align: justify; margin-bottom: 14px;
}
.charter-drop::first-letter {
  float: left; font-family: 'Playfair Display', serif;
  font-size: 3.6rem; line-height: .8; padding-right: 10px;
  padding-top: 6px; color: var(--navy); font-weight: 700;
}
.charter-p {
  font-size: .97rem; color: #3d2f1a; line-height: 1.85;
  text-align: justify; margin-bottom: 14px;
}
.charter-list {
  list-style: none; padding: 0; margin: 14px 0 0;
  display: flex; flex-direction: column; gap: 12px;
}
.charter-list li {
  padding-left: 26px; position: relative;
  font-size: .95rem; color: #3d2f1a; line-height: 1.75;
  text-align: justify;
}
.charter-list li::before {
  content: '§';
  position: absolute; left: 0; top: 0;
  color: var(--gold); font-weight: 700; font-size: .85rem;
}
.charter-values {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px;
  margin-top: 8px;
}
.charter-value {
  display: flex; flex-direction: column; gap: 4px;
  padding: 20px 20px 20px 24px;
  border-left: 3px solid var(--gold);
  background: rgba(201,162,39,.06);
}
.charter-value-roman {
  font-family: 'Playfair Display', serif;
  font-size: .7rem; letter-spacing: 2px;
  color: var(--gold); font-weight: 700; text-transform: uppercase;
}
.charter-value-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem; color: var(--navy); font-weight: 700;
}
.charter-value-sub {
  font-size: .78rem; color: #8b6f3a; font-style: italic;
}

/* ── VMMC editorial layout ── */
.about-vmmc { border-top: 1px solid #e8ecf0; }
.vmmc-block { padding: 72px 0; border-bottom: 1px solid #e8ecf0; }
.vmmc-vision  { background: #fff; }
.vmmc-mission { background: #f7f9fc; }
.vmmc-mandate { background: #fff; }
.vmmc-core    { background: var(--navy); }
.vmmc-inner {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 60px;
  align-items: start;
}
.vmmc-reverse { }
.vmmc-label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: 6px;
  border-right: 3px solid var(--gold);
  padding-right: 32px;
}
.vmmc-num {
  font-size: 3rem;
  font-weight: 800;
  color: #e8ecf0;
  line-height: 1;
  font-family: 'Playfair Display', serif;
}
.vmmc-core .vmmc-num { color: rgba(255,255,255,.15); }
.vmmc-tag {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
}
.vmmc-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.9rem;
  color: var(--navy);
  margin-bottom: 18px;
  line-height: 1.2;
}
.vmmc-core .vmmc-title { color: #fff; }
.vmmc-text {
  color: #4a5568;
  font-size: .97rem;
  line-height: 1.8;
  margin-bottom: 14px;
}
.vmmc-core .vmmc-text { color: rgba(255,255,255,.75); }
.vmmc-list {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.vmmc-list li {
  padding-left: 22px;
  position: relative;
  color: #4a5568;
  font-size: .95rem;
  line-height: 1.7;
}
.vmmc-list li::before {
  content: '';
  position: absolute;
  left: 0; top: 10px;
  width: 8px; height: 2px;
  background: var(--gold);
}
.vmmc-values {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 8px;
}
.vmmc-value {
  display: flex;
  flex-direction: column;
  gap: 4px;
  border-left: 3px solid var(--gold);
  padding-left: 16px;
}
.vmmc-val-num {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--gold);
  text-transform: uppercase;
}
.vmmc-val-name {
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
  font-family: 'Playfair Display', serif;
}
.vm-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.vm-card {
  background: linear-gradient(180deg, #ffffff 0%, #f6f8f6 60%, #edf0ed 100%);
  border-radius: var(--radius);
  padding: 36px 28px;
  border: 1px solid rgba(0,0,0,.09);
  border-top: 4px solid transparent;
  box-shadow:
    inset 0  1px 0 rgba(255,255,255,1),
    inset 0 -1px 0 rgba(0,0,0,.07),
    0 2px 0   rgba(0,0,0,.14),
    0 5px 16px rgba(0,0,0,.09);
  transition: transform var(--transition), box-shadow var(--transition);
}
.vm-card:hover {
  transform: translateY(-6px);
  box-shadow:
    inset 0  1px 0 rgba(255,255,255,1),
    inset 0 -1px 0 rgba(0,0,0,.1),
    0 4px 0   rgba(0,0,0,.18),
    0 10px 24px rgba(0,0,0,.14);
}
.vm-card.vision  { border-top-color: var(--navy-mid); }
.vm-card.mission { border-top-color: var(--gold); }
.vm-card.mandate { border-top-color: #2980b9; }
.vm-card.core    { border-top-color: #27ae60; }
.vm-icon { font-size: 2rem; margin-bottom: 16px; }
.vm-card h3 { font-size: 1.2rem; font-weight: 700; color: var(--navy); margin-bottom: 12px; }
.vm-card p, .vm-card li { color: var(--gray-600); font-size: .92rem; line-height: 1.7; }
.vm-card ul { padding-left: 0; }
.vm-card ul li { padding: 5px 0 5px 18px; position: relative; }
.vm-card ul li::before { content: '✦'; position: absolute; left: 0; color: var(--gold); font-size: .6rem; top: 8px; }

/* ── Activities Section ──────────────────── */
.activities-section {
  opacity: 0;
  transform: translateY(48px);
  transition: opacity .85s cubic-bezier(.4,0,.2,1), transform .85s cubic-bezier(.4,0,.2,1);
  background-color: #f5f7f5;
  background-image:
    /* subtle center bloom */
    radial-gradient(ellipse 70% 50% at 50% 0%, rgba(20,90,50,.06) 0%, transparent 65%),
    /* fine linen weave — horizontal threads */
    repeating-linear-gradient(
      0deg,
      transparent 0px, transparent 3px,
      rgba(0,0,0,.018) 3px, rgba(0,0,0,.018) 4px
    ),
    /* fine linen weave — vertical threads */
    repeating-linear-gradient(
      90deg,
      transparent 0px, transparent 3px,
      rgba(0,0,0,.018) 3px, rgba(0,0,0,.018) 4px
    ),
    /* micro diagonal grain */
    repeating-linear-gradient(
      -45deg,
      transparent 0px, transparent 14px,
      rgba(0,0,0,.012) 14px, rgba(0,0,0,.012) 15px
    );
  position: relative;
}
.activities-section.acts-visible {
  opacity: 1;
  transform: translateY(0);
}

/* high-res noise grain overlay */
.activities-section::before {
  content: '';
  position: absolute;
  inset: -50%;
  width: 200%; height: 200%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='500' height='500'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='500' height='500' filter='url(%23g)' opacity='1'/%3E%3C/svg%3E");
  background-size: 250px 250px;
  opacity: .032;
  pointer-events: none;
  z-index: 0;
  mix-blend-mode: multiply;
  animation: grainDrift 10s steps(2) infinite;
}
/* bottom edge fade to white */
.activities-section::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 80px;
  background: linear-gradient(to bottom, transparent, rgba(245,247,245,.6));
  pointer-events: none;
  z-index: 0;
}
.activities-section .container { position: relative; z-index: 1; }
.activities-section .container {
  max-width: 100%;
  padding: 0 40px;
}
.activities-layout {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr) 300px;
  gap: 24px;
  align-items: start;
}

.activity-left-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.fb-feed-box {
  background: linear-gradient(180deg, #ffffff 0%, #f6f8f6 60%, #edf0ed 100%);
  border-radius: var(--radius);
  border: 1px solid var(--gray-200);
  box-shadow:
    inset 0  1px 0 rgba(255,255,255,1),
    inset 0 -1px 0 rgba(0,0,0,.08),
    0 2px 0   rgba(0,0,0,.14),
    0 4px 12px rgba(0,0,0,.1);
  overflow: hidden;
}
.fb-feed-title {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  font-size: .88rem;
  font-weight: 700;
  color: var(--navy);
  border-bottom: 1px solid rgba(0,0,0,.08);
  background: linear-gradient(180deg, #f0f3f0 0%, #e8ece8 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 1px 0 rgba(0,0,0,.07);
}
.fb-page-embed {
  width: 100%;
  overflow: hidden;
}
.fb-page-embed .fb-page,
.fb-page-embed .fb-page span,
.fb-page-embed .fb-page span iframe {
  width: 100% !important;
  min-width: 100% !important;
}

.activity-featured {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), transform var(--transition);
}
.activity-featured:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.activity-featured-img {
  height: 140px;
  display: flex;
  align-items: flex-start;
  padding: 14px;
}
.activity-featured-body { padding: 16px 18px; }
.activity-featured-body h3 {
  font-size: .97rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.4;
  margin: 6px 0 8px;
}
.activity-featured-body p {
  font-size: .82rem;
  color: var(--gray-600);
  line-height: 1.65;
  margin-bottom: 12px;
}
.act-date { font-size: .75rem; color: var(--gray-400); letter-spacing: .3px; display: block; margin-bottom: 6px; }
.act-readmore { font-size: .84rem; font-weight: 600; color: var(--navy-mid); transition: color var(--transition); }
.act-readmore:hover { color: var(--gold); }

.act-badge {
  display: inline-block;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .8px;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 20px;
}
/* Solid readable badges — no washed-out transparency */
.activities-badge    { background: #1e4d7b; color: #fff; }
.announcements-badge { background: #1a5c3a; color: #fff; }
.updates-badge       { background: #6b2d8b; color: #fff; }

.activity-secondary {
  display: flex;
  flex-direction: column;
  gap: 16px;
  height: 100%;
}
.act-card {
  display: flex;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), transform var(--transition);
  flex: 1;
}
.act-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.act-card-accent { width: 8px; flex-shrink: 0; }
.act-card-body { padding: 14px 16px; display: flex; flex-direction: column; gap: 5px; justify-content: center; }
.act-card-body h4 { font-size: .95rem; font-weight: 700; color: var(--navy); line-height: 1.4; }
.act-card-body p { font-size: .83rem; color: var(--gray-600); line-height: 1.65; }

/* ── Activity Docs (middle column) ──────── */
.activity-docs {
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, #ffffff 0%, #f8faf8 60%, #f0f3f0 100%);
  border-radius: var(--radius);
  border: 1px solid rgba(0,0,0,.1);
  box-shadow:
    inset 0  1px 0 rgba(255,255,255,1),
    inset 0 -1px 0 rgba(0,0,0,.08),
    0 2px 0   rgba(0,0,0,.16),
    0 5px 16px rgba(0,0,0,.1),
    0 10px 24px rgba(0,0,0,.06);
  overflow: hidden;
  height: 100%;
}
.activity-docs-header {
  padding: 14px 16px 10px;
  border-top:    1px solid rgba(255,255,255,.28);
  border-bottom: 1px solid rgba(0,0,0,.4);
  /* Anodized green metal slab — same as navbar */
  background: linear-gradient(180deg,
    #2d6b3a 0%, #1f5229 8%, #164020 22%,
    #0f2e17 52%, #0a2011 80%, #061409 100%);
  box-shadow:
    inset 0  1px 0 rgba(255,255,255,.22),
    inset 0  2px 0 rgba(255,255,255,.06),
    inset 0 -1px 0 rgba(0,0,0,.35),
    0 2px 0   rgba(0,0,0,.35),
    0 4px 10px rgba(0,0,0,.2);
}
.activity-docs-header .section-tag {
  background: rgba(255,255,255,.15) !important;
  color: var(--gold) !important;
}
.activity-docs-header h3 { color: var(--white) !important; }
.activity-docs-header p  { color: rgba(255,255,255,.7) !important; }
.activity-docs-header .section-tag {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--navy-light);
  background: rgba(30,132,73,.1);
  padding: 3px 10px;
  border-radius: 20px;
  display: inline-block;
  margin-bottom: 6px;
}
.activity-docs-header h3 {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 4px;
}
.activity-docs-header p {
  font-size: .78rem;
  color: var(--gray-600);
  line-height: 1.5;
}
.activity-docs-list {
  display: flex;
  flex-direction: column;
  flex: 1;
}
.adoc-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 10px 14px;
  border-bottom: 1px solid var(--gray-100);
  transition: background var(--transition);
  color: var(--text);
}
.adoc-item:last-child { border-bottom: none; }
.adoc-item:hover {
  background: linear-gradient(90deg, rgba(14,46,26,.05) 0%, rgba(14,46,26,.02) 100%);
  box-shadow: inset 3px 0 0 var(--navy-mid);
}
.adoc-icon {
  font-size: 1.2rem;
  flex-shrink: 0;
  margin-top: 2px;
  opacity: .7;
}
.adoc-info { display: flex; flex-direction: column; gap: 3px; }
.adoc-type {
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .8px;
  color: var(--navy-light);
}
.adoc-info h4 {
  font-size: .85rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.35;
}
.adoc-info p {
  font-size: .78rem;
  color: var(--gray-600);
  line-height: 1.5;
}
.adoc-date {
  font-size: .72rem;
  color: var(--gray-400);
}
.activity-docs > .view-all {
  display: block;
  text-align: center;
  padding: 12px;
  font-size: .82rem;
  font-weight: 600;
  color: var(--navy-light);
  border-top: 1px solid rgba(0,0,0,.07);
  background: linear-gradient(180deg, #eef1ee 0%, #e6eae6 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.7);
  transition: background var(--transition);
}
.activity-docs > .view-all:hover {
  background: linear-gradient(180deg, #e2e7e2 0%, #d8ddd8 100%);
}

/* ── Chatbot Widget ──────────────────────── */
.chatbot-fab {
  position: fixed;
  bottom: 28px; right: 28px;
  width: 58px; height: 58px;
  background: linear-gradient(135deg, #0a3b20 0%, #126b3a 100%);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  box-shadow: 0 14px 34px rgba(10,46,26,.35), 0 0 0 7px rgba(201,162,39,.12);
  z-index: 10000;
  transition: transform .22s ease, box-shadow .22s ease, background .22s ease;
  border: 2px solid var(--gold);
}
.chatbot-fab:hover { transform: translateY(-2px) scale(1.04); box-shadow: 0 18px 42px rgba(10,46,26,.42), 0 0 0 9px rgba(201,162,39,.16); }
.chatbot-fab.active { background: linear-gradient(135deg, #082817 0%, #0a3b20 100%); }
.chatbot-fab-icon {
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.45rem;
  font-weight: 800;
  line-height: 1;
}
.chatbot-fab-icon svg,
.chatbot-fab-icon img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 2px 3px rgba(0,0,0,.18));
}
.chatbot-badge {
  position: absolute;
  top: -4px; right: -4px;
  background: #e74c3c;
  color: #fff;
  font-size: .62rem; font-weight: 700;
  width: 18px; height: 18px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid #fff;
}
.chatbot-badge.hidden { display: none; }

.chatbot-notice {
  position: fixed;
  right: 28px;
  bottom: 98px;
  width: min(340px, calc(100vw - 32px));
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 11px;
  align-items: center;
  padding: 13px 15px 15px 13px;
  border: 1px solid rgba(201,162,39,.32);
  border-radius: 16px;
  background: rgba(255,255,255,.97);
  color: var(--navy);
  box-shadow: 0 18px 48px rgba(10,46,26,.2);
  z-index: 9998;
  opacity: 0;
  pointer-events: none;
  transform: translateY(18px) scale(.96);
  overflow: hidden;
  transition: opacity .42s ease, transform .42s cubic-bezier(.2,.8,.2,1);
  backdrop-filter: blur(10px);
}
.chatbot-notice.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}
.chatbot-notice::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 7px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--gold), var(--green-mid));
  transform: scaleX(0);
  transform-origin: left;
  opacity: 0;
}
.chatbot-notice.show::after {
  opacity: .85;
  animation: chatbotNoticeTimer 5.2s linear forwards;
}
@keyframes chatbotNoticeTimer {
  from { transform: scaleX(1); }
  to { transform: scaleX(0); }
}
.chatbot-notice-icon {
  width: 40px;
  height: 40px;
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: transparent;
  box-shadow: none;
}
.chatbot-notice-icon svg,
.chatbot-notice-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,.14));
}
.chatbot-notice-copy {
  min-width: 0;
}
.chatbot-notice-copy strong {
  display: block;
  font-size: .86rem;
  line-height: 1.25;
  color: var(--navy);
}
.chatbot-notice-copy span {
  display: block;
  margin-top: 3px;
  color: #607067;
  font-size: .78rem;
  line-height: 1.35;
}
.chatbot-window {
  position: fixed;
  bottom: 96px; right: 28px;
  width: min(405px, calc(100vw - 32px));
  height: min(635px, calc(100dvh - 128px));
  max-height: 635px;
  background: linear-gradient(180deg, #f9fcfa 0%, #eef5f0 100%);
  border: 1px solid rgba(10,46,26,.12);
  border-radius: 18px;
  box-shadow: 0 24px 70px rgba(0,0,0,.28);
  display: flex; flex-direction: column;
  z-index: 9999;
  overflow: hidden;
  transform: scale(.9) translateY(24px);
  opacity: 0;
  pointer-events: none;
  transition: transform .28s cubic-bezier(.2,.8,.2,1), opacity .25s ease;
  transform-origin: bottom right;
}
.chatbot-window.open {
  transform: scale(1) translateY(0);
  opacity: 1;
  pointer-events: all;
}

.chatbot-header {
  background:
    radial-gradient(circle at top left, rgba(201,162,39,.22), transparent 34%),
    linear-gradient(135deg, #062714 0%, #0b3d22 48%, #126b3a 100%);
  padding: 16px 17px;
  display: flex; align-items: center; justify-content: space-between;
  border-bottom: 2px solid var(--gold);
}
.chatbot-header-info { display: flex; align-items: center; gap: 10px; min-width: 0; }
.chatbot-avatar {
  width: 38px; height: 38px;
  background: #fff;
  border: 1px solid rgba(255,255,255,.5);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  overflow: hidden;
  flex: 0 0 auto;
}
.chatbot-avatar img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 3px;
}
.chatbot-name { font-size: .86rem; font-weight: 800; color: #fff; line-height: 1.2; overflow-wrap: anywhere; }
.chatbot-status { font-size: .71rem; color: rgba(255,255,255,.74); display: flex; align-items: center; gap: 5px; margin-top: 3px; }
.chatbot-dot {
  width: 7px;
  height: 7px;
  background: #31e981;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 0 0 rgba(49,233,129,.55);
  animation: chatbotPulse 1.8s infinite;
}
.chatbot-close {
  background: none; border: none; color: rgba(255,255,255,.7);
  font-size: 1.4rem; cursor: pointer; line-height: 1; padding: 0;
  transition: color .2s;
}
.chatbot-close:hover { color: #fff; }

.chatbot-messages {
  flex: 1; overflow-y: auto;
  padding: 20px 16px;
  display: flex; flex-direction: column; gap: 14px;
  background:
    radial-gradient(circle at 12% 6%, rgba(201,162,39,.1) 0%, rgba(201,162,39,0) 24%),
    linear-gradient(180deg, #f5faf6 0%, #eff6f0 100%);
  scroll-behavior: smooth;
  scroll-padding-bottom: 14px;
}
.chatbot-msg { display: flex; animation: chatbotMsgFade .28s ease both; }
.chatbot-msg.bot  { justify-content: flex-start; align-items: flex-start; gap: 12px; margin-top: 2px; }
.chatbot-msg.user { justify-content: flex-end; margin-top: 2px; }
.chatbot-msg-avatar {
  width: 46px;
  height: 46px;
  border-radius: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
  flex: 0 0 46px;
}
.chatbot-msg-avatar img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 0;
  display: block;
  border-radius: 0;
  background: transparent;
  filter: drop-shadow(0 3px 7px rgba(10,46,26,.14));
}
.chatbot-bubble {
  max-width: 86%;
  padding: 13px 15px;
  border-radius: 15px;
  font-size: .875rem;
  line-height: 1.64;
  letter-spacing: .01em;
  overflow-wrap: anywhere;
  word-break: normal;
  white-space: normal;
  animation: chatbotBubbleIn .3s cubic-bezier(.2,.8,.2,1) both;
  position: relative;
}
.chatbot-msg.bot  .chatbot-bubble { max-width: calc(100% - 62px); background: var(--white); border: 1px solid #dfe7df; color: var(--text); border-bottom-left-radius: 8px; box-shadow: 0 8px 20px rgba(10,46,26,.06); }
.chatbot-msg.user .chatbot-bubble { max-width: min(86%, 320px); background: linear-gradient(135deg, #08351d 0%, #0f5a32 100%); color: #fff; border-bottom-right-radius: 8px; box-shadow: 0 8px 18px rgba(10,46,26,.18); }
.chatbot-msg.bot .chatbot-bubble::before {
  content: "";
  position: absolute;
  left: -7px;
  top: 14px;
  width: 10px;
  height: 12px;
  background: var(--white);
  border-left: 1px solid #dfe7df;
  border-bottom: 1px solid #dfe7df;
  clip-path: polygon(100% 0, 0 50%, 100% 100%);
  border-radius: 2px 0 0 2px;
}
.chatbot-msg.user .chatbot-bubble::after {
  content: "";
  position: absolute;
  right: -6px;
  top: 14px;
  width: 10px;
  height: 12px;
  background: #0f5a32;
  clip-path: polygon(0 0, 100% 50%, 0 100%);
  border-radius: 0 2px 2px 0;
}
.chatbot-typewriter {
  white-space: pre-wrap;
  position: relative;
}
.chatbot-typewriter::after {
  content: "";
  display: inline-block;
  width: 2px;
  height: 1em;
  margin-left: 2px;
  transform: translateY(2px);
  background: rgba(10, 67, 39, .78);
  animation: chatbotCaretBlink .9s steps(1, end) infinite;
}
.chatbot-ready {
  animation: chatbotReadyFade .22s ease both;
}
.chatbot-bubble a {
  color: var(--navy-mid);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid rgba(20,90,50,.25);
}
.chatbot-bubble a:hover { color: var(--navy); border-bottom-color: var(--gold); }
.chatbot-muted {
  color: #647067;
  font-size: .8rem;
}
.chatbot-section {
  margin-top: 12px;
}
.chatbot-list {
  margin: 10px 0 0;
  padding-left: 19px;
}
.chatbot-list li {
  margin: 6px 0;
  padding-left: 2px;
  line-height: 1.56;
}
.chatbot-info-card {
  margin-top: 10px;
  padding: 10px;
  border: 1px solid #dce7dc;
  border-radius: 10px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbf8 100%);
}
.chatbot-info-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.chatbot-info-logo {
  width: 44px;
  height: 44px;
  object-fit: contain;
  border-radius: 10px;
  border: 1px solid #dfe7df;
  background: #fff;
  padding: 4px;
  flex: 0 0 auto;
}
.chatbot-info-title {
  color: var(--navy);
  font-weight: 800;
  line-height: 1.25;
}
.chatbot-info-meta {
  color: #657166;
  font-size: .76rem;
  text-transform: capitalize;
}
.chatbot-map-card {
  margin-top: 10px;
  overflow: hidden;
  border: 1px solid #dce7dc;
  border-radius: 10px;
  background: #fff;
}
.chatbot-map-frame {
  width: 100%;
  height: 150px;
  border: 0;
  display: block;
}
.chatbot-card-actions {
  padding: 8px 10px;
  background: #f7faf7;
  border-top: 1px solid #e3ebe3;
  font-size: .8rem;
}

.chatbot-suggestions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  margin-top: 4px;
}
.chat-suggest {
  background: var(--white);
  border: 1px solid #cfdccf;
  color: var(--navy);
  border-radius: 999px;
  padding: 7px 10px;
  font-size: .74rem; font-weight: 700;
  cursor: pointer;
  line-height: 1.2;
  transition: background .2s, color .2s, border-color .2s, transform .2s;
  white-space: nowrap;
}
.chat-suggest:hover { background: var(--navy); border-color: var(--navy); color: #fff; transform: translateY(-1px); }

.chatbot-typing .chatbot-bubble {
  display: flex; align-items: center; gap: 4px;
  padding: 13px 15px;
}
.chatbot-typing .chatbot-bubble span {
  width: 7px; height: 7px;
  background: #5d7063;
  border-radius: 50%;
  display: inline-block;
  animation: typingDot .95s infinite ease-in-out;
}
.chatbot-typing .chatbot-bubble span:nth-child(2) { animation-delay: .2s; }
.chatbot-typing .chatbot-bubble span:nth-child(3) { animation-delay: .4s; }
@keyframes typingDot {
  0%, 80%, 100% { transform: translateY(0) scale(1); opacity: .42; }
  40% { transform: translateY(-4px) scale(1.15); opacity: 1; }
}
@keyframes chatbotPulse {
  0% { box-shadow: 0 0 0 0 rgba(49,233,129,.55); }
  70% { box-shadow: 0 0 0 7px rgba(49,233,129,0); }
  100% { box-shadow: 0 0 0 0 rgba(49,233,129,0); }
}
@keyframes chatbotMsgFade {
  from { opacity: 0; transform: translateY(7px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes chatbotBubbleIn {
  from { opacity: 0; transform: translateY(8px) scale(.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes chatbotReadyFade {
  from { opacity: .72; }
  to { opacity: 1; }
}
@keyframes chatbotCaretBlink {
  0%, 48% { opacity: 1; }
  49%, 100% { opacity: 0; }
}

.chatbot-input-area {
  display: flex; gap: 8px;
  padding: 13px 14px;
  border-top: 1px solid var(--gray-200);
  background: var(--white);
}
.chatbot-input {
  flex: 1;
  border: 1.5px solid var(--gray-200);
  border-radius: 24px;
  padding: 9px 14px;
  font-size: .84rem; font-family: inherit;
  outline: none;
  transition: border-color .2s;
}
.chatbot-input:focus { border-color: var(--navy-light); }
.chatbot-send {
  width: 40px; height: 40px;
  background: linear-gradient(135deg, #08351d 0%, #0f6b3b 100%);
  border: none; border-radius: 50%;
  color: #fff; font-size: 1rem;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: transform .2s, box-shadow .2s;
}
.chatbot-send:hover { transform: translateY(-1px); box-shadow: 0 8px 18px rgba(10,46,26,.22); }

@media (max-width: 480px) {
  .chatbot-window {
    width: calc(100vw - 24px);
    right: 12px;
    bottom: calc(76px + env(safe-area-inset-bottom));
    height: min(620px, calc(100dvh - 96px));
    max-height: none;
    border-radius: 12px;
  }
  .chatbot-messages { padding: 16px 12px; gap: 12px; }
  .chatbot-msg.bot { gap: 9px; }
  .chatbot-bubble { max-width: 89%; font-size: .83rem; line-height: 1.62; padding: 12px 13px; }
  .chatbot-msg-avatar { width: 38px; height: 38px; flex-basis: 38px; }
  .chatbot-msg.bot .chatbot-bubble { max-width: calc(100% - 47px); }
  .chatbot-msg.bot .chatbot-bubble::before { left: -6px; top: 12px; width: 9px; height: 11px; }
  .chatbot-msg.user .chatbot-bubble::after { right: -5px; top: 12px; width: 9px; height: 11px; }
  .chatbot-suggestions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .chat-suggest { padding: 7px 8px; font-size: .72rem; }
  .chatbot-map-frame { height: 130px; }
  .chatbot-info-logo { width: 40px; height: 40px; }
}

/* ── Calendar Event Modal ─────────────────── */
.cal-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.cal-modal-overlay.open { display: flex; }
.cal-modal {
  background: var(--white);
  border-radius: 14px;
  padding: 32px 28px 28px;
  width: 100%;
  max-width: 400px;
  box-shadow: 0 24px 64px rgba(0,0,0,.25);
  position: relative;
  animation: modalIn .2s ease;
}
@keyframes modalIn {
  from { transform: translateY(16px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}
.cal-modal-close {
  position: absolute;
  top: 14px; right: 16px;
  background: none; border: none;
  font-size: 1.5rem; color: var(--gray-400);
  cursor: pointer; line-height: 1;
  transition: color var(--transition);
}
.cal-modal-close:hover { color: var(--navy); }
.cal-modal-tag {
  display: inline-block;
  font-size: .7rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .8px;
  padding: 3px 12px; border-radius: 20px;
  margin-bottom: 10px;
}
.cal-modal-tag.holiday { background: rgba(231,76,60,.1);  color: #c0392b; }
.cal-modal-tag.event   { background: rgba(30,132,73,.1);  color: var(--navy-mid); }
.cal-modal-tag.exam    { background: rgba(201,162,39,.12); color: #8a6f0a; }
.cal-modal-date  { font-size: .8rem; color: var(--gray-400); margin-bottom: 6px; }
.cal-modal-title { font-size: 1.1rem; font-weight: 800; color: var(--navy); margin-bottom: 8px; line-height: 1.4; }
.cal-modal-desc  { font-size: .88rem; color: var(--gray-600); line-height: 1.6; margin-bottom: 18px; }
.cal-modal-gcal  { margin-top: 0; }

.gcal-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: .68rem;
  font-weight: 600;
  color: #1a73e8;
  margin-top: 3px;
  transition: opacity var(--transition);
}
.gcal-link:hover { opacity: .75; }

/* ── System Links ────────────────────────── */
.syslinks-section {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background-color: var(--navy);
  background-image:
    radial-gradient(ellipse 80% 60% at 50% 50%, rgba(20,90,50,.35) 0%, transparent 70%),
    repeating-linear-gradient(
      -45deg,
      transparent 0px,
      transparent 28px,
      rgba(255,255,255,.018) 28px,
      rgba(255,255,255,.018) 29px
    ),
    repeating-linear-gradient(
      45deg,
      transparent 0px,
      transparent 28px,
      rgba(255,255,255,.018) 28px,
      rgba(255,255,255,.018) 29px
    );
  position: relative;
  overflow: hidden;
}
/* Grain noise overlay */
.syslinks-section::before {
  content: '';
  position: absolute;
  inset: -50%;
  width: 200%; height: 200%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='400'%3E%3Cfilter id='n' x='0' y='0'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.72' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='400' height='400' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  background-size: 220px 220px;
  opacity: .055;
  pointer-events: none;
  z-index: 0;
  mix-blend-mode: soft-light;
  animation: grainDrift 8s steps(2) infinite;
}
@keyframes grainDrift {
  0%   { transform: translate(0, 0); }
  25%  { transform: translate(-3px, 2px); }
  50%  { transform: translate(2px, -3px); }
  75%  { transform: translate(-2px, -1px); }
  100% { transform: translate(0, 0); }
}
/* Edge vignette */
.syslinks-section::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 120% 100% at 0% 0%,   rgba(0,0,0,.25) 0%, transparent 50%),
    radial-gradient(ellipse 120% 100% at 100% 100%, rgba(0,0,0,.25) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}
.syslinks-section .container { position: relative; z-index: 1; width: 100%; }
.syslinks-section .section-header h2 { color: var(--white); }
.syslinks-section .section-header p  { color: rgba(255,255,255,.65); }
.syslinks-section .section-tag { background: rgba(255,255,255,.12); color: var(--gold); }

/* Search bar */
.syslinks-search-wrap {
  position: relative;
  display: flex;
  align-items: center;
  max-width: 480px;
  margin: 0 auto 36px;
}
.syslinks-search-icon {
  position: absolute;
  left: 16px;
  color: rgba(255,255,255,.5);
  pointer-events: none;
}
.syslinks-search-input {
  width: 100%;
  background: rgba(255,255,255,.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 50px;
  padding: 13px 44px 13px 46px;
  color: var(--white);
  font-size: .95rem;
  outline: none;
  transition: background .2s, border-color .2s, box-shadow .2s;
}
.syslinks-search-input::placeholder { color: rgba(255,255,255,.4); }
.syslinks-search-input:focus {
  background: rgba(255,255,255,.16);
  border-color: rgba(201,162,39,.6);
  box-shadow: 0 0 0 3px rgba(201,162,39,.15);
}
.syslinks-search-clear {
  position: absolute;
  right: 16px;
  color: rgba(255,255,255,.4);
  cursor: pointer;
  font-size: 1.2rem;
  line-height: 1;
  display: none;
  transition: color .2s;
}
.syslinks-search-clear:hover { color: var(--white); }
.syslinks-search-clear.visible { display: block; }
.syslinks-no-results {
  text-align: center;
  color: rgba(255,255,255,.5);
  font-size: .95rem;
  padding: 40px 0;
  display: none;
}
.syslinks-no-results.visible { display: block; }

/* Carousel */
.syslinks-carousel-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}
.syslinks-viewport {
  flex: 1;
  overflow: hidden;
  min-width: 0;
}
.syslinks-track {
  display: flex;
  gap: 16px;
  transition: transform .55s cubic-bezier(.4,0,.2,1);
  will-change: transform;
}
.syslinks-nav {
  flex-shrink: 0;
  width: 48px; height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.2);
  background: rgba(255,255,255,.08);
  color: var(--white);
  font-size: 1.8rem;
  line-height: 1;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background .2s, border-color .2s, transform .15s;
}
.syslinks-nav:hover { background: rgba(255,255,255,.18); border-color: rgba(255,255,255,.4); transform: scale(1.08); }
.syslinks-nav:disabled { opacity: .25; cursor: default; transform: none; }
.syslinks-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 28px;
}
.syslinks-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,.25);
  border: none;
  cursor: pointer;
  transition: background .3s, width .3s, border-radius .3s;
}
.syslinks-dot.active { background: var(--gold); width: 24px; border-radius: 4px; }
/* ── Syslink card ── */
.syslink-card {
  flex: 0 0 calc(25% - 12px);
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: 26px 26px 22px;
  background: linear-gradient(160deg, #1c3d26 0%, #112b1a 50%, #0d2215 100%);
  border: 1px solid rgba(255,255,255,.08);
  border-top-color: rgba(255,255,255,.15);
  border-left: 3px solid var(--accent, #27ae60);
  border-radius: 16px;
  color: var(--white);
  position: relative;
  overflow: hidden;
  min-height: 360px;
  box-shadow:
    0 2px 4px rgba(0,0,0,.12),
    0 6px 16px rgba(0,0,0,.18),
    0 16px 40px rgba(0,0,0,.12);
  transition: transform .2s ease, box-shadow .2s ease;
  text-decoration: none;
  cursor: pointer;
}
.syslink-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(145deg, rgba(255,255,255,.05) 0%, transparent 50%);
  border-radius: inherit;
  pointer-events: none;
  z-index: 0;
}
.syslink-card::after { display: none; }
.syslink-card > * { position: relative; z-index: 1; }
.syslink-card:hover {
  transform: translateY(-5px);
  box-shadow:
    0 4px 8px rgba(0,0,0,.14),
    0 12px 28px rgba(0,0,0,.2),
    0 28px 56px rgba(0,0,0,.14);
}
.syslink-card.dimmed {
  opacity: .18;
  pointer-events: none;
  filter: grayscale(.8);
}

/* Category tag */
.syslink-cat {
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--accent, #27ae60);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.syslink-cat::before {
  content: '';
  width: 16px; height: 2px;
  background: var(--accent, #27ae60);
  border-radius: 2px;
  flex-shrink: 0;
}

/* Icon — lit top-left, shadowed bottom-right */
.syslink-icon-wrap {
  width: 52px; height: 52px;
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.45rem;
  flex-shrink: 0;
  margin-bottom: 14px;
  position: relative;
  box-shadow:
    inset 1px 1px 0 rgba(255,255,255,.3),
    inset -1px -1px 0 rgba(0,0,0,.35),
    0 4px 12px rgba(0,0,0,.4),
    3px 6px 16px rgba(0,0,0,.35);
}

/* Title */
.syslink-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.35;
  margin-bottom: 16px;
  letter-spacing: -.01em;
}

/* Divider */
.syslink-title::after {
  content: '';
  display: block;
  width: 32px;
  height: 2px;
  background: var(--accent, #27ae60);
  border-radius: 2px;
  margin-top: 10px;
  opacity: .6;
}

/* Feature bullets */
.syslink-features {
  list-style: none;
  padding: 0;
  margin: 0 0 auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.syslink-features li {
  font-size: .77rem;
  color: rgba(255,255,255,.6);
  line-height: 1.45;
  padding-left: 14px;
  position: relative;
}
.syslink-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent, #27ae60);
  font-size: .7rem;
  font-weight: 700;
  top: 1px;
}

/* CTA button — physically raised */
.syslink-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 20px;
  padding: 9px 20px;
  border-radius: 6px;
  /* Navbar signature: gold top line + dark navy body */
  border-top:    3px solid var(--gold);
  border-left:   1px solid rgba(255,255,255,.1);
  border-right:  1px solid rgba(0,0,0,.4);
  border-bottom: 2px solid rgba(0,0,0,.5);
  /* Same dark navy as navbar */
  background: linear-gradient(180deg, #1a3d25 0%, var(--navy) 40%, #08200f 100%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.07),
    0 4px 0   rgba(0,0,0,.5),
    0 6px 14px rgba(0,0,0,.35);
  color: rgba(255,255,255,.85);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .4px;
  text-transform: uppercase;
  transition: background .12s, box-shadow .12s, transform .12s, color .12s, border-top-color .12s;
  align-self: flex-start;
  user-select: none;
}
/* Hover: gold brightens, lifts */
.syslink-card:hover .syslink-btn {
  border-top-color: #e8b830;
  background: linear-gradient(180deg, #1f4a2c 0%, #12311c 50%, #0a2216 100%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.1),
    0 4px 0   rgba(0,0,0,.55),
    0 8px 20px rgba(0,0,0,.4);
  color: #fff;
  transform: translateY(-2px);
}
/* Active: press down */
.syslink-card:active .syslink-btn,
.syslink-btn:active {
  transform: translateY(2px);
  border-bottom-width: 1px;
  box-shadow:
    inset 0 2px 5px rgba(0,0,0,.4),
    0 1px 0 rgba(0,0,0,.4),
    0 2px 6px rgba(0,0,0,.25);
}

@media (max-width: 820px)  { .syslink-card { flex: 0 0 calc(50% - 8px); } }
@media (max-width: 480px)  { .syslink-card { flex: 0 0 100%; } }

/* ── Calendar (inside activities section) ── */
.activities-calendar {
  margin-top: 32px;
  padding-top: 28px;
  border-top: 2px solid var(--gray-100);
}
.activities-calendar-header {
  margin-bottom: 20px;
}
.activities-calendar-header .section-tag {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--navy-light);
  background: rgba(30,132,73,.1);
  padding: 3px 10px;
  border-radius: 20px;
  display: inline-block;
  margin-bottom: 6px;
}
.activities-calendar-header h3 {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 4px;
}
.activities-calendar-header p {
  font-size: .82rem;
  color: var(--gray-600);
}
.calendar-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 32px;
  align-items: start;
}

/* Mini calendar widget */
.cal-widget {
  background: linear-gradient(180deg, #ffffff 0%, #f6f8f6 60%, #edf0ed 100%);
  border-radius: var(--radius);
  border: 1px solid rgba(0,0,0,.1);
  box-shadow:
    inset 0  1px 0 rgba(255,255,255,1),
    inset 0 -1px 0 rgba(0,0,0,.08),
    0 2px 0   rgba(0,0,0,.15),
    0 5px 14px rgba(0,0,0,.1);
  overflow: hidden;
  width: fit-content;
}
.cal-header {
  background: linear-gradient(180deg,
    #2d6b3a 0%, #1f5229 8%, #164020 22%,
    #0f2e17 52%, #0a2011 80%, #061409 100%);
  border-top:    1px solid rgba(255,255,255,.28);
  border-bottom: 1px solid rgba(0,0,0,.4);
  box-shadow:
    inset 0  1px 0 rgba(255,255,255,.22),
    inset 0  2px 0 rgba(255,255,255,.06),
    inset 0 -1px 0 rgba(0,0,0,.35),
    0 2px 0   rgba(0,0,0,.35),
    0 4px 10px rgba(0,0,0,.2);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
}
.cal-month-label {
  font-size: .9rem;
  font-weight: 700;
  letter-spacing: .5px;
}
.cal-nav {
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.3rem;
  cursor: pointer;
  padding: 0 6px;
  line-height: 1;
  opacity: .8;
  transition: opacity var(--transition);
}
.cal-nav:hover { opacity: 1; }
.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 36px);
  justify-content: center;
  padding: 10px 12px;
  gap: 3px;
}
.cal-day-name {
  width: 36px;
  height: 28px;
  text-align: center;
  font-size: .68rem;
  font-weight: 700;
  color: var(--gray-400);
  text-transform: uppercase;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cal-day {
  width: 36px;
  height: 36px;
  text-align: center;
  font-size: .8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  cursor: default;
  transition: background var(--transition);
  color: var(--gray-800);
}
.cal-day.today {
  background: var(--navy);
  color: var(--white);
  font-weight: 700;
}
.cal-day.holiday { background: rgba(231,76,60,.12); color: #c0392b; font-weight: 600; }
.cal-day.event   { background: rgba(30,132,73,.12);  color: var(--navy-mid); font-weight: 600; }
.cal-day.exam    { background: rgba(201,162,39,.15); color: #8a6f0a; font-weight: 600; }
.cal-day.empty   { pointer-events: none; }
.cal-legend {
  display: flex;
  gap: 14px;
  padding: 10px 14px 14px;
  font-size: .72rem;
  color: var(--gray-600);
  border-top: 1px solid var(--gray-100);
  flex-wrap: wrap;
}
.cal-dot {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  margin-right: 4px;
  vertical-align: middle;
}
.cal-dot.holiday { background: #c0392b; }
.cal-dot.event   { background: var(--navy-mid); }
.cal-dot.exam    { background: #c9a227; }

/* Event list */
.cal-events {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
  padding: 24px 28px;
}
.cal-events h4 {
  font-size: 1rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--gray-100);
}
.cal-event-list { display: flex; flex-direction: column; gap: 0; }
.cal-event-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 14px 0;
  border-bottom: 1px solid var(--gray-100);
}
.cal-event-item:last-child { border-bottom: none; }
.cal-event-date {
  flex-shrink: 0;
  width: 48px;
  text-align: center;
  background: var(--off-white);
  border-radius: 8px;
  padding: 6px 4px;
  border: 1px solid var(--gray-200);
}
.cal-event-day {
  display: block;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--navy);
  line-height: 1;
}
.cal-event-mon {
  display: block;
  font-size: .65rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--gray-400);
  letter-spacing: .5px;
  margin-top: 2px;
}
.cal-event-info { display: flex; flex-direction: column; gap: 3px; }
.cal-event-tag {
  display: inline-block;
  font-size: .65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .6px;
  padding: 2px 8px;
  border-radius: 20px;
  width: fit-content;
}
.cal-event-tag.holiday { background: rgba(231,76,60,.1);  color: #c0392b; }
.cal-event-tag.event   { background: rgba(30,132,73,.1);  color: var(--navy-mid); }
.cal-event-tag.exam    { background: rgba(201,162,39,.12); color: #8a6f0a; }
.cal-event-info h5 {
  font-size: .88rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.35;
}
.cal-event-info p {
  font-size: .78rem;
  color: var(--gray-600);
}

@media (max-width: 820px) {
  .calendar-layout { grid-template-columns: 1fr; }
}

.activities-sidebar { display: flex; flex-direction: column; gap: 20px; }
.sidebar-box {
  background: linear-gradient(180deg, #ffffff 0%, #f6f8f6 60%, #edf0ed 100%);
  border-radius: var(--radius);
  border: 1px solid rgba(0,0,0,.1);
  overflow: hidden;
  box-shadow:
    inset 0  1px 0 rgba(255,255,255,1),
    inset 0 -1px 0 rgba(0,0,0,.08),
    0 2px 0   rgba(0,0,0,.15),
    0 5px 14px rgba(0,0,0,.1);
}
.sidebar-box h4 {
  font-size: .85rem;
  font-weight: 700;
  color: var(--white);
  background: linear-gradient(180deg,
    #2d6b3a 0%, #1f5229 8%, #164020 22%,
    #0f2e17 52%, #0a2011 80%, #061409 100%);
  border-top:    1px solid rgba(255,255,255,.28);
  border-bottom: 1px solid rgba(0,0,0,.4);
  box-shadow:
    inset 0  1px 0 rgba(255,255,255,.22),
    inset 0  2px 0 rgba(255,255,255,.06),
    inset 0 -1px 0 rgba(0,0,0,.35),
    0 2px 0   rgba(0,0,0,.35),
    0 4px 10px rgba(0,0,0,.2);
  padding: 13px 18px;
  letter-spacing: .3px;
}
.news-tabs { display: flex; border-bottom: 1px solid var(--gray-200); background: var(--gray-100); }
.tab-btn {
  flex: 1; background: none; border: none;
  padding: 9px 4px; font-size: .72rem; font-weight: 600;
  color: var(--gray-600); cursor: pointer;
  border-bottom: 3px solid transparent; transition: all var(--transition);
}
.tab-btn.active { color: var(--navy); border-bottom-color: var(--gold); background: var(--white); }
.news-list { padding: 6px 0; }
.news-list li a {
  display: flex; gap: 10px; padding: 9px 16px;
  border-bottom: 1px solid var(--gray-100);
  transition: background var(--transition); align-items: flex-start;
}
.news-list li a:hover { background: var(--off-white); }
.news-date {
  font-size: .68rem; font-weight: 700; color: var(--gold);
  background: rgba(201,162,39,.1); padding: 2px 6px;
  border-radius: 4px; white-space: nowrap; margin-top: 2px; flex-shrink: 0;
}
.news-title { font-size: .78rem; color: var(--gray-800); line-height: 1.45; }
.view-all {
  display: block; text-align: right;
  padding: 9px 16px; font-size: .76rem; font-weight: 600;
  color: var(--navy-mid); border-top: 1px solid var(--gray-200); transition: color var(--transition);
}
.view-all:hover { color: var(--gold); }
.sidebar-box .quick-links { padding: 6px 0; }
.sidebar-box .quick-links li a {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 16px; font-size: .82rem; color: var(--gray-800);
  border-bottom: 1px solid var(--gray-100);
  transition: background var(--transition), padding-left var(--transition);
}
.sidebar-box .quick-links li a:hover { background: var(--off-white); padding-left: 22px; }
.news-list li { cursor: pointer; }
.news-list li a { pointer-events: none; }

/* ── News Story Modal ── */
.news-story-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,.6);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 20px;
  backdrop-filter: blur(4px);
}
.news-story-overlay.open { display: flex; }
.news-story-card {
  background: var(--white);
  border-radius: 18px;
  width: 100%; max-width: 760px;
  max-height: 92vh;
  overflow: hidden;
  box-shadow: 0 32px 80px rgba(0,0,0,.35);
  animation: storyIn .28s cubic-bezier(.22,1,.36,1);
  display: flex; flex-direction: column;
  position: relative;
}
@keyframes storyIn {
  from { transform: translateY(28px) scale(.96); opacity: 0; }
  to   { transform: translateY(0)    scale(1);   opacity: 1; }
}
.news-story-close {
  position: absolute; top: 12px; right: 14px;
  z-index: 10;
  background: rgba(255,255,255,.85); border: none;
  width: 32px; height: 32px; border-radius: 50%;
  font-size: 1.2rem; color: var(--navy); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background var(--transition), transform var(--transition);
  backdrop-filter: blur(6px);
}
.news-story-close:hover { background: #fff; transform: scale(1.1); }
.news-story-hero {
  position: relative; height: 260px; flex-shrink: 0; overflow: hidden;
}
.news-story-hero-grad {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 60%, var(--gold) 100%);
}
.news-story-hero-img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  display: none;
}
.news-story-hero-img.loaded { display: block; }
.news-story-hero-meta {
  position: absolute; bottom: 16px; left: 20px; right: 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
}
.news-story-cat {
  font-size: .65rem; font-weight: 800; letter-spacing: 1px;
  text-transform: uppercase; padding: 3px 12px; border-radius: 20px;
  background: rgba(255,255,255,.2); color: #fff;
  backdrop-filter: blur(6px); border: 1px solid rgba(255,255,255,.3);
}
.news-story-date {
  font-size: .72rem; color: rgba(255,255,255,.85); font-weight: 600;
}
.news-story-body {
  padding: 32px 40px 40px;
  overflow-y: auto; flex: 1;
  scroll-behavior: smooth;
}
.news-story-body::-webkit-scrollbar { width: 8px; }
.news-story-body::-webkit-scrollbar-track { background: #f4f6fa; }
.news-story-body::-webkit-scrollbar-thumb { background: #c9cfd9; border-radius: 4px; }
.news-story-body::-webkit-scrollbar-thumb:hover { background: #a3abb8; }
.news-story-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.6rem; font-weight: 800; color: var(--navy);
  line-height: 1.3; margin-bottom: 20px;
  letter-spacing: -.01em;
}
.news-story-text { font-size: 1rem; color: #3a4352; }
.news-story-text p {
  margin: 0 0 18px; line-height: 1.85;
}
.news-story-text p:first-child::first-letter {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 3rem; font-weight: 800;
  float: left; line-height: .9;
  margin: 4px 10px 0 0; color: var(--navy-mid);
}
.news-story-text p:last-child { margin-bottom: 0; }
@media (max-width: 600px) {
  .news-story-body { padding: 22px 22px 28px; }
  .news-story-title { font-size: 1.3rem; }
  .news-story-text { font-size: .92rem; }
  .news-story-text p:first-child::first-letter { font-size: 2.4rem; }
}

/* ── Job Vacancies Section ────────────────── */
.vacancies-section {
  position: relative;
  overflow: hidden;
  padding: 32px 0 80px !important;
  margin: 0 !important;
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  /* Textured background — dot grid + ambient green glow */
  background-color: #eaede9;
  background-image:
    radial-gradient(ellipse 70% 60% at 10% 50%,  rgba(14,46,26,.10) 0%, transparent 70%),
    radial-gradient(ellipse 50% 40% at 90% 30%,  rgba(201,162,39,.07) 0%, transparent 60%),
    radial-gradient(ellipse 40% 50% at 80% 80%,  rgba(14,46,26,.07) 0%, transparent 60%),
    radial-gradient(circle, rgba(10,32,17,.09) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 100% 100%, 22px 22px;
}
.vacancies-partition {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 420px 1px 1fr;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  background: linear-gradient(180deg, #ffffff 0%, #f6f8f6 60%, #edf0ed 100%);
  border-top:    1px solid rgba(0,0,0,.1);
  border-bottom: 1px solid rgba(0,0,0,.1);
  border-radius: 0;
  overflow: hidden;
  box-shadow:
    inset 0  1px 0 rgba(255,255,255,1),
    inset 0 -1px 0 rgba(0,0,0,.08);
}
.vp-left {
  padding: 64px 52px;
  background: linear-gradient(180deg,
    #2d6b3a 0%, #1f5229 8%, #164020 22%,
    #0f2e17 52%, #0a2011 80%, #061409 100%);
  border-right: 1px solid rgba(0,0,0,.4);
  border-left:   1px solid rgba(255,255,255,.28);
  border-top:    1px solid rgba(255,255,255,.22);
  border-bottom: 1px solid rgba(0,0,0,.4);
  box-shadow:
    inset 2px 0 0 rgba(255,255,255,.12),
    inset -2px 0 6px rgba(0,0,0,.4),
    inset 0  1px 0 rgba(255,255,255,.22),
    inset 0  2px 0 rgba(255,255,255,.06),
    inset 0 -1px 0 rgba(0,0,0,.35),
    4px 0 12px rgba(0,0,0,.3);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.vp-left .section-tag {
  background: rgba(201,162,39,.2);
  color: var(--gold-light);
  border-color: rgba(201,162,39,.35);
}
.vp-left h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.75rem;
  color: var(--white);
  line-height: 1.2;
}
.vp-left > p { font-size: .88rem; color: rgba(255,255,255,.7); line-height: 1.7; }
.vp-stats {
  display: flex;
  gap: 0;
  padding: 16px 0;
  border-top: 1px solid rgba(255,255,255,.1);
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.vp-stat { display: flex; flex-direction: column; gap: 3px; flex: 1; align-items: center; text-align: center; }
.vp-stat + .vp-stat { border-left: 1px solid rgba(255,255,255,.12); }
.vp-stat-num { font-size: 1.6rem; font-weight: 800; color: var(--gold); line-height: 1; }
.vp-stat-label { font-size: .68rem; color: rgba(255,255,255,.55); text-transform: uppercase; letter-spacing: .5px; white-space: nowrap; }
.vp-divider { background: var(--gray-200); }
.vp-right { padding: 60px 56px; }
.vp-view-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--gray-200);
}
.vp-view-tab {
  position: relative;
  padding: 8px 16px 10px;
  border: 0;
  background: transparent;
  color: var(--gray-600);
  font: inherit;
  font-size: .78rem;
  font-weight: 700;
  cursor: pointer;
  transition: color var(--transition);
}
.vp-view-tab::after {
  content: '';
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 2px;
  background: transparent;
  transition: background var(--transition);
}
.vp-view-tab:hover,
.vp-view-tab:focus-visible,
.vp-view-tab.active { color: var(--navy); }
.vp-view-tab:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.vp-view-tab.active::after { background: var(--gold); }
.vp-list { display: flex; flex-direction: column; gap: 10px; max-height: 370px; overflow-y: auto; scrollbar-width: none; -ms-overflow-style: none; }
.vp-list::-webkit-scrollbar { display: none; }
.vp-item {
  padding: 18px 20px;
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff 0%, #f8faf8 100%);
  border: 1px solid rgba(0,0,0,.09);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,1),
    inset 0 -1px 0 rgba(0,0,0,.06),
    0 1px 0 rgba(0,0,0,.1),
    0 2px 6px rgba(0,0,0,.07);
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}
.vp-item:hover {
  border-color: var(--gold);
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,1),
    inset 0 -1px 0 rgba(0,0,0,.08),
    0 2px 0 rgba(0,0,0,.14),
    0 4px 12px rgba(0,0,0,.1);
}
.vp-item-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}
.vp-item-top h4,
.vp-item-title { font-size: .95rem; font-weight: 700; color: var(--navy); }
.vp-school { font-size: .82rem; color: var(--gray-600); margin-bottom: 10px; }
.vp-item-meta { display: flex; gap: 16px; font-size: .75rem; color: var(--gray-400); }
.vp-item-button {
  display: block;
  width: 100%;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.vp-item-button:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.vp-item-button .vp-school,
.vp-item-button .vp-item-meta { display: flex; }
.vp-announcement-badge {
  background: var(--gray-100);
  color: var(--navy-mid);
}
.vp-announcement-modal-body {
  flex: 1;
  padding: 24px;
  overflow-y: auto;
}
.vp-announcement-modal-body.has-file {
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}
.vp-announcement-modal-body.has-file .vp-announcement-copy {
  max-height: 160px;
  overflow-y: auto;
  flex-shrink: 0;
}
.vp-announcement-file {
  flex: 1;
  min-height: 360px;
  margin: 0 -24px -24px;
  border-top: 1px solid var(--gray-200);
  background: var(--gray-800);
}
.vp-announcement-file iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 360px;
  border: 0;
  background: var(--white);
}
.vp-announcement-meta {
  margin-bottom: 16px;
  color: var(--gray-600);
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .4px;
}
.vp-announcement-text {
  margin-bottom: 16px;
  color: var(--text);
  font-size: .88rem;
  line-height: 1.75;
}
.vp-modal-close {
  padding: 8px 16px;
  border: 0;
  border-radius: 7px;
  background: var(--gray-100);
  color: var(--gray-600);
  font: inherit;
  font-size: .82rem;
  font-weight: 600;
  cursor: pointer;
}
.vp-modal-close:hover,
.vp-modal-close:focus-visible { color: var(--navy); }
.vp-modal-close:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.vp-modal-open-file {
  padding: 8px 16px;
  border-radius: 7px;
  background: var(--navy);
  color: var(--white);
  font-size: .82rem;
  font-weight: 700;
}
.vp-modal-open-file:hover { background: var(--navy-mid); }
.vp-modal-open-file:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

@media (max-width: 768px) {
  .vp-announcement-modal-body.has-file .vp-announcement-copy { max-height: 120px; }
  .vp-announcement-file,
  .vp-announcement-file iframe { min-height: 320px; }
}

/* ── Vacancies Animations ────────────────── */
.vp-left         { transition: opacity .7s cubic-bezier(.4,0,.2,1), transform .7s cubic-bezier(.4,0,.2,1); }
.vp-right        { transition: opacity .7s cubic-bezier(.4,0,.2,1), transform .7s cubic-bezier(.4,0,.2,1); }
.vp-item         { transition: opacity .55s cubic-bezier(.4,0,.2,1), transform .55s cubic-bezier(.4,0,.2,1); }

/* hidden state */
.vacancies-section:not(.vac-visible) .vp-left {
  opacity: 0; transform: translateX(-60px);
}
.vacancies-section:not(.vac-visible) .vp-right {
  opacity: 0; transform: translateX(60px);
}
.vacancies-section:not(.vac-visible) .vp-item {
  opacity: 0; transform: translateY(30px);
}

/* visible state */
.vacancies-section.vac-visible .vp-left  { opacity: 1; transform: translateX(0); transition-delay: 0s; }
.vacancies-section.vac-visible .vp-right { opacity: 1; transform: translateX(0); transition-delay: .15s; }
.vacancies-section.vac-visible .vp-item  { opacity: 1; transform: translateY(0); }
.vacancies-section.vac-visible .vp-item:nth-child(1) { transition-delay: .25s; }
.vacancies-section.vac-visible .vp-item:nth-child(2) { transition-delay: .38s; }
.vacancies-section.vac-visible .vp-item:nth-child(3) { transition-delay: .51s; }

/* ── Officials ───────────────────────────── */
.officials-section { background: var(--off-white); }
.officials-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; align-items: start; }
.official-card {
  background: linear-gradient(180deg, #ffffff 0%, #f6f8f6 60%, #edf0ed 100%);
  border-radius: var(--radius);
  padding: 28px 22px; text-align: center;
  border: 1px solid rgba(0,0,0,.09);
  box-shadow:
    inset 0  1px 0 rgba(255,255,255,1),
    inset 0 -1px 0 rgba(0,0,0,.07),
    0 2px 0   rgba(0,0,0,.14),
    0 4px 12px rgba(0,0,0,.09);
  transition: transform var(--transition), box-shadow var(--transition);
}
.official-card:hover {
  transform: translateY(-5px);
  box-shadow:
    inset 0  1px 0 rgba(255,255,255,1),
    inset 0 -1px 0 rgba(0,0,0,.1),
    0 4px 0   rgba(0,0,0,.18),
    0 8px 20px rgba(0,0,0,.14);
}
.official-card.highlight {
  background: linear-gradient(180deg,
    #2d6b3a 0%, #1f5229 8%, #164020 22%,
    #0f2e17 52%, #0a2011 80%, #061409 100%);
  color: var(--white);
  border-top:    1px solid rgba(255,255,255,.28);
  border-color: rgba(0,0,0,.35);
  box-shadow:
    inset 0  1px 0 rgba(255,255,255,.22),
    inset 0  2px 0 rgba(255,255,255,.06),
    inset 0 -1px 0 rgba(0,0,0,.35),
    0 3px 0   rgba(0,0,0,.4),
    0 6px 16px rgba(0,0,0,.3);
}
.official-avatar { margin-bottom: 16px; }
.avatar-placeholder {
  width: 72px; height: 72px; border-radius: 50%;
  background: linear-gradient(135deg, var(--navy-light), var(--navy));
  color: var(--white); font-size: .75rem; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center; letter-spacing: .5px;
}
.official-card.highlight .avatar-placeholder {
  background: linear-gradient(135deg, var(--gold), var(--gold-light)); color: var(--navy);
}
.official-role {
  font-size: .72rem; text-transform: uppercase; letter-spacing: .8px;
  color: var(--gold); font-weight: 700; display: block; margin-bottom: 6px;
}
.official-card.highlight .official-role { color: var(--gold-light); }
.official-info h3 { font-size: .95rem; font-weight: 700; color: var(--navy); margin-bottom: 8px; }
.official-card.highlight .official-info h3 { color: var(--white); }
.official-info p { font-size: .82rem; color: var(--gray-600); line-height: 1.55; }
.official-card.highlight .official-info p { color: rgba(255,255,255,.7); }

/* ── Transparency ────────────────────────── */
.transparency-section {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  padding: 80px 0;
}
.transparency-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.transparency-card {
  background: linear-gradient(160deg, #1c3d26 0%, #112b1a 50%, #0d2215 100%);
  border: 1px solid rgba(255,255,255,.1);
  border-top-color: rgba(255,255,255,.2);
  border-radius: var(--radius); padding: 32px 24px; text-align: center;
  box-shadow:
    inset 0  1px 0 rgba(255,255,255,.15),
    inset 0 -1px 0 rgba(0,0,0,.4),
    0 3px 0   rgba(0,0,0,.45),
    0 6px 16px rgba(0,0,0,.3);
  transition: transform var(--transition), box-shadow var(--transition); cursor: pointer;
}
.transparency-card:hover {
  transform: translateY(-4px);
  box-shadow:
    inset 0  1px 0 rgba(255,255,255,.2),
    inset 0 -1px 0 rgba(0,0,0,.5),
    0 5px 0   rgba(0,0,0,.5),
    0 10px 24px rgba(0,0,0,.4);
}
.tc-icon { font-size: 2rem; margin-bottom: 14px; display: block; }
.transparency-card h3 { font-size: .98rem; font-weight: 700; color: var(--white); margin-bottom: 8px; }
.transparency-card p { font-size: .82rem; color: rgba(255,255,255,.65); line-height: 1.6; }

/* ── Procurements ────────────────────────── */
.procurements-section { background: var(--off-white); }
.procurement-table-wrapper {
  overflow-x: auto; border-radius: var(--radius);
  border: 1px solid rgba(0,0,0,.1);
  box-shadow:
    inset 0  1px 0 rgba(255,255,255,1),
    inset 0 -1px 0 rgba(0,0,0,.07),
    0 2px 0   rgba(0,0,0,.15),
    0 5px 16px rgba(0,0,0,.1);
}
.procurement-table { width: 100%; border-collapse: collapse; background: linear-gradient(180deg, #ffffff 0%, #f8faf8 100%); }
.procurement-table th {
  background: linear-gradient(180deg,
    #2d6b3a 0%, #1f5229 8%, #164020 22%,
    #0f2e17 52%, #0a2011 80%, #061409 100%);
  box-shadow:
    inset 0  1px 0 rgba(255,255,255,.22),
    inset 0  2px 0 rgba(255,255,255,.06),
    inset 0 -1px 0 rgba(0,0,0,.4),
    0 2px 0 rgba(0,0,0,.35);
  color: var(--white);
  padding: 14px 20px; text-align: left;
  font-size: .82rem; font-weight: 600; letter-spacing: .3px; white-space: nowrap;
}
.procurement-table th:first-child { border-radius: var(--radius) 0 0 0; }
.procurement-table th:last-child  { border-radius: 0 var(--radius) 0 0; }
.procurement-table td {
  padding: 14px 20px; font-size: .85rem; color: var(--gray-800);
  border-bottom: 1px solid var(--gray-200); vertical-align: middle;
}
.procurement-table tr:last-child td { border-bottom: none; }
.procurement-table tr:nth-child(even) td { background: var(--gray-100); }
.procurement-table tr:hover td { background: rgba(201,162,39,.06); }
.badge { display: inline-block; padding: 3px 11px; border-radius: 20px; font-size: .72rem; font-weight: 700; letter-spacing: .4px; }
.badge.open         { background: #e8f5e9; color: #2e7d32; }
.badge.awarded      { background: #fef9e7; color: #9a7a0a; border: 1px solid #f0c84a; }
.badge.closed       { background: var(--gray-100); color: var(--gray-600); }
.badge.teaching     { background: #e8f0fe; color: #1a56db; border: 1px solid #a4c2f4; }
.badge.non-teaching { background: #fef3e2; color: #9a6a0a; border: 1px solid #f5c842; }
.table-footer  { margin-top: 24px; text-align: center; }

/* ── Procurement Login ───────────────────── */
.procurement-login-section { background: var(--white); }
.procurement-login-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  max-width: 900px;
  margin: 0 auto;
}
.procurement-login-info h2 {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--navy);
  margin: 10px 0 14px;
}
.procurement-login-info p {
  font-size: .9rem;
  color: var(--gray-600);
  line-height: 1.7;
  margin-bottom: 20px;
}
.procurement-login-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.procurement-login-features li {
  font-size: .85rem;
  color: var(--navy);
  font-weight: 500;
}
.procurement-login-form {
  background: var(--off-white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 32px;
}
.procurement-login-form h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 22px;
}
.plf-row { margin-bottom: 16px; }
.plf-row label {
  display: block;
  font-size: .78rem;
  font-weight: 600;
  color: var(--gray-800);
  margin-bottom: 5px;
}
.plf-row input {
  width: 100%;
  padding: 10px 13px;
  border: 2px solid var(--gray-200);
  border-radius: 7px;
  font-size: .87rem;
  font-family: inherit;
  outline: none;
  transition: border-color .2s;
  background: var(--white);
}
.plf-row input:focus { border-color: var(--navy-mid); }
.plf-pass-wrap { position: relative; }
.plf-pass-wrap input { padding-right: 40px; }
.plf-toggle-pass {
  position: absolute;
  right: 10px; top: 50%;
  transform: translateY(-50%);
  background: none; border: none;
  cursor: pointer; font-size: .95rem; opacity: .5;
  transition: opacity .2s;
}
.plf-toggle-pass:hover { opacity: 1; }
.plf-forgot { text-align: right; margin: -8px 0 14px; }
.plf-forgot a { font-size: .78rem; color: var(--navy-mid); text-decoration: none; }
.plf-forgot a:hover { text-decoration: underline; }
.plf-alert {
  padding: 10px 13px;
  border-radius: 6px;
  font-size: .8rem;
  margin-bottom: 14px;
}
.plf-alert-info { background: #e8f4fd; color: #1565c0; border: 1px solid #bbdefb; }
.plf-alert-error { background: #fdecea; color: #c0392b; border: 1px solid #f5c6cb; }
.plf-submit {
  width: 100%;
  padding: 11px;
  font-size: .9rem;
  background: var(--navy-mid);
  color: #fff;
  border: none;
  border-radius: 7px;
  font-weight: 700;
  cursor: pointer;
  transition: background .2s;
}
.plf-submit:hover { background: var(--navy); }
.plf-note {
  text-align: center;
  font-size: .78rem;
  color: var(--gray-600);
  margin-top: 14px;
}
.plf-note a { color: var(--navy-mid); text-decoration: none; font-weight: 600; }
.plf-note a:hover { text-decoration: underline; }
@media (max-width: 768px) {
  .procurement-login-wrap { grid-template-columns: 1fr; gap: 32px; }
}

/* ── Directory ───────────────────────────── */
.directory-section {
  background:
    radial-gradient(70% 50% at 50% 0%, rgba(201,162,39,.04), transparent 70%),
    var(--white);
}
.dir-intro {
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 32px; justify-content: center;
}
.dir-intro-line { flex: 0 0 70px; height: 1px; background: rgba(10,46,26,.18); }
.dir-intro-label {
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic; color: var(--navy-mid);
  font-size: .9rem;
}
.dir-empty {
  grid-column: 1 / -1; text-align: center;
  color: var(--gray-600); padding: 40px 20px;
  font-size: .92rem;
}

.directory-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* Card */
.dir-card {
  position: relative;
  background: #fff;
  border-radius: var(--radius);
  padding: 26px 24px 22px;
  border: 1px solid rgba(10,46,26,.1);
  box-shadow: 0 1px 2px rgba(10,46,26,.04), 0 2px 6px rgba(10,46,26,.04);
  display: flex; flex-direction: column;
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.dir-card::before {
  content: ''; position: absolute;
  top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--navy) 0%, var(--navy-mid) 60%, var(--gold) 100%);
}
.dir-card:hover {
  transform: translateY(-3px);
  border-color: rgba(10,46,26,.18);
  box-shadow: 0 12px 28px -10px rgba(10,46,26,.25), 0 4px 10px rgba(10,46,26,.06);
}

/* Header — solid icon badge + tag */
.dir-card-header {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 16px;
}
.dir-card-badge {
  width: 44px; height: 44px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  color: #fff;
  box-shadow: 0 2px 4px rgba(10,46,26,.18), inset 0 1px 0 rgba(255,255,255,.12);
  flex-shrink: 0;
  transition: transform var(--transition);
}
.dir-card-badge svg { width: 22px; height: 22px; }
.dir-card:hover .dir-card-badge { transform: scale(1.04); }

.dir-card--leadership .dir-card-badge {
  background: linear-gradient(135deg, #c9a227 0%, #a78319 100%);
  box-shadow: 0 2px 4px rgba(201,162,39,.3), inset 0 1px 0 rgba(255,255,255,.2);
}

.dir-card-tag {
  font-size: .64rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--navy-mid);
  padding: 4px 10px;
  border-radius: 4px;
  background: rgba(20,90,50,.08);
}
.dir-card--leadership .dir-card-tag {
  color: #8a6d11;
  background: rgba(201,162,39,.12);
}

/* Title */
.dir-card-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.05rem; line-height: 1.35;
  font-weight: 700; color: var(--navy);
  margin: 0 0 10px;
}
.dir-card-rule {
  width: 28px; height: 2px;
  background: var(--gold);
  margin: 0 0 18px;
  transition: width var(--transition);
}
.dir-card:hover .dir-card-rule { width: 48px; }

/* Meta — inline icon rows */
.dir-card-meta {
  list-style: none; padding: 0; margin: auto 0 0;
  display: flex; flex-direction: column;
  gap: 10px;
  padding-top: 16px;
  border-top: 1px solid rgba(10,46,26,.07);
}
.dir-card-meta li {
  display: flex; align-items: center; gap: 10px;
  min-width: 0;
}
.dir-meta-icon {
  width: 28px; height: 28px;
  border-radius: 6px;
  background: rgba(10,46,26,.05);
  color: var(--navy-mid);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.dir-meta-icon svg { width: 14px; height: 14px; }
.dir-meta-value {
  font-size: .85rem; color: var(--navy);
  font-weight: 500;
  line-height: 1.4;
  word-break: break-word;
  min-width: 0; flex: 1;
}
.dir-meta-link {
  color: var(--navy-mid); text-decoration: none;
  transition: color var(--transition);
}
.dir-meta-link:hover { color: var(--gold); }
.dir-meta-extra .dir-meta-value {
  font-size: .78rem; color: var(--gray-600); font-weight: 400;
}

/* ── Contact ─────────────────────────────── */
.contact-section { background: var(--navy); padding: 80px 0; }
.contact-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.contact-info h2 { font-family: 'Playfair Display', serif; font-size: 2rem; color: var(--white); margin: 12px 0 16px; }
.contact-info > p { color: rgba(255,255,255,.75); margin-bottom: 28px; font-size: .93rem; line-height: 1.7; }
.contact-details { display: flex; flex-direction: column; gap: 14px; }
.contact-details li { display: flex; align-items: center; gap: 12px; color: rgba(255,255,255,.8); font-size: .9rem; }
.contact-icon { font-size: 1.1rem; flex-shrink: 0; }

.contact-form {
  background: linear-gradient(180deg, #ffffff 0%, #f6f8f6 60%, #edf0ed 100%);
  border-radius: 12px; padding: 36px 32px;
  border: 1px solid rgba(0,0,0,.1);
  box-shadow:
    inset 0  1px 0 rgba(255,255,255,1),
    inset 0 -1px 0 rgba(0,0,0,.08),
    0 3px 0   rgba(0,0,0,.2),
    0 6px 20px rgba(0,0,0,.15),
    0 14px 32px rgba(0,0,0,.1);
}
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: .82rem; font-weight: 600; color: var(--gray-800); margin-bottom: 6px; }
.form-group input,
.form-group textarea {
  width: 100%; padding: 11px 14px;
  border: 2px solid var(--gray-200); border-radius: 6px;
  font-size: .88rem; font-family: inherit; color: var(--text);
  transition: border-color var(--transition); outline: none; resize: vertical;
}
.form-group input:focus, .form-group textarea:focus { border-color: var(--navy-light); }
.form-success {
  display: none; text-align: center; color: #2e7d32;
  background: #e8f5e9; border-radius: 6px;
  padding: 12px; margin-top: 12px; font-size: .85rem; font-weight: 600;
}
.form-success.visible { display: block; }

.contact-success-modal {
  position: fixed;
  inset: 0;
  z-index: 10020;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px;
  background:
    radial-gradient(circle at 18% 18%, rgba(201,162,39,.12) 0%, rgba(201,162,39,0) 34%),
    rgba(2, 14, 21, .56);
  opacity: 0;
  pointer-events: none;
  transition: opacity .28s ease;
  backdrop-filter: blur(6px) saturate(112%);
}
.contact-success-modal.show {
  opacity: 1;
  pointer-events: auto;
}
.contact-success-card {
  width: min(420px, 100%);
  border-radius: 14px;
  background:
    radial-gradient(circle at top left, rgba(201,162,39,.12), rgba(201,162,39,0) 38%),
    linear-gradient(180deg, #ffffff 0%, #f8fbf8 100%);
  border: 1px solid rgba(20,90,50,.14);
  box-shadow: 0 30px 82px rgba(0,0,0,.28);
  padding: 30px 28px 26px;
  text-align: center;
  transform: translateY(18px) scale(.96);
  transition: transform .32s cubic-bezier(.2,.8,.2,1), opacity .32s ease;
  opacity: 0;
}
.contact-success-modal.show .contact-success-card {
  transform: translateY(0) scale(1);
  opacity: 1;
}
.contact-success-icon {
  width: 76px;
  height: 76px;
  margin: 0 auto 18px;
}
.contact-success-icon svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}
.contact-success-icon circle {
  fill: rgba(20, 90, 50, .08);
  stroke: #145a32;
  stroke-width: 3;
  stroke-dasharray: 176;
  stroke-dashoffset: 176;
  animation: contactCircle .65s ease forwards;
}
.contact-success-icon path {
  fill: none;
  stroke: #145a32;
  stroke-width: 5;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 36;
  stroke-dashoffset: 36;
  animation: contactCheck .45s ease .35s forwards;
}
.contact-success-card h2 {
  color: #0b2f1b;
  font-size: 1.18rem;
  line-height: 1.3;
  margin: 0 0 9px;
  font-weight: 800;
}
.contact-success-card p {
  color: #526070;
  font-size: .9rem;
  line-height: 1.65;
  margin: 0 auto 20px;
  max-width: 320px;
}
.contact-success-close {
  border: 0;
  border-radius: 8px;
  background: linear-gradient(135deg, #d7aa2f 0%, #c4971f 100%);
  color: #072414;
  cursor: pointer;
  font-family: inherit;
  font-size: .84rem;
  font-weight: 700;
  padding: 10px 22px;
  min-width: 112px;
  transition: transform .18s ease, background .18s ease;
}
.contact-success-close:hover {
  background: linear-gradient(135deg, #e8bb3c 0%, #d3a327 100%);
  transform: translateY(-1px);
}
.contact-form button[type="submit"]:disabled {
  cursor: progress;
  opacity: .72;
  transform: none;
}
@keyframes contactCircle {
  to { stroke-dashoffset: 0; }
}
@keyframes contactCheck {
  to { stroke-dashoffset: 0; }
}

/* ── Footer ──────────────────────────────── */
.footer { background: #07131f; color: rgba(255,255,255,.7); }
.footer-inner {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 48px;
  padding: 56px 24px 40px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer-brand { max-width: 320px; }
.footer-brand .footer-title { display: block; font-size: 1.1rem; font-weight: 800; color: var(--white); margin-bottom: 10px; }
.footer-brand p { font-size: .82rem; line-height: 1.7; color: rgba(255,255,255,.6); }
.footer-address { margin-top: 8px; font-size: .78rem !important; color: rgba(255,255,255,.4) !important; }
.footer-links-group h4 { font-size: .78rem; text-transform: uppercase; letter-spacing: 1px; color: var(--gold); margin-bottom: 14px; font-weight: 700; }
.footer-links-group ul li { margin-bottom: 8px; }
.footer-links-group ul li a { font-size: .83rem; color: rgba(255,255,255,.55); transition: color var(--transition); }
.footer-links-group ul li a:hover { color: var(--gold); }
.footer-bottom { background: #030d14; padding: 16px 0; text-align: center; }
.footer-bottom p { font-size: .75rem; color: rgba(255,255,255,.35); }

/* ── Responsive ──────────────────────────── */
@media (max-width: 1024px) {
  .vm-grid { grid-template-columns: repeat(2, 1fr); }
  .transparency-grid { grid-template-columns: repeat(2, 1fr); }
  .officials-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 820px) {
  .container { padding: 0 16px; }
  .topbar-left { margin-left: 0; }
  .header-inner { gap: 10px; }
  .logo-area { min-width: 0; gap: 10px; }
  .logo-seal { width: 50px; height: 50px; }
  .logo-seal img { width: 50px; height: 50px; }
  .logo-title { font-size: .95rem; }
  .logo-sub { font-size: .68rem; }

  .activities-layout { grid-template-columns: 1fr 300px; }
  .activity-left-col,
  .activity-secondary,
  .activity-docs { grid-column: 1 / -2; }
  .vacancies-partition { grid-template-columns: 1fr; grid-template-rows: auto 1px auto; }
  .vp-divider { height: 1px; }
  .contact-layout { grid-template-columns: 1fr; gap: 36px; }
  .directory-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .nav-toggle { display: flex; }
  .nav-links {
    flex-direction: column; align-items: stretch;
    max-height: 0; overflow: hidden;
    transition: max-height .35s ease; background: var(--navy);
  }
  .nav-links.open { max-height: 600px; }
  .nav-link { padding: 14px 20px; border-bottom: 1px solid rgba(255,255,255,.06); }
  .nav-link.active::after { display: none; }
  .dropdown-menu {
    position: static; opacity: 1; pointer-events: all;
    transform: none; box-shadow: none; border-top: none; border-radius: 0;
    border-left: 3px solid var(--gold); display: none;
  }
  .dropdown.open .dropdown-menu { display: block; }
  .dropdown-submenu {
    position: static;
    left: auto;
    top: auto;
    min-width: 0;
    width: 100%;
    opacity: 1;
    pointer-events: all;
    transform: none;
    box-shadow: none;
    border-top: none;
    border-left: 2px solid rgba(201,162,39,.55);
    border-radius: 0;
    display: none;
    background: rgba(0,0,0,.08);
  }
  .dropdown-sub.open .dropdown-submenu { display: block; }
  .dropdown-submenu li a {
    color: rgba(255,255,255,.88);
    border-bottom: 1px solid rgba(255,255,255,.08);
    padding-left: 28px;
    font-size: .8rem;
  }
  .dropdown-submenu li a:hover { color: #fff; padding-left: 30px; background: rgba(255,255,255,.08); }
}

@media (max-width: 600px) {
  .section { padding: 56px 0; }
  .section-header h2 { font-size: 1.7rem; }
  .hero { padding: 72px 0 0; }
  .hero-title { font-size: 2rem; }
  .activities-layout { grid-template-columns: 1fr; }
  .vp-left { padding: 28px 24px; }
  .vp-right { padding: 24px; }
  .vm-grid { grid-template-columns: 1fr; }
  .officials-grid { grid-template-columns: 1fr; }
  .transparency-grid { grid-template-columns: 1fr; }
  .directory-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .topbar-links { display: none; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .topbar-inner { justify-content: center; }
  .topbar-left span { font-size: .68rem; text-align: center; line-height: 1.35; }
  .logo-republic { display: none; }
  .logo-sub { display: none; }
  .logo-title { font-size: .9rem; }
  .carousel-btn { width: 34px; height: 34px; font-size: 1.2rem; }
  .carousel-btn.prev { left: 10px; }
  .carousel-btn.next { right: 10px; }
  .news-tabs { overflow-x: auto; -webkit-overflow-scrolling: touch; white-space: nowrap; }
  .news-tabs::-webkit-scrollbar { height: 0; }
  .vp-right { padding: 18px 14px; }
  .vp-left { padding: 24px 16px; }
  .cal-grid { grid-template-columns: repeat(7, minmax(0, 1fr)); }
  .cal-day-name, .cal-day { min-width: 0; font-size: .74rem; }
  .footer-bottom .container { gap: 4px 10px !important; }
}

@media (max-width: 900px) {
  .activities-layout { grid-template-columns: 1fr; }
  .activity-left-col, .activity-docs, .activities-sidebar { grid-column: auto; }
  .activities-sidebar { margin-top: 18px; }
  .footer-inner { gap: 22px; padding-left: 16px; padding-right: 16px; }
  .procurement-table th, .procurement-table td { font-size: .8rem; padding: 10px 8px; }
}

@media (max-width: 420px) {
  .container { padding: 0 12px; }
  .hero-title { font-size: 1.7rem; }
  .section-header h2 { font-size: 1.45rem; }
  .btn { padding: 11px 16px; font-size: .82rem; }
  .stats-grid { grid-template-columns: 1fr; }
}

/* ── Page Hero (inner pages) ─────────────── */
.page-hero {
  background: linear-gradient(130deg, var(--navy) 0%, var(--navy-mid) 100%);
  padding: 60px 0;
  border-bottom: 3px solid var(--gold);
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 360px; height: 360px;
  background: radial-gradient(circle, rgba(201,162,39,.1) 0%, transparent 70%);
  border-radius: 50%;
}
.page-hero-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
}
.page-hero .section-tag { margin-bottom: 14px; }
.page-hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: var(--white);
  margin-bottom: 12px;
  line-height: 1.2;
}
.page-hero p {
  color: rgba(255,255,255,.75);
  font-size: .97rem;
  line-height: 1.7;
}

/* ── Quick Tiles ─────────────────────────── */
.quick-tiles-section { background: var(--off-white); }
.tiles-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 28px 12px;
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--gray-200);
  text-align: center;
  transition: all var(--transition);
  box-shadow: var(--shadow-sm);
}
.tile:hover {
  border-color: var(--gold);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  background: var(--navy);
}
.tile:hover .tile-label { color: var(--white); }
.tile-icon { font-size: 1.8rem; }
.tile-label { font-size: .8rem; font-weight: 600; color: var(--navy); }
.tile-desc { font-size: .72rem; color: var(--gray-600); line-height: 1.4; margin-top: 2px; }
.tile:hover .tile-desc { color: rgba(255,255,255,.7); }

/* ── Official Docs Section ───────────────── */
.official-docs-section { background: var(--off-white); }
.docs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 28px;
}
.doc-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: var(--white);
  border-radius: var(--radius);
  padding: 20px 22px;
  border: 1px solid var(--gray-200);
  border-left: 4px solid var(--navy-mid);
  transition: box-shadow var(--transition), transform var(--transition);
}
.doc-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-3px);
  border-left-color: var(--gold);
}
.doc-icon { font-size: 1.6rem; flex-shrink: 0; margin-top: 2px; }
.doc-type {
  display: inline-block;
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .8px;
  color: var(--gold);
  background: rgba(201,162,39,.1);
  padding: 2px 8px;
  border-radius: 4px;
  margin-bottom: 6px;
}
.doc-info h4 {
  font-size: .88rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 5px;
  line-height: 1.4;
}
.doc-info p {
  font-size: .8rem;
  color: var(--gray-600);
  line-height: 1.55;
  margin-bottom: 8px;
}
.doc-date { font-size: .72rem; color: var(--gray-400); }

@media (max-width: 700px) {
  .docs-grid { grid-template-columns: 1fr; }
}

/* ── About text block ────────────────────── */
.about-text-block {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}
.about-text-block p {
  color: var(--gray-600);
  font-size: .97rem;
  line-height: 1.8;
  margin-bottom: 16px;
}

/* ── Resource cards ──────────────────────── */
.resource-card {
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  transition: background var(--transition), transform var(--transition);
  cursor: pointer;
  display: block;
  background: var(--white);
  border: 1px solid var(--gray-200);
}
.resource-card:hover {
  background: var(--navy);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.resource-card:hover h3 { color: var(--white); }
.resource-card:hover p  { color: rgba(255,255,255,.7); }
.resource-card h3 { font-size: .98rem; font-weight: 700; color: var(--navy); margin-bottom: 8px; }
.resource-card p  { font-size: .82rem; color: var(--gray-600); line-height: 1.6; }
.resource-card .tc-icon { font-size: 2rem; margin-bottom: 14px; display: block; }

@media (max-width: 900px) {
  .tiles-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .tiles-grid { grid-template-columns: repeat(2, 1fr); }
  .page-hero { padding: 44px 0; }
}

/* ── Global Mobile-First Compatibility Layer ───────────────────────────── */
@media (max-width: 1024px) {
  .container { max-width: 100%; padding-left: 16px; padding-right: 16px; }
  .activities-layout { grid-template-columns: 1fr; gap: 16px; }
  .activity-left-col, .activity-docs, .activities-sidebar { grid-column: auto; min-width: 0; }
  .vacancies-partition { grid-template-columns: 1fr; }
  .vp-left, .vp-right { min-width: 0; }
  .officials-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .transparency-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .directory-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tiles-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .docs-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 24px; }
}

@media (max-width: 820px) {
  body { overflow-x: hidden; }
  .main, main, section, .section, .card, .container, .page-hero, .footer, .navbar, .header { min-width: 0; }
  .navbar { position: sticky; top: 0; }
  .nav-links {
    max-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .nav-links.open { max-height: calc(100vh - 140px); }
  .nav-link { font-size: .92rem; }
  .hero { min-height: 430px; padding-top: 64px; }
  .hero-glass { max-width: 100%; padding: 24px 18px; border-radius: 14px; }
  .hero-content { max-width: 100%; }
  .section { padding: 52px 0; }
  .section-header { margin-bottom: 30px; }
  .section-header h2 { font-size: clamp(1.35rem, 5vw, 1.85rem); }
  .contact-layout { grid-template-columns: 1fr; gap: 24px; }
  .contact-form { padding: 22px 16px; }
  .procurement-table-wrapper { overflow-x: auto; }
  .procurement-table { min-width: 680px; }
  .quick-links li a { display: block; padding: 6px 0; }
  .news-list { min-width: 0; }
  .news-list li { min-width: 0; }
  .news-list a, .news-list p, .adoc-info h4, .adoc-info p { word-break: break-word; }
}

@media (max-width: 640px) {
  .topbar { padding: 6px 0; }
  .topbar-inner { justify-content: center; }
  .topbar-left { justify-content: center; text-align: center; gap: 6px; margin-left: 0; }
  .topbar-left span { display: block; font-size: .67rem; line-height: 1.3; }
  .header { padding: 10px 0; }
  .header-inner { align-items: center; }
  .logo-area { gap: 8px; min-width: 0; }
  .logo-seal, .logo-seal img { width: 44px; height: 44px; }
  .logo-republic, .logo-sub { display: none; }
  .logo-title { font-size: .88rem; line-height: 1.2; }
  .hero-title { font-size: clamp(1.55rem, 7.2vw, 2rem); }
  .hero-desc { font-size: .9rem; line-height: 1.55; margin-bottom: 20px; }
  .hero-actions { gap: 8px; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .stat-card { padding: 16px 10px; }
  .stat-number { font-size: 1.35rem; }
  .stat-label { font-size: .72rem; }
  .syslinks-nav { width: 34px; height: 34px; }
  .syslinks-search-input { font-size: .86rem; }
  .footer-inner { grid-template-columns: 1fr; padding: 34px 16px 24px; gap: 20px; }
  .footer-brand { max-width: 100%; }
  .footer-bottom .container { flex-direction: column; gap: 2px 0 !important; }
  .footer-bottom span { display: none; }
  .directory-grid, .officials-grid, .transparency-grid, .vm-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .container { padding-left: 12px; padding-right: 12px; }
  .section { padding: 44px 0; }
  .section-header p, .hero-desc, .contact-info > p { font-size: .86rem; }
  .btn { padding: 10px 14px; font-size: .8rem; }
  .carousel-btn { width: 32px; height: 32px; font-size: 1.15rem; }
  .carousel-btn.prev { left: 8px; }
  .carousel-btn.next { right: 8px; }
  .carousel-dots { bottom: 10px; gap: 6px; }
  .news-tabs { overflow-x: auto; white-space: nowrap; }
  .news-tabs .tab-btn { flex: 0 0 auto; }
  .news-tabs::-webkit-scrollbar { height: 0; }
  .vp-left { padding: 20px 14px; }
  .vp-right { padding: 14px 10px; }
  .vp-item { padding: 10px; }
  .vp-item h4 { font-size: .88rem; }
  .cal-header { gap: 6px; }
  .cal-month-label { font-size: .8rem; }
  .cal-day-name, .cal-day { font-size: .72rem; }
  .topbar-seal-logo { width: 22px; height: 22px; }
}

/* Phone layout polish for homepage app-like use */
@media (max-width: 520px) {
  .activities-section { padding-top: 42px; }
  .activities-section .container {
    padding-left: 12px;
    padding-right: 12px;
  }
  .activities-bunting-wrap { height: 54px; opacity: .75; }
  .activities-layout { gap: 14px; }
  .activity-left-col { gap: 12px; }
  .fb-feed-box,
  .activity-docs,
  .sidebar-box,
  .cal-widget {
    border-radius: 8px;
    width: 100%;
    max-width: 100%;
  }
  .fb-feed-title {
    padding: 10px 12px;
    font-size: .8rem;
  }
  .fb-page-embed {
    height: 390px;
    max-height: 56vh;
    background: #fff;
  }
  .fb-page-embed iframe,
  #fbIframe {
    width: 100% !important;
    max-width: 100% !important;
    height: 390px !important;
    max-height: 56vh !important;
    display: block;
  }
  .section-header {
    margin-bottom: 24px;
    padding-left: 4px;
    padding-right: 4px;
  }
  .section-header p {
    max-width: 32ch;
    margin-left: auto;
    margin-right: auto;
  }
  .cal-widget { margin-top: 0; }
  .cal-header { padding: 10px 12px; }
  .cal-grid { padding: 10px; gap: 4px; }
  .cal-legend {
    padding: 8px 12px 12px;
    font-size: .72rem;
    flex-wrap: wrap;
  }
  .chatbot-fab {
    width: 48px;
    height: 48px;
    right: 14px;
    bottom: calc(18px + env(safe-area-inset-bottom));
  }
  .chatbot-fab-icon {
    width: 26px;
    height: 26px;
  }
  .chatbot-notice {
    right: 12px;
    bottom: calc(76px + env(safe-area-inset-bottom));
    width: calc(100vw - 24px);
    border-radius: 14px;
  }
  .chatbot-window {
    width: calc(100vw - 24px);
    right: 12px;
    bottom: calc(76px + env(safe-area-inset-bottom));
    max-height: min(560px, calc(100dvh - 104px));
    border-radius: 12px;
  }
}

/* Mobile fixes for fixed-size modals/preview panes set inline in templates */
@media (max-width: 900px) {
  #vpModal > div,
  #homeIssModal > div {
    max-width: 96vw !important;
    height: 92vh !important;
  }
  #vpMdBody,
  #homeIssModalBody {
    flex-direction: column !important;
  }
  #vpMdBody > div,
  #homeIssModalBody > div {
    flex: 1 1 auto !important;
    width: 100% !important;
    max-width: 100% !important;
    border-left: none !important;
    border-top: 1px solid #e8ecf2 !important;
  }
}

/* ── Scroll Animations ───────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity .55s cubic-bezier(.4,0,.2,1), transform .55s cubic-bezier(.4,0,.2,1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity .6s cubic-bezier(.4,0,.2,1), transform .6s cubic-bezier(.4,0,.2,1);
}
.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}
.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity .6s cubic-bezier(.4,0,.2,1), transform .6s cubic-bezier(.4,0,.2,1);
}
.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}
.reveal-scale {
  opacity: 0;
  transform: scale(.92);
  transition: opacity .5s cubic-bezier(.4,0,.2,1), transform .5s cubic-bezier(.4,0,.2,1);
}
.reveal-scale.visible {
  opacity: 1;
  transform: scale(1);
}
/* Stagger delay helpers */
.delay-1 { transition-delay: .08s; }
.delay-2 { transition-delay: .16s; }
.delay-3 { transition-delay: .24s; }
.delay-4 { transition-delay: .32s; }
.delay-5 { transition-delay: .40s; }
.delay-6 { transition-delay: .48s; }
.delay-7 { transition-delay: .56s; }
.delay-8 { transition-delay: .64s; }
