/* ==========================================================================
   B-1901 Union — Slate + Emerald Design System (geometric / structured)
   Legacy variable names are preserved as aliases so existing inline styles
   in PHP pages keep working — only their VALUES have been re-tuned.
   ========================================================================== */

:root {
    /* ── Slate scale (neutrals) ───────────────────────────── */
    --slate-950: #020617;
    --slate-900: #0f172a;
    --slate-800: #1e293b;
    --slate-700: #334155;
    --slate-600: #475569;
    --slate-500: #64748b;
    --slate-400: #94a3b8;
    --slate-300: #cbd5e1;
    --slate-200: #e2e8f0;
    --slate-100: #f1f5f9;
    --slate-50:  #f8fafc;

    /* ── Emerald scale (brand) ────────────────────────────── */
    --emerald-900: #064e3b;
    --emerald-800: #065f46;
    --emerald-700: #047857;
    --emerald-600: #059669;
    --emerald-500: #10b981;
    --emerald-400: #34d399;
    --emerald-100: #d1fae5;
    --emerald-50:  #ecfdf5;

    /* ── Accent (sky) + semantic (rose for alerts/blood) ── */
    --sky-600:  #0284c7;
    --sky-500:  #0ea5e9;
    --sky-100:  #e0f2fe;
    --rose-700: #be123c;
    --rose-600: #e11d48;
    --rose-500: #f43f5e;
    --rose-100: #ffe4e6;
    --amber-500:#f59e0b;

    /* ── Semantic tokens ──────────────────────────────────── */
    --ink:        var(--slate-900);
    --ink-soft:   var(--slate-700);
    --muted:      var(--slate-500);
    --canvas:     #ffffff;
    --surface:    var(--slate-50);
    --surface-2:  #ffffff;
    --border:     var(--slate-200);
    --border-strong: var(--slate-300);
    --accent:     var(--emerald-600);
    --accent-deep:var(--emerald-700);
    --accent-soft:var(--emerald-50);

    /* ── Legacy aliases (DO NOT RENAME — used by inline styles) ── */
    --green-dark:  var(--emerald-700);
    --green:       var(--emerald-600);
    --green-light: var(--emerald-500);
    --green-soft:  var(--emerald-50);
    --red:         var(--rose-600);
    --red-dark:    var(--rose-700);
    --red-light:   var(--rose-500);
    --gold:        var(--amber-500);
    --white:       #ffffff;
    --off-white:   var(--slate-50);
    --gray-100:    var(--slate-100);
    --gray-200:    var(--slate-200);
    --gray-400:    var(--slate-400);
    --gray-600:    var(--slate-600);
    --gray-800:    var(--slate-900);
    --text-main:   var(--ink);
    --text-sub:    var(--slate-600);

    /* ── Shadows (crisp, neutral — no colored shadows) ───── */
    --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.05);
    --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(15, 23, 42, 0.04);
    --shadow-md: 0 4px 12px rgba(15, 23, 42, 0.08), 0 2px 4px rgba(15, 23, 42, 0.04);
    --shadow-lg: 0 12px 32px rgba(15, 23, 42, 0.10), 0 4px 8px rgba(15, 23, 42, 0.04);
    --shadow-glow: 0 0 0 4px rgba(16, 185, 129, 0.12);

    /* ── Radii (geometric / sharper) ─────────────────────── */
    --radius-xs: 4px;
    --radius:    8px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --radius-xl: 20px;

    /* ── Motion ──────────────────────────────────────────── */
    --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

    /* ── Type ────────────────────────────────────────────── */
    --font-bn:      "Tiro Bangla", "Hind Siliguri", "Inter", system-ui, sans-serif;
    --font-display: "Tiro Bangla", "Noto Serif Bengali", "Hind Siliguri", serif;
    --font-mono:    "JetBrains Mono", ui-monospace, "SF Mono", Consolas, monospace;

    /* ── Layout ──────────────────────────────────────────── */
    --header-h: 76px;
    --container: 1200px;
}

* , *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    font-family: var(--font-bn);
    color: var(--ink);
    background: var(--canvas);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a    { text-decoration: none; color: inherit; }
ul   { list-style: none; }

::selection { background: var(--emerald-100); color: var(--emerald-900); }

.container, .page-container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 clamp(16px, 4vw, 24px);
}

/* Scrollbar */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--slate-50); }
::-webkit-scrollbar-thumb {
    background: var(--slate-300);
    border-radius: 999px;
    border: 2px solid var(--slate-50);
}
::-webkit-scrollbar-thumb:hover { background: var(--slate-400); }

/* ==========================================================================
   HEADER
   ========================================================================== */
.site-header {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    position: sticky;
    top: 0;
    z-index: 999;
    border-bottom: 1px solid transparent;
    transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
}
.site-header.scrolled {
    border-bottom-color: var(--border);
    box-shadow: var(--shadow-sm);
    background: rgba(255, 255, 255, 0.92);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-h);
    gap: clamp(8px, 2vw, 16px);
    flex-wrap: nowrap;
}

.logo-wrap {
    display: flex;
    align-items: center;
    gap: clamp(10px, 2vw, 14px);
    flex-shrink: 0;
    min-width: 0;
}
.logo-img-wrap {
    width: clamp(40px, 9vw, 48px);
    height: clamp(40px, 9vw, 48px);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    background: var(--surface);
    position: relative;
    flex-shrink: 0;
}
.logo-img-wrap::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    box-shadow: inset 0 0 0 1px rgba(15,23,42,0.04);
}
.logo-img { width: 100%; height: 100%; object-fit: cover; }
.logo-text { display: flex; flex-direction: column; min-width: 0; gap: 1px; }
.logo-main {
    font-family: var(--font-display);
    font-size: clamp(0.78rem, 2vw, 0.92rem);
    font-weight: 800;
    color: var(--ink);
    line-height: 1.2;
    letter-spacing: -0.01em;
    word-break: break-word;
}
.logo-sub {
    font-size: clamp(0.62rem, 1.6vw, 0.72rem);
    font-weight: 400;
    color: var(--accent);
    letter-spacing: normal;
    text-transform: none;
    font-family: "Tiro Bangla", "Hind Siliguri", sans-serif;
}

/* NAV */
.main-nav {
    display: flex;
    align-items: center;
    gap: clamp(8px, 2vw, 14px);
}
.main-nav ul {
    display: flex;
    gap: 2px;
    align-items: center;
    flex-wrap: wrap;
}
.main-nav ul li a {
    position: relative;
    padding: 8px clamp(10px, 1.6vw, 14px);
    border-radius: var(--radius);
    font-size: clamp(0.82rem, 1.6vw, 0.9rem);
    font-weight: 500;
    color: var(--slate-600);
    transition: color var(--transition), background var(--transition);
    white-space: nowrap;
}
.main-nav ul li a:hover {
    color: var(--ink);
    background: var(--slate-100);
}
.main-nav ul li a.active {
    color: var(--accent-deep);
    background: var(--accent-soft);
    font-weight: 600;
}
.main-nav ul li a.active::after {
    content: "";
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 2px;
    height: 2px;
    background: var(--accent);
    border-radius: 2px;
}

/* Dropdown */
.nav-dropdown { position: relative; }
.nav-dropdown > a::after {
    content: "";
    display: inline-block;
    width: 6px;
    height: 6px;
    margin-left: 6px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg) translateY(-2px);
    opacity: 0.5;
    transition: transform var(--transition), opacity var(--transition);
}
.main-nav ul li.nav-dropdown > a.active::after {
    position: static;
    display: inline-block;
    width: 6px;
    height: 6px;
    left: unset; right: unset; bottom: unset;
    background: transparent;
    border-radius: 0;
    margin-left: 6px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg) translateY(-2px);
    opacity: 1;
}
.nav-dropdown:hover > a::after { opacity: 1; }

.dropdown-menu {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: calc(100% - 2px);
    left: 0;
    background: #fff;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
    min-width: 220px;
    margin-top: 0;
    padding: 6px;
    padding-top: 10px;
    z-index: 1000;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    transition: opacity 0.18s ease, visibility 0.18s ease, transform 0.18s ease;
    pointer-events: none;
}
/* invisible bridge so mouse can travel from nav item to dropdown without gap */
.dropdown-menu::before {
    content: "";
    position: absolute;
    top: -10px;
    left: 0;
    right: 0;
    height: 10px;
}
@media (min-width: 769px) {
    .nav-dropdown:hover .dropdown-menu,
    .nav-dropdown:focus-within .dropdown-menu {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        pointer-events: auto;
    }
}
.dropdown-menu li { margin: 0; }
.dropdown-menu li a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 12px !important;
    border-radius: var(--radius-xs);
    font-size: 0.86rem;
    color: var(--ink-soft);
    transition: background var(--transition), color var(--transition);
}
.dropdown-menu li a::before {
    content: "";
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--slate-300);
    transition: background var(--transition), transform var(--transition);
}
.dropdown-menu li a:hover,
.dropdown-menu li a.active {
    background: var(--slate-50);
    color: var(--ink);
    font-weight: 600;
}
.dropdown-menu li a.active {
    color: var(--accent-deep);
    background: var(--accent-soft);
}
.dropdown-menu li a:hover::before,
.dropdown-menu li a.active::before {
    background: var(--accent);
    transform: scale(1.5);
}

/* Language toggle pill */
.lang-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border: 1px solid var(--border);
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-decoration: none;
    color: var(--ink);
    background: #fff;
    cursor: pointer;
    transition: all var(--transition);
    white-space: nowrap;
    flex-shrink: 0;
}
.lang-toggle:hover {
    border-color: var(--accent);
    color: var(--accent-deep);
    background: var(--accent-soft);
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}
.lang-toggle:active { transform: translateY(0); }
.lang-toggle i { font-size: 0.72rem; opacity: 0.8; color: var(--accent); }

.header-actions { display: flex; align-items: center; margin-left: 16px; gap: 10px; }

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    padding: 9px;
    z-index: 1001;
    transition: background var(--transition), border-color var(--transition);
}
.hamburger:hover { background: var(--slate-50); border-color: var(--border-strong); }
.hamburger span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--ink);
    border-radius: 2px;
    transition: transform 0.3s, opacity 0.3s;
}
.hamburger.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Hero carousel styles are in includes/hero-carousel.php */

/* ==========================================================================
   BWDB ACRONYM LOCALISATION
   "বাপাউবো" by default; "BWDB" once Google Translate switches the page to
   English (it adds .translated-ltr / .translated-rtl to <html>).
   Wrapping is done by assets/js/bwdb-i18n.js.
   ========================================================================== */
.i18n-bwdb .bwdb-en-text { display: none; }

html[lang="en"] .i18n-bwdb .bwdb-bn,
html.translated-ltr .i18n-bwdb .bwdb-bn,
html.translated-rtl .i18n-bwdb .bwdb-bn { display: none; }

html[lang="en"] .i18n-bwdb .bwdb-en-text,
html.translated-ltr .i18n-bwdb .bwdb-en-text,
html.translated-rtl .i18n-bwdb .bwdb-en-text { display: inline; }

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: var(--radius);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all var(--transition);
    font-family: var(--font-bn);
    text-align: center;
    min-height: 40px;
    line-height: 1;
    position: relative;
}
.btn:focus-visible { outline: none; box-shadow: var(--shadow-glow); }
.btn-primary, .btn-green {
    background: var(--ink);
    color: #fff;
    border-color: var(--ink);
}
.btn-primary:hover, .btn-green:hover {
    background: var(--slate-800);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}
.btn-outline {
    background: transparent;
    color: var(--ink);
    border-color: var(--border);
}
.btn-outline:hover {
    background: var(--slate-50);
    border-color: var(--ink);
}
.btn-red {
    background: var(--rose-600);
    color: #fff;
    border-color: var(--rose-600);
}
.btn-red:hover {
    background: var(--rose-700);
    border-color: var(--rose-700);
    transform: translateY(-1px);
}
.btn-accent {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}
.btn-accent:hover {
    background: var(--accent-deep);
    border-color: var(--accent-deep);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}
.btn-lg {
    padding: 14px 26px !important;
    font-size: 0.95rem !important;
    min-height: 48px;
}

/* ==========================================================================
   MARQUEE TICKER  (kept compact, slate-toned)
   ========================================================================== */
.ticker-bar {
    background: var(--ink);
    color: rgba(255,255,255,0.85);
    padding: 9px 0;
    overflow: hidden;
    font-size: 0.85rem;
    font-weight: 500;
    border-top: 1px solid var(--slate-800);
    border-bottom: 1px solid var(--slate-800);
}
.ticker-inner { display: flex; align-items: center; gap: 0; }
.ticker-label {
    background: var(--accent);
    color: #fff;
    padding: 4px 16px;
    margin: 0 14px 0 0;
    font-weight: 700;
    white-space: nowrap;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border-radius: 4px;
}
.ticker-track { flex: 1; overflow: hidden; }
.ticker-items {
    display: flex;
    animation: ticker 36s linear infinite;
    white-space: nowrap;
}
.ticker-item {
    padding: 0 30px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.ticker-item::before { content: "—"; color: var(--emerald-400); margin-right: 4px; }
@keyframes ticker {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}
.ticker-items:hover { animation-play-state: paused; }

/* ==========================================================================
   SECTION HEADERS
   ========================================================================== */
.section-header {
    text-align: center;
    margin-bottom: clamp(36px, 5vw, 56px);
}
.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    color: var(--slate-700);
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 999px;
    margin-bottom: 16px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border: 1px solid var(--border);
}
.section-tag i { color: var(--accent); font-size: 0.7rem; }
.section-header h2 {
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 4vw, 2.4rem);
    font-weight: 800;
    color: var(--ink);
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
}
.section-header p {
    color: var(--ink-soft);
    max-width: 600px;
    margin: 0 auto;
    font-size: clamp(0.92rem, 1.8vw, 1rem);
}
.divider {
    width: 48px;
    height: 3px;
    background: var(--ink);
    border-radius: 3px;
    margin: 18px auto 0;
    position: relative;
}
.divider::after {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    width: 8px;
    height: 3px;
    background: var(--accent);
    border-radius: 3px;
}

section { padding: clamp(24px, 4vw, 48px) 0; position: relative; }
section:nth-child(even) { background: var(--surface); }

/* ==========================================================================
   STATS STRIP
   ========================================================================== */
.stats-section {
    background:
        radial-gradient(ellipse at top left, rgba(16,185,129,0.18), transparent 50%),
        radial-gradient(ellipse at bottom right, rgba(14,165,233,0.12), transparent 50%),
        var(--slate-950);
    padding: clamp(40px, 6vw, 60px) 0;
    position: relative;
    overflow: hidden;
}
.stats-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
    background-size: 40px 40px;
    mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent);
    pointer-events: none;
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: clamp(20px, 3vw, 28px);
    position: relative;
}
.stat-card {
    text-align: center;
    color: #fff;
    padding: clamp(18px, 2vw, 24px);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--radius-lg);
    background: rgba(255,255,255,0.03);
    backdrop-filter: blur(6px);
    transition: border-color var(--transition), transform var(--transition);
}
.stat-card:hover {
    border-color: rgba(16,185,129,0.4);
    transform: translateY(-3px);
}
.stat-card .stat-icon {
    width: clamp(44px, 10vw, 52px);
    height: clamp(44px, 10vw, 52px);
    background: rgba(16,185,129,0.12);
    color: var(--emerald-400);
    border: 1px solid rgba(16,185,129,0.3);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 14px;
    font-size: clamp(1.1rem, 2.4vw, 1.3rem);
}
.stat-card .stat-number {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 4vw, 2.4rem);
    font-weight: 800;
    line-height: 1;
    margin-bottom: 6px;
    letter-spacing: -0.02em;
}
.stat-card .stat-label {
    font-size: clamp(0.78rem, 1.5vw, 0.86rem);
    color: rgba(255,255,255,0.65);
    letter-spacing: 0.04em;
}

/* ==========================================================================
   ABOUT SECTION
   ========================================================================== */
.about-section .about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}
.about-img-wrap {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
    background: var(--surface);
}
.about-img-wrap::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(15,23,42,0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(15,23,42,0.04) 1px, transparent 1px);
    background-size: 28px 28px;
    pointer-events: none;
    z-index: 1;
}
.about-img-wrap img {
    width: 100%;
    object-fit: cover;
    height: 260px;
    position: relative;
    z-index: 0;
}
.about-badge {
    position: absolute;
    bottom: -16px;
    right: -16px;
    background: var(--ink);
    color: #fff;
    padding: 14px 20px;
    border-radius: var(--radius-md);
    text-align: center;
    box-shadow: var(--shadow-lg);
    border: 4px solid #fff;
    z-index: 2;
}
.about-badge strong {
    display: block;
    font-size: 1.8rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.02em;
}
.about-badge span {
    font-size: 0.72rem;
    color: var(--emerald-400);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-top: 4px;
    display: block;
}

.about-content h2 {
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 4vw, 2.4rem);
    font-weight: 800;
    color: var(--ink);
    margin-bottom: 12px;
    letter-spacing: -0.02em;
    line-height: 1.2;
}
.about-content p {
    color: var(--ink-soft);
    margin-bottom: 18px;
    line-height: 1.75;
}
@media (max-width: 991px) {
    .about-btn-wrap { text-align: center; }
}

.mission-vision {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-top: 24px;
}
.mv-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 18px;
    position: relative;
    transition: border-color var(--transition), transform var(--transition);
}
.mv-card::before {
    content: "";
    position: absolute;
    top: 0; left: 0; bottom: 0;
    width: 3px;
    background: var(--accent);
    border-radius: var(--radius-md) 0 0 var(--radius-md);
}
.mv-card.red::before { background: var(--rose-600); }
.mv-card:hover {
    border-color: var(--border-strong);
    transform: translateY(-2px);
}
.mv-card h4 {
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.98rem;
}
.mv-card h4 i { color: var(--accent); }
.mv-card.red h4 i { color: var(--rose-600); }
.mv-card p {
    font-size: 0.88rem;
    color: var(--ink-soft);
    line-height: 1.65;
}

/* ==========================================================================
   COMMITTEE PAGE & CARDS
   ========================================================================== */
.committee-layout {
    display: grid;
    grid-template-columns: 1fr 290px;
    gap: 32px;
    align-items: start;
}

/* Search Panel */
.search-panel {
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: 24px 20px;
    border: 1px solid var(--border);
    position: sticky;
    top: 20px;
}
.search-panel h3 {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border);
}
.search-panel h3 i { color: var(--accent); }

.form-group { margin-bottom: 14px; }
.form-group label {
    display: block;
    font-size: 0.76rem;
    font-weight: 600;
    color: var(--slate-600);
    margin-bottom: 6px;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}
.form-group input,
.form-group select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-family: var(--font-bn);
    font-size: 0.9rem;
    color: var(--ink);
    background: #fff;
    transition: border-color var(--transition), box-shadow var(--transition);
    outline: none;
}
.form-group input:focus,
.form-group select:focus {
    border-color: var(--accent);
    box-shadow: var(--shadow-glow);
}
.search-btns { display: flex; gap: 8px; }
.search-btns .btn {
    flex: 1;
    padding: 10px 12px;
    font-size: 0.85rem;
    min-height: 38px;
}
.btn-search {
    background: var(--ink);
    color: #fff;
    border-color: var(--ink);
}
.btn-search:hover { background: var(--slate-800); }
.btn-reset {
    background: #fff;
    color: var(--slate-700);
    border: 1px solid var(--border);
}
.btn-reset:hover { background: var(--slate-50); border-color: var(--border-strong); }

/* Results */
.search-results { margin-top: 18px; display: none; }
.search-results h4 {
    font-size: 0.74rem;
    color: var(--slate-500);
    margin-bottom: 10px;
    padding: 0 0 10px;
    border-bottom: 1px solid var(--border);
    font-family: var(--font-mono);
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
.result-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    border-bottom: 1px solid var(--slate-100);
    cursor: pointer;
    transition: background var(--transition);
    border-radius: var(--radius);
}
.result-item:hover { background: var(--surface); }
.result-thumb {
    width: 40px;
    height: 40px;
    border-radius: var(--radius);
    object-fit: cover;
    border: 1px solid var(--border);
    flex-shrink: 0;
    background: var(--slate-100);
}
.result-info { flex: 1; min-width: 0; }
.result-info strong {
    display: block;
    font-size: 0.86rem;
    color: var(--ink);
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.result-info span {
    font-size: 0.74rem;
    color: var(--muted);
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Committee Grid */
.committee-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 20px;
}
.committee-card {
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xs);
    overflow: hidden;
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
    cursor: pointer;
    border: 1px solid var(--border);
    position: relative;
}
.committee-card::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), var(--sky-500));
    opacity: 0;
    transition: opacity var(--transition);
    z-index: 3;
}
.committee-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--border-strong);
}
.committee-card:hover::before { opacity: 1; }

.card-photo-wrap {
    position: relative;
    height: 200px;
    overflow: hidden;
    background: var(--surface);
}
.card-photo-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s var(--ease-out);
}
.committee-card:hover .card-photo-wrap img { transform: scale(1.05); }
.card-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(15,23,42,0.85);
    color: #fff;
    font-family: var(--font-mono);
    font-size: 0.66rem;
    padding: 4px 10px;
    border-radius: 4px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    backdrop-filter: blur(6px);
}
.blood-badge {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: var(--rose-600);
    color: #fff;
    font-size: 0.72rem;
    padding: 3px 9px;
    border-radius: 4px;
    font-weight: 700;
    font-family: var(--font-mono);
}
.card-body { padding: 16px; }
.card-body h4 {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 4px;
    letter-spacing: -0.01em;
    line-height: 1.3;
}
.card-designation { font-size: 0.8rem; color: var(--ink-soft); margin-bottom: 6px; }
.card-unit {
    font-size: 0.75rem;
    color: var(--accent-deep);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-mono);
}
.card-body .card-footer-info {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px dashed var(--border);
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    color: var(--slate-600);
}
.card-body .card-footer-info i { color: var(--accent); }

/* No results */
.no-results {
    text-align: center;
    padding: 64px 20px;
    color: var(--muted);
    background: var(--surface);
    border: 1px dashed var(--border);
    border-radius: var(--radius-lg);
}
.no-results i {
    font-size: 2.5rem;
    margin-bottom: 14px;
    color: var(--slate-300);
}

/* ==========================================================================
   ACTIVITIES GRID (home page)
   ========================================================================== */
.act-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 0;
}

.act-scroll-card {
    background: #fff;
    border-radius: 10px;
    border: 1px solid var(--border);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: box-shadow 0.2s, transform 0.2s;
    display: flex;
    flex-direction: column;
}
.act-scroll-card:hover {
    box-shadow: 0 6px 24px rgba(0,0,0,0.10);
    transform: translateY(-3px);
}
.act-scroll-img {
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #f8f8f8;
    flex-shrink: 0;
    position: relative;
}
.act-scroll-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
    transition: transform 0.3s;
    background: #f8f8f8;
}
.act-scroll-card:hover .act-scroll-img img { transform: scale(1.04); }
.act-scroll-body {
    padding: 12px 16px 16px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    flex: 1;
}
.act-scroll-date {
    font-size: 0.72rem;
    color: var(--text-sub);
    margin: 0;
}
.act-scroll-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--ink);
    margin: 0;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    padding-left: 2px;
}

@media (max-width: 768px) {
    .act-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
        padding: 0;
    }
    .act-grid .act-scroll-card:nth-child(n+7) { display: none; }
    .act-scroll-img { aspect-ratio: 4 / 3; }
    .act-scroll-img img { object-fit: contain; background: #f8f8f8; }
}

/* Activities page grid */
.act-page-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
@media (max-width: 1024px) { .act-page-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px)  { .act-page-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 400px)  { .act-page-grid { grid-template-columns: 1fr; } }

/* Pagination */
.act-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 40px;
    flex-wrap: wrap;
}
.act-page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 8px;
    border: 1.5px solid var(--border);
    background: #fff;
    color: var(--ink);
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.18s, color 0.18s, border-color 0.18s;
}
.act-page-btn:hover, .act-page-btn.active {
    background: var(--green);
    color: #fff;
    border-color: var(--green);
}
.act-page-dots {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    color: var(--text-sub);
    font-size: 0.9rem;
}

/* ==========================================================================
   ACTIVITIES
.activities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 24px;
}
.activity-card {
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xs);
    overflow: hidden;
    border: 1px solid var(--border);
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
    position: relative;
}
.activity-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--border-strong);
}
.activity-card-img {
    height: 220px;
    overflow: hidden;
    background: var(--surface);
    position: relative;
}
.activity-card-img::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 60%, rgba(2,6,23,0.4));
    pointer-events: none;
}
.activity-card-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.5s var(--ease-out);
}
.activity-card:hover .activity-card-img img { transform: scale(1.04); }
.activity-date-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    background: rgba(255,255,255,0.95);
    color: var(--ink);
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.74rem;
    font-weight: 600;
    font-family: var(--font-mono);
    letter-spacing: 0.02em;
    backdrop-filter: blur(8px);
    z-index: 2;
    border: 1px solid rgba(255,255,255,0.6);
}
.activity-card-body { padding: 20px; }
.activity-card-body h3 {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 10px;
    line-height: 1.4;
    letter-spacing: -0.01em;
}
.activity-card-body p {
    font-size: 0.88rem;
    color: var(--ink-soft);
    line-height: 1.65;
}
.activity-photo-count {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px dashed var(--border);
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    color: var(--accent-deep);
    font-weight: 600;
    font-family: var(--font-mono);
}

/* ==========================================================================
   NOTICES
   ========================================================================== */
.notices-featured-wrapper {
    display: grid;
    grid-template-columns: 1fr 290px;
    gap: 32px;
    align-items: start;
}

.notices-column { flex: 1; }

/* ── Notice Board (home page) ── */
.notices-board-section { background: var(--slate-100); }

.notices-board {
    background: #fff;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.notices-board-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 22px;
    background: var(--slate-900);
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.notices-board-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.01em;
}
.notices-board-label i { color: var(--emerald-400); font-size: 0.85rem; }

.notices-view-all {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--emerald-400);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-mono);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    transition: color var(--transition);
}
.notices-view-all:hover { color: #fff; }
.notices-view-all i { font-size: 0.65rem; }

.notices-list {
    display: flex;
    flex-direction: column;
}

/* Featured Leaders Section (legacy block) */
.featured-leaders-column {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 24px 18px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    height: fit-content;
    text-align: center;
    position: sticky;
    top: 20px;
}
.featured-leaders-title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 22px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border);
    font-size: 0.86rem;
    font-weight: 700;
    color: var(--ink);
    justify-content: center;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.featured-leaders-title i { color: var(--accent); }
.featured-leaders-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
.featured-leader-card {
    display: flex;
    flex-direction: column;
    text-align: center;
    background: var(--surface);
    border-radius: var(--radius-md);
    padding: 14px 12px;
    border: 1px solid var(--border);
    transition: all var(--transition);
    min-height: 220px;
    justify-content: flex-start;
}
.featured-leader-card:hover {
    transform: translateY(-2px);
    border-color: var(--accent);
    background: #fff;
    box-shadow: var(--shadow-sm);
}
.featured-leader-image {
    width: 140px;
    height: 140px;
    border-radius: var(--radius);
    overflow: hidden;
    margin: 0 auto 10px;
    background: var(--slate-100);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
}
.featured-leader-image img { width: 100%; height: 100%; object-fit: cover; }
.featured-leader-info { flex: 1; }
.featured-leader-info h4 {
    font-family: var(--font-bn);
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--ink);
    margin-bottom: 6px;
    line-height: 1.3;
    word-break: break-word;
}
.leader-title {
    font-size: 0.7rem;
    font-weight: 400;
    color: var(--ink);
    margin-bottom: 4px;
}
.leader-designation {
    font-size: 0.74rem;
    color: var(--ink-soft);
    margin: 0;
    line-height: 1.4;
}

/* Notice item */
.notice-item {
    display: flex;
    align-items: stretch;
    background: #fff;
    border-bottom: 1px solid var(--border);
    transition: background var(--transition);
    cursor: pointer;
    position: relative;
    text-decoration: none;
    color: inherit;
    overflow: hidden;
}
.notice-item:last-child { border-bottom: none; }
.notice-item:visited { color: inherit; }
.notice-item::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--accent);
    opacity: 0;
    transition: opacity 0.2s;
}
.notice-item:hover { background: var(--slate-50); }
.notice-item:hover::before { opacity: 1; }

/* Date column */
.nd-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 58px;
    padding: 14px 10px;
    background: var(--slate-50);
    border-right: 1px solid var(--border);
    flex-shrink: 0;
    text-align: center;
    gap: 2px;
}
.nd-day {
    display: block;
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--ink);
    line-height: 1;
    font-family: var(--font-mono);
}
.nd-mon {
    display: block;
    font-size: 0.58rem;
    font-weight: 700;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-family: var(--font-mono);
}

/* Content */
.notice-content {
    flex: 1;
    min-width: 0;
    padding: 13px 16px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
}
.notice-content h4 {
    font-weight: 500;
    color: var(--ink);
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.45;
    letter-spacing: -0.01em;
}
.notice-new {
    display: inline-block;
    background: var(--rose-600);
    color: #fff;
    font-size: 0.56rem;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 3px;
    letter-spacing: 0.1em;
    font-family: var(--font-mono);
    align-self: flex-start;
}

/* Chevron arrow */
.notice-arr {
    color: var(--slate-300);
    font-size: 0.7rem;
    padding: 0 18px 0 8px;
    align-self: center;
    flex-shrink: 0;
    transition: color var(--transition), transform var(--transition);
}
.notice-item:hover .notice-arr {
    color: var(--accent);
    transform: translateX(3px);
}

.notice-thumb {
    width: 72px;
    height: 64px;
    border-radius: var(--radius);
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid var(--border);
    transition: all var(--transition);
}
.notice-item:hover .notice-thumb {
    border-color: var(--accent);
    transform: scale(1.04);
}

/* Full Notices Page */
.notices-full-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}
.notice-full-item {
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xs);
    border: 1px solid var(--border);
    overflow: hidden;
    transition: all var(--transition);
    display: flex;
    flex-direction: column;
    position: relative;
}
.notice-full-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--border-strong);
}
.notice-date-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 60px;
    padding: 10px 8px;
    background: var(--ink);
    color: #fff;
    position: absolute;
    top: 12px;
    right: 12px;
    border-radius: var(--radius);
    z-index: 2;
    font-weight: 700;
    border: 2px solid #fff;
    box-shadow: var(--shadow-sm);
}
.notice-date-badge .date-day {
    font-size: 1.3rem;
    line-height: 1;
    font-weight: 800;
    font-family: var(--font-display);
}
.notice-date-badge .date-month {
    font-size: 0.65rem;
    margin-top: 4px;
    color: var(--emerald-400);
    font-family: var(--font-mono);
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
.notice-full-content {
    padding: 22px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.notice-full-content h3 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--ink);
    margin-bottom: 10px;
    line-height: 1.4;
    letter-spacing: -0.02em;
    padding-right: 70px;
}
.notice-full-meta {
    font-size: 0.78rem;
    color: var(--muted);
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-mono);
    flex-wrap: wrap;
}
.notice-full-meta i { color: var(--accent); font-size: 0.78rem; }
.notice-full-content p {
    margin-top: 12px;
    font-size: 0.92rem;
    line-height: 1.65;
    color: var(--ink-soft);
    flex: 1;
}
.notice-full-thumb {
    width: 100%;
    height: 200px;
    background: var(--surface);
    overflow: hidden;
    position: relative;
    margin-top: auto;
    cursor: pointer;
    border-top: 1px solid var(--border);
}
.notice-full-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s var(--ease-out);
}
.notice-full-item:hover .notice-full-thumb img { transform: scale(1.06); }
.photo-overlay {
    position: absolute;
    inset: 0;
    background: rgba(2,6,23,0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition);
    font-size: 1.5rem;
    color: #fff;
    backdrop-filter: blur(4px);
}
.notice-full-item:hover .photo-overlay { opacity: 1; }

.notices-filter-bar input:focus {
    outline: none;
    box-shadow: var(--shadow-glow);
}

/* ==========================================================================
   GALLERY SLIDER (home page)
   ========================================================================== */
/* ==========================================================================
   GALLERY ENTRANCE ANIMATIONS
   ========================================================================== */

/* Header — slides down from above + fade */
.gal-hdr-hidden {
    opacity: 0;
    transform: translateY(-28px);
}
.gal-hdr-in {
    animation: galHdrIn 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
@keyframes galHdrIn {
    to { opacity: 1; transform: translateY(0); }
}

/* Divider — draws itself left to right */
.gal-divider-line {
    transform-origin: left center;
    transform: scaleX(0);
    transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.5s;
}
.gal-hdr-in .gal-divider-line {
    transform: scaleX(1);
}

/* Marquee — curtain from center outward + blur clear */
.gal-anim-hidden {
    opacity: 0;
    clip-path: inset(0 100% 0 0);
    filter: blur(6px);
    transform: scaleY(0.92);
}
.gal-anim-in {
    animation: galCurtainIn 2.2s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
@keyframes galCurtainIn {
    0%   { opacity: 0; clip-path: inset(0 100% 0 0); filter: blur(6px); transform: scaleY(0.92); }
    50%  { opacity: 1; filter: blur(2px); transform: scaleY(1.01); }
    100% { opacity: 1; clip-path: inset(0 0% 0 0);   filter: blur(0);  transform: scaleY(1); }
}

/* Button — fades up */
.gal-btn-hidden { opacity: 0; transform: translateY(14px); }
.gal-btn-in     { animation: galBtnIn 0.5s ease forwards; }
@keyframes galBtnIn {
    to { opacity: 1; transform: translateY(0); }
}


/* Auto-scroll marquee — driven by JS requestAnimationFrame */
.gal-marquee-wrap {
    overflow: hidden;
    width: 100%;
    cursor: pointer;
}
.gal-marquee-track {
    display: flex;
    gap: 14px;
    width: max-content;
    will-change: transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.gal-slide-card {
    flex: 0 0 240px;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    transition: box-shadow 0.3s;
}
.gal-slide-card:hover {
    box-shadow: 0 10px 32px rgba(0,0,0,0.18);
}

.gal-slide-img {
    position: relative;
    width: 100%;
    height: 180px;
    overflow: hidden;
    background: #f5f5f5;
}
.gal-slide-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
    background: #f5f5f5;
    transition: transform 0.45s ease;
}
.gal-slide-card:hover .gal-slide-img img {
    transform: scale(1.08);
}

/* Overlay — slides up from bottom on hover */
.gal-slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.72) 0%, rgba(0,0,0,0.1) 60%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    padding: 12px;
    gap: 4px;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.35s ease, transform 0.35s ease;
}
.gal-slide-card:hover .gal-slide-overlay {
    opacity: 1;
    transform: translateY(0);
}
.gal-slide-overlay span {
    color: #fff;
    font-size: 0.8rem;
    font-weight: 600;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.gal-slide-overlay i {
    color: rgba(255,255,255,0.8);
    font-size: 0.85rem;
    align-self: flex-end;
    margin-top: 2px;
}

@media (max-width: 768px) {
    .gal-slide-card { flex: 0 0 180px; }
    .gal-slide-img  { height: 140px; }
}
@media (max-width: 480px) {
    .gal-slide-card { flex: 0 0 150px; }
    .gal-slide-img  { height: 115px; }
}

/* ==========================================================================
   GALLERY
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 16px;
}
.gallery-item {
    border-radius: var(--radius-md);
    overflow: hidden;
    position: relative;
    height: 220px;
    cursor: pointer;
    border: 1px solid var(--border);
    background: var(--surface);
}
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.5s var(--ease-out);
}
.gallery-item:hover img { transform: scale(1.06); }
.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(2,6,23,0.8) 0%, transparent 55%);
    opacity: 1;
    display: flex;
    align-items: flex-end;
    padding: 16px;
}
.gallery-overlay span {
    color: #fff;
    font-size: 0.88rem;
    font-weight: 600;
    line-height: 1.4;
}

/* ==========================================================================
   MODAL
   ========================================================================== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(2,6,23,0.6);
    backdrop-filter: blur(6px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition);
}
.modal-overlay.open { opacity: 1; pointer-events: all; }
.modal-box {
    background: #fff;
    border-radius: var(--radius-lg);
    max-width: 560px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 24px 80px rgba(2,6,23,0.5);
    border: 1px solid var(--border);
    transform: translateY(20px) scale(0.97);
    transition: transform var(--transition);
}
.modal-overlay.open .modal-box { transform: none; }
.modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    background: rgba(255,255,255,0.95);
    border: 1px solid var(--border);
    width: 34px;
    height: 34px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--ink);
    z-index: 2;
    transition: all var(--transition);
}
.modal-close:hover { background: var(--ink); color: #fff; border-color: var(--ink); }

.modal-member-header {
    background:
        radial-gradient(ellipse at top, rgba(16,185,129,0.25), transparent 60%),
        var(--slate-950);
    padding: 36px 28px 26px;
    text-align: center;
    color: #fff;
    position: relative;
}
.modal-member-header::after {
    content: "";
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--emerald-500), transparent);
}
.modal-member-photo {
    width: 100px;
    height: 100px;
    border-radius: var(--radius-lg);
    border: 2px solid rgba(255,255,255,0.2);
    object-fit: cover;
    margin: 0 auto 14px;
}
.modal-member-header h3 {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 6px;
    letter-spacing: -0.02em;
}
.modal-member-header p {
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
}
.modal-blood {
    display: inline-block;
    background: var(--rose-600);
    color: #fff;
    padding: 3px 12px;
    border-radius: 999px;
    font-size: 0.74rem;
    font-weight: 700;
    margin-top: 10px;
    font-family: var(--font-mono);
    letter-spacing: 0.04em;
}

.modal-details { padding: 24px 28px; }
.detail-row {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 12px 0;
    border-bottom: 1px solid var(--slate-100);
}
.detail-row:last-child { border-bottom: none; }
.detail-icon {
    width: 36px;
    height: 36px;
    background: var(--accent-soft);
    border: 1px solid var(--emerald-100);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-deep);
    flex-shrink: 0;
    font-size: 0.92rem;
}
.detail-info span {
    display: block;
    font-size: 0.72rem;
    color: var(--muted);
    margin-bottom: 2px;
    font-family: var(--font-mono);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.detail-info strong {
    font-size: 0.94rem;
    color: var(--ink);
    font-weight: 600;
}

/* Notice modal */
.notice-modal-header {
    background:
        radial-gradient(ellipse at top, rgba(16,185,129,0.25), transparent 60%),
        var(--slate-950);
    padding: 30px 28px 22px;
    color: #fff;
}
.notice-modal-header h3 {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 800;
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}
.notice-modal-header span {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.7);
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-mono);
}
.notice-modal-body { padding: 24px 28px; }
.notice-modal-body img {
    width: 100%;
    border-radius: var(--radius);
    margin-top: 4px;
    border: 1px solid var(--border);
}

/* ==========================================================================
   PAGE BANNER (deep slate + grid pattern, emerald underline)
   ========================================================================== */
.page-banner {
    background:
        radial-gradient(ellipse at 20% 50%, rgba(16,185,129,0.18), transparent 50%),
        radial-gradient(ellipse at 90% 30%, rgba(14,165,233,0.12), transparent 50%),
        linear-gradient(135deg, var(--slate-950), var(--slate-800));
    padding: clamp(56px, 8vw, 88px) 0;
    color: #fff;
    text-align: center;
    position: relative;
    overflow: hidden;
    isolation: isolate;
}
.page-banner::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
    background-size: 36px 36px;
    mask-image: radial-gradient(ellipse at center, rgba(0,0,0,0.9), transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse at center, rgba(0,0,0,0.9), transparent 75%);
    z-index: -1;
}
.page-banner::after {
    content: "";
    position: absolute;
    inset: auto 0 0 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--emerald-500), transparent);
}
.page-banner h1 {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 800;
    margin-bottom: 12px;
    position: relative;
    letter-spacing: -0.02em;
    line-height: 1.15;
}
.page-banner p {
    color: rgba(255,255,255,0.75);
    font-size: 1rem;
    position: relative;
    max-width: 640px;
    margin: 0 auto;
}
.breadcrumb {
    margin-top: 18px;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.6);
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    font-family: var(--font-mono);
    letter-spacing: 0.02em;
}
.breadcrumb a { color: #fff; transition: color var(--transition); }
.breadcrumb a:hover { color: var(--emerald-400); }
.breadcrumb i { font-size: 0.65rem; opacity: 0.6; }

/* ==========================================================================
   CONTACT PAGE
   ========================================================================== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}
.contact-info-card {
    background:
        radial-gradient(ellipse at top right, rgba(16,185,129,0.2), transparent 60%),
        var(--slate-950);
    border-radius: var(--radius-lg);
    padding: 36px;
    color: #fff;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--slate-800);
}
.contact-info-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 32px 32px;
    pointer-events: none;
}
.contact-info-card h3 {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 26px;
    letter-spacing: -0.02em;
    position: relative;
}
.contact-detail {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 22px;
    position: relative;
}
.contact-detail-icon {
    width: 42px;
    height: 42px;
    background: rgba(16,185,129,0.12);
    border: 1px solid rgba(16,185,129,0.25);
    color: var(--emerald-400);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1rem;
}
.contact-detail-text span {
    display: block;
    font-size: 0.72rem;
    color: rgba(255,255,255,0.55);
    margin-bottom: 4px;
    font-family: var(--font-mono);
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
.contact-detail-text strong { font-size: 0.95rem; font-weight: 600; display: block; line-height: 1.5; }

.map-embed {
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    height: 340px;
    background: var(--surface);
}
.map-embed iframe { width: 100%; height: 100%; border: none; }

/* ==========================================================================
   BACK TO TOP
   ========================================================================== */
.back-to-top {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 44px;
    height: 44px;
    background: var(--ink);
    color: #fff;
    border: 1px solid var(--ink);
    border-radius: var(--radius);
    cursor: pointer;
    box-shadow: var(--shadow-md);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 998;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity var(--transition), transform var(--transition), background var(--transition);
}
.back-to-top.visible { opacity: 1; transform: none; }
.back-to-top:hover { background: var(--accent-deep); border-color: var(--accent-deep); transform: translateY(-3px); }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
    background: var(--slate-950);
    color: rgba(255,255,255,0.7);
    position: relative;
    overflow: hidden;
}
.site-footer::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    mask-image: linear-gradient(180deg, #000 0%, transparent 60%);
    pointer-events: none;
}
.site-footer::after {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--emerald-500), transparent);
}
.footer-top { padding: 56px 0 40px; position: relative; }
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr 1.5fr;
    gap: 36px;
}
.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}
.footer-logo img {
    width: 44px;
    height: 44px;
    border-radius: var(--radius);
    object-fit: cover;
    border: 1px solid rgba(255,255,255,0.1);
}
.footer-brand {
    display: block;
    font-size: 0.92rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.3;
    letter-spacing: -0.01em;
}
.footer-brand-sub {
    display: block;
    font-size: 0.7rem;
    color: var(--emerald-400);
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.footer-about-text {
    font-size: 0.86rem;
    line-height: 1.7;
    margin-bottom: 18px;
    color: rgba(255,255,255,0.6);
}
.footer-social { display: flex; gap: 8px; }
.footer-social a {
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.6);
    transition: all var(--transition);
    font-size: 0.88rem;
}
.footer-social a:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
    transform: translateY(-2px);
}

.footer-col h4 {
    color: #fff;
    font-size: 0.82rem;
    font-weight: 700;
    margin-bottom: 18px;
    padding-bottom: 0;
    border-bottom: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-family: var(--font-mono);
}
.footer-col h4::before {
    content: "";
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 1px;
}
.footer-links li { margin-bottom: 10px; }
.footer-links a {
    color: rgba(255,255,255,0.6);
    font-size: 0.86rem;
    transition: color var(--transition), padding var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}
.footer-links a i {
    color: var(--accent);
    font-size: 0.62rem;
    transition: transform var(--transition);
}
.footer-links a:hover { color: #fff; padding-left: 4px; }
.footer-links a:hover i { transform: translateX(2px); }

.footer-notice-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 14px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.footer-notice-item i { color: var(--accent); margin-top: 4px; flex-shrink: 0; font-size: 0.78rem; }
.footer-notice-item a {
    display: block;
    color: rgba(255,255,255,0.75);
    font-size: 0.84rem;
    font-weight: 500;
    margin-bottom: 4px;
    transition: color var(--transition);
    line-height: 1.4;
}
.footer-notice-item a:hover { color: #fff; }
.footer-notice-item span {
    font-size: 0.72rem;
    color: rgba(255,255,255,0.4);
    font-family: var(--font-mono);
}

.footer-contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 14px;
    font-size: 0.86rem;
    color: rgba(255,255,255,0.7);
}
.footer-contact-list i { color: var(--accent); margin-top: 4px; flex-shrink: 0; font-size: 0.82rem; }

.footer-bottom {
    background: rgba(0,0,0,0.4);
    padding: 18px 0;
    text-align: center;
    font-size: 0.78rem;
    color: rgba(255,255,255,0.4);
    border-top: 1px solid rgba(255,255,255,0.06);
    position: relative;
    font-family: var(--font-mono);
    letter-spacing: 0.02em;
}

/* ==========================================================================
   UTILITY
   ========================================================================== */
.text-center { text-align: center; }
.mt-4 { margin-top: 16px; }
.mb-4 { margin-bottom: 16px; }
.hidden { display: none; }

.photo-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--surface);
    color: var(--slate-400);
    font-size: 2.5rem;
    border: 1px dashed var(--border);
}

/* ==========================================================================
   TOP BAR
   ========================================================================== */
.top-bar {
    background: var(--emerald-800);
    color: #fff;
    border-bottom: 1px solid rgba(0,0,0,0.18);
    overflow: hidden;
}
.top-bar-inner {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 clamp(16px, 4vw, 24px);
    display: flex;
    align-items: center;
    height: 40px;
    gap: 14px;
}
.top-bar-govt {
    display: flex;
    align-items: center;
    gap: 7px;
    flex-shrink: 0;
    font-size: 0.74rem;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0.9;
}
.top-bar-flag { font-size: 1rem; }
.top-bar-divider {
    width: 1px;
    height: 18px;
    background: rgba(255,255,255,0.18);
    flex-shrink: 0;
}
.top-bar-ticker {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    overflow: hidden;
    min-width: 0;
}
.ticker-badge {
    flex-shrink: 0;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 3px;
    padding: 2px 8px;
    font-size: 0.67rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    white-space: nowrap;
}
.ticker-viewport {
    overflow: hidden;
    flex: 1;
    min-width: 0;
}
.ticker-track {
    display: inline-flex;
    white-space: nowrap;
    animation: tickerScroll 20s linear infinite;
}
.ticker-track:hover { animation-play-state: paused; }
@keyframes tickerScroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
.ticker-item {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding-right: 48px;
    font-size: 0.78rem;
    opacity: 0.85;
    cursor: pointer;
    color: #fff;
    text-decoration: none;
    transition: opacity 0.2s;
}
.ticker-item:hover { opacity: 1; text-decoration: underline; }
.ticker-item i { color: var(--emerald-300); font-size: 0.6rem; flex-shrink: 0; }
.top-bar-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}
.top-bar-date {
    font-size: 0.72rem;
    opacity: 0.7;
    white-space: nowrap;
}
.top-bar-icon-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 50%;
    color: #fff;
    text-decoration: none;
    font-size: 0.72rem;
    transition: background 0.2s, transform 0.2s;
    flex-shrink: 0;
}
.top-bar-icon-btn:hover { background: rgba(255,255,255,0.28); transform: scale(1.1); }
.top-bar-wa:hover  { background: #25d366; border-color: #25d366; }
.top-bar-fb:hover  { background: #1877f2; border-color: #1877f2; }

.top-bar-socials { display: flex; gap: 5px; }
.top-bar-socials a {
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    background: rgba(255,255,255,0.1);
    color: #fff;
    font-size: 0.7rem;
    transition: background var(--transition);
}
.top-bar-socials a:hover { background: rgba(255,255,255,0.25); }

/* ==========================================================================
   QUICK SERVICES GRID
   ========================================================================== */
.services-section {
    background: var(--slate-50);
    padding: 64px 0;
}
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-top: 40px;
}
.service-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px 20px;
    display: flex;
    gap: 16px;
    align-items: flex-start;
    text-decoration: none;
    color: inherit;
    transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
    position: relative;
    overflow: hidden;
}
.service-card::after {
    content: "";
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 3px;
    background: var(--accent);
    transform: scaleY(0);
    transform-origin: bottom;
    transition: transform 0.3s var(--ease-out);
}
.service-card:hover {
    border-color: var(--emerald-200);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}
.service-card:hover::after { transform: scaleY(1); }
.service-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
    transition: background var(--transition), color var(--transition), transform var(--transition);
}
.service-icon.green  { background: var(--emerald-50);  color: var(--accent); }
.service-icon.blue   { background: var(--sky-100);     color: var(--sky-600); }
.service-icon.amber  { background: #fef3c7;            color: #d97706; }
.service-icon.rose   { background: var(--rose-100);    color: var(--rose-600); }
.service-icon.purple { background: #ede9fe;            color: #7c3aed; }
.service-icon.teal   { background: #ccfbf1;            color: #0d9488; }
.service-card:hover .service-icon { transform: scale(1.08); }
.service-card:hover .service-icon.green  { background: var(--accent);    color: #fff; }
.service-card:hover .service-icon.blue   { background: var(--sky-600);   color: #fff; }
.service-card:hover .service-icon.amber  { background: #d97706;          color: #fff; }
.service-card:hover .service-icon.rose   { background: var(--rose-600);  color: #fff; }
.service-card:hover .service-icon.purple { background: #7c3aed;          color: #fff; }
.service-card:hover .service-icon.teal   { background: #0d9488;          color: #fff; }
.service-body { flex: 1; min-width: 0; }
.service-title {
    font-family: var(--font-display);
    font-size: 0.96rem;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 4px;
    line-height: 1.3;
}
.service-desc {
    font-size: 0.79rem;
    color: var(--text-sub);
    line-height: 1.5;
}
.service-arrow {
    align-self: center;
    font-size: 0.75rem;
    color: var(--slate-300);
    flex-shrink: 0;
    transition: color var(--transition), transform var(--transition);
}
.service-card:hover .service-arrow { color: var(--accent); transform: translateX(3px); }

/* ==========================================================================
   LEADERSHIP SECTION
   ========================================================================== */
.leadership-section { background: #fff; padding: 72px 0; }
.leadership-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
    margin-top: 44px;
}
.leader-card {
    background: var(--slate-50);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    text-align: center;
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.leader-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--emerald-200);
}
.leader-card-accent {
    height: 5px;
    background: linear-gradient(90deg, var(--emerald-800), var(--emerald-500));
}
.leader-photo-wrap { padding: 26px 20px 0; }
.leader-photo {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #fff;
    box-shadow: var(--shadow-sm);
    margin: 0 auto;
    display: block;
}
.leader-photo-placeholder {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    background: var(--emerald-50);
    border: 3px solid #fff;
    box-shadow: var(--shadow-sm);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    color: var(--accent);
}
.leader-body { padding: 14px 16px 24px; }
.leader-badge {
    display: inline-block;
    background: var(--emerald-50);
    color: var(--emerald-700);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    padding: 3px 10px;
    border-radius: 999px;
    margin-bottom: 8px;
    border: 1px solid var(--emerald-100);
}
.leader-name {
    font-family: var(--font-display);
    font-size: 0.98rem;
    font-weight: 800;
    color: var(--ink);
    margin-bottom: 5px;
    line-height: 1.25;
}
.leader-post { font-size: 0.79rem; color: var(--text-sub); line-height: 1.45; }

/* ==========================================================================
   NOTICE TICKER STRIP
   ========================================================================== */
.notice-ticker-strip {
    background: var(--emerald-800);
    padding: 9px 0;
}
.ntb-inner-wrap {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 clamp(16px, 4vw, 24px);
    display: flex;
    align-items: center;
    gap: 14px;
}
.ntb-badge {
    flex-shrink: 0;
    background: #fff;
    color: var(--emerald-800);
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.07em;
    padding: 3px 12px;
    border-radius: 2px;
    white-space: nowrap;
}
.ntb-track { flex: 1; overflow: hidden; }
.ntb-scroll {
    display: inline-flex;
    white-space: nowrap;
    gap: 0;
    animation: tickerScroll 32s linear infinite;
    color: rgba(255,255,255,0.88);
    font-size: 0.8rem;
    align-items: center;
}
.ntb-scroll:hover { animation-play-state: paused; }
.ntb-scroll a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
    cursor: pointer;
    padding: 0 4px;
}
.ntb-scroll a:hover { color: #fff; text-decoration: underline; }
.ntb-sep { opacity: 0.25; padding: 0 20px; }

/* ==========================================================================
   FOOTER COUNTER BAR
   ========================================================================== */
.footer-counter-bar {
    background: var(--slate-800);
    border-top: 1px solid var(--slate-700);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    padding: 14px 0;
}
.footer-counter-inner {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 clamp(16px, 4vw, 24px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}
.footer-counter-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.78rem;
    color: var(--slate-400);
}
.footer-counter-item i { color: var(--emerald-500); font-size: 0.75rem; }
.footer-counter-item strong { color: var(--slate-200); font-weight: 700; }

/* ==========================================================================
   ANIMATIONS
   ========================================================================== */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}
.fade-in-up { animation: fadeInUp 0.6s var(--ease-out) both; }
.delay-1 { animation-delay: 0.08s; }
.delay-2 { animation-delay: 0.16s; }
.delay-3 { animation-delay: 0.24s; }
.delay-4 { animation-delay: 0.32s; }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

/* ── Desktop+: 1280px+ ── */
@media (min-width: 1280px) {
    :root { --container: 1240px; }
}

/* ── Laptop: 1024px – 1279px ── */
@media (max-width: 1279px) {
    :root { --container: 1024px; }
    .committee-layout { grid-template-columns: 1fr 270px; }
    .footer-grid { grid-template-columns: 2fr 1fr 1.5fr; gap: 28px; }
    .footer-grid .footer-col:last-child { grid-column: 1/-1; }
    .leadership-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ── Tablet-Large / Laptop-Small: 1024px ── */
@media (max-width: 1024px) {
    .committee-layout { grid-template-columns: 1fr 260px; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .about-section .about-grid { gap: 36px; }
    .activities-grid { grid-template-columns: repeat(2, 1fr); }
    .notices-full-list { grid-template-columns: repeat(2, 1fr); }
    .page-with-sidebar { grid-template-columns: 1fr 270px; }
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .leadership-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ── Tablet: 768px – 1023px ── */
@media (max-width: 991px) {
    .committee-layout { grid-template-columns: 1fr; }
    .search-panel { position: relative; top: 0; order: -1; }
    .page-with-sidebar { grid-template-columns: 1fr; padding: 0; }
    .page-main-col { padding: 0 16px; }
    .right-sidebar {
        order: 2;
        padding: 28px clamp(16px, 4vw, 20px) 36px;
        position: relative;
        top: 0;
    }
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .leadership-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ── Mobile: < 768px ── */
@media (max-width: 768px) {
    :root { --header-h: 64px; }

    .top-bar-left span:not(:first-child) { display: none; }

    .notices-featured-wrapper { grid-template-columns: 1fr; }
    .featured-leaders-column { position: relative; top: 0; }
    .notices-full-list { grid-template-columns: 1fr; }
    .notice-full-content h3 { padding-right: 0; }
    .notice-date-badge { top: 8px; right: 8px; width: 54px; padding: 8px 6px; }
    .notice-date-badge .date-day { font-size: 1.1rem; }
    .notice-date-badge .date-month { font-size: 0.6rem; }

    /* Hamburger left of logo */
    .hamburger { display: flex; order: -1; margin-right: 10px; margin-left: 0; flex-shrink: 0; }
    .logo-wrap { flex: 1; }
    .header-actions { margin-left: auto; order: 2; }
    .lang-toggle { padding: 5px 11px; font-size: 0.74rem; }

    /* Mobile nav drawer */
    .main-nav {
        position: fixed;
        top: 0;
        left: -100%;
        width: 82%;
        max-width: 320px;
        height: 100vh;
        background: #fff;
        box-shadow: 4px 0 30px rgba(2,6,23,0.15);
        z-index: 1000;
        transition: left 0.35s var(--ease-out);
        padding: 16px 20px 32px;
        overflow-y: auto;
        display: flex;
        flex-direction: column;
        border-right: 1px solid var(--border);
    }
    .main-nav.open { left: 0; }

    .main-nav::before {
        content: "";
        display: block;
        height: var(--header-h);
        min-height: var(--header-h);
        flex-shrink: 0;
        border-bottom: 1px solid var(--border);
        margin: -16px -20px 16px;
        background: var(--surface);
        background-image:
            linear-gradient(rgba(15,23,42,0.04) 1px, transparent 1px),
            linear-gradient(90deg, rgba(15,23,42,0.04) 1px, transparent 1px);
        background-size: 22px 22px;
    }

    .main-nav ul { flex-direction: column; gap: 2px; align-items: stretch; width: 100%; }
    .main-nav ul li { width: 100%; }
    .main-nav ul li a {
        display: block;
        padding: 12px 14px;
        font-size: 0.95rem;
    }
    .main-nav ul li a.active::after { display: none; }

    /* Mobile dropdown */
    .dropdown-menu {
        display: block;
        position: relative;
        box-shadow: none;
        border: none;
        background: var(--surface);
        margin: 0;
        padding: 0;
        top: auto;
        left: 0;
        right: 0;
        min-width: 0;
        width: 100%;
        border-radius: var(--radius);
        opacity: 0;
        visibility: hidden;
        max-height: 0;
        overflow: hidden;
        pointer-events: none;
        transition: max-height 0.3s ease, opacity 0.3s ease, visibility 0.3s ease;
        transform: none;
    }
    .nav-dropdown.open .dropdown-menu {
        opacity: 1;
        visibility: visible;
        max-height: 800px;
        pointer-events: auto;
    }
    .dropdown-menu {
        margin: 2px 0 4px 0;
        border-left: 3px solid var(--green);
        border-radius: 0 var(--radius) var(--radius) 0;
        background: var(--green-soft) !important;
    }
    .dropdown-menu li a {
        padding: 10px 14px 10px 16px !important;
        font-size: 0.9rem;
        color: var(--green-dark) !important;
        background: transparent !important;
        position: relative;
    }
    .dropdown-menu li a::before {
        display: none;
    }
    .dropdown-menu li a:hover {
        background: rgba(16,185,129,0.12) !important;
    }

    .committee-layout { grid-template-columns: 1fr; }
    .search-panel { position: relative; top: 0; order: -1; }

    .about-section .about-grid { grid-template-columns: 1fr; }
    .about-img-wrap { order: -1; }
    .about-img-wrap img { height: 200px; }
    .about-badge { right: 10px; bottom: -14px; }
    .mission-vision { grid-template-columns: 1fr; }

    .contact-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }

    section { padding: 28px 0; }
    .activities-grid { grid-template-columns: 1fr; }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .committee-grid { grid-template-columns: repeat(2, 1fr); }

    /* Modal full-screen on mobile */
    .modal-box { max-height: 96vh; border-radius: var(--radius-md); }
    .modal-overlay { padding: 10px; }

    /* Page banner padding */
    .page-banner { padding: 48px 0; }

    /* Top bar: stack ticker below logos on mobile */
    .top-bar-inner {
        flex-wrap: wrap;
        height: auto;
        padding-top: 6px;
        padding-bottom: 6px;
        gap: 6px;
    }
    .top-bar-govt { flex: 1 1 auto; }
    .top-bar-divider { display: none; }
    .top-bar-ticker {
        display: flex;
        flex: 0 0 100%;
        order: 3;
        border-top: 1px solid rgba(255,255,255,0.12);
        padding-top: 5px;
    }
    .top-bar-meta { display: none; }
    .top-bar-date { display: none; }
    /* New sections: 2-col on mobile */
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .leadership-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ── Small Mobile: < 480px ── */
@media (max-width: 480px) {
    .header-inner { height: auto; min-height: var(--header-h); padding-top: 6px; padding-bottom: 6px; }
    /* Inline flow: name + reg no wrap together as one paragraph → always 2 lines */
    .logo-text { display: block; line-height: 1.35; }
    .logo-main { display: inline; font-size: 0.72rem; font-weight: 800; line-height: inherit; white-space: normal; }
    .logo-sub { display: inline; font-size: 0.66rem; margin-left: 2px; }
    .logo-img-wrap { width: 40px; height: 40px; flex-shrink: 0; }
    .committee-grid { grid-template-columns: 1fr; }
    .gallery-grid { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .nd-date { min-width: 50px; padding: 12px 8px; }
    .nd-day { font-size: 1.1rem; }
    .notice-thumb { width: 100%; height: 140px; border-radius: var(--radius); order: -1; }
    .activities-grid { grid-template-columns: 1fr; }
    .notices-full-list { grid-template-columns: 1fr; }
    .services-grid { grid-template-columns: 1fr; }
    .top-bar-govt span { display: none; }
    .ntb-badge { font-size: 0.62rem; padding: 2px 8px; }
}

/* ── Extra Small: < 360px ── */
@media (max-width: 360px) {
    .stats-grid { grid-template-columns: 1fr; }
    .header-inner { height: auto; min-height: var(--header-h); padding-top: 6px; padding-bottom: 6px; }
    .logo-text { display: block; line-height: 1.3; }
    .logo-main { display: inline; font-size: 0.64rem; font-weight: 800; line-height: inherit; white-space: normal; }
    .logo-sub { display: inline; font-size: 0.58rem; margin-left: 2px; }
    .logo-img-wrap { width: 34px; height: 34px; }
    .leadership-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   PAGE WITH SIDEBAR LAYOUT
   ========================================================================== */
.page-with-sidebar {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 0 32px;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 clamp(16px, 4vw, 24px);
    align-items: start;
}
.page-main-col { min-width: 0; }
.page-main-col section { border-radius: 0; }

@media (max-width: 768px) {
    .map-section { padding: 24px 16px !important; }
    .map-section iframe { height: 260px !important; }
}

.right-sidebar {
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding-top: 48px;
    position: sticky;
    top: 20px;
}

.sidebar-section {
    background: #fff;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-xs);
    overflow: hidden;
}

/* Sidebar Leader Cards */
.sidebar-leaders { display: flex; flex-direction: column; }
.sidebar-leader-item { padding: 14px 16px; }
.sidebar-leader-item.has-border { border-top: 1px solid var(--border); }
.sidebar-leader-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.92rem;
    font-weight: 400;
    color: #fff;
    background: linear-gradient(135deg, #0f2027 0%, #203a43 50%, #2c5364 100%);
    margin-bottom: 12px;
    padding: 8px 12px;
    border-radius: 4px;
    font-family: var(--font-bn);
}
.sidebar-leader-label i { color: rgba(255,255,255,0.85); font-size: 0.82rem; }

.sidebar-leader-item .featured-leader-card {
    min-height: unset;
    padding: 12px;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
    background: var(--surface);
    border: 1px solid var(--border);
}
.sidebar-leader-item .featured-leader-card:hover {
    transform: none;
    background: #fff;
    border-color: var(--accent);
    box-shadow: var(--shadow-sm);
}
.sidebar-leader-item .featured-leader-image {
    width: 100%;
    height: auto;
    border-radius: var(--radius);
    flex-shrink: 0;
    margin: 0;
    border: 1px solid var(--border);
    overflow: visible;
}
.sidebar-leader-item .featured-leader-image img {
    width: 100%;
    height: auto;
    max-height: 180px;
    object-fit: contain;
    display: block;
    border-radius: var(--radius);
}
.sidebar-leader-item .featured-leader-info { flex: 1; width: 100%; text-align: center; display: flex; flex-direction: column; align-items: center; }
.sidebar-leader-item .featured-leader-info h4 {
    font-size: 1rem;
    white-space: normal;
    line-height: 1.3;
}
.sidebar-leader-item .leader-title { font-size: 0.78rem; white-space: normal; }
.sidebar-leader-item .leader-designation {
    font-size: 0.78rem;
    color: var(--ink-soft);
    white-space: normal;
    margin-top: 3px;
}

/* Leader detail button inside sidebar cards */
.leader-detail-btn {
    display: inline-block;
    margin-top: 10px;
    padding: 8px 20px;
    background: var(--green);
    color: #fff;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    transition: background var(--transition);
    min-width: 100px;
    text-align: center;
}
.leader-detail-btn:hover { background: var(--green-dark); color: #fff; }

.sidebar-no-data {
    text-align: center;
    font-size: 0.8rem;
    color: var(--muted);
    padding: 8px 0 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

/* Fixed leader photos in sidebar */
.sidebar-fixed-leaders {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 14px;
}
.sfl-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    background: #fafafa;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    padding-bottom: 10px;
}
.sfl-card img {
    width: 100%;
    aspect-ratio: 3/4;
    object-fit: cover;
    object-position: top;
    display: block;
}
.sfl-card span {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--green);
    text-align: center;
    padding: 0 6px;
    line-height: 1.3;
}

/* Sidebar Important Links */
.sidebar-links { overflow: visible; }
.sidebar-section-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.92rem;
    font-weight: 400;
    color: #fff;
    background: linear-gradient(135deg, #0f2027 0%, #203a43 50%, #2c5364 100%);
    padding: 8px 12px;
    border-radius: 4px;
    font-family: var(--font-bn);
}
.sidebar-section-title i { color: rgba(255,255,255,0.85); }
.sidebar-links ul {
    display: flex;
    flex-direction: column;
    padding: 6px 0;
}
.sidebar-links ul li a {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.82rem;
    color: var(--ink-soft);
    padding: 9px 16px;
    transition: background var(--transition), color var(--transition);
    border-left: 2px solid transparent;
    position: relative;
}
.sidebar-links ul li a:hover {
    background: var(--accent-soft);
    color: var(--accent-deep);
    border-left-color: var(--accent);
}
.sidebar-links ul li a i {
    color: var(--accent);
    font-size: 0.7rem;
    flex-shrink: 0;
    opacity: 0.7;
}
.sidebar-links ul li a:hover i { opacity: 1; }

/* National Anthem player */
.anthem-player-wrap {
    padding: 14px 16px 16px;
}
.anthem-player-wrap audio {
    width: 100%;
    border-radius: 8px;
    outline: none;
}

/* Sidebar un-sticks at tablet and below (handled in responsive section above) */
@media (max-width: 768px) {
    .page-with-sidebar {
        grid-template-columns: 1fr;
        padding: 0;
        gap: 0;
    }
    .page-main-col { order: 1; padding: 0 16px; }
    .right-sidebar {
        order: 2;
        padding: 20px clamp(12px, 4vw, 16px) 28px;
        position: relative;
        top: 0;
    }

    /* Leaders: compact single column on mobile */
    .sidebar-leaders .sidebar-section-title { padding: 12px 14px 0; font-size: 0.85rem; }
    .sidebar-leader-item { padding: 10px 14px; }
    .sidebar-leader-label { font-size: 0.72rem; margin-bottom: 6px; }
    .sidebar-leader-item .featured-leader-card { padding: 10px; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
    .sidebar-leader-item .featured-leader-image { width: 160px; flex-shrink: 0; margin: 0 auto; }
    .sidebar-leader-item .featured-leader-image img { max-height: 180px; }
    .sidebar-leader-item .featured-leader-info { width: 100%; text-align: center; }
    .sidebar-leader-item .featured-leader-info h4 { font-size: 0.88rem; }
    .sidebar-leader-item .leader-title { font-size: 0.72rem; }
    .sidebar-leader-item .leader-designation { font-size: 0.72rem; }
    .leader-detail-btn { font-size: 0.88rem; padding: 10px 24px; min-width: 120px; }
}

/* ==========================================================================
   MOBILE PHONE OPTIMIZATION (max-width: 480px)
   ========================================================================== */
@media (max-width: 480px) {
    :root {
        --header-h: 68px;
    }

    body { font-size: 1rem; line-height: 1.6; }

    h1 { font-size: clamp(1.4rem, 5vw, 2rem); margin-bottom: 16px; }
    h2 { font-size: clamp(1.2rem, 4.5vw, 1.8rem); margin-bottom: 12px; }
    h3 { font-size: clamp(1.05rem, 4vw, 1.4rem); margin-bottom: 10px; }
    h4 { font-size: clamp(0.95rem, 3.5vw, 1.1rem); margin-bottom: 8px; }

    .container, .page-container { padding: 0 clamp(12px, 3vw, 16px); }

    /* Header improvements */
    .logo-main { font-size: clamp(0.85rem, 2.5vw, 1rem); }
    .logo-sub { font-size: clamp(0.7rem, 2vw, 0.8rem); }

    /* Form inputs and selects */
    input, select, textarea {
        font-size: 1rem !important;
        padding: 12px 14px !important;
        min-height: 44px;
    }

    label { font-size: 0.95rem; margin-bottom: 8px; }

    /* Buttons */
    .btn {
        font-size: 0.95rem;
        padding: 12px 18px;
        min-height: 44px;
        display: flex;
        align-items: center;
        gap: 8px;
    }

    /* Tables */
    table { font-size: 0.95rem; }
    table td, table th { padding: 12px 10px; }
    table th { font-size: 0.92rem; }

    /* Cards and sections */
    .card { padding: clamp(16px, 4vw, 24px); }
    .section-header { margin-bottom: 32px; }
    .section-tag { font-size: 0.9rem; padding: 6px 12px; }

    /* Committee member list improvements */
    .member-card { padding: 14px; margin-bottom: 12px; }
    .member-photo { width: 70px; height: 70px; min-width: 70px; }
    .member-info h4 { font-size: 1rem; margin-bottom: 4px; }
    .member-info p { font-size: 0.95rem; margin-bottom: 3px; }

    /* Regional committee page */
    .cm-table td { padding: 8px 10px; font-size: 0.95rem; }
    .cm-table td.cm-lbl { font-size: 0.88rem; width: 70px; }
    .cm-photo { width: 100px; min-width: 100px; }
    .cm-photo img { width: 100px; }

    /* Form grid */
    .form-grid { grid-template-columns: 1fr !important; gap: 16px; }
    .single-field { grid-column: 1 !important; }

    /* Search and filter */
    .act-search-box { padding: 16px; gap: 10px; }
    .act-search-box input, .act-search-box select {
        min-height: 44px;
        font-size: 1rem;
    }

    /* Gallery items */
    .gallery-item { aspect-ratio: 1; }
    .gallery-item img { height: 100%; }

    /* Activity cards */
    .activity-card { padding: 12px; }
    .activity-card h3 { font-size: 1rem; }
    .activity-card p { font-size: 0.95rem; }

    /* Modal and overlays */
    .modal-content { padding: 20px; }
    .modal-content h2 { font-size: 1.2rem; margin-bottom: 16px; }

    /* Sidebar and featured sections */
    .sidebar-section-title { font-size: 0.95rem; }
    .featured-leader-info h4 { font-size: 1rem; }
    .featured-leader-info p { font-size: 0.92rem; }

    /* Icons */
    .fa { line-height: inherit; }

    /* Flex gaps */
    .form-actions { gap: 8px; }

    /* Ensure touch targets are at least 44px */
    a, button, [role="button"] {
        min-height: 44px;
        min-width: 44px;
        display: inline-flex;
        align-items: center;
    }
}
