/* =====================================================================
   Vijaya Raje Government Girls PG College — Notice Portal
   Modern, professional, government-college style
   ===================================================================== */

/* ---------- Design Tokens ---------- */
:root {
    /* Brand palette */
    --navy: #0f2557;
    --navy-deep: #0a1a3f;
    --navy-soft: #1e3a8a;
    --gold: #d4a017;
    --gold-light: #e9c46a;
    --gold-deep: #b8860b;
    --red: #b91c1c;
    --green: #047857;

    /* Light theme surface */
    --bg: #f5f7fa;
    --bg-alt: #ffffff;
    --bg-soft: #eef2f7;
    --surface: rgba(255, 255, 255, 0.85);
    --surface-solid: #ffffff;
    --border: rgba(15, 37, 87, 0.08);
    --border-strong: rgba(15, 37, 87, 0.15);
    --shadow-sm: 0 2px 6px rgba(15, 37, 87, 0.06);
    --shadow-md: 0 8px 24px rgba(15, 37, 87, 0.08);
    --shadow-lg: 0 20px 48px rgba(15, 37, 87, 0.12);
    --shadow-gold: 0 8px 24px rgba(212, 160, 23, 0.25);

    /* Text */
    --text: #1a2342;
    --text-soft: #4a5578;
    --text-mute: #6c7693;
    --text-on-dark: #ffffff;

    /* Priority */
    --urgent: #dc2626;
    --new: #2563eb;
    --important: #d4a017;

    /* Glass */
    --glass: rgba(255, 255, 255, 0.65);
    --glass-border: rgba(255, 255, 255, 0.45);
    --glass-blur: 14px;

    /* Misc */
    --radius-sm: 8px;
    --radius: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font-sans: 'Poppins', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --font-serif: 'Playfair Display', 'Georgia', serif;
}

/* ---------- Dark theme ---------- */
[data-theme="dark"] {
    --bg: #0a1224;
    --bg-alt: #0f1a32;
    --bg-soft: #142244;
    --surface: rgba(20, 34, 68, 0.7);
    --surface-solid: #0f1a32;
    --border: rgba(255, 255, 255, 0.08);
    --border-strong: rgba(255, 255, 255, 0.15);
    --text: #e6ecff;
    --text-soft: #b8c4e8;
    --text-mute: #8893bd;
    --glass: rgba(20, 34, 68, 0.55);
    --glass-border: rgba(255, 255, 255, 0.08);
    --shadow-sm: 0 2px 6px rgba(0, 0, 0, 0.25);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.35);
    --shadow-lg: 0 20px 48px rgba(0, 0, 0, 0.5);
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font-sans);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    font-size: 15px;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    transition: background var(--transition), color var(--transition);
}

a { color: inherit; text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--gold-deep); }

h1, h2, h3, h4, h5, h6 { font-family: var(--font-sans); font-weight: 600; color: var(--text); margin: 0; }

img { max-width: 100%; display: block; }

::selection { background: var(--gold); color: var(--navy); }

/* Scrollbar */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg-soft); }
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--navy) 0%, var(--navy-soft) 100%);
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover { background: var(--gold); }

/* Skip link */
.skip-link {
    position: absolute; left: -9999px; top: 0;
    background: var(--gold); color: var(--navy);
    padding: 10px 16px; font-weight: 600; z-index: 10000;
}
.skip-link:focus { left: 8px; top: 8px; }

/* ---------- Top Utility Bar ---------- */
.top-utility-bar {
    background: linear-gradient(90deg, var(--navy-deep) 0%, var(--navy) 100%);
    color: var(--text-on-dark);
    font-size: 12.5px;
    padding: 7px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.top-utility-bar .utility-left,
.top-utility-bar .utility-right { font-size: 12.5px; }
.datetime-display {
    background: rgba(255, 255, 255, 0.08);
    padding: 4px 12px;
    border-radius: 999px;
    backdrop-filter: blur(8px);
    font-variant-numeric: tabular-nums;
}
.datetime-display .separator { opacity: 0.4; margin: 0 8px; }
.utility-actions { display: flex; gap: 6px; }
.util-btn {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.12);
    width: 30px; height: 28px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition);
}
.util-btn:hover { background: var(--gold); border-color: var(--gold); color: var(--navy); }
#themeToggle.is-dark .fa-moon::before { content: "\f185"; }

/* ---------- Main Header ---------- */
.main-header {
    background: var(--bg-alt);
    padding: 18px 0;
    border-bottom: 1px solid var(--border);
    position: relative;
}
.main-header::before {
    content: ""; position: absolute; left: 0; right: 0; bottom: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--navy) 0%, var(--gold) 50%, var(--navy) 100%);
}
.logo-wrapper { flex-shrink: 0; }
.logo-placeholder {
    width: 78px; height: 78px;
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-soft) 100%);
    color: var(--gold);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 36px;
    box-shadow: var(--shadow-md), inset 0 0 0 4px rgba(212, 160, 23, 0.3);
    border: 3px solid var(--gold);
    position: relative;
}
.logo-placeholder::after {
    content: ""; position: absolute; inset: -7px;
    border: 1px dashed var(--gold);
    border-radius: 50%;
    opacity: 0.5;
    animation: spin 30s linear infinite;
}
.logo-sm { width: 50px; height: 50px; font-size: 22px; border-width: 2px; }
.logo-sm::after { display: none; }

@keyframes spin { to { transform: rotate(360deg); } }

.brand-tag {
    margin: 0 0 2px;
    font-size: 11px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--gold-deep);
    font-weight: 600;
}
.brand-title {
    font-family: var(--font-serif);
    font-size: clamp(18px, 2.2vw, 26px);
    font-weight: 700;
    color: var(--navy);
    line-height: 1.2;
    margin: 0 0 4px;
}
[data-theme="dark"] .brand-title { color: var(--text); }
.brand-location { color: var(--gold-deep); font-style: italic; }
.brand-subtitle {
    margin: 0;
    font-size: 13px;
    color: var(--text-soft);
    font-weight: 500;
    letter-spacing: 0.3px;
}

.header-actions { gap: 14px; }
.header-stat {
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    padding: 6px 14px;
    background: var(--bg-soft);
    border-radius: 10px;
    border: 1px solid var(--border);
    min-width: 64px;
}
.header-stat .stat-label { font-size: 10px; text-transform: uppercase; letter-spacing: 1px; color: var(--text-mute); }
.header-stat .stat-value { font-size: 16px; font-weight: 700; color: var(--navy); }
[data-theme="dark"] .header-stat .stat-value { color: var(--gold); }

.btn-notify {
    position: relative;
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-soft) 100%);
    color: #fff;
    border: none;
    width: 44px; height: 44px;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    transition: all var(--transition);
}
.btn-notify:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.notify-count {
    position: absolute; top: -4px; right: -4px;
    background: var(--gold); color: var(--navy);
    font-size: 11px; font-weight: 700;
    width: 20px; height: 20px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    border: 2px solid var(--bg-alt);
    animation: pulse-badge 2s infinite;
}
@keyframes pulse-badge {
    0%, 100% { box-shadow: 0 0 0 0 rgba(212, 160, 23, 0.6); }
    50% { box-shadow: 0 0 0 8px rgba(212, 160, 23, 0); }
}

/* ---------- Navigation ---------- */
.main-nav {
    background: linear-gradient(90deg, var(--navy-deep) 0%, var(--navy) 50%, var(--navy-deep) 100%);
    color: #fff;
    padding: 0;
    box-shadow: var(--shadow-md);
    z-index: 1000;
    border-bottom: 2px solid var(--gold);
}
.main-nav.scrolled { background: rgba(10, 26, 63, 0.97); backdrop-filter: blur(12px); }

.nav-brand {
    display: inline-flex; align-items: center; gap: 8px;
    color: #fff !important;
    font-weight: 600;
    padding: 14px 0;
    font-size: 15px;
}
.nav-brand i { color: var(--gold); }

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0; padding: 0;
    gap: 4px;
}
.nav-menu a {
    color: rgba(255, 255, 255, 0.9) !important;
    display: inline-flex; align-items: center; gap: 6px;
    padding: 16px 14px;
    font-weight: 500;
    font-size: 13.5px;
    position: relative;
    transition: color var(--transition);
}
.nav-menu a i { font-size: 12px; opacity: 0.8; }
.nav-menu a::after {
    content: ""; position: absolute;
    bottom: 0; left: 50%; width: 0; height: 3px;
    background: var(--gold);
    transition: all var(--transition);
    transform: translateX(-50%);
}
.nav-menu a:hover,
.nav-menu a.active { color: var(--gold) !important; }
.nav-menu a:hover::after,
.nav-menu a.active::after { width: 80%; }

.nav-search-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    width: 38px; height: 38px;
    border-radius: 50%;
    align-items: center; justify-content: center;
    transition: all var(--transition);
    cursor: pointer;
}
.nav-search-btn:hover { background: var(--gold); color: var(--navy); border-color: var(--gold); }

.nav-toggler {
    display: none;
    background: transparent; border: none; cursor: pointer;
    width: 36px; height: 36px;
    flex-direction: column; justify-content: center; gap: 5px;
    padding: 0;
}
.nav-toggler span {
    display: block; width: 24px; height: 2px;
    background: #fff; transition: all var(--transition);
    margin: 0 auto;
}
.nav-toggler.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggler.active span:nth-child(2) { opacity: 0; }
.nav-toggler.active span:nth-child(3) { transform: rotate(-45deg) translate(6px, -6px); }

/* ---------- Hero ---------- */
.hero-section {
    position: relative;
    min-height: 78vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    isolation: isolate;
}
.hero-bg {
    position: absolute; inset: 0;
    background:
        linear-gradient(135deg, rgba(15, 37, 87, 0.92) 0%, rgba(30, 58, 138, 0.85) 50%, rgba(10, 26, 63, 0.95) 100%),
        url("https://images.unsplash.com/photo-1562774053-701939374585?w=1600&h=900&fit=crop") center/cover no-repeat;
    z-index: -2;
    transform: scale(1.04);
}
.hero-overlay {
    position: absolute; inset: 0;
    background:
        radial-gradient(circle at 20% 30%, rgba(212, 160, 23, 0.18) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(30, 58, 138, 0.4) 0%, transparent 50%);
    z-index: -1;
}
.hero-section::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: -1px;
    height: 100px;
    background: linear-gradient(180deg, transparent 0%, var(--bg) 100%);
    z-index: -1;
}
.hero-content {
    position: relative; z-index: 1;
    padding: 90px 0 120px;
    color: #fff;
}
.hero-eyebrow {
    display: inline-flex; align-items: center;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--gold-light);
    border-radius: 999px;
    font-size: 12.5px;
    font-weight: 500;
    letter-spacing: 0.5px;
    backdrop-filter: blur(8px);
    margin-bottom: 20px;
}
.hero-title {
    font-family: var(--font-serif);
    font-size: clamp(32px, 5vw, 58px);
    font-weight: 700;
    line-height: 1.1;
    color: #fff;
    margin-bottom: 20px;
    text-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
}
.text-gold { color: var(--gold-light); }
.hero-lead {
    font-size: clamp(15px, 1.4vw, 17px);
    color: rgba(255, 255, 255, 0.88);
    max-width: 620px;
    margin-bottom: 32px;
    line-height: 1.7;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 50px; }
.btn-hero {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 14px 28px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 14.5px;
    transition: all var(--transition);
    border: 2px solid transparent;
    cursor: pointer;
}
.btn-hero-primary {
    background: var(--gold);
    color: var(--navy) !important;
    box-shadow: var(--shadow-gold);
}
.btn-hero-primary:hover {
    background: var(--gold-light);
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(212, 160, 23, 0.4);
}
.btn-hero-ghost {
    background: rgba(255, 255, 255, 0.08);
    color: #fff !important;
    border-color: rgba(255, 255, 255, 0.35);
    backdrop-filter: blur(8px);
}
.btn-hero-ghost:hover { background: rgba(255, 255, 255, 0.2); border-color: #fff; transform: translateY(-2px); }

.hero-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
    max-width: 720px;
}
.hero-stat {
    padding: 16px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius);
    backdrop-filter: blur(10px);
    display: flex; flex-direction: column;
    transition: transform var(--transition);
}
.hero-stat:hover { transform: translateY(-3px); background: rgba(255, 255, 255, 0.12); }
.hero-stat-num {
    font-family: var(--font-serif);
    font-size: clamp(24px, 3vw, 34px);
    font-weight: 700;
    color: var(--gold-light);
    line-height: 1;
}
.plus { color: var(--gold-light); font-size: 20px; }
.hero-stat-label {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 6px;
}

.scroll-indicator {
    position: absolute;
    bottom: 24px;
    left: 50%; transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.6);
    text-align: center;
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    z-index: 2;
}
.scroll-indicator span {
    display: block;
    width: 22px; height: 36px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 999px;
    margin: 0 auto 8px;
    position: relative;
}
.scroll-indicator span::before {
    content: ""; position: absolute;
    top: 6px; left: 50%; transform: translateX(-50%);
    width: 3px; height: 8px;
    background: var(--gold-light);
    border-radius: 999px;
    animation: scroll-mouse 1.8s infinite;
}
@keyframes scroll-mouse {
    0%, 100% { transform: translate(-50%, 0); opacity: 1; }
    50% { transform: translate(-50%, 10px); opacity: 0.3; }
}

/* ---------- Marquee Strip ---------- */
.marquee-strip {
    background: var(--bg-alt);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    position: relative;
    z-index: 5;
}
.marquee-label {
    background: linear-gradient(135deg, var(--red) 0%, #ef4444 100%);
    color: #fff;
    font-weight: 700;
    padding: 14px 22px;
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 13px;
    letter-spacing: 1px;
    clip-path: polygon(0 0, 100% 0, calc(100% - 14px) 100%, 0 100%);
    padding-right: 28px;
    flex-shrink: 0;
}
.marquee-label i { animation: blink 1.4s infinite; }
@keyframes blink { 50% { opacity: 0.3; } }
.marquee-content { flex: 1; overflow: hidden; padding: 14px 0; position: relative; }
.marquee-track {
    display: flex; gap: 50px; white-space: nowrap;
    animation: marquee 40s linear infinite;
}
.marquee-track span {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 13.5px; color: var(--text-soft);
    font-weight: 500;
}
.marquee-track span i { color: var(--gold); font-size: 6px; }
.marquee-content:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* ---------- Section Headers ---------- */
.section-header { margin-bottom: 36px; }
.section-header.text-center { text-align: center; }
.section-eyebrow {
    display: inline-block;
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--gold-deep);
    font-weight: 600;
    margin-bottom: 8px;
    position: relative;
    padding-left: 28px;
}
.section-eyebrow::before {
    content: ""; position: absolute;
    left: 0; top: 50%;
    width: 20px; height: 2px;
    background: var(--gold);
    transform: translateY(-50%);
}
.text-center .section-eyebrow { padding-left: 0; }
.text-center .section-eyebrow::before { display: none; }

.section-title {
    font-family: var(--font-serif);
    font-size: clamp(24px, 3vw, 34px);
    font-weight: 700;
    color: var(--navy);
    margin: 0 0 10px;
}
[data-theme="dark"] .section-title { color: var(--text); }
.section-sub {
    color: var(--text-soft);
    font-size: 15px;
    max-width: 640px;
    margin: 0 auto;
}

/* ---------- Quick Access ---------- */
.quick-access {
    padding: 60px 0 40px;
    background: var(--bg);
}
.qa-card {
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    padding: 22px 14px;
    background: var(--bg-alt);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    text-align: center;
    gap: 10px;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
    color: var(--text) !important;
}
.qa-card::before {
    content: ""; position: absolute;
    left: 0; top: 0; right: 0; height: 3px;
    background: var(--qa-color, var(--navy));
    transform: scaleX(0); transform-origin: left;
    transition: transform var(--transition);
}
.qa-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--qa-color, var(--navy));
}
.qa-card:hover::before { transform: scaleX(1); }
.qa-card i {
    font-size: 26px;
    color: var(--qa-color, var(--navy));
    transition: transform var(--transition);
}
.qa-card:hover i { transform: scale(1.15); }
.qa-card span { font-weight: 600; font-size: 13.5px; }

/* ---------- Notice Boards ---------- */
.notices-section {
    padding: 60px 0 80px;
    background: linear-gradient(180deg, var(--bg) 0%, var(--bg-soft) 100%);
    position: relative;
}

.notice-toolbar {
    display: flex; justify-content: space-between; align-items: center;
    gap: 16px; flex-wrap: wrap;
    margin-bottom: 32px;
    padding: 14px 18px;
    background: var(--bg-alt);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
}
.search-wrap {
    position: relative;
    flex: 1; min-width: 260px;
}
.search-wrap i {
    position: absolute; left: 16px; top: 50%; transform: translateY(-50%);
    color: var(--text-mute);
}
.search-wrap input {
    width: 100%;
    padding: 12px 16px 12px 42px;
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-radius: 999px;
    font-size: 14px;
    color: var(--text);
    transition: all var(--transition);
}
.search-wrap input:focus {
    outline: none;
    border-color: var(--gold);
    background: var(--bg-alt);
    box-shadow: 0 0 0 4px rgba(212, 160, 23, 0.12);
}
.filter-wrap { display: flex; gap: 6px; flex-wrap: wrap; }
.filter-chip {
    background: var(--bg-soft);
    color: var(--text-soft);
    border: 1px solid transparent;
    padding: 9px 16px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex; align-items: center; gap: 6px;
    transition: all var(--transition);
}
.filter-chip:hover { background: rgba(212, 160, 23, 0.12); color: var(--navy); }
.filter-chip.active {
    background: var(--navy);
    color: #fff;
    border-color: var(--navy);
}
.filter-chip .dot {
    width: 8px; height: 8px; border-radius: 50%;
    display: inline-block;
}
.dot-urgent { background: var(--urgent); }
.dot-new { background: var(--new); }
.dot-important { background: var(--important); }

.notice-board {
    background: var(--bg-alt);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
    overflow: hidden;
    height: 100%;
    display: flex; flex-direction: column;
    transition: transform var(--transition), box-shadow var(--transition);
    position: relative;
}
.notice-board:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}
.board-header {
    padding: 20px 22px;
    color: #fff;
    display: flex; align-items: center; gap: 14px;
    position: relative;
    overflow: hidden;
}
.board-header::before {
    content: ""; position: absolute;
    right: -30px; top: -30px;
    width: 140px; height: 140px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
}
.board-header::after {
    content: ""; position: absolute;
    right: 10px; bottom: -50px;
    width: 90px; height: 90px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 50%;
}
.board-general { background: linear-gradient(135deg, var(--navy) 0%, var(--navy-soft) 100%); }
.board-staff { background: linear-gradient(135deg, var(--red) 0%, #dc2626 100%); }
.board-student { background: linear-gradient(135deg, var(--green) 0%, #059669 100%); }
.board-icon {
    width: 48px; height: 48px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 22px;
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    flex-shrink: 0;
    z-index: 1;
}
.board-meta { flex: 1; z-index: 1; }
.board-meta h4 { font-size: 18px; font-weight: 700; color: #fff; margin: 0; }
.board-meta small { color: rgba(255, 255, 255, 0.85); font-size: 12px; }
.board-count {
    background: var(--gold);
    color: var(--navy);
    padding: 6px 12px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 13px;
    min-width: 36px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    z-index: 1;
}

.board-body {
    flex: 1;
    max-height: 460px;
    overflow-y: auto;
    padding: 6px 6px 6px 0;
}
.board-body::-webkit-scrollbar { width: 6px; }
.board-body::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 10px; }

.notice-list { list-style: none; padding: 14px 18px; margin: 0; }
.notice-item {
    padding: 16px;
    background: var(--bg-soft);
    border-radius: var(--radius);
    border: 1px solid transparent;
    margin-bottom: 12px;
    transition: all var(--transition);
    cursor: pointer;
    position: relative;
}
.notice-item:last-child { margin-bottom: 0; }
.notice-item::before {
    content: ""; position: absolute;
    left: 0; top: 50%; height: 0%;
    width: 3px;
    background: var(--gold);
    border-radius: 0 4px 4px 0;
    transform: translateY(-50%);
    transition: height var(--transition);
}
.notice-item:hover {
    background: var(--bg-alt);
    border-color: var(--border-strong);
    box-shadow: var(--shadow-sm);
    transform: translateX(4px);
}
.notice-item:hover::before { height: 60%; }

.notice-row {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 8px;
}
.badge-priority {
    font-size: 10.5px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-flex; align-items: center; gap: 4px;
}
.badge-urgent {
    background: rgba(220, 38, 38, 0.12);
    color: var(--urgent);
    border: 1px solid rgba(220, 38, 38, 0.25);
    animation: urgent-pulse 2s infinite;
}
@keyframes urgent-pulse {
    50% { background: rgba(220, 38, 38, 0.22); }
}
.badge-new {
    background: rgba(37, 99, 235, 0.12);
    color: var(--new);
    border: 1px solid rgba(37, 99, 235, 0.25);
}
.badge-important {
    background: rgba(212, 160, 23, 0.15);
    color: var(--gold-deep);
    border: 1px solid rgba(212, 160, 23, 0.3);
}
.notice-date { font-size: 11.5px; color: var(--text-mute); }
.notice-date i { margin-right: 4px; }

.notice-title {
    font-size: 14.5px;
    font-weight: 600;
    color: var(--text);
    margin: 0 0 6px;
    line-height: 1.4;
}
.notice-snippet {
    font-size: 12.5px;
    color: var(--text-soft);
    margin: 0 0 12px;
    line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.notice-actions { display: flex; gap: 8px; }
.btn-pdf, .btn-read {
    border: none; cursor: pointer;
    padding: 7px 14px;
    border-radius: 8px;
    font-size: 12px; font-weight: 600;
    display: inline-flex; align-items: center; gap: 6px;
    transition: all var(--transition);
}
.btn-pdf {
    background: rgba(220, 38, 38, 0.1);
    color: var(--urgent);
    border: 1px solid rgba(220, 38, 38, 0.2);
}
.btn-pdf:hover { background: var(--urgent); color: #fff; }
.btn-read {
    background: var(--navy);
    color: #fff;
    border: 1px solid var(--navy);
}
.btn-read:hover { background: var(--gold); color: var(--navy); border-color: var(--gold); }

.board-footer {
    padding: 14px 22px;
    background: var(--bg-soft);
    border-top: 1px solid var(--border);
    text-align: center;
}
.board-footer a {
    color: var(--navy);
    font-weight: 600;
    font-size: 13px;
    display: inline-flex; align-items: center; gap: 6px;
}
[data-theme="dark"] .board-footer a { color: var(--gold-light); }
.board-footer a:hover { color: var(--gold-deep); }

.notice-item.hidden { display: none; }

/* ---------- Message + Calendar ---------- */
.message-calendar { padding: 70px 0; background: var(--bg-alt); }
.glass-card {
    background: var(--glass);
    backdrop-filter: blur(var(--glass-blur)) saturate(140%);
    -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(140%);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 30px;
    box-shadow: var(--shadow-md);
    height: 100%;
    position: relative;
    overflow: hidden;
}
.glass-card::before {
    content: ""; position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.25), transparent 60%);
    pointer-events: none;
    z-index: 0;
}
.glass-card > * { position: relative; z-index: 1; }

.principal-card { background: linear-gradient(135deg, var(--glass) 0%, rgba(212, 160, 23, 0.06) 100%); }
.principal-header { display: flex; align-items: center; gap: 18px; margin-bottom: 22px; }
.principal-photo {
    width: 84px; height: 84px;
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-soft) 100%);
    color: var(--gold);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 36px;
    box-shadow: var(--shadow-md);
    border: 3px solid var(--gold);
    flex-shrink: 0;
}
.principal-quote {
    margin: 0 0 22px;
    position: relative;
    padding: 0 0 0 20px;
    border-left: 3px solid var(--gold);
    font-style: italic;
    color: var(--text-soft);
}
.principal-quote .fa-quote-left {
    position: absolute; left: -14px; top: -14px;
    background: var(--bg-alt);
    color: var(--gold);
    padding: 6px;
    font-size: 14px;
}
.principal-quote p { margin: 0; font-size: 15px; line-height: 1.8; }

.principal-sign {
    display: flex; justify-content: space-between; align-items: center;
    padding-top: 18px;
    border-top: 1px dashed var(--border-strong);
    flex-wrap: wrap;
    gap: 14px;
}
.principal-sign strong {
    display: block;
    font-family: var(--font-serif);
    color: var(--navy);
    font-size: 17px;
}
[data-theme="dark"] .principal-sign strong { color: var(--gold-light); }
.principal-sign span { font-size: 12.5px; color: var(--text-mute); }
.btn-link-gold {
    color: var(--gold-deep);
    font-weight: 600;
    font-size: 13.5px;
    display: inline-flex; align-items: center; gap: 6px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(212, 160, 23, 0.1);
    border: 1px solid transparent;
    transition: all var(--transition);
    cursor: pointer;
}
.btn-link-gold:hover { background: var(--gold); color: var(--navy); }

.calendar-card { display: flex; flex-direction: column; }
.calendar-header {
    display: flex; justify-content: space-between; align-items: flex-start;
    margin-bottom: 22px;
}
.calendar-list { list-style: none; padding: 0; margin: 0; flex: 1; }
.calendar-list li {
    display: flex; align-items: center; gap: 14px;
    padding: 14px 0;
    border-bottom: 1px dashed var(--border-strong);
    transition: transform var(--transition);
}
.calendar-list li:last-child { border-bottom: none; }
.calendar-list li:hover { transform: translateX(4px); }
.cal-date {
    width: 54px; height: 54px;
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-soft) 100%);
    border-radius: 12px;
    color: #fff;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    flex-shrink: 0;
    box-shadow: var(--shadow-sm);
}
.cal-day { font-size: 18px; font-weight: 700; line-height: 1; }
.cal-month { font-size: 10px; text-transform: uppercase; letter-spacing: 1px; color: var(--gold-light); }
.cal-info { flex: 1; }
.cal-info strong { display: block; font-size: 14px; color: var(--text); }
.cal-info span { font-size: 12px; color: var(--text-mute); }
.cal-tag {
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 10.5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.tag-blue { background: rgba(37, 99, 235, 0.12); color: var(--new); }
.tag-red { background: rgba(220, 38, 38, 0.12); color: var(--urgent); }
.tag-green { background: rgba(4, 120, 87, 0.12); color: var(--green); }
.tag-gold { background: rgba(212, 160, 23, 0.15); color: var(--gold-deep); }

/* ---------- Important Links ---------- */
.links-section {
    padding: 70px 0;
    background: var(--bg);
}
.link-card {
    display: flex; align-items: center; gap: 14px;
    padding: 16px 18px;
    background: var(--bg-alt);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    transition: all var(--transition);
    height: 100%;
    color: var(--text) !important;
    position: relative;
    overflow: hidden;
}
.link-card::before {
    content: ""; position: absolute;
    left: 0; top: 0; bottom: 0; width: 3px;
    background: var(--gold);
    transform: scaleY(0); transform-origin: top;
    transition: transform var(--transition);
}
.link-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--gold);
}
.link-card:hover::before { transform: scaleY(1); }
.link-card > i:first-child {
    width: 42px; height: 42px;
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-soft) 100%);
    color: var(--gold-light);
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
    transition: all var(--transition);
}
.link-card:hover > i:first-child { background: var(--gold); color: var(--navy); }
.link-card > div { flex: 1; min-width: 0; }
.link-card strong { display: block; font-size: 14px; font-weight: 600; }
.link-card small { color: var(--text-mute); font-size: 12px; }
.link-arrow {
    color: var(--text-mute);
    font-size: 12px;
    transition: transform var(--transition);
}
.link-card:hover .link-arrow { transform: translate(2px, -2px); color: var(--gold-deep); }

/* ---------- About Strip ---------- */
.about-strip { padding: 50px 0 90px; background: var(--bg); }
.about-card { padding: 40px; }
.about-strip .section-title { margin-bottom: 16px; }
.about-strip p { color: var(--text-soft); line-height: 1.8; margin-bottom: 20px; font-size: 15px; }
.pill {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 7px 14px;
    background: rgba(4, 120, 87, 0.1);
    color: var(--green);
    border: 1px solid rgba(4, 120, 87, 0.2);
    border-radius: 999px;
    font-size: 12.5px;
    font-weight: 600;
}
.pill i { font-size: 10px; }
.campus-frame {
    position: relative;
    padding: 20px;
}
.campus-image {
    aspect-ratio: 4/3;
    background:
        linear-gradient(135deg, rgba(15, 37, 87, 0.7), rgba(30, 58, 138, 0.4)),
        url("https://images.unsplash.com/photo-1562774053-701939374585?w=900&h=600&fit=crop") center/cover no-repeat;
    border-radius: var(--radius-lg);
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    color: #fff;
    gap: 12px;
    border: 4px solid var(--bg-alt);
    box-shadow: var(--shadow-lg);
}
.campus-image i { font-size: 56px; color: var(--gold-light); }
.campus-image span { font-size: 12px; text-transform: uppercase; letter-spacing: 2px; opacity: 0.85; }
.campus-badge {
    position: absolute;
    bottom: 0; right: 0;
    background: var(--bg-alt);
    border-radius: var(--radius);
    padding: 12px 18px;
    display: flex; align-items: center; gap: 12px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
}
.campus-badge i { color: var(--gold); font-size: 26px; }
.campus-badge strong { display: block; color: var(--navy); font-size: 14px; }
[data-theme="dark"] .campus-badge strong { color: var(--gold-light); }
.campus-badge small { color: var(--text-mute); font-size: 11px; }

/* ---------- Footer ---------- */
.site-footer {
    background: linear-gradient(135deg, var(--navy-deep) 0%, var(--navy) 50%, #0d1a3d 100%);
    color: rgba(255, 255, 255, 0.85);
    padding: 60px 0 22px;
    position: relative;
    overflow: hidden;
}
.site-footer::before {
    content: ""; position: absolute;
    top: 0; left: 0; right: 0; height: 3px;
    background: linear-gradient(90deg, var(--gold) 0%, var(--gold-light) 50%, var(--gold) 100%);
}
.site-footer::after {
    content: ""; position: absolute;
    bottom: -120px; right: -120px;
    width: 360px; height: 360px;
    background: radial-gradient(circle, rgba(212, 160, 23, 0.12) 0%, transparent 65%);
    border-radius: 50%;
}
.footer-brand { color: #fff; font-size: 16px; }
.text-muted-light { color: rgba(255, 255, 255, 0.55); font-size: 12px; }
.footer-about {
    font-size: 13.5px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.75;
    margin-bottom: 18px;
}
.footer-heading {
    color: var(--gold-light);
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 16px;
    position: relative;
    padding-bottom: 10px;
}
.footer-heading::after {
    content: ""; position: absolute;
    left: 0; bottom: 0;
    width: 30px; height: 2px;
    background: var(--gold);
}
.footer-list, .footer-contact { list-style: none; padding: 0; margin: 0; }
.footer-list li { margin-bottom: 9px; }
.footer-list a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 13.5px;
    transition: all var(--transition);
    display: inline-flex; align-items: center;
}
.footer-list a::before {
    content: "›"; margin-right: 8px;
    color: var(--gold-light);
    transition: transform var(--transition);
    display: inline-block;
}
.footer-list a:hover { color: var(--gold-light); }
.footer-list a:hover::before { transform: translateX(3px); }

.footer-contact li {
    display: flex; align-items: flex-start; gap: 12px;
    margin-bottom: 14px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.6;
}
.footer-contact i {
    color: var(--gold-light);
    width: 18px; flex-shrink: 0;
    margin-top: 3px;
}

.social-row { display: flex; gap: 10px; }
.social-icon {
    width: 38px; height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.85);
    display: inline-flex;
    align-items: center; justify-content: center;
    transition: all var(--transition);
    font-size: 14px;
}
.social-icon:hover {
    background: var(--gold);
    color: var(--navy);
    border-color: var(--gold);
    transform: translateY(-3px);
}

.footer-rule { border-color: rgba(255, 255, 255, 0.08); margin: 36px 0 18px; }
.footer-meta a { color: var(--gold-light); margin-left: 6px; }
.footer-meta a:hover { color: #fff; }
.site-footer small { color: rgba(255, 255, 255, 0.6); font-size: 12.5px; }

/* ---------- Notification Panel ---------- */
.notify-panel {
    position: fixed;
    top: 0; right: -420px;
    width: 380px; max-width: 92vw;
    height: 100vh;
    background: var(--bg-alt);
    box-shadow: var(--shadow-lg);
    z-index: 2000;
    display: flex; flex-direction: column;
    transition: right var(--transition);
    border-left: 1px solid var(--border);
}
.notify-panel.open { right: 0; }
.np-header {
    padding: 18px 22px;
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-soft) 100%);
    color: #fff;
    display: flex; justify-content: space-between; align-items: center;
}
.np-header h5 { color: #fff; font-size: 17px; margin: 0; display: flex; align-items: center; gap: 8px; }
.np-header i { color: var(--gold-light); }
.np-close {
    background: rgba(255, 255, 255, 0.12);
    border: none; color: #fff;
    width: 32px; height: 32px;
    border-radius: 50%;
    font-size: 22px;
    cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center;
    line-height: 1;
    transition: all var(--transition);
}
.np-close:hover { background: var(--gold); color: var(--navy); }

.np-body {
    flex: 1; overflow-y: auto;
    padding: 14px 16px;
}
.np-item {
    display: flex; gap: 12px;
    padding: 14px;
    border-radius: var(--radius);
    margin-bottom: 10px;
    background: var(--bg-soft);
    transition: all var(--transition);
    border-left: 3px solid var(--gold);
    cursor: pointer;
}
.np-item.read { opacity: 0.55; border-left-color: var(--text-mute); }
.np-item:hover { background: rgba(212, 160, 23, 0.08); }
.np-icon {
    width: 38px; height: 38px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-soft) 100%);
    color: var(--gold-light);
    display: flex; align-items: center; justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
}
.np-content strong { display: block; font-size: 13.5px; color: var(--text); margin-bottom: 3px; }
.np-content p { margin: 0 0 4px; font-size: 12.5px; color: var(--text-soft); line-height: 1.5; }
.np-content small { font-size: 11px; color: var(--text-mute); }

.np-footer {
    padding: 14px 18px;
    border-top: 1px solid var(--border);
    display: flex; justify-content: space-between; align-items: center;
    gap: 10px;
}
.np-mark {
    background: transparent;
    color: var(--text-soft);
    border: 1px solid var(--border-strong);
    padding: 7px 12px;
    border-radius: 8px;
    font-size: 12px;
    cursor: pointer;
    transition: all var(--transition);
}
.np-mark:hover { background: var(--bg-soft); color: var(--text); }
.np-footer a {
    color: var(--navy);
    font-weight: 600;
    font-size: 13px;
    display: inline-flex; align-items: center; gap: 4px;
}
[data-theme="dark"] .np-footer a { color: var(--gold-light); }

.np-backdrop {
    position: fixed; inset: 0;
    background: rgba(10, 18, 36, 0.5);
    z-index: 1999;
    opacity: 0; pointer-events: none;
    transition: opacity var(--transition);
    backdrop-filter: blur(2px);
}
.np-backdrop.show { opacity: 1; pointer-events: auto; }

/* ---------- Floating buttons ---------- */
.fab-stack {
    position: fixed;
    right: 22px; bottom: 22px;
    display: flex; flex-direction: column;
    gap: 12px;
    z-index: 999;
}
.fab {
    width: 50px; height: 50px;
    border-radius: 50%;
    border: none;
    color: #fff;
    box-shadow: var(--shadow-lg);
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    font-size: 18px;
    transition: all var(--transition);
}
.fab:hover { transform: translateY(-3px) scale(1.05); }
.fab-help { background: linear-gradient(135deg, var(--gold) 0%, var(--gold-deep) 100%); color: var(--navy); }
.fab-top {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-soft) 100%);
    opacity: 0; pointer-events: none;
    transform: translateY(20px);
}
.fab-top.visible { opacity: 1; pointer-events: auto; transform: translateY(0); }

/* ---------- Toast ---------- */
.toast-stack {
    position: fixed;
    top: 80px; right: 20px;
    z-index: 2500;
    display: flex; flex-direction: column;
    gap: 10px;
    pointer-events: none;
}
.toast {
    background: var(--bg-alt);
    color: var(--text);
    padding: 12px 18px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    border-left: 4px solid var(--gold);
    min-width: 260px; max-width: 360px;
    font-size: 13.5px;
    display: flex; align-items: center; gap: 10px;
    animation: toast-in 0.35s ease;
    pointer-events: auto;
}
.toast.info { border-left-color: var(--new); }
.toast.success { border-left-color: var(--green); }
.toast.warning { border-left-color: var(--gold); }
.toast i { color: var(--gold); }
@keyframes toast-in {
    from { transform: translateX(120%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* ---------- Page Loader ---------- */
.page-loader {
    position: fixed; inset: 0;
    background: var(--bg);
    z-index: 9999;
    display: flex; align-items: center; justify-content: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}
.page-loader.hidden { opacity: 0; visibility: hidden; }
.loader-ring {
    width: 60px; height: 60px;
    border: 4px solid var(--border);
    border-top-color: var(--gold);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* ---------- Animations on scroll ---------- */
[data-animate] {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
[data-animate].visible {
    opacity: 1;
    transform: translateY(0);
}

/* ---------- Responsive ---------- */
@media (max-width: 991.98px) {
    .nav-menu {
        position: absolute;
        top: 100%; left: 0; right: 0;
        flex-direction: column;
        background: var(--navy-deep);
        padding: 8px 0;
        gap: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height var(--transition);
    }
    .nav-menu.open { max-height: 500px; }
    .nav-menu a { padding: 14px 22px; border-bottom: 1px solid rgba(255, 255, 255, 0.06); }
    .nav-menu a::after { display: none; }
    .nav-toggler { display: flex; }

    .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .hero-content { padding: 60px 0 80px; }

    .principal-header { flex-direction: column; text-align: center; }

    .top-utility-bar .utility-left { font-size: 11.5px; gap: 12px; }
    .datetime-display { font-size: 11.5px; padding: 3px 10px; }
}

@media (max-width: 767.98px) {
    .top-utility-bar { font-size: 11px; }
    .top-utility-bar .utility-left { flex-wrap: wrap; }
    .header-brand { gap: 12px; }
    .logo-placeholder { width: 60px; height: 60px; font-size: 28px; }
    .logo-placeholder::after { inset: -5px; }
    .brand-title { font-size: 18px; }
    .brand-subtitle { font-size: 12px; }

    .hero-section { min-height: 70vh; }
    .hero-content { padding: 50px 0 70px; }
    .hero-actions { gap: 10px; }
    .btn-hero { padding: 12px 22px; font-size: 13.5px; }
    .hero-stats { gap: 10px; }
    .hero-stat { padding: 12px; }

    .marquee-label { padding: 12px 18px; font-size: 12px; }

    .notice-toolbar { padding: 12px; }
    .search-wrap { min-width: unset; width: 100%; }
    .filter-wrap { width: 100%; justify-content: flex-start; }
    .filter-chip { font-size: 12px; padding: 7px 12px; }

    .board-header { padding: 16px 18px; }
    .notice-list { padding: 12px; }
    .notice-item { padding: 14px; }

    .about-card { padding: 26px; }
    .glass-card { padding: 22px; }

    .fab-stack { right: 16px; bottom: 16px; }
    .fab { width: 44px; height: 44px; font-size: 16px; }
}

@media (max-width: 575.98px) {
    .hero-stats { grid-template-columns: repeat(2, 1fr); }
    .hero-title { font-size: 28px; }
    .section-title { font-size: 22px; }
    .principal-quote p { font-size: 14px; }
    .principal-sign { flex-direction: column; align-items: flex-start; }
    .calendar-list li { gap: 10px; flex-wrap: wrap; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    .marquee-track { animation: none; }
}

/* ---------- Print ---------- */
@media print {
    .top-utility-bar, .main-nav, .hero-section, .marquee-strip,
    .fab-stack, .notify-panel, .np-backdrop, .page-loader { display: none !important; }
    body { background: #fff; color: #000; }
    .notice-board { break-inside: avoid; box-shadow: none; border: 1px solid #999; }
}
