:root {
    --primary: #0b5ed7; /* College blue (default; overridden per-tenant from ws.Brandings) */
    --primary-dark: #084298; /* darker companion for gradients */
    --secondary: #f8f9fa;
    --tertiary: #f8f9fa;
    --dark: #212529;
    --text-muted: #6c757d;
    --text-main: #374151;
    --bg-white: #ffffff;
    --bg-soft: #f9fbff;
    --bg-neutral: #f4f6fb;

    /* Semantic surface tokens (theme-aware). Use these in new pages. */
    --body-bg: #ffffff;
    --surface: #ffffff;       /* cards */
    --surface-soft: #f9fbff;  /* tinted section backgrounds */
    --surface-neutral: #f4f6fb;
    --border: #e5e7eb;
    --heading: var(--primary);
    --topbar-bg: var(--primary);
    --header-bg: #ffffff;
    --nav-bg: #ffffff;
    --shadow: rgba(0,0,0,0.08);
}

/* ---- Dark theme: remaps the semantic tokens above ---- */
html[data-theme="dark"] {
    --primary: #4d9bff;
    --secondary: #1a2027;
    --dark: #e6e9ef;
    --text-muted: #9aa3b2;
    --text-main: #d6dae2;
    --bg-white: #1a2027;
    --bg-soft: #161b22;
    --bg-neutral: #11151b;

    --body-bg: #0f1318;
    --surface: #1a2027;
    --surface-soft: #161b22;
    --surface-neutral: #11151b;
    --border: #2b333d;
    --heading: #69a9ff;
    --topbar-bg: #0a2547;
    --header-bg: #141a21;
    --nav-bg: #141a21;
    --shadow: rgba(0,0,0,0.55);
}

html { color-scheme: light; }
html[data-theme="dark"] { color-scheme: dark; }

body {
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    color: var(--text-main);
    line-height: 1.7;
}

h1, h2, h3, h4, h5 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
}

:lang(ne) {
    font-family: 'Noto Sans Devanagari', sans-serif;
}

    :lang(ne) h1,
    :lang(ne) h2,
    :lang(ne) h3,
    :lang(ne) h4,
    :lang(ne) h5 {
        font-family: 'Noto Sans Devanagari', sans-serif;
        font-weight: 600;
    }

section {
    padding: 80px 0;
}

.top-bar {
    background: var(--primary);
    color: #fff;
    font-size: 13.5px;
}

    .top-bar .container {
        display: flex;
        justify-content: space-between;
        align-items: center; /* 🔹 vertical alignment fix */
        padding: 6px 0; /* 🔹 compact height */
    }

    /* LEFT INFO */
    .top-bar .top-left span {
        margin-right: 18px;
        display: inline-flex;
        align-items: center;
        opacity: 0.95;
    }

    .top-bar i {
        margin-right: 6px;
        font-size: 13px;
    }

    /* LINKS */
    .top-bar a {
        color: #fff;
        margin-left: 14px;
        text-decoration: none;
        padding: 4px 10px;
        border-radius: 4px;
        transition: all 0.25s ease;
        font-weight: 500;
    }

        .top-bar a:hover {
            background: rgba(255, 255, 255, 0.12);
        }

        /* HIGHLIGHTED LINK (Apply for Admission) */
        .top-bar a.highlighted {
            border: 1px solid #ffc107;
            color: #ffc107;
            background: transparent;
            box-shadow: 0 0 6px rgba(255, 193, 7, 0.45);
            font-weight: 600;
        }

            /* Hover */
            .top-bar a.highlighted:hover {
                background: rgba(255, 193, 7, 0.12);
                box-shadow: 0 0 10px rgba(255, 193, 7, 0.75);
            }

    /* RIGHT SIDE ALIGNMENT */
    .top-bar .top-right {
        display: flex;
        align-items: center;
    }

/* LANGUAGE FLAGS */
.lang-switch a {
    padding: 2px;
    margin-left: 8px;
}

.lang-switch img {
    width: 20px;
    height: 14px;
    border-radius: 2px;
    border: 1px solid rgba(255,255,255,0.4);
}

.top-bar .top-left span:not(:last-child)::after {
    content: "|";
    margin-left: 18px;
    opacity: 0.4;
}

@media (max-width: 768px) {
    .top-bar .container {
        flex-direction: column;
        gap: 6px;
        text-align: center;
    }
}


.main-header {
    background: #ffffff;
    border-bottom: 1px solid #eee;
}

.header-flex {
    display: flex;
    align-items: center;
    padding: 15px 0;
}

.logo img {
    height: 70px;
    margin-right: 15px;
}

.college-info h1 {
    margin: 0;
    font-size: 26px;
    color: var(--primary);
}

.college-info p {
    margin: 0;
    font-size: 14px;
    color: #666;
}

.lang-switch {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-right: 12px;
}

    .lang-switch img {
        width: 24px;
        height: auto;
        border-radius: 2px;
        opacity: 0.7;
    }

    .lang-switch a.active img,
    .lang-switch a:hover img {
        opacity: 1;
        box-shadow: 0 0 0 1px #fff;
    }

/* =====================================================================
   Announcement Bar — merged Featured notice + Notice Ticker
   (supersedes the legacy stacked .notice-bar + .highlight-bar strips).
   Theme-safe: every colour comes from a semantic token.
   ===================================================================== */
.announce-bar {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    font-size: 14px;
}

.announce-flex {
    display: flex;
    align-items: stretch;
}

/* Featured (left) */
.announce-featured {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 9px 0;
    flex: 1 1 0;
    min-width: 0;
}

.announce-badge {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark, var(--primary)));
    color: #fff;
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    padding: 5px 12px;
    border-radius: 999px;
    white-space: nowrap;
}

    .announce-badge i { font-size: 13px; }

.announce-feat-body {
    position: relative;
    flex: 1 1 auto;
    min-width: 0;
    height: 2.5em;
}

.announce-feat-item {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease;
    text-decoration: none;
}

    .announce-feat-item.is-active {
        opacity: 1;
        visibility: visible;
    }

    .announce-feat-item strong {
        font-weight: 600;
        color: var(--heading);
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        line-height: 1.3;
        transition: color 0.15s ease;
    }

    .announce-feat-item:hover strong {
        color: var(--primary);
    }

.announce-feat-date {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: var(--text-muted);
}

.announce-cta {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 14px;
    border: 1px solid var(--primary);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.15s ease, color 0.15s ease;
}

    .announce-cta:hover {
        background: var(--primary);
        color: #fff;
    }

/* Divider */
.announce-divider {
    flex-shrink: 0;
    width: 1px;
    background: var(--border);
    margin: 8px 20px;
}

/* Ticker (right) */
.announce-more {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 9px 0;
    flex: 1 1 0;
    min-width: 0;
    overflow: hidden;
}

.announce-more-label {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    font-size: 13px;
    color: var(--primary);
    white-space: nowrap;
}

.announce-marquee {
    position: relative;
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
}

/* Base = static: notices show immediately, left-aligned. JS adds the
   --scroll modifier only when the content actually overflows the bar, so a
   single short notice never sits off-screen waiting to scroll in. */
.announce-track {
    display: inline-flex;
    align-items: center;
    gap: 36px;
    white-space: nowrap;
}

    .announce-track a {
        color: var(--text-main);
        text-decoration: none;
    }

        .announce-track a:hover {
            color: var(--primary);
            text-decoration: underline;
        }

/* Overflowing: JS wraps the notices into two identical groups and we translate
   the track by exactly one group width (-50%) for a seamless, gap-free loop
   that is always visible. Speed is constant via --marquee-duration. */
.announce-track--scroll {
    gap: 0;
    animation: announce-marquee-scroll var(--marquee-duration, 25s) linear infinite;
}

.announce-group {
    display: inline-flex;
    align-items: center;
    gap: 36px;
    padding-right: 36px; /* spacing before the cloned group, so -50% is seamless */
    flex: 0 0 auto;
}

@keyframes announce-marquee-scroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

.announce-marquee:hover .announce-track--scroll {
    animation-play-state: paused;
}

/* When only one side is rendered, let it use the full row width. */
.announce-featured:only-child,
.announce-more:only-child {
    max-width: 100%;
    flex: 1 1 auto;
}

/* Mobile: stack featured over ticker, drop the divider. */
@media (max-width: 768px) {
    .announce-flex { flex-direction: column; align-items: stretch; }
    .announce-featured { max-width: 100%; padding: 8px 0; }
    .announce-featured:not(:only-child) { border-bottom: 1px solid var(--border); }
    .announce-divider { display: none; }
}

@media (max-width: 480px) {
    .announce-badge { font-size: 11px; }
    .announce-cta { padding: 5px 11px; font-size: 12px; }
    .announce-feat-item strong { font-size: 13px; }
}

.notice-bar {
    background: var(--surface-neutral);
    border-bottom: 1px solid #e5e5e5;
    font-size: 14px;
}

.notice-flex {
    display: flex;
    align-items: center;
    padding: 8px 0;
    overflow: hidden;
}

.notice-title {
    flex-shrink: 0;
    font-weight: 600;
    color: var(--primary);
    margin-right: 15px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.notice-marquee {
    position: relative;
    overflow: hidden;
    width: 100%;
}

.notice-track {
    display: inline-flex;
    gap: 40px;
    white-space: nowrap;
    animation: scroll-left 25s linear infinite;
}

    .notice-track a {
        color: #333;
        text-decoration: none;
    }

        .notice-track a:hover {
            text-decoration: underline;
        }

/* Pause on hover */
.notice-marquee:hover .notice-track {
    animation-play-state: paused;
}

@keyframes scroll-left {
    from {
        transform: translateX(100%);
    }

    to {
        transform: translateX(-100%);
    }
}


/* =========================
   RESPONSIVE STYLES
========================= */

/* Mobile */
@media (max-width: 576px) {

    .top-bar .container {
        flex-direction: column;
        text-align: center;
        gap: 6px;
    }

    .top-left,
    .top-right {
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
        gap: 10px;
    }

    .top-bar a {
        margin-left: 0;
    }
}

@media (max-width: 576px) {

    .header-flex {
        flex-direction: column;
        text-align: center;
    }

    .logo img {
        height: 55px;
        margin-right: 0;
        margin-bottom: 8px;
    }

    .college-info h1 {
        font-size: 20px;
    }

    .college-info p {
        font-size: 13px;
    }
}

@media (max-width: 991px) {

    .college-info h1 {
        font-size: 22px;
    }

    .logo img {
        height: 60px;
    }
}

@media (max-width: 576px) {

    .notice-title {
        font-size: 13px;
        margin-right: 10px;
    }

    .notice-track {
        gap: 25px;
        animation-duration: 35s;
    }

        .notice-track a {
            font-size: 13px;
        }
}

@media (max-width: 576px) {

    .lang-switch img {
        width: 20px;
    }
}

/* =========================
   SITE NAVIGATION (NEW)
========================= */

.site-nav {
    background: linear-gradient(90deg, var(--primary), var(--primary-dark));
    position: relative;
    z-index: 1000;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Toggle Button */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    flex-direction: column;
    gap: 5px;
}

    /* Bars are now .nav-toggle-bars > i (styled in the mobile nav block below). */

/* Menu */
.nav-menu {
    list-style: none;
    display: flex;
    gap: 6px;
    margin: 0 auto;
    padding: 0;
}

    .nav-menu > li {
        position: relative;
    }

    .nav-menu a {
        display: block;
        padding: 14px 18px;
        color: #fff;
        font-weight: 500;
        text-decoration: none;
        transition: background 0.25s ease;
    }

        .nav-menu a:hover,
        .nav-menu a.active {
            background: rgba(255,255,255,0.15);
            border-radius: 4px;
        }

/* =========================
   SUB MENUS
========================= */

.submenu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    min-width: 230px;
    list-style: none;
    padding: 8px 0;
    border-radius: 10px;
    box-shadow: 0 18px 40px rgba(0,0,0,0.18);
    display: none;
}

    .submenu li {
        position: relative;
    }

    .submenu a {
        color: #333;
        padding: 10px 20px;
    }

        .submenu a:hover {
            background: #f1f5ff;
            color: var(--primary);
        }

    /* Third level */
    .submenu .submenu {
        top: 0;
        left: 100%;
        margin-left: 6px;
    }

/* Hover for desktop */
@media (min-width: 992px) {
    /* First level submenu */
    .has-submenu:hover > .submenu {
        display: block;
    }

    /* SECOND / THIRD LEVEL submenu */
    .submenu .has-submenu:hover > .submenu {
        display: block;
    }
}

.section-divider {
    height: 1px;
    background: linear-gradient( to right, transparent, rgba(11,94,215,0.25), transparent );
}


/* =========================
   MOBILE SUBMENU
========================= */

@media (max-width: 991px) {

    /* Main menu */
    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        flex-direction: column;
        background: linear-gradient(180deg, var(--primary), var(--primary-dark));
        display: none;
    }

        .nav-menu.open {
            display: flex;
        }

        .nav-menu > li > a {
            padding: 14px 20px;
            border-bottom: 1px solid rgba(255,255,255,0.15);
        }

    /* Submenus */
    .submenu {
        position: static;
        display: none;
        background: rgba(255,255,255,0.08); /* NOT white */
        box-shadow: none;
        border-radius: 0;
        margin: 0;
        padding: 0;
    }

    .has-submenu.open > .submenu {
        display: block;
    }

    .submenu li a {
        padding: 12px 30px;
        border-bottom: 1px solid rgba(255,255,255,0.12);
        color: #fff;
    }

    /* Third level */
    .submenu .submenu li a {
        padding-left: 45px;
        background: rgba(255,255,255,0.12);
    }
}

/* =========================
   HIGHLIGHT BAR (GENERIC)
========================= */

.highlight-bar {
    background: #eaf2ff; /* soft neutral blue */
    border-bottom: 1px solid #d6e4ff;
    font-size: 14px;
    padding: 0;
}

.highlight-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    gap: 15px;
}

.highlight-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.highlight-badge {
    background: var(--primary);
    color: #fff;
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 20px;
    white-space: nowrap;
}

.highlight-text {
    display: flex;
    flex-direction: column;
}

    .highlight-text strong {
        font-weight: 600;
        color: var(--primary);
    }

    .highlight-text span {
        font-size: 13px;
        color: #555;
    }

.highlight-action a {
    white-space: nowrap;
}

@media (max-width: 576px) {

    .highlight-flex {
        flex-direction: column;
        align-items: flex-start;
    }

    .highlight-action {
        width: 100%;
    }

        .highlight-action a {
            width: 100%;
            text-align: center;
        }
}

/* =========================
   HIGHLIGHT BAR ANIMATION
========================= */

.highlight-bar {
    animation: highlightFadeUp 0.6s ease-out both;
}

/* Keyframes */
@keyframes highlightFadeUp {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================
   STICKY NAVIGATION
========================= */

.site-nav {
    position: sticky;
    top: 0;
    z-index: 1100;
    transition: box-shadow 0.3s ease;
}

    /* Shadow when sticky */
    .site-nav.is-sticky {
        box-shadow: 0 6px 18px rgba(0,0,0,0.18);
    }

        .site-nav.is-sticky .nav-menu > li > a {
            padding-top: 12px;
            padding-bottom: 12px;
        }

/* =========================
   HERO SLIDER
========================= */

.hero-slider {
    position: relative;
    padding: 0;
}

    .hero-slider .swiper-slide {
        position: relative;
        height: 60vh;
        min-height: 420px;
        max-height: 640px;
        overflow: hidden;
        background: #0b1220;          /* dark fallback behind the image */
    }

        /* Blurred, zoomed copy of the image — a soft backdrop shown only while
           the sharp .hero-img is still loading; the cover image fully hides it
           once painted. */
        .hero-slider .hero-bg {
            position: absolute;
            inset: 0;
            background-size: cover;
            background-position: center;
            filter: blur(24px) brightness(0.6);
            transform: scale(1.15);   /* hide the blurred fringe at the edges */
            z-index: 0;
        }

        /* The image fills the whole band sharply, edge to edge (no blurred
           letterbox bars). Any overflow from a non-matching ratio is cropped
           from the edges, not shown — centre stays put. Upload at 3:1
           (1920x640) so the crop is negligible. */
        .hero-slider .hero-img {
            position: absolute;
            inset: 0;
            width: 100%;
            height: 100%;
            object-fit: cover;
            object-position: center;
            z-index: 1;
        }

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;                       /* caption layer above the image */
}

.hero-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px 30px;
    background: linear-gradient( to top, rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0.25), transparent );
    color: #fff;
}

    /* Caption text */
    .hero-content h2 {
        margin: 0;
        font-size: 22px;
        font-weight: 500;
        line-height: 1.4;
        max-width: 900px;
    }

    .hero-content p {
        font-size: 16px;
        margin-bottom: 15px;
    }

.hero-slider .swiper-button-next,
.hero-slider .swiper-button-prev {
    color: #fff;
}

.hero-slider .swiper-pagination-bullet {
    background: #fff;
    opacity: 0.6;
}

.hero-slider .swiper-pagination-bullet-active {
    opacity: 1;
}

/* Mobile */
@media (max-width: 576px) {
    .hero-slider .swiper-slide {
        height: 340px;
        min-height: 300px;
    }

    .hero-content {
        padding: 15px 20px;
    }

        .hero-content h2 {
            font-size: 16px;
        }

        .hero-content p {
            font-size: 14px;
        }
}

/* =========================
   WELCOME & NOTICE SECTION
========================= */

.welcome-section {
    background: var(--bg-white);
}

.welcome-box.with-image {
    display: grid;
    grid-template-columns: 1.3fr 0.7fr;
    gap: 30px;
    align-items: center;
}

.welcome-image img {
    width: 100%;
    height: 100%;
    max-height: 280px;
    object-fit: cover;
    border-radius: 14px;
    box-shadow: 0 12px 28px rgba(0,0,0,0.08);
}

.welcome-box h3 {
    font-size: 24px;
    color: var(--primary);
    margin-bottom: 15px;
}

.welcome-box p {
    color: #444;
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 12px;
}

.read-more-link {
    display: inline-block;
    margin-top: 10px;
    font-weight: 500;
    color: var(--primary);
    text-decoration: none;
}

    .read-more-link:hover {
        text-decoration: underline;
    }

.welcome-notice-grid {
    display: grid;
    grid-template-columns: 1.3fr 0.7fr;
    gap: 40px;
    align-items: start;
}

/* Left column stack */
.welcome-left-stack {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* =========================
   LEADERSHIP SECTION
========================= */

.leadership-section {
    background: var(--bg-soft);
    padding: 20px 0;
}

.leadership-wrapper {
    background: transparent;
    border-radius: 24px;
    padding: 40px 30px;
}

.section-header {
    text-align: center;
    margin-bottom: 28px;
}

    .section-header h2 {
        font-size: 28px;
        color: var(--primary);
        margin-bottom: 8px;
    }

    .section-header p {
        color: var(--text-muted);
        font-size: 15px;
    }

.leadership-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 300px));
    justify-content: center;
    gap: 28px;
}

/* ----- Leadership card (whole card is the link) ----- */
.leader-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    text-decoration: none;
    color: inherit;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 34px 26px 26px;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

/* Brand accent bar that reveals on hover */
.leader-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--primary-dark));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.leader-card:hover,
.leader-card:focus-within {
    transform: translateY(-6px);
    border-color: color-mix(in srgb, var(--primary) 35%, var(--border));
    box-shadow: 0 22px 44px color-mix(in srgb, var(--primary) 16%, transparent);
}

    .leader-card:hover::before,
    .leader-card:focus-within::before { transform: scaleX(1); }

/* Photo with a gradient ring */
.leader-photo {
    width: 132px;
    height: 132px;
    border-radius: 50%;
    padding: 4px;
    margin-bottom: 16px;
    flex-shrink: 0;
    background: linear-gradient(135deg, var(--primary), color-mix(in srgb, var(--primary) 35%, #ffffff));
}

    .leader-photo img {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 50%;
        border: 3px solid var(--surface);
        transition: transform 0.35s ease;
    }

.leader-card:hover .leader-photo img { transform: scale(1.05); }

.leader-name {
    font-size: 18px;
    font-weight: 700;
    color: var(--heading, var(--text-main));
    line-height: 1.3;
    margin: 0 0 10px;
}

/* Designation as a brand-tinted pill */
.leader-role {
    display: inline-block;
    padding: 4px 14px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--primary) 10%, var(--surface));
    color: var(--primary);
    font-size: 12.5px;
    font-weight: 600;
    margin-bottom: 16px;
}

.leader-contact {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 13.5px;
    color: var(--text-muted);
}

    .leader-contact span {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        word-break: break-word;
    }

    .leader-contact i { color: var(--primary); font-size: 14px; }

/* Always-visible CTA with a divider above (fills the card, clear affordance) */
.leader-cta {
    width: 100%;
    margin-top: auto;       /* pin to the card bottom so CTAs align across cards */
    padding-top: 16px;
    border-top: 1px solid var(--border);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--primary);
    transition: gap 0.2s ease;
}

.leader-card:hover .leader-cta { gap: 11px; }


/* =========================================================
   Home section decorative accents
   Subtle, behind content (z-index), token-based -> readable
   in light & dark. Content wrappers get z-index:1 so text
   always sits above the decoration.
========================================================= */

/* Welcome — soft brand gradient blob, top-right */
.welcome-section { position: relative; overflow: hidden; }
.welcome-section > .container { position: relative; z-index: 1; }
.welcome-section::before {
    content: "";
    position: absolute;
    top: -130px;
    right: -120px;
    width: 360px;
    height: 360px;
    border-radius: 50%;
    background: radial-gradient(circle,
        color-mix(in srgb, var(--primary) 13%, transparent), transparent 70%);
    pointer-events: none;
    z-index: 0;
}

/* Leadership — faint school-logo watermark, bottom-right
   (--leader-watermark is set inline by Default.aspx.cs; falls back to none) */
.leadership-section { position: relative; overflow: hidden; }
.leadership-section > .container { position: relative; z-index: 1; }
.leadership-section::after {
    content: "";
    position: absolute;
    right: -30px;
    bottom: -30px;
    width: 260px;
    height: 260px;
    background-image: var(--leader-watermark, none);
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    opacity: 0.05;
    pointer-events: none;
    z-index: 0;
}

/* Testimonials — faint dot grid */
.testimonials-section { position: relative; }
.testimonials-section > .container { position: relative; z-index: 1; }
.testimonials-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(
        color-mix(in srgb, var(--primary) 9%, transparent) 1.5px, transparent 1.6px);
    background-size: 24px 24px;
    opacity: 0.6;
    pointer-events: none;
    z-index: 0;
}


/* =========================
   NOTICE BOARD (NEW DESIGN)
========================= */

.notice-calendar-section {
    /* Gentle brand glow in the bottom-left, layered over the neutral tint.
       Done as a background layer (not a pseudo-element) so it never clips the
       notice/calendar card shadows and can't cause horizontal overflow. */
    background:
        radial-gradient(circle at 12% 88%,
            color-mix(in srgb, var(--primary) 9%, transparent), transparent 40%),
        var(--bg-neutral);
}

.notice-calendar-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 40px;
    align-items: start;
}

.notice-board-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 28px 26px;
    box-shadow: 0 14px 30px rgba(0,0,0,0.06);
}

/* ===== Header ===== */

.notice-board-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 10px;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.notice-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.notice-board-header h3 {
    margin: 0;
    font-size: 22px;
    color: var(--primary);
}

.notice-board-header span {
    font-size: 13px;
    color: var(--text-muted);
}

.view-all-link {
    font-size: 14px;
    font-weight: 500;
    color: var(--primary);
    text-decoration: none;
}

    .view-all-link:hover {
        text-decoration: underline;
    }

/* =========================
   NOTICE BOARD LIST (home)
========================= */

.nb-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
}

    .nb-list > li + li {
        border-top: 1px solid var(--border);
    }

/* Whole row is the link */
.nb-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 12px;
    border-radius: 12px;
    text-decoration: none;
    transition: background 0.2s ease;
}

    .nb-item:hover {
        background: var(--surface-soft);
    }

/* Thumbnail: image attachment, or branded icon tile when there's none */
.nb-thumb {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: color-mix(in srgb, var(--primary) 10%, var(--surface));
}

    .nb-thumb img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.nb-thumb--icon {
    color: var(--primary);
    font-size: 22px;
}

/* Body: title + snippet + date */
.nb-item-body {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.nb-item-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-main);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s ease;
}

.nb-item:hover .nb-item-title {
    color: var(--primary);
}

.nb-item-snippet {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

    .nb-item-snippet:empty {
        display: none;
    }

.nb-item-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 10px;
    margin-top: 4px;
    font-size: 12.5px;
    color: var(--text-muted);
}

.nb-item-date {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

    .nb-item-date i {
        font-size: 13px;
        color: var(--primary);
    }

.nb-item-tags {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 6px;
}

    .nb-item-tags:empty {
        display: none;
    }

.nb-tag {
    font-size: 11px;
    font-weight: 600;
    line-height: 1.7;
    padding: 1px 9px;
    border-radius: 999px;
    border: 1px solid transparent;
    white-space: nowrap;
}

/* Go chevron */
.nb-item-go {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    background: color-mix(in srgb, var(--primary) 10%, var(--surface));
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.nb-item:hover .nb-item-go {
    background: var(--primary);
    color: #fff;
    transform: translateX(3px);
}

@media (max-width: 576px) {
    .nb-thumb { width: 48px; height: 48px; }
    .nb-item { gap: 12px; padding: 14px 8px; }
    .nb-item-go { display: none; }
}

@media (max-width: 768px) {

    .welcome-box.with-image {
        grid-template-columns: 1fr;
    }

    .welcome-image img {
        max-height: 220px;
    }

    .notice-calendar-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================
   ACADEMIC CALENDAR
========================= */

.academic-calendar-section {
    background: var(--bg-soft);
}

.academic-calendar-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 28px 26px;
    box-shadow: 0 14px 30px rgba(0,0,0,0.06);
}

/* Header */
.academic-calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 10px;
}

.calendar-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.academic-calendar-header h3 {
    margin: 0;
    font-size: 22px;
    color: var(--primary);
}

.academic-calendar-header span {
    font-size: 13px;
    color: var(--text-muted);
}

.view-full {
    font-size: 14px;
    font-weight: 500;
    color: var(--primary);
    text-decoration: none;
}

    .view-full:hover {
        text-decoration: underline;
    }

/* Timeline (matches the Notice Board row rhythm) */
.calendar-timeline {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
}

    .calendar-timeline > .calendar-item + .calendar-item {
        border-top: 1px solid var(--border);
    }

.calendar-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 12px;
    border-radius: 12px;
}

/* Date block */
.calendar-date {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    background: color-mix(in srgb, var(--primary) 10%, var(--surface));
    color: var(--primary);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    flex-shrink: 0;
}

    .calendar-date .month {
        font-size: 11px;
        text-transform: uppercase;
        letter-spacing: 0.3px;
    }

    .calendar-date .day {
        font-size: 18px;
        line-height: 1;
    }

/* Info */
.calendar-info {
    flex: 1 1 auto;
    min-width: 0;
}

.calendar-info h4 {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-main);
    line-height: 1.4;
}

.calendar-info p {
    margin: 3px 0 0;
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Upcoming / holiday accents on the date tile */
.calendar-item.upcoming .calendar-date {
    background: var(--primary);
    color: #fff;
}

/* "Today" / "Tomorrow" / "in N days" chip on each calendar row */
.cal-chip {
    display: inline-block;
    margin-top: 7px;
    padding: 2px 10px;
    border-radius: 999px;
    background: var(--surface-soft);
    border: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 600;
}

    .cal-chip.cal-chip-today { background: #ef4444; border-color: #ef4444; color: #fff; }
    .cal-chip.cal-chip-soon { background: #f59e0b; border-color: #f59e0b; color: #fff; }

/* =========================================================
   ACADEMIC CALENDAR PAGE (full BS month grid)
   Ported from the EMIS dashboard widget, mapped to the
   website's design tokens (works in light + dark).
========================================================= */
.ac-page { padding: 56px 0; }

.ac-card {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 28px 26px;
    box-shadow: 0 14px 30px rgba(0,0,0,0.06);
}

.ac-body {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
    gap: 28px;
    align-items: flex-start;
}

/* Unavailable fallback (no DateLog / SP on this tenant) */
.ac-unavailable {
    text-align: center;
    padding: 56px 26px;
}

    .ac-unavailable i { font-size: 44px; color: var(--text-muted); }
    .ac-unavailable h3 { margin: 14px 0 6px; font-size: 20px; color: var(--text-main); }
    .ac-unavailable p { margin: 0 auto 18px; max-width: 420px; color: var(--text-muted); font-size: 14px; }

/* Toolbar */
.ac-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 12px;
}

.ac-month-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 17px;
    color: var(--text-main);
}

.ac-month-name { font-weight: 700; }

.ac-year-select {
    min-width: 88px;
    padding: 5px 10px;
    font-size: 13px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface);
    color: var(--text-main);
}

.ac-nav-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text-main);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background .15s ease, color .15s ease;
}

    .ac-nav-btn:hover { background: var(--primary); color: #fff; border-color: var(--primary); }

/* Weekday header */
.ac-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: .04em;
    padding: 0 2px 8px;
    text-align: center;
}

    .ac-weekdays .ac-sat { color: #ef4444; }

/* Day grid */
.ac-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
}

.ac-day {
    position: relative;
    aspect-ratio: 1 / 1;
    min-height: 38px;
    border-radius: 9px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: var(--text-main);
    background: transparent;
    transition: background .15s ease, transform .1s ease;
}

    .ac-day.ac-empty { visibility: hidden; }
    .ac-day.ac-sat { color: #ef4444; }
    .ac-day.ac-weekend-holiday { color: #ef4444; }

    .ac-day.ac-has-event { cursor: pointer; }
    .ac-day.ac-has-event:hover { background: var(--surface-soft); transform: translateY(-1px); }

    .ac-day.ac-today {
        background: var(--primary);
        color: #fff;
        font-weight: 700;
        box-shadow: 0 2px 8px color-mix(in srgb, var(--primary) 40%, transparent);
    }

    .ac-day.ac-today.ac-has-event:hover { background: var(--primary); filter: brightness(1.08); }
    .ac-day.ac-event-holiday:not(.ac-today) { color: #ef4444; font-weight: 600; }

.ac-day-num { line-height: 1; }

.ac-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #22c55e;
    margin-top: 4px;
}

    .ac-day.ac-event-holiday .ac-dot { background: #ef4444; }
    .ac-day.ac-today .ac-dot { background: #fff; }

/* Upcoming list */
.ac-upcoming-col {
    border-left: 1px solid var(--border);
    padding-left: 22px;
    min-width: 0;
}

.ac-upcoming-head {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
}

    .ac-upcoming-head i { color: var(--primary); }

.ac-upcoming-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ac-up-item {
    display: flex;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 10px;
    background: var(--surface-soft);
    align-items: flex-start;
    transition: box-shadow .15s ease;
}

    .ac-up-item:hover { box-shadow: inset 0 0 0 1px var(--border); }
    .ac-up-item > i { font-size: 16px; color: var(--primary); margin-top: 2px; }

.ac-up-text { flex: 1; min-width: 0; }

.ac-up-title {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text-main);
    line-height: 1.4;
}

.ac-up-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
    font-size: 12px;
    color: var(--text-muted);
}

.ac-chip {
    display: inline-block;
    padding: 1px 9px;
    border-radius: 999px;
    background: var(--border);
    color: var(--text-main);
    font-size: 11px;
    font-weight: 600;
}

    .ac-chip-today { background: #ef4444; color: #fff; }
    .ac-chip-tomorrow { background: #f59e0b; color: #fff; }

.ac-upcoming-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 28px 8px;
    color: var(--text-muted);
    font-size: 13px;
    gap: 8px;
}

    .ac-upcoming-empty i { font-size: 24px; }

/* Day-detail popover */
.ac-popover {
    position: absolute;
    inset: 0;
    background: var(--surface);
    border-radius: inherit;
    box-shadow: 0 10px 40px rgba(0,0,0,0.18);
    border: 1px solid var(--border);
    padding: 20px;
    z-index: 5;
    overflow: auto;
}

.ac-popover-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.ac-popover-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-main);
}

.ac-popover-close {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: none;
    background: var(--surface-soft);
    color: var(--text-main);
    cursor: pointer;
}

    .ac-popover-close:hover { background: var(--border); }

.ac-popover-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

    .ac-popover-list li {
        display: flex;
        gap: 10px;
        padding: 12px;
        border-radius: 10px;
        background: var(--surface-soft);
        align-items: flex-start;
    }

        .ac-popover-list li > i { color: var(--primary); font-size: 16px; margin-top: 2px; }
        .ac-popover-list li > i.ac-pop-holiday { color: #ef4444; }

.ac-pop-title { font-size: 13.5px; font-weight: 600; color: var(--text-main); }
.ac-pop-desc { font-size: 12.5px; color: var(--text-muted); margin-top: 3px; }

@media (max-width: 768px) {
    .ac-body { grid-template-columns: 1fr; }
    .ac-upcoming-col {
        border-left: none;
        border-top: 1px solid var(--border);
        padding-left: 0;
        padding-top: 18px;
    }
}

@media (max-width: 480px) {
    .ac-page { padding: 32px 0; }
    .ac-card { padding: 20px 16px; }
    .ac-day { font-size: 12px; min-height: 32px; }
    .ac-year-select { min-width: 74px; }
}

/* =========================
   TESTIMONIALS
========================= */

.testimonials-section {
    background: var(--bg-soft);
    text-align: center;
}

/* Carousel: padding leaves room for card shadow + the dots row below. */
.testimonialSwiper { padding: 12px 6px 52px; }
.testimonialSwiper .swiper-slide { height: auto; }   /* equal-height cards */

.testimonial-card {
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    text-align: left;
    padding: 30px 28px;
    background: #ffffff;
    border: 1px solid var(--border, #eef2f7);
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(16,24,40,0.06);
    transition: transform .2s ease, box-shadow .2s ease;
}

/* Whole-card click target → alumnus profile (kept above content, below nothing). */
.testimonial-link {
    position: absolute;
    inset: 0;
    z-index: 1;
    border-radius: 18px;
}
.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 42px rgba(16,24,40,0.13);
}

/* Decorative quote mark chip */
.testimonial-quote {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    margin-bottom: 16px;
    border-radius: 13px;
    color: var(--primary);
    font-size: 1.7rem;
    line-height: 1;
    background: #eaf2ff;
    background: color-mix(in srgb, var(--primary, #2563eb) 12%, transparent);
}

.testimonial-text {
    font-size: 1rem;
    color: var(--text-main);
    line-height: 1.75;
    margin: 0 0 22px;
    /* Keep cards a tidy, similar height: cap long quotes at 6 lines (…),
       and reserve ~3 lines so very short quotes don't look empty. */
    display: -webkit-box;
    -webkit-line-clamp: 6;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 5.25em;
}

/* Author row — pinned to the card bottom so authors line up across cards. */
.testimonial-person {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: auto;
    padding-top: 18px;
    border-top: 1px solid var(--border, #eef2f7);
}
.testimonial-id h5 {
    margin: 0;
    font-size: 1rem;
    color: var(--primary);
    font-family: 'Poppins', sans-serif;
}
.testimonial-id span {
    font-size: 0.86rem;
    color: var(--text-muted);
}

/* Pagination dots */
.testimonialSwiper .swiper-pagination-bullet {
    background: var(--primary);
    opacity: 0.3;
}
.testimonialSwiper .swiper-pagination-bullet-active {
    opacity: 1;
}

/* Mobile */
@media (max-width: 576px) {
    .testimonial-card { padding: 26px 22px; }
    .testimonial-text { font-size: 0.95rem; }
}


/* =========================
   FOOTER
========================= */

.site-footer {
    background: #0b1f3a; /* deep institutional blue */
    color: #dce3f1;
    font-size: 14px;
}

/* Top */
.footer-top {
    padding: 60px 0 40px;
}

.footer-top-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
    gap: 40px;
}

.footer-logo {
    height: 90px;
    margin: 10px 0 12px;
    transition: transform 0.3s ease;
}

.footer-about a:hover .footer-logo {
    transform: scale(1.04);
}

.footer-about p {
    font-size: 13.5px;
    color: #cbd5e1;
}

.footer-about h4 {
    font-size: 18px;
    color: #fff;
    margin-bottom: 10px;
}

.footer-social {
    display: flex;
    gap: 10px;
    margin-top: 14px;
}

    .footer-social .bi-facebook {
        color: #1877f2;
    }

    .footer-social .bi-youtube {
        color: #ff0000;
    }

    .footer-social .bi-twitter-x {
        color: #1da1f2;
    }

    .footer-social a {
        width: 38px;
        height: 38px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.06);
        border: 1px solid rgba(255, 255, 255, 0.15);
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.25s ease;
        text-decoration: none;
    }


        .footer-social a:hover {
            background: rgba(255, 255, 255, 0.12); /* neutral */
            transform: translateY(-2px);
            box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
        }


/* Links */
.footer-links h5,
.footer-contact h5 {
    font-size: 16px;
    color: #fff;
    margin-bottom: 14px;
}

.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 9px;
}

.footer-links a {
    color: #cfd8ea;
    text-decoration: none;
    transition: all 0.25s ease;
    font-size: 14px;
    position: relative;
}

    .footer-links a:hover {
        color: #ffffff;
        padding-left: 6px;
    }

/* Contact */
.footer-contact p {
    margin-bottom: 10px;
    color: #cfd8ea;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-contact i {
    color: var(--primary);
}

/* Divider */
.footer-divider {
    height: 1px;
    background: rgba(255,255,255,0.12);
}

/* Bottom */
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
}


.footer-bottom-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
    gap: 15px;
}

.footer-meta {
    display: flex;
    align-items: center;
    gap: 20px;
}

.visitor-count {
    display: flex;
    align-items: center;
    gap: 6px;
    opacity: 0.85;
}

    .visitor-count i {
        color: #9ec5fe;
        font-size: 14px;
    }

.footer-powered strong {
    color: #ffffff;
}

.footer-powered a {
    color: #9ec5fe;
    text-decoration: none;
}

    .footer-powered a:hover {
        text-decoration: underline;
    }


/* =========================
   RESPONSIVE FOOTER
========================= */

@media (max-width: 992px) {
    .footer-top-grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
}

@media (max-width: 576px) {
    .footer-top-grid {
        grid-template-columns: 1fr;
    }

    .footer-bottom-flex {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }

    .footer-meta {
        flex-direction: column;
        gap: 6px;
    }
}

/* =========================
   BACK TO TOP BUTTON
========================= */

#backToTop {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: none;
    background: var(--primary);
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
    box-shadow: 0 10px 25px rgba(11,94,215,0.35);
    z-index: 1200;
}

    /* Show button */
    #backToTop.show {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    /* Hover */
    #backToTop:hover {
        background: var(--primary-dark);
    }

/* Mobile size */
@media (max-width: 576px) {
    #backToTop {
        width: 42px;
        height: 42px;
        font-size: 16px;
        right: 16px;
        bottom: 16px;
    }
}

/* =========================
   POPUP NOTICE
========================= */
.modal {
    z-index: 1300 !important;
}

.modal-backdrop {
    z-index: 1250 !important;
}

.modal-dialog {
    margin-top: 80px; /* match header + nav height */
}

.popup-notice-content {
    border-radius: 16px;
    overflow: hidden;
}

#popupNoticeModal .modal-content {
    max-height: 90vh;
    border-radius: 16px;
}

.popup-notice-content .modal-header {
    background: var(--bg-soft);
    border-bottom: 1px solid #e5e7eb;
}

#popupNoticeModal .modal-body {
    padding: 16px 20px;
    overflow-y: auto;
}

    #popupNoticeModal .modal-body img {
        max-width: 100%;
        height: auto;
        max-height: 70vh;
        display: block;
        margin: 0 auto;
        border-radius: 12px;
    }

/* BS date line at the top of the popup body. */
/* Meta row: date + tag chips on one line. */
.popup-notice-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px 10px;
    margin: 0 0 12px;
}

/* With a poster, left-align the meta row to match the body text. */
#popupNoticeModal .modal-body:has(.popup-notice-poster) .popup-notice-meta {
    justify-content: flex-start;
}

.popup-notice-date {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--text-muted, #6b7280);
    font-size: 13px;
    font-weight: 500;
}

    .popup-notice-date i { font-size: 14px; }

.popup-notice-tags {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 6px;
}

/* Clickable poster (first image attachment) at the top of the popup body. */
.popup-notice-poster {
    display: block;
    margin: 0 0 14px;
    line-height: 0;
    transition: opacity 0.15s ease;
}

    .popup-notice-poster:hover { opacity: 0.92; }

/* Notice body text — readable, not a sparse single centred line. */
.popup-notice-text {
    margin: 0;
    color: var(--text-main, #1f2937);
    font-size: 15px;
    line-height: 1.6;
    text-align: left;
    white-space: pre-line;   /* keep the author's line breaks */
}

/* When the popup is text-only, center it so a short notice doesn't look stranded. */
#popupNoticeModal .modal-body:not(:has(.popup-notice-poster)) .popup-notice-text {
    text-align: center;
}

.popup-notice-content .modal-title {
    font-weight: 600;
    color: var(--primary);
}

.popup-notice-content img {
    max-width: 100%;
    border-radius: 12px;
}

#popupNoticeModal .modal-header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: var(--surface-soft);
}

@media (max-width: 576px) {
    #popupNoticeModal .modal-dialog {
        margin: 10px;
    }

    #popupNoticeModal .modal-body img {
        max-height: 60vh;
    }
}

.inner-page-banner {
    position: relative;
    /* Brand-aware: adopts the tenant's primary colour (set by Site.Master). */
    background: linear-gradient(120deg, var(--primary), var(--primary-dark));
    padding: 54px 0 46px;
    color: #fff;
    overflow: hidden;
}

    /* Faint pattern texture */
    .inner-page-banner::before {
        content: "";
        position: absolute;
        inset: 0;
        background: url("../assets/images/banner/pattern.svg") center / cover no-repeat;
        opacity: 0.12;
        pointer-events: none;
    }

    /* Soft corner glow for depth */
    .inner-page-banner::after {
        content: "";
        position: absolute;
        top: -45%;
        right: -4%;
        width: 360px;
        height: 360px;
        border-radius: 50%;
        background: radial-gradient(circle, rgba(255,255,255,0.14), transparent 70%);
        pointer-events: none;
    }

    .inner-page-banner .container {
        position: relative;
        z-index: 1;
    }

    /* Large faded contextual icon on the right (per-page watermark) */
    .inner-page-watermark {
        position: absolute;
        top: 50%;
        right: 4%;
        transform: translateY(-50%);
        font-size: 170px;
        line-height: 1;
        color: #fff;
        opacity: 0.09;
        pointer-events: none;
        z-index: 0;
    }

@media (max-width: 768px) {
    .inner-page-watermark { font-size: 120px; right: -8px; opacity: 0.08; }
}

@media (max-width: 480px) {
    .inner-page-watermark { display: none; }
}

    .inner-page-banner h1 {
        font-size: 36px;
        font-weight: 700;
        line-height: 1.15;
        margin: 0 0 10px;
    }

/* Optional tagline under the title */
.inner-page-subtitle {
    font-size: 15px;
    line-height: 1.6;
    color: rgba(255,255,255,0.9);
    margin: 0 0 16px;
    max-width: 680px;
}

.page-breadcrumb {
    font-size: 13.5px;
    color: rgba(255,255,255,0.85);
}

    .page-breadcrumb a {
        color: rgba(255,255,255,0.8);
        text-decoration: none;
        transition: color .15s ease;
    }

        .page-breadcrumb a:hover {
            color: #fff;
            text-decoration: underline;
        }

    .page-breadcrumb span {
        margin: 0 8px;
        color: rgba(255,255,255,0.45);
    }

    .page-breadcrumb .active {
        color: #fff;
        font-weight: 600;
    }

@media (max-width: 576px) {
    .inner-page-banner { padding: 38px 0 32px; }
    .inner-page-banner h1 { font-size: 27px; }
}


/* =========================
   ABOUT US PAGE
========================= */

.about-content {
    padding: 70px 0;
    background: #fff;
}

.about-text-only {
    max-width: 900px;
    margin: auto;
    text-align: center;
}

.about-image-only img,
.about-full-image img {
    width: 100%;
    border-radius: 10px;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 40px;
    align-items: center;
    margin-bottom: 60px;
}

    /* image on the right: text takes the wider left column, image the right */
    .about-grid.reverse {
        grid-template-columns: 1.2fr 1fr;
    }

        .about-grid.reverse .about-text {
            order: 0;
        }

        .about-grid.reverse .about-image {
            order: 1;
        }

.about-video iframe {
    width: 100%;
    height: 480px;
    border-radius: 10px;
}

.about-image img {
    width: 100%;
    border-radius: 16px;
    box-shadow: 0 14px 35px rgba(0,0,0,0.12);
}

.about-text h2 {
    font-size: 26px;
    color: var(--primary);
    margin-bottom: 16px;
}

.about-text p {
    font-size: 15px;
    color: var(--text-main);
    margin-bottom: 18px;
}

.about-points {
    list-style: none;
    padding: 0;
}

    .about-points li {
        padding-left: 26px;
        position: relative;
        margin-bottom: 10px;
    }

        .about-points li::before {
            content: "✔";
            position: absolute;
            left: 0;
            color: var(--primary);
        }

.about-grid.no-image {
    grid-template-columns: 1fr;
}

/* plain-image alignment (left / center / right within the column) */
.about-image-only {
    text-align: center;
}

    .about-image-only img {
        width: auto;
        max-width: 100%;
    }

    .about-image-only.align-left {
        text-align: left;
    }

    .about-image-only.align-center {
        text-align: center;
    }

    .about-image-only.align-right {
        text-align: right;
    }

/* table block */
.about-table {
    margin-bottom: 50px;
}

    .about-table h2 {
        font-size: 26px;
        color: var(--primary);
        margin-bottom: 16px;
    }

    .about-table .table-wrap {
        overflow-x: auto;
    }

.about-table table,
.rte-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 0 0 10px;
    font-size: 15px;
}

    .about-table th,
    .about-table td,
    .rte-content th,
    .rte-content td {
        border: 1px solid #dfe3e8;
        padding: 10px 12px;
        text-align: left;
        vertical-align: top;
    }

    .about-table thead th,
    .rte-content thead th {
        background: var(--primary, #1e3a8a);
        color: #fff;
        font-weight: 600;
    }

    .about-table tbody tr:nth-child(even),
    .rte-content tbody tr:nth-child(even) {
        background: rgba(0, 0, 0, 0.03);
    }

@media (max-width: 768px) {
    .about-grid {
        grid-template-columns: 1fr;
    }

    .about-video iframe {
        height: 260px;
    }
}

/* =========================
   LEADERSHIP MESSAGE PAGE
========================= */

.leadership-message {
    background: var(--surface-soft);
    padding: 64px 0;
}

.leadership-grid-details {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 36px;
    align-items: flex-start;
}

/* ---- Profile card ---- */
.leader-profile {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 32px 26px;
    text-align: center;
    box-shadow: 0 12px 30px rgba(0,0,0,0.06);
    position: sticky;
    top: 110px;
}

    /* Photo with a gradient brand ring (matches the home leadership cards) */
    .leader-profile .lp-photo {
        width: 150px;
        height: 150px;
        margin: 0 auto 18px;
        border-radius: 50%;
        padding: 4px;
        background: linear-gradient(135deg, var(--primary), color-mix(in srgb, var(--primary) 35%, #ffffff));
    }

        .leader-profile .lp-photo img {
            display: block;
            width: 100%;
            height: 100%;
            object-fit: cover;
            border-radius: 50%;
            border: 3px solid var(--surface);
        }

    .leader-profile h3 {
        font-size: 20px;
        font-weight: 700;
        color: var(--heading, var(--text-main));
        margin: 0 0 10px;
    }

/* Designation as a brand-tinted pill */
.leader-designation {
    display: inline-block;
    padding: 4px 14px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--primary) 10%, var(--surface));
    color: var(--primary);
    font-size: 12.5px;
    font-weight: 600;
}

.leader-meta {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 13.5px;
    color: var(--text-muted);
}

    .leader-meta p {
        margin: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        word-break: break-word;
    }

    .leader-meta i { color: var(--primary); font-size: 14px; }

/* ---- Message content card ---- */
.leader-message-content {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 40px 40px 32px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.06);
    overflow: hidden;
}

    /* Decorative opening quotation mark */
    .leader-message-content::before {
        content: "\201C";
        position: absolute;
        top: -10px;
        right: 24px;
        font-family: Georgia, "Times New Roman", serif;
        font-size: 120px;
        line-height: 1;
        color: color-mix(in srgb, var(--primary) 12%, transparent);
        pointer-events: none;
    }

    .leader-message-content h2 {
        position: relative;
        font-size: 26px;
        font-weight: 700;
        color: var(--primary);
        margin: 0 0 22px;
        padding-bottom: 14px;
    }

        .leader-message-content h2::after {
            content: "";
            position: absolute;
            left: 0;
            bottom: 0;
            width: 56px;
            height: 3px;
            border-radius: 3px;
            background: var(--primary);
        }

    .leader-message-content p {
        font-size: 16px;
        line-height: 1.85;
        color: var(--text-main);
        margin: 0 0 18px;
    }

/* Signature */
.leader-signature {
    margin-top: 26px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
    font-size: 15px;
    color: var(--text-muted);
}

    .leader-signature strong {
        display: inline-block;
        font-size: 16px;
        color: var(--heading, var(--text-main));
    }

/* Responsive */
@media (max-width: 992px) {
    .leadership-grid-details {
        grid-template-columns: 1fr;
    }

    .leader-profile {
        position: static;
        max-width: 440px;
        margin: 0 auto;
    }
}

@media (max-width: 480px) {
    .leadership-message { padding: 40px 0; }
    .leader-message-content { padding: 28px 22px 24px; }
    .leader-message-content::before { font-size: 90px; right: 14px; }
}

/* =========================
   NOTICE LISTING PAGE
========================= */

.notice-listing {
    background: var(--bg-neutral);
    padding: 70px 0;
}

/* Filter bar */
.notice-filter-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.total-count {
    font-size: 14px;
    color: var(--text-muted);
}

.notice-filter {
    padding: 8px 14px;
    border-radius: 8px;
    border: 1px solid #d1d5db;
    font-size: 14px;
}


.notice-search:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(11,94,215,0.15);
}

.filter-right {
    display: flex;
    gap: 12px;
    align-items: center;
}

@media (max-width: 576px) {
    .filter-right {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
    }

    .notice-search {
        width: 100%;
    }
}

/* Notice list */
.notice-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Notice item */
.notice-item {
    background: #ffffff;
    border-radius: 14px;
    padding: 20px;
    display: grid;
    grid-template-columns: 80px 1fr auto;
    gap: 20px;
    align-items: center;
    box-shadow: 0 10px 25px rgba(0,0,0,0.06);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

    .notice-item:hover {
        transform: translateY(-3px);
        box-shadow: 0 18px 35px rgba(0,0,0,0.1);
    }

    /* Important */
    .notice-item.important {
        border-left: 5px solid #dc3545;
    }

/* Date */
.notice-date-box {
    background: #eef3ff;
    border-radius: 12px;
    text-align: center;
    padding: 8px 6px;
    min-width: 72px;
}

    .notice-date-box .day {
        font-size: 22px;
        font-weight: 700;
        line-height: 1.1;
    }

    .notice-date-box .month {
        font-size: 12px;
        text-transform: uppercase;
    }

    .notice-date-box .year {
        font-size: 11px;
        color: var(--text-muted);
    }


/* Body */
.notice-body h3 {
    font-size: 17px;
    margin-bottom: 6px;
}

    .notice-body h3 a {
        color: var(--text-main);
        text-decoration: none;
    }

        .notice-body h3 a:hover {
            color: var(--primary);
            text-decoration: underline;
        }

.notice-body p {
    font-size: 14.5px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

/* Meta */
.notice-meta {
    display: flex;
    gap: 12px;
    font-size: 13px;
    align-items: center;
}

.badge-important {
    background: #ffe3e3;
    color: #dc3545;
    padding: 4px 10px;
    border-radius: 20px;
    font-weight: 500;
}

.notice-type i {
    margin-right: 4px;
    color: var(--primary);
}

/* Action */
.notice-action {
    text-align: right;
}

/* Pagination */
.notice-pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 40px;
}

.page-link {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    text-decoration: none;
    box-shadow: 0 6px 16px rgba(0,0,0,0.08);
}

    .page-link.active,
    .page-link:hover {
        background: var(--primary);
        color: #fff;
    }

/* Responsive */
@media (max-width: 768px) {
    .notice-item {
        grid-template-columns: 1fr;
        text-align: left;
    }

    .notice-action {
        text-align: left;
    }

    .notice-filter-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

/* =========================
   NOTICE DETAIL PAGE
========================= */

.notice-detail-section {
    background: var(--bg-soft);
}

/* Card */
.notice-detail-card {
    background: #ffffff;
    border-radius: 18px;
    padding: 40px 36px;
    box-shadow: 0 18px 40px rgba(0,0,0,0.08);
}

    /* Important */
    .notice-detail-card.important {
        border-left: 6px solid #f59e0b;
    }

/* Header */
.notice-detail-header {
    margin-bottom: 24px;
}

.notice-title-details {
    font-size: 28px;
    color: var(--primary);
    margin-top: 10px;
}

/* Meta */

.notice-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
    margin-top: 8px;
}

/* Common item */
.notice-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--text-muted);
}

    /* Icons */
    .notice-meta-item i {
        font-size: 14px;
        color: var(--primary);
    }

    .notice-meta-item.type {
        padding: 3px 10px;
        border-radius: 20px;
        font-weight: 500;
        font-size: 12px;
        background: #eef3ff;
        color: var(--primary);
    }

        /* Type variations */
        .notice-meta-item.type.exam {
            background: #fff5f5;
            color: #dc2626;
        }

.notice-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    padding: 5px 10px;
    border-radius: 20px;
}

    .notice-badge.important {
        background: #fff7ed;
        color: #b45309;
    }

.notice-date {
    font-size: 13px;
    color: var(--text-muted);
}

/* Body */
.notice-detail-body p {
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 16px;
}

/* Image */
.notice-image {
    margin: 24px 0;
}

    .notice-image img {
        width: 100%;
        max-height: 520px;
        object-fit: contain;
        border-radius: 12px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    }

/* Attachment */
.notice-attachment {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f1f5ff;
    padding: 14px 18px;
    border-radius: 12px;
    margin-top: 20px;
}

    .notice-attachment i {
        font-size: 20px;
        color: #dc2626;
    }

    .notice-attachment a {
        font-weight: 500;
        color: var(--primary);
        text-decoration: none;
    }

        .notice-attachment a:hover {
            text-decoration: underline;
        }

/* Footer */
.notice-detail-footer {
    margin-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

/* =========================
   ALBUMS GALLERY
========================= */

.gallery-albums-page {
    padding: 56px 0;
}

.album-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 26px;
}

.album-card {
    text-decoration: none;
    color: inherit;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(0,0,0,0.05);
    transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}

    .album-card:hover {
        transform: translateY(-6px);
        border-color: color-mix(in srgb, var(--primary) 30%, var(--border));
        box-shadow: 0 20px 40px color-mix(in srgb, var(--primary) 15%, transparent);
    }

.album-cover {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: var(--surface-soft);
}

    .album-cover img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
        transition: transform .45s ease;
    }

.album-card:hover .album-cover img {
    transform: scale(1.08);
}

.album-cover.generic img {
    object-fit: contain;
    padding: 24px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
}

.album-photo-count {
    position: absolute;
    top: 12px;
    right: 12px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(0,0,0,.62);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 999px;
    z-index: 2;
}

.album-hover {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.05), rgba(0,0,0,0.55));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity .35s ease;
    z-index: 1;
}

.album-card:hover .album-hover { opacity: 1; }

.view-album-text {
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 16px;
    border: 1.5px solid rgba(255,255,255,.85);
    border-radius: 999px;
}

.album-info {
    padding: 16px 16px 18px;
}

    .album-info h4 {
        font-size: 16px;
        font-weight: 700;
        color: var(--heading, var(--text-main));
        margin: 0 0 5px;
        line-height: 1.35;
    }

.album-desc {
    margin: 0;
    font-size: 13px;
    line-height: 1.5;
    color: var(--text-muted);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

    .album-desc:empty { display: none; }


/* =========================
   GALLERY ALBUM DETAILS
========================= */

.gallery-album-details {
    padding: 56px 0;
    background: var(--bg-soft);
}

.album-detail-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 14px;
}

.album-back {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 14px;
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
    transition: gap .2s ease;
}

    .album-back:hover { gap: 11px; }

.album-count-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 14px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--primary) 10%, var(--surface));
    border: 1px solid color-mix(in srgb, var(--primary) 22%, var(--border));
    color: var(--primary);
    font-size: 13px;
    font-weight: 600;
}

.album-detail-desc {
    margin: 0 0 28px;
    max-width: 760px;
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-muted);
}


/* =========================
   PHOTO GRID
========================= */

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 18px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 14px;
    background: var(--surface);
    border: 1px solid var(--border);
    cursor: pointer;
}

    .gallery-item img {
        width: 100%;
        height: 100%;
        aspect-ratio: 1 / 1;
        object-fit: cover;
        display: block;
        transition: transform .4s ease;
    }

    .gallery-item:hover img { transform: scale(1.08); }

/* Hover overlay + zoom icon */
.gallery-item-zoom {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(to bottom, rgba(0,0,0,0.05), rgba(0,0,0,0.45));
    color: #fff;
    font-size: 22px;
    opacity: 0;
    transition: opacity .3s ease;
    pointer-events: none;
}

.gallery-item:hover .gallery-item-zoom { opacity: 1; }


/* =========================
   LIGHTBOX
========================= */

.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.9);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

    .lightbox img {
        max-width: 90%;
        max-height: 85vh;
        border-radius: 10px;
        box-shadow: 0 20px 60px rgba(0,0,0,.5);
    }

.lightbox-close,
.lightbox-nav {
    position: absolute;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,.12);
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: background .2s ease;
    user-select: none;
}

    .lightbox-close:hover,
    .lightbox-nav:hover { background: rgba(255,255,255,.28); }

.lightbox-close {
    top: 22px;
    right: 26px;
    width: 44px;
    height: 44px;
    font-size: 26px;
    line-height: 1;
}

.lightbox-nav {
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    font-size: 24px;
}

    .lightbox-nav.prev { left: 22px; }
    .lightbox-nav.next { right: 22px; }

.lightbox-counter {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    background: rgba(0,0,0,.4);
    padding: 5px 14px;
    border-radius: 999px;
}


/* =========================
   GALLERY RESPONSIVE
========================= */

@media (max-width: 768px) {
    .album-cover { height: 180px; }
    .gallery-grid { gap: 12px; }
    .view-album-text { font-size: 13px; padding: 7px 13px; }
    .gallery-album-details { padding: 40px 0; }
    .lightbox-nav { width: 42px; height: 42px; font-size: 20px; }
    .lightbox-nav.prev { left: 10px; }
    .lightbox-nav.next { right: 10px; }
}


/* =========================
   CONTACT PAGE
========================= */

.contact-section {
    padding: 70px 0;
    background: var(--bg-soft);
}

/* Info Cards */
.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
    margin-bottom: 50px;
}

.contact-card {
    background: #ffffff;
    padding: 26px 22px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 12px 30px rgba(0,0,0,0.06);
}

    .contact-card i {
        font-size: 28px;
        color: var(--primary);
        margin-bottom: 10px;
    }

    .contact-card h4 {
        font-size: 17px;
        margin-bottom: 6px;
    }

    .contact-card p {
        font-size: 14px;
        color: var(--text-muted);
        margin: 0;
    }

/* Form + Map */
.contact-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 40px;
    align-items: stretch;
}

/* Form Card */
.contact-form-card {
    background: #ffffff;
    padding: 34px 30px;
    border-radius: 18px;
    box-shadow: 0 14px 35px rgba(0,0,0,0.06);
}

    .contact-form-card h3 {
        margin-bottom: 20px;
        color: var(--primary);
    }

/* Form */
.form-group {
    margin-bottom: 14px;
}

    .form-group label {
        font-size: 14px;
        font-weight: 500;
        margin-bottom: 4px;
        display: block;
    }

    .form-group input,
    .form-group textarea {
        width: 100%;
        padding: 10px 12px;
        border-radius: 8px;
        border: 1px solid #d1d5db;
        font-size: 14px;
    }

        .form-group input:focus,
        .form-group textarea:focus {
            outline: none;
            border-color: var(--primary);
        }

/* Map */
.contact-map iframe {
    width: 100%;
    height: 100%;
    min-height: 420px;
    border-radius: 18px;
    border: 0;
}

/* Mobile */
@media (max-width: 768px) {

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .contact-map iframe {
        min-height: 300px;
    }
}

/* =========================
   DOWNLOADS PAGE
========================= */

.download-section {
    padding: 70px 0;
    background: var(--bg-soft);
}

/* Filter Bar */
.download-filter-bar {
    display: flex;
    gap: 20px;
    align-items: flex-end;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

    .filter-group label {
        font-size: 13px;
        font-weight: 500;
    }

    .filter-group select,
    .filter-group input {
        padding: 8px 12px;
        border-radius: 8px;
        border: 1px solid #d1d5db;
        font-size: 14px;
    }

    .filter-group.search {
        flex: 1;
    }

/* Table Card */
.download-table-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 14px 30px rgba(0,0,0,0.06);
}

/* Table */
.download-table {
    width: 100%;
    border-collapse: collapse;
}

    .download-table thead th {
        text-align: left;
        font-size: 13px;
        text-transform: uppercase;
        color: var(--text-muted);
        padding-bottom: 12px;
        border-bottom: 1px solid #eee;
    }

    .download-table tbody td {
        padding: 14px 8px;
        font-size: 14px;
        vertical-align: middle;
    }

    .download-table tbody tr:hover {
        background: #f6f9ff;
    }

    /* File Icon */
    .download-table td i {
        margin-right: 8px;
        color: var(--primary);
    }

/* Type Badge */
.type-badge {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

    .type-badge.syllabus {
        background: #eaf2ff;
        color: var(--primary);
    }

    .type-badge.form {
        background: #e6f7f0;
        color: #198754;
    }

    .type-badge.notice {
        background: #fff3cd;
        color: #856404;
    }

    .type-badge.routine {
        background: #fdecef;
        color: #dc3545;
    }

/* Important */
.download-table tr.important {
    background: #fff5f5;
}

/* Mobile */
@media (max-width: 768px) {

    .download-table thead {
        display: none;
    }

    .download-table tbody tr {
        display: flex;
        flex-direction: column;
        gap: 6px;
        padding: 14px 0;
    }

    .download-table tbody td {
        padding: 4px 0;
    }
}

/* =========================
   STAFF PROFILE PAGE
========================= */

.staff-section {
    padding: 70px 0;
    background: var(--bg-soft);
}

/* Filter Bar */
.staff-filter-bar {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

    .staff-filter-bar select,
    .staff-filter-bar input {
        padding: 8px 12px;
        border-radius: 8px;
        border: 1px solid #d1d5db;
        font-size: 14px;
    }

/* Grid */
.staff-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 240px));
    justify-content: center;
    gap: 35px;
}

/* Card */
.staff-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 24px 20px;
    text-align: center;
    box-shadow: 0 10px 25px rgba(0,0,0,0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .staff-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 18px 35px rgba(11,94,215,0.15);
    }

    /* Photo */
    .staff-card img {
        width: 140px;
        height: 140px;
        object-fit: cover;
        border-radius: 50%;
        margin-bottom: 14px;
        border: 3px solid #eaf2ff;
    }

    /* Name */
    .staff-card h4 {
        font-size: 17px;
        margin-bottom: 4px;
    }

/* Role */
.staff-role {
    display: block;
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 10px;
}

/* Contact */
.staff-contact {
    font-size: 13px;
    color: var(--text-muted);
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 10px;
}

    .staff-contact i {
        margin-right: 6px;
        color: var(--primary);
    }

/* Profile Link */
.profile-link {
    font-size: 14px;
    font-weight: 500;
    color: var(--primary);
    text-decoration: none;
}

    .profile-link:hover {
        text-decoration: underline;
    }

/* Mobile */
@media (max-width: 576px) {
    .staff-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================
   FAQ PAGE
========================= */

.faq-section {
    padding: 70px 0;
    background: var(--bg-soft);
}

.faq-intro {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 40px;
}

    .faq-intro h2 {
        font-size: 28px;
        color: var(--primary);
        margin-bottom: 10px;
    }

    .faq-intro p {
        font-size: 15px;
        color: var(--text-muted);
    }

/* FAQ List */
.faq-list {
    max-width: 900px;
    margin: 0 auto;
}

/* FAQ Item */
.faq-item {
    background: #ffffff;
    border-radius: 14px;
    margin-bottom: 16px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    overflow: hidden;
}

/* Question */
.faq-question {
    width: 100%;
    padding: 18px 20px;
    background: none;
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    color: var(--text-main);
}

    .faq-question i {
        font-size: 18px;
        color: var(--primary);
        transition: transform 0.3s ease;
    }

/* Answer */
.faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 20px;
    transition: max-height 0.35s ease, padding 0.35s ease;
}

    .faq-answer p {
        font-size: 15px;
        color: var(--text-muted);
        padding-bottom: 18px;
    }

/* Active State */
.faq-item.active .faq-answer {
    max-height: 500px;
    padding-top: 8px;
}

.faq-item.active .faq-question i {
    transform: rotate(45deg);
}

/* =========================
   CAREER PAGE
========================= */

.career-intro {
    background: var(--bg-soft);
}

.career-intro-box {
    max-width: 850px;
    margin: auto;
    text-align: center;
}

    .career-intro-box h2 {
        color: var(--primary);
        margin-bottom: 14px;
    }

.career-note {
    margin-top: 12px;
    font-size: 14px;
    color: var(--text-muted);
}

    .career-note i {
        color: var(--primary);
        margin-right: 6px;
    }

/* Vacancy Section */
.vacancy-section {
    background: var(--bg-white);
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
    font-size: 26px;
    color: var(--primary);
}

.vacancy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

/* Vacancy Card */
.vacancy-card {
    background: #fff;
    border-radius: 16px;
    padding: 28px 26px;
    box-shadow: 0 12px 28px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .vacancy-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 20px 40px rgba(11,94,215,0.15);
    }

.vacancy-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    gap: 10px;
}

    .vacancy-header h4 {
        font-size: 18px;
        margin: 0;
    }

/* Vacancy Type */
.vacancy-type {
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 20px;
    white-space: nowrap;
}

    .vacancy-type.teaching {
        background: #e7f1ff;
        color: var(--primary);
    }

    .vacancy-type.admin {
        background: #fff3cd;
        color: #856404;
    }

/* Meta */
.vacancy-meta {
    list-style: none;
    padding: 0;
    margin: 16px 0;
    font-size: 14px;
}

    .vacancy-meta li {
        margin-bottom: 6px;
        color: var(--text-muted);
    }

    .vacancy-meta i {
        color: var(--primary);
        margin-right: 6px;
    }

/* Description */
.vacancy-desc {
    font-size: 14.5px;
    color: var(--text-main);
    margin-bottom: 16px;
}

/* Actions */
.vacancy-actions {
    display: flex;
    gap: 10px;
}

/* No Vacancy */
.no-vacancy {
    text-align: center;
    padding: 80px 20px;
    color: var(--text-muted);
}

    .no-vacancy i {
        font-size: 40px;
        color: var(--primary);
        margin-bottom: 12px;
    }

/* =========================
   VACANCY DETAIL PAGE
========================= */

.vacancy-detail-section {
    background: var(--bg-white);
}

.vacancy-detail-grid {
    display: grid;
    grid-template-columns: 2.2fr 1fr;
    gap: 40px;
}

/* Main Card */
.vacancy-detail-card {
    background: #ffffff;
    border-radius: 18px;
    padding: 40px 36px;
    box-shadow: 0 14px 30px rgba(0,0,0,0.08);
}

/* Header */
.vacancy-detail-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    gap: 12px;
    margin-bottom: 20px;
}

    .vacancy-detail-header h2 {
        font-size: 28px;
        color: var(--primary);
        margin: 0;
    }

/* Vacancy Type Badge */
.vacancy-type {
    font-size: 13px;
    padding: 6px 14px;
    border-radius: 20px;
    white-space: nowrap;
}

    .vacancy-type.teaching {
        background: #e7f1ff;
        color: var(--primary);
    }

    .vacancy-type.admin {
        background: #fff3cd;
        color: #856404;
    }

/* Info List */
.vacancy-info {
    list-style: none;
    padding: 0;
    margin: 20px 0 30px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 10px;
}

    .vacancy-info li {
        font-size: 14px;
        color: var(--text-muted);
    }

    .vacancy-info i {
        color: var(--primary);
        margin-right: 6px;
    }

/* Content Blocks */
.vacancy-section-block {
    margin-bottom: 28px;
}

    .vacancy-section-block h4 {
        font-size: 18px;
        color: var(--primary);
        margin-bottom: 10px;
    }

    .vacancy-section-block p {
        font-size: 15px;
        color: var(--text-main);
    }

    .vacancy-section-block ul {
        padding-left: 18px;
    }

    .vacancy-section-block li {
        margin-bottom: 8px;
        font-size: 15px;
        color: var(--text-main);
    }

/* Apply Button */
.vacancy-apply {
    margin-top: 30px;
}

/* Side Card */
.vacancy-side-card {
    background: var(--bg-soft);
    border-radius: 18px;
    padding: 28px 24px;
    height: fit-content;
}

    .vacancy-side-card h5 {
        font-size: 18px;
        margin-bottom: 16px;
        color: var(--primary);
    }

    .vacancy-side-card p {
        font-size: 14px;
        color: var(--text-main);
        margin-bottom: 14px;
    }

    .vacancy-side-card i {
        color: var(--primary);
        margin-right: 6px;
    }

/* Responsive */
@media (max-width: 992px) {
    .vacancy-detail-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================
   APPLY FORM PAGE
========================= */

.apply-vacancy-section {
    background: var(--bg-soft);
}

.apply-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
}

/* Form Card */
.apply-form-card {
    background: #ffffff;
    border-radius: 18px;
    padding: 40px 36px;
    box-shadow: 0 14px 30px rgba(0,0,0,0.08);
}

    .apply-form-card h2 {
        font-size: 26px;
        color: var(--primary);
        margin-bottom: 6px;
    }

.apply-subtext {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 26px;
}

/* Form Layout */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    margin-bottom: 18px;
}

    .form-group label {
        display: block;
        font-size: 14px;
        margin-bottom: 6px;
        font-weight: 500;
    }

    .form-group input,
    .form-group textarea {
        width: 100%;
        padding: 11px 12px;
        border-radius: 8px;
        border: 1px solid #d1d5db;
        font-size: 14px;
    }

        .form-group input:focus,
        .form-group textarea:focus {
            outline: none;
            border-color: var(--primary);
        }

/* File Upload */
.file-upload {
    display: flex;
    align-items: center;
    gap: 12px;
}

    .file-upload input[type="file"] {
        flex: 1;
    }

.file-hint {
    font-size: 12px;
    color: var(--text-muted);
}

/* Submit */
.form-actions {
    margin-top: 26px;
}

/* Right Info */
.apply-info-card {
    background: #ffffff;
    border-radius: 18px;
    padding: 28px 24px;
    height: fit-content;
}

    .apply-info-card h5 {
        font-size: 18px;
        color: var(--primary);
        margin-bottom: 14px;
    }

    .apply-info-card ul {
        padding-left: 18px;
        margin-bottom: 18px;
    }

    .apply-info-card li {
        font-size: 14px;
        margin-bottom: 8px;
    }

.contact-help {
    font-size: 14px;
    color: var(--text-main);
}

    .contact-help i {
        color: var(--primary);
        margin-right: 6px;
    }

/* Responsive */
@media (max-width: 992px) {
    .apply-grid {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }
}

/* =========================
   404 ERROR PAGE
========================= */

.error-404,
.error-500{
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f6f8fc;
    text-align: center;
    padding: 80px 20px;
}

    .error-404 .container {
        max-width: 720px;
    }

/* 404 Number */
.error-code {
    font-size: 140px;
    font-weight: 800;
    color: #0b1f3a; /* institutional blue */
    line-height: 1;
    margin-bottom: 10px;
}

/* Title */
.error-404 h1 {
    font-size: 32px;
    color: #0b1f3a;
    margin-bottom: 15px;
}

/* Message */
.error-message {
    font-size: 16px;
    color: #4a5568;
    margin-bottom: 35px;
    line-height: 1.7;
}

/* Actions */
.error-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
}

    .error-actions a {
        padding: 12px 22px;
        border-radius: 6px;
        font-size: 14px;
        font-weight: 500;
        text-decoration: none;
        display: inline-flex;
        align-items: center;
        gap: 8px;
    }

/* Primary Button */
.btn-primary {
    background: #0b1f3a;
    color: #fff;
}

    .btn-primary:hover {
        background: #133c6b;
    }

/* Outline Button */
.btn-outline {
    border: 1px solid #0b1f3a;
    color: #0b1f3a;
    background: transparent;
}

    .btn-outline:hover {
        background: #0b1f3a;
        color: #fff;
    }

/* Search */
.error-search {
    max-width: 420px;
    margin: 0 auto;
    display: flex;
    border: 1px solid #d6ddeb;
    border-radius: 6px;
    overflow: hidden;
    background: #fff;
}

    .error-search input {
        flex: 1;
        border: none;
        padding: 12px 15px;
        font-size: 14px;
        outline: none;
    }

    .error-search button {
        border: none;
        background: #0b1f3a;
        color: #fff;
        padding: 0 18px;
        cursor: pointer;
    }

        .error-search button:hover {
            background: #133c6b;
        }

.dev-info {
    margin-top: 30px;
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    font-size: 13px;
    color: #856404;
    text-align: left;
}


/* Responsive */
@media (max-width: 576px) {
    .error-code {
        font-size: 100px;
    }

    .error-404 h1 {
        font-size: 26px;
    }
}

.error-500 .error-code {
    color: #8b0000; /* deep red for server error */
}


/* =========================
   SCROLL ANIMATIONS (GLOBAL)
========================= */

.animate-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
    will-change: opacity, transform;
}

    .animate-on-scroll.visible {
        opacity: 1;
        transform: translate(0);
    }

/* Variants */
.fade-up {
    transform: translateY(40px);
}

.fade-left {
    transform: translateX(40px);
}

.fade-right {
    transform: translateX(-40px);
}

.zoom-in {
    transform: scale(0.95);
}

/* =========================
   PROGRAM DETAIL PAGE
========================= */

/* Header */
/* =========================
   PROGRAM HERO HEADER
========================= */


.program-level {
    display: inline-block;
    background: rgba(255,255,255,0.15);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    margin-bottom: 10px;
}

/* Layout */
.program-detail-wrapper {
    padding: 60px 0;
}

.program-detail-grid {
    display: grid;
    grid-template-columns: 2.6fr 1fr;
    gap: 40px;
    align-items: start;
}

/* Main Sections */
.program-section {
    margin-bottom: 50px;
}

    .program-section h2 {
        font-size: 24px;
        margin-bottom: 16px;
    }

.bg-soft {
    background: var(--bg-soft);
    padding: 30px;
    border-radius: 16px;
}

/* Lists */
.program-list {
    padding-left: 18px;
}

    .program-list li {
        margin-bottom: 10px;
    }

/* Highlights */
.highlights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
}

.highlight-card {
    background: #fff;
    padding: 24px;
    border-radius: 14px;
    text-align: center;
    box-shadow: 0 10px 25px rgba(0,0,0,0.06);
}

    .highlight-card i {
        font-size: 28px;
        color: var(--primary);
        margin-bottom: 10px;
    }

/* Career */
.career-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

    .career-tags span {
        background: #eef3ff;
        padding: 8px 14px;
        border-radius: 20px;
        font-size: 14px;
    }

/* Sidebar */
.program-sidebar {
    position: sticky;
    top: 100px;
}

.program-info-card {
    background: #fff;
    padding: 26px;
    border-radius: 16px;
    box-shadow: 0 14px 30px rgba(0,0,0,0.08);
}

    .program-info-card h4 {
        margin-bottom: 16px;
    }

    .program-info-card ul {
        list-style: none;
        padding: 0;
        margin-bottom: 18px;
    }

    .program-info-card li {
        padding: 8px 0;
        border-bottom: 1px dashed #e5e7eb;
        font-size: 14px;
    }

/* CTA */
.program-cta-section {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    padding: 60px 0;
}

.program-cta-box {
    text-align: center;
}

.cta-actions {
    display: flex;
    justify-content: center;
    gap: 14px;
    margin-top: 16px;
}

/* Responsive */
@media (max-width: 992px) {
    .program-detail-grid {
        grid-template-columns: 1fr;
    }

    .program-sidebar {
        position: static;
    }
}
/* =========================
   PROGRAM SECTION ENHANCEMENT
========================= */

.section-card {
    background: #fff;
    padding: 34px;
    border-radius: 18px;
    box-shadow: 0 10px 28px rgba(0,0,0,0.05);
    border-left: 5px solid var(--primary);
}

    .section-card:not(:last-child) {
        margin-bottom: 40px;
    }

.program-section h2 {
    font-size: 26px;
    position: relative;
    padding-bottom: 10px;
}

    .program-section h2::after {
        content: "";
        position: absolute;
        left: 0;
        bottom: 0;
        width: 50px;
        height: 3px;
        background: var(--primary);
        border-radius: 2px;
    }

.program-section p {
    font-size: 16px;
    line-height: 1.75;
    color: var(--text-main);
}

/* =========================
   PROGRAM MATERIALS
========================= */

.materials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-top: 24px;
}

.material-card {
    display: flex;
    gap: 14px;
    align-items: center;
    background: var(--surface-soft);
    padding: 18px 20px;
    border-radius: 14px;
    text-decoration: none;
    border: 1px solid #e5edff;
    transition: all 0.25s ease;
}

    .material-card i {
        font-size: 28px;
        color: var(--primary);
    }

    .material-card h5 {
        margin: 0;
        font-size: 15px;
        color: var(--text-main);
    }

    .material-card span {
        font-size: 12px;
        color: var(--text-muted);
    }

    .material-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 12px 25px rgba(0,0,0,0.08);
        background: #fff;
    }

.program-info-card li i {
    color: var(--primary);
    margin-right: 6px;
}

/* =========================
   VIDEO GALLERY
========================= */

.video-gallery {
    padding: 70px 0;
    background: var(--bg-soft);
}

/* Grid */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

/* Card */
.video-card {
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 10px 28px rgba(0,0,0,.06);
    transition: transform .3s ease, box-shadow .3s ease;
}

    .video-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 18px 45px rgba(0,0,0,.1);
    }

/* Video frame */
.video-frame-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
}

    .video-frame-wrapper iframe {
        width: 100%;
        height: 100%;
        border: 0;
    }

/* Title */
.video-title {
    padding: 14px 16px;
    font-size: 16px;
    font-weight: 500;
    color: var(--text-main);
    line-height: 1.4;
}

/* Responsive */
@media (max-width: 576px) {
    .video-grid {
        gap: 20px;
    }

    .video-title {
        font-size: 15px;
    }
}


/* =========================
   GLOBAL EMPTY STATE
========================= */

.empty-state {
    text-align: center;
    padding: 80px 20px;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(0,0,0,.05);
}

.empty-state-icon {
    font-size: 56px;
    color: var(--primary);
    margin-bottom: 14px;
}

.empty-state-title {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-main);
}

.empty-state-text {
    font-size: 15px;
    color: var(--text-muted);
    max-width: 480px;
    margin: 0 auto;
}

/* Compact version (optional) */
.empty-state.compact {
    padding: 50px 20px;
}

@media (max-width: 576px) {
    .empty-state {
        padding: 60px 16px;
    }

    .empty-state-title {
        font-size: 20px;
    }
}

/* =========================
   LOGIN PAGE
========================= */

.login-wrapper {
    min-height: calc(100vh - 120px);
    display: flex;
    align-items: center;
    background: var(--bg-neutral);
    padding: 60px 0;
}

.login-container {
    display: flex;
    justify-content: center;
}

.login-card {
    background: var(--bg-white);
    width: 100%;
    max-width: 420px;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

/* Header */
.login-header {
    text-align: center;
    margin-bottom: 30px;
}

    .login-header h1 {
        font-family: 'Poppins', sans-serif;
        font-size: 28px;
        color: var(--primary);
        margin-bottom: 6px;
    }

    .login-header p {
        color: var(--text-muted);
        font-size: 14px;
    }

/* Form */
.login-form .form-group {
    margin-bottom: 20px;
}

.login-form label {
    display: block;
    font-weight: 500;
    font-size: 14px;
    margin-bottom: 6px;
    color: var(--text-main);
}

.login-form input {
    width: 100%;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid #dce1eb;
    font-size: 14px;
    transition: all 0.2s ease;
}

    .login-form input:focus {
        border-color: var(--primary);
        outline: none;
        box-shadow: 0 0 0 3px rgba(11,94,215,0.1);
    }

/* Actions */
.login-actions {
    margin-top: 30px;
}

.btn-login {
    width: 100%;
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 12px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

    .btn-login i {
        margin-right: 6px;
    }

    .btn-login:hover {
        background: #094bb5;
        transform: translateY(-1px);
    }

/* Footer */
.login-footer {
    text-align: center;
    margin-top: 25px;
    font-size: 13px;
}

    .login-footer a {
        color: var(--primary);
        font-weight: 500;
        text-decoration: none;
    }

        .login-footer a:hover {
            text-decoration: underline;
        }

/* =====================================================================
   Homepage data-driven additions (hero fallback, testimonial avatar,
   empty states)
   ===================================================================== */

/* Branded hero shown when no slider images are configured */
.hero-fallback {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff;
    text-align: center;
    padding: 110px 0;
}

    .hero-fallback h1 {
        color: #fff;
        font-size: 40px;
        margin-bottom: 14px;
    }

    .hero-fallback p {
        font-size: 18px;
        opacity: 0.92;
        margin: 0 auto;
        max-width: 720px;
    }

/* Testimonial author avatar (photo or initials fallback) — author row */
.testimonial-photo {
    width: 54px;
    height: 54px;
    flex: 0 0 auto;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #fff;
    box-shadow: 0 2px 8px rgba(16,24,40,0.16);
}

.testimonial-avatar {
    width: 54px;
    height: 54px;
    flex: 0 0 auto;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff;
    font-family: 'Poppins', sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    letter-spacing: 1px;
}

/* Muted empty-state line for sections with no data */
.section-empty {
    padding: 24px 8px;
    color: var(--text-muted);
    font-size: 15px;
    text-align: center;
}

/* Holiday accent on calendar items */
.calendar-item.holiday .calendar-date {
    background: color-mix(in srgb, #ef4444 14%, var(--surface));
    color: #ef4444;
}

/* =====================================================================
   Header refinements + theme toggle
   ===================================================================== */
.top-bar {
    background: var(--topbar-bg);
}

    .top-bar .top-right {
        gap: 4px;
    }

/* Apply-for-admission style pill */
.top-bar a.highlighted {
    padding: 5px 14px;
    border-radius: 6px;
    box-shadow: none;
}

    .top-bar a.highlighted:hover {
        background: #ffc107;
        color: #0b3b8c;
        box-shadow: none;
    }

/* Language flags */
.lang-switch {
    margin-right: 4px;
    gap: 4px;
}

    .lang-switch img {
        width: 22px;
        height: 15px;
        opacity: 0.6;
        border: 1px solid rgba(255,255,255,0.35);
        border-radius: 3px;
    }

    .lang-switch a.active img,
    .lang-switch a:hover img {
        opacity: 1;
        box-shadow: 0 0 0 2px rgba(255,255,255,0.9);
    }

/* Theme toggle button */
.theme-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    margin-left: 8px;
    border: none;
    border-radius: 6px;
    background: rgba(255,255,255,0.14);
    color: #fff;
    cursor: pointer;
    font-size: 15px;
    transition: background 0.2s ease;
}

    .theme-toggle:hover {
        background: rgba(255,255,255,0.3);
    }

/* Main header */
.main-header {
    background: var(--header-bg);
    border-bottom: 1px solid var(--border);
}

.header-flex {
    padding: 18px 0;
    gap: 16px;
}

.logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

    .logo img {
        height: 64px;
        width: auto;
        max-width: 220px;
        margin-right: 0;
        object-fit: contain;
    }

/* Initials fallback when no logo image is configured */
.logo-monogram {
    width: 64px;
    height: 64px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 24px;
    letter-spacing: 1px;
    align-items: center;
    justify-content: center;
}

.college-info {
    margin-left: 16px;
}

    .college-info h1 {
        color: var(--heading);
        line-height: 1.15;
    }

    .college-info p {
        color: var(--text-muted);
        margin-top: 3px;
    }

/* =====================================================================
   Dark theme — surface overrides (light stylesheet hard-codes #fff etc.,
   so remap the major components to the semantic tokens)
   ===================================================================== */
html[data-theme="dark"] body {
    background: var(--body-bg);
    color: var(--text-main);
}

/* Navigation */
html[data-theme="dark"] .site-nav,
html[data-theme="dark"] .nav-menu {
    background: var(--nav-bg);
}

html[data-theme="dark"] .nav-menu a {
    color: var(--text-main);
}

html[data-theme="dark"] .nav-menu ul {
    background: var(--surface);
    border-color: var(--border);
}

/* Tinted section backgrounds */
html[data-theme="dark"] .welcome-section,
html[data-theme="dark"] .testimonials-section,
html[data-theme="dark"] .notice-calendar-section,
html[data-theme="dark"] .leadership-section {
    background: var(--surface-soft);
}

html[data-theme="dark"] .notice-bar {
    background: var(--surface-neutral);
    border-bottom-color: var(--border);
}

/* Cards */
html[data-theme="dark"] .welcome-box,
html[data-theme="dark"] .notice-board-card,
html[data-theme="dark"] .academic-calendar-card,
html[data-theme="dark"] .testimonial-card,
html[data-theme="dark"] .leader-card,
html[data-theme="dark"] .card,
html[data-theme="dark"] .modal-content {
    background: var(--surface);
    color: var(--text-main);
    border-color: var(--border);
    box-shadow: 0 14px 35px var(--shadow);
}

/* Headings + body text inside content areas */
html[data-theme="dark"] .section-header h2,
html[data-theme="dark"] .welcome-text h3,
html[data-theme="dark"] .notice-board-header h3,
html[data-theme="dark"] .academic-calendar-header h3,
html[data-theme="dark"] .leader-name,
html[data-theme="dark"] .calendar-info h4,
html[data-theme="dark"] .testimonial-card h5 {
    color: var(--heading);
}

html[data-theme="dark"] .section-header p,
html[data-theme="dark"] .welcome-text p,
html[data-theme="dark"] .testimonial-text,
html[data-theme="dark"] .calendar-info p,
html[data-theme="dark"] .notice-board-header span,
html[data-theme="dark"] .academic-calendar-header span {
    color: var(--text-main);
}

html[data-theme="dark"] .notice-thumb.placeholder {
    background: var(--surface-neutral);
}

html[data-theme="dark"] .section-divider {
    opacity: 0.4;
}

/* =====================================================================
   Navbar redesign — school / college standard
   (brand-colored bar, hover underline in the SECONDARY accent, animated
    theme-aware dropdowns with carets + connector, TERTIARY hover accent)
   ===================================================================== */
.site-nav {
    position: sticky;          /* sticks to the top on scroll, no JS / no content jump */
    top: 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.10);
}

/* Caret indicators for items that have a dropdown */
.nav-menu > li.has-submenu > a::after {
    content: "\25BE";           /* ▾ down for top level */
    margin-left: 7px;
    font-size: 10px;
    opacity: .85;
    vertical-align: 1px;
}

.submenu li.has-submenu > a::after {
    content: "\25B8";           /* ▸ right for nested */
    float: right;
    opacity: .7;
    margin-left: 8px;
}

@media (min-width: 992px) {

    .nav-menu { gap: 2px; }

    .nav-menu > li > a {
        position: relative;
        padding: 16px 18px;
        letter-spacing: .2px;
    }

        .nav-menu > li > a:hover,
        .nav-menu > li > a.active {
            background: rgba(255, 255, 255, 0.12);
            border-radius: 0;
        }

        /* hover / active underline in the school's SECONDARY accent colour */
        .nav-menu > li > a::before {
            content: "";
            position: absolute;
            left: 16px;
            right: 16px;
            bottom: 8px;
            height: 3px;
            border-radius: 3px;
            background: var(--secondary, #fff);
            transform: scaleX(0);
            transform-origin: center;
            transition: transform .25s ease;
        }

            .nav-menu > li > a:hover::before,
            .nav-menu > li > a.active::before {
                transform: scaleX(1);
            }

    /* Animated, theme-aware dropdowns */
    .nav-menu .submenu {
        display: block;
        opacity: 0;
        visibility: hidden;
        transform: translateY(10px);
        transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
        pointer-events: none;
        background: var(--surface);
        border: 1px solid var(--border);
        border-radius: 12px;
        padding: 8px;
        box-shadow: 0 18px 45px var(--shadow);
    }

        .nav-menu .has-submenu:hover > .submenu {
            opacity: 1;
            visibility: visible;
            transform: translateY(0);
            pointer-events: auto;
        }

        /* nested levels slide in from the side.
           margin-left:0 removes the hover-dead gap so the mouse can travel from a
           parent item onto its flyout without the submenu closing. */
        .nav-menu .submenu .submenu { transform: translateX(10px) translateY(0); margin-left: 0; }
        .nav-menu .submenu .has-submenu:hover > .submenu { transform: translateX(0); }

        .nav-menu .submenu a {
            color: var(--text-main);
            border-radius: 8px;
            padding: 10px 14px;
            border-left: 3px solid transparent;
        }

            .nav-menu .submenu a:hover {
                background: color-mix(in srgb, var(--primary) 12%, transparent);
                color: var(--primary);
                border-left-color: var(--tertiary, var(--primary)); /* TERTIARY accent */
            }

    /* First-level dropdown sits flush under the item (no margin gap) so the mouse
       can move from the item onto the dropdown without it closing. The ::before
       below is a small pointer bridging the dropdown to the nav bar. */
    .nav-menu > li > .submenu { margin-top: 0; }

        .nav-menu > li > .submenu::before {
            content: "";
            position: absolute;
            top: -6px;
            left: 24px;
            width: 12px;
            height: 12px;
            background: var(--surface);
            border-left: 1px solid var(--border);
            border-top: 1px solid var(--border);
            transform: rotate(45deg);
        }
}

/* =====================================================================
   Header polish — clean utility bar, prominent CTA in the identity band,
   unified controls, white nav active state
   ===================================================================== */

/* --- Top utility bar: contact (left), language + theme (right) --- */
.top-bar .top-right { gap: 10px; }

.lang-switch {
    gap: 6px;
    margin-right: 2px;
}

    .lang-switch a {
        display: inline-flex;
        padding: 0;
        margin: 0;
        line-height: 0;
        border-radius: 4px;
    }

    .lang-switch img {
        width: 24px;
        height: 16px;
        border: none;
        border-radius: 3px;
        opacity: 0.5;
        transition: opacity .2s ease, box-shadow .2s ease;
    }

    .lang-switch a.active img {
        opacity: 1;
        box-shadow: 0 0 0 2px #fff;     /* clear active-language ring */
    }

    .lang-switch a:hover img { opacity: 0.85; }

.theme-toggle {
    width: 32px;
    height: 28px;
    margin-left: 4px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.15);
}

    .theme-toggle:hover { background: rgba(255, 255, 255, 0.30); }

/* --- Main header: logo chip + name (left), CTA buttons (right) --- */
.college-info { margin-right: auto; }   /* push CTA group to the far right */

.logo img {
    background: #fff;
    border-radius: 10px;
    padding: 5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.header-cta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

    .header-cta a {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        padding: 10px 18px;
        border-radius: 8px;
        font-weight: 600;
        font-size: 14px;
        text-decoration: none;
        white-space: nowrap;
        border: 1.5px solid var(--primary);
        color: var(--primary);
        background: transparent;
        transition: all .2s ease;
    }

        .header-cta a:hover {
            background: var(--primary);
            color: #fff;
        }

        /* the highlighted link (e.g. Apply for Admission) is a filled CTA */
        .header-cta a.highlighted {
            background: var(--primary);
            color: #fff;
            box-shadow: 0 5px 16px color-mix(in srgb, var(--primary) 35%, transparent);
        }

            .header-cta a.highlighted:hover { filter: brightness(0.94); }

/* --- Nav: neutral-white active/hover underline, no box, left-aligned --- */
@media (min-width: 992px) {
    .nav-menu { margin: 0; }    /* align nav start with the logo / container edge */

    .nav-menu > li > a:hover,
    .nav-menu > li > a.active {
        background: transparent; /* single clean indicator = the underline */
    }

    .nav-menu > li > a::before {
        background: #fff;        /* harmonises on any brand-colored bar */
    }
}

/* --- Mobile: stack the CTA full-width under the name --- */
@media (max-width: 768px) {
    .header-flex { flex-wrap: wrap; }
    .college-info { margin-right: 0; }

    .header-cta {
        width: 100%;
        margin-top: 8px;
    }

        .header-cta a {
            flex: 1;
            justify-content: center;
        }
}

/* =====================================================================
   Secondary color — visual role (section accents, calendar widget, badges)
   ===================================================================== */
.section-header h2 {
    position: relative;
    padding-bottom: 14px;
}

    /* decorative accent bar in the SECONDARY brand color under every section title */
    .section-header h2::after {
        content: "";
        position: absolute;
        left: 50%;
        bottom: 0;
        transform: translateX(-50%);
        width: 56px;
        height: 3px;
        border-radius: 3px;
        background: var(--secondary);
    }

/* Calendar widget is colored with SECONDARY (notices stay PRIMARY) so the two
   side-by-side cards read as distinct. */
.calendar-icon {
    background: linear-gradient(135deg, var(--secondary), color-mix(in srgb, var(--secondary) 65%, #000));
}

.academic-calendar-header h3 { color: var(--secondary); }

.view-full {
    color: var(--secondary);
    font-weight: 600;
}

/* Highlight pill uses SECONDARY */
.highlight-badge { background: var(--secondary); }

/* =====================================================================
   Navbar — cleaner nested flyout (flush to the parent, hover-bridged)
   ===================================================================== */
@media (min-width: 992px) {
    /* sit the flyout flush against the parent dropdown's right edge */
    .nav-menu .submenu .submenu { margin-left: 8px; }

    /* transparent bridge so the cursor can cross the parent padding + gap onto
       the flyout without it closing */
    .nav-menu .submenu .has-submenu > .submenu::before {
        content: "";
        position: absolute;
        top: 0;
        bottom: 0;
        left: -16px;
        width: 16px;
        background: transparent;
    }
}

/* =====================================================================
   Mobile friendliness
   ===================================================================== */
@media (max-width: 991px) {
    /* keep a long open menu within the viewport */
    .nav-menu.open {
        max-height: 80vh;
        overflow-y: auto;
    }

    /* the connector pointer + flush flyout are desktop-only concepts */
    .nav-menu > li > .submenu::before { display: none; }
}

@media (max-width: 768px) {
    section { padding: 48px 0; }

    .section-header { margin-bottom: 22px; }
    .section-header h2 { font-size: 24px; }

    /* tighten the identity band on phones */
    .header-flex { padding: 14px 0; gap: 12px; }
    .logo img { height: 54px; }
}

@media (max-width: 576px) {
    section { padding: 38px 0; }

    .section-header h2 { font-size: 22px; }

    /* top utility bar: let contact + controls breathe when stacked */
    .top-bar .top-right { justify-content: center; }
    .top-bar .top-left { justify-content: center; flex-wrap: wrap; }
}

/* =====================================================================
   Mobile navigation — proper "Menu" button + clean dropdown panel
   (overrides the old thin bare-hamburger styling)
   ===================================================================== */

@media (max-width: 991px) {

    /* Give the nav bar a real height and left-align the Menu button.
       flex-wrap lets the menu drop onto its own full-width line below the button. */
    .nav-container {
        justify-content: flex-start;
        flex-wrap: wrap;
        padding-top: 9px;
        padding-bottom: 9px;
    }

    /* Menu button: hamburger <-> X square icon */
    .nav-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 40px;
        padding: 0;
        border: none;
        border-radius: 8px;
        background: rgba(255, 255, 255, 0.16);
        cursor: pointer;
    }

        .nav-toggle:hover { background: rgba(255, 255, 255, 0.26); }

    .nav-toggle-bars {
        display: inline-flex;
        flex-direction: column;
        justify-content: center;
        gap: 4px;
        width: 20px;
        height: 14px;
    }

        .nav-toggle-bars i {
            display: block;
            height: 2px;
            width: 100%;
            background: #fff;
            border-radius: 2px;
            transition: transform .25s ease, opacity .2s ease;
        }

    .nav-toggle-text {
        color: #fff;
        font-weight: 600;
        font-size: 14px;
        letter-spacing: .2px;
    }

    /* Hamburger -> X when open */
    .nav-toggle.open .nav-toggle-bars i:nth-child(1) { transform: translateY(6px) rotate(45deg); }
    .nav-toggle.open .nav-toggle-bars i:nth-child(2) { opacity: 0; }
    .nav-toggle.open .nav-toggle-bars i:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

    /* The dropdown panel lives in NORMAL FLOW (wraps onto its own line below the
       button and pushes the page down) — so no stacking/clipping can ever hide it. */
    .nav-menu {
        display: none;
        position: static;       /* override the earlier absolute rule */
        order: 2;
        flex-basis: 100%;
        width: 100%;
        flex-direction: column;
        gap: 0;
        margin: 9px 0 2px;
        padding: 6px 0;
        background: linear-gradient(180deg, var(--primary), var(--primary-dark));
        border-radius: 10px;
        box-shadow: 0 14px 30px rgba(0, 0, 0, 0.22);
        max-height: 70vh;
        overflow-y: auto;
    }

        .nav-menu.open { display: flex; }

        .nav-menu > li { width: 100%; }

        .nav-menu > li > a {
            padding: 13px 22px;
            color: #fff;
            border-bottom: 1px solid rgba(255, 255, 255, 0.12);
        }

    /* all carets point DOWN (accordion expands downward) and flip up when open */
    .nav-menu .has-submenu > a::after { content: "\25BE"; float: right; transition: transform .2s ease; }
    .nav-menu .has-submenu.open > a::after { transform: rotate(180deg); }
}

/* =====================================================================
   Mobile submenu polish — clear nesting via a left rail + depth shading
   ===================================================================== */
@media (max-width: 991px) {

    /* Each nested panel is inset, gets a left guide rail, and is slightly darker
       than its parent so the hierarchy is obvious. */
    .nav-menu .submenu {
        margin-left: 16px;
        background: rgba(0, 0, 0, 0.10);
        border-left: 3px solid rgba(255, 255, 255, 0.22);
        border-radius: 0;
    }

        .nav-menu .submenu .submenu {
            background: rgba(0, 0, 0, 0.16);   /* deeper level = darker */
            border-left-color: rgba(255, 255, 255, 0.16);
        }

    /* Consistent item styling at every depth */
    .nav-menu .submenu a {
        padding: 11px 18px;
        font-size: 14px;
        color: rgba(255, 255, 255, 0.9);
        background: transparent;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

        .nav-menu .submenu a:hover,
        .nav-menu .submenu a.active {
            background: rgba(255, 255, 255, 0.12);
            color: #fff;
        }

        /* no divider under the last item of a panel */
        .nav-menu .submenu li:last-child > a { border-bottom: none; }

    /* parent rows inside a submenu keep their caret aligned with the text */
    .nav-menu .submenu .has-submenu > a::after { margin-left: 8px; }
}

/* =====================================================================
   "Apply for Admission" CTA — pulsing brand-colored glow
   ===================================================================== */
@keyframes ctaGlow {
    0%, 100% {
        box-shadow: 0 4px 14px color-mix(in srgb, var(--primary) 35%, transparent),
                    0 0 0 0 color-mix(in srgb, var(--primary) 50%, transparent);
    }
    50% {
        box-shadow: 0 6px 18px color-mix(in srgb, var(--primary) 55%, transparent),
                    0 0 22px 5px color-mix(in srgb, var(--primary) 45%, transparent);
    }
}

.header-cta a.highlighted {
    animation: ctaGlow 2.2s ease-in-out infinite;
    transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}

    .header-cta a.highlighted:hover {
        filter: brightness(1.04);
        transform: translateY(-1px);
        animation-play-state: paused;   /* hold a strong glow while hovered */
        box-shadow: 0 8px 24px color-mix(in srgb, var(--primary) 60%, transparent),
                    0 0 28px 7px color-mix(in srgb, var(--primary) 50%, transparent);
    }

/* Respect users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
    .header-cta a.highlighted { animation: none; }
}

/* =====================================================================
   Welcome section — soft branded backdrop + message card (not plain white)
   ===================================================================== */
.welcome-section {
    background:
        radial-gradient(130% 120% at 100% 0%, color-mix(in srgb, var(--primary) 7%, transparent) 0%, transparent 42%),
        radial-gradient(120% 120% at 0% 100%, color-mix(in srgb, var(--secondary) 7%, transparent) 0%, transparent 42%),
        var(--surface-soft);
}

/* With no welcome image, present the message as a centered card with a brand rail */
.welcome-box:not(.with-image) {
    max-width: 920px;
    margin: 0 auto;
    position: relative;
    padding: 38px 42px;
    background: var(--surface);
    border-radius: 18px;
    border-left: 5px solid var(--primary);
    box-shadow: 0 20px 50px var(--shadow);
}

    /* faint decorative quotation watermark */
    .welcome-box:not(.with-image)::before {
        content: "\201C";
        position: absolute;
        top: 6px;
        right: 28px;
        font-family: Georgia, "Times New Roman", serif;
        font-size: 130px;
        line-height: 1;
        color: color-mix(in srgb, var(--primary) 12%, transparent);
        pointer-events: none;
    }

/* accent underline under the welcome heading (secondary color) */
.welcome-box h3 {
    position: relative;
    padding-bottom: 14px;
}

    .welcome-box h3::after {
        content: "";
        position: absolute;
        left: 0;
        bottom: 0;
        width: 56px;
        height: 3px;
        border-radius: 3px;
        background: var(--secondary);
    }

@media (max-width: 576px) {
    .welcome-box:not(.with-image) { padding: 28px 22px; }
    .welcome-box:not(.with-image)::before { font-size: 90px; right: 16px; }
}

/* =====================================================================
   Notices — public list page + detail page (theme-safe, token-driven)
   ===================================================================== */

/* ---- List page ---- */
.notice-list-page { padding: 46px 0 72px; }

/* Toolbar / pill search */
.notice-toolbar {
    display: flex;
    justify-content: flex-start;
    margin: 0 0 32px;
}

/* Tag filter bar */
.notice-tagbar {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin: 0 0 30px;
}

.notice-tagchip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 15px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--surface);
    color: var(--text-main);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

    .notice-tagchip:hover { border-color: var(--primary); }

.notice-tagdot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    flex-shrink: 0;
}

/* "All" chip selected → solid primary. Coloured chips get their tint from an
   inline style set on the server. */
.notice-tagchip--all.is-active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

/* Active / Archived tab strip on the notices list (segmented pill control) */
.notice-tabs {
    display: inline-flex;
    gap: 6px;
    margin: 0 0 22px;
    padding: 4px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--surface);
}

.notice-tab {
    padding: 7px 18px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    color: var(--text-muted);
    transition: background 0.15s ease, color 0.15s ease;
}

    .notice-tab:hover { color: var(--text-main); }

    .notice-tab.is-active {
        background: var(--primary);
        color: #fff;
    }

.notice-search {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    max-width: 560px;
    padding: 5px 5px 5px 18px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--surface);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

    .notice-search:focus-within {
        border-color: var(--primary);
        box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 14%, transparent);
    }

    .notice-search > i {
        color: var(--text-muted);
        font-size: 17px;
    }

    .notice-search input {
        flex: 1 1 auto;
        min-width: 0;
        border: none;
        outline: none;
        background: transparent;
        color: var(--text-main);
        font-size: 15px;
        padding: 9px 0;
    }

    .notice-search input::placeholder { color: var(--text-muted); }

    .notice-search button {
        flex-shrink: 0;
        width: 40px;
        height: 40px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border: none;
        border-radius: 50%;
        background: var(--primary);
        color: #fff;
        font-size: 16px;
        cursor: pointer;
        transition: background 0.15s ease, transform 0.15s ease;
    }

    .notice-search button:hover {
        background: var(--primary-dark, var(--primary));
        transform: scale(1.06);
    }

/* Notice cards */
.notice-list {
    list-style: none;
    margin: 0;
    padding: 0;
    max-width: 860px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.notice-card { margin: 0; }

.notice-card-link {
    position: relative;
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 18px 22px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--surface);
    text-decoration: none;
    overflow: hidden;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

    /* accent bar that grows in on hover */
    .notice-card-link::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 4px;
        height: 100%;
        background: var(--primary);
        transform: scaleY(0);
        transform-origin: top;
        transition: transform 0.18s ease;
    }

    .notice-card-link:hover {
        border-color: var(--primary);
        box-shadow: 0 10px 26px rgba(0, 0, 0, 0.08);
        transform: translateY(-2px);
    }

    .notice-card-link:hover::before { transform: scaleY(1); }

/* Left block — image thumbnail or BS date tile (same footprint, so titles align) */
.notice-card-thumb {
    flex-shrink: 0;
    width: 96px;
    height: 84px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border);
    background: var(--surface-soft);
}

    .notice-card-thumb img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

.notice-date-tile {
    flex-shrink: 0;
    width: 96px;
    height: 84px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    border: 1px solid color-mix(in srgb, var(--primary) 18%, transparent);
    background: linear-gradient(160deg,
        color-mix(in srgb, var(--primary) 15%, var(--surface)),
        color-mix(in srgb, var(--primary) 6%, var(--surface)));
}

.ndt-day {
    font-size: 24px;
    font-weight: 700;
    line-height: 1;
    color: var(--primary);
}

.ndt-month {
    margin-top: 3px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: var(--text-muted);
}

/* Body */
.notice-card-body {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
}

.notice-card-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--heading);
    line-height: 1.4;
    transition: color 0.15s ease;
}

.notice-card-link:hover .notice-card-title { color: var(--primary); }

.notice-card-snippet {
    font-size: 13.5px;
    line-height: 1.55;
    color: var(--text-muted);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

    .notice-card-snippet:empty { display: none; }

.notice-card-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 10px;
    font-size: 12.5px;
    color: var(--text-muted);
}

.notice-card-date {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

    .notice-card-date i { color: var(--primary); }

.notice-card-tags {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 6px;
}

    .notice-card-tags:empty { display: none; }

/* Go arrow */
.notice-card-go {
    flex-shrink: 0;
    align-self: center;
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--surface-soft);
    color: var(--text-muted);
    font-size: 15px;
    transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

    .notice-card-link:hover .notice-card-go {
        background: var(--primary);
        color: #fff;
        transform: translateX(3px);
    }

/* Empty-state action button (e.g. "View all notices" after an empty search) */
.notice-empty-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-top: 18px;
    padding: 10px 22px;
    border-radius: 999px;
    background: var(--primary);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.15s ease, transform 0.15s ease;
}

    .notice-empty-btn:hover {
        background: var(--primary-dark, var(--primary));
        transform: translateY(-1px);
    }

/* ---- Pager ---- */
.notice-pager {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-top: 36px;
}

.notice-pager-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--surface);
    color: var(--primary);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.15s ease, color 0.15s ease;
}

    .notice-pager-btn:hover {
        background: var(--primary);
        color: #fff;
        border-color: var(--primary);
    }

    .notice-pager-btn.disabled {
        opacity: 0.4;
        pointer-events: none;
        color: var(--text-muted);
    }

.notice-pager-page {
    font-size: 14px;
    color: var(--text-muted);
}

/* ---- Detail / article page ---- */
.notice-detail-page { padding: 50px 0 72px; }

.notice-article {
    max-width: 880px;
    margin: 0 auto;
    padding: 30px 34px 26px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: var(--surface);
}

.notice-article-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 18px;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--border);
}

.notice-article-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.notice-article-date {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
}

.notice-tag {
    display: inline-flex;
    align-items: center;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 11px;
    border: 1px solid;
    border-radius: 999px;
}

.notice-article-body {
    font-size: 16px;
    line-height: 1.85;
    color: var(--text-main);
    word-wrap: break-word;
}

.notice-no-body {
    color: var(--text-muted);
    font-style: italic;
}

/* Attachments — uniform gallery cards */
.notice-attachments {
    margin-top: 32px;
    padding-top: 26px;
    border-top: 1px solid var(--border);
}

.notice-attachments-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 700;
    color: var(--heading);
    margin: 0 0 18px;
}

.notice-attachment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 16px;
}

.notice-att {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    background: var(--surface);
    text-decoration: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

    .notice-att:hover {
        border-color: var(--primary);
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
        transform: translateY(-2px);
    }

.notice-att-thumb {
    position: relative;
    height: 122px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--surface-soft);
    overflow: hidden;
}

    .notice-att-thumb img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .notice-att-thumb--file > i {
        font-size: 42px;
        color: var(--primary);
    }

.notice-att-zoom {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.38);
    color: #fff;
    font-size: 22px;
    opacity: 0;
    transition: opacity 0.15s ease;
}

    .notice-att:hover .notice-att-zoom { opacity: 1; }

.notice-att-label {
    padding: 9px 12px;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--text-main);
    text-align: center;
}

/* Footer actions — back + share */
.notice-article-foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 30px;
    padding-top: 22px;
    border-top: 1px solid var(--border);
}

.notice-back-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
    font-size: 15px;
}

    .notice-back-link:hover { text-decoration: underline; }

.notice-share {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.notice-share-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
}

.notice-share-btn {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    border-radius: 50%;
    background: var(--surface);
    color: var(--text-muted);
    font-size: 16px;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

    .notice-share-btn:hover {
        color: #fff;
        transform: translateY(-2px);
    }

    .notice-share-btn.fb:hover { background: #1877f2; border-color: #1877f2; }
    .notice-share-btn.wa:hover { background: #25d366; border-color: #25d366; }
    .notice-share-btn.copy:hover { background: var(--primary); border-color: var(--primary); }

/* ---- Responsive ---- */
@media (max-width: 576px) {
    .notice-card-link { padding: 14px 16px; gap: 14px; }
    .notice-date-tile { width: 54px; }
    .ndt-day { font-size: 21px; }
    .notice-article { padding: 22px 18px; }
    .notice-article-head { flex-direction: column; }
    .notice-attachment-grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
}

/* =========================================================
   GENERIC CMS PAGE  —  "PC" DESIGN SYSTEM   (Sites/Page.aspx)
   Self-contained component set for the dynamic block renderer.
   Fully theme-aware via the semantic tokens at the top of this
   file. Used ONLY by Page.aspx — legacy .about-* block styles
   are no longer referenced here.
   ========================================================= */

.pc-page {
    background: var(--surface);
    color: var(--text-main);
}

/* ---- Section bands ---------------------------------------
   Each block is a full-width band; alternating tone (set
   server-side per block index) gives the page its rhythm and
   turns vertical space into intentional, designed separation. */
.pc-block,
.pc-section {
    padding: clamp(44px, 5vw, 68px) 0;
}

.pc-block.pc-tone-a,
.pc-section {
    background: var(--surface);
}

.pc-block.pc-tone-b {
    background:
        radial-gradient(85% 130% at 100% 0, color-mix(in srgb, var(--primary) 6%, transparent), transparent 58%),
        var(--surface-soft);
}

/* tighten the seam with the breadcrumb hero + the page foot */
.pc-page > .pc-block:first-child,
.pc-page > .pc-section:first-child { padding-top: clamp(34px, 4vw, 52px); }
.pc-page > .pc-block:last-child { padding-bottom: clamp(52px, 6vw, 84px); }

/* ---- Section heading ------------------------------------- */
.pc-head { margin: 0 0 22px; }

    .pc-head h2 {
        position: relative;
        margin: 0;
        padding-bottom: 14px;
        font-family: 'Poppins', sans-serif;
        font-size: clamp(22px, 2.3vw, 30px);
        font-weight: 700;
        line-height: 1.25;
        color: var(--heading);
    }

        .pc-head h2::after {
            content: "";
            position: absolute;
            left: 0;
            bottom: 0;
            width: 54px;
            height: 3px;
            border-radius: 3px;
            background: linear-gradient(90deg, var(--primary), color-mix(in srgb, var(--primary) 25%, transparent));
        }

.pc-head--center { text-align: center; }
    .pc-head--center h2::after { left: 50%; transform: translateX(-50%); }

/* =========================================================
   RICH TEXT  (every CMS HTML body)
   ========================================================= */
.pc-page .rte-content {
    font-size: 16px;
    line-height: 1.85;
    color: var(--text-main);
}

    .pc-page .rte-content > *:first-child { margin-top: 0; }
    .pc-page .rte-content > *:last-child { margin-bottom: 0; }
    .pc-page .rte-content p { margin: 0 0 18px; }

    .pc-page .rte-content h1,
    .pc-page .rte-content h2,
    .pc-page .rte-content h3,
    .pc-page .rte-content h4 {
        font-family: 'Poppins', sans-serif;
        color: var(--heading);
        font-weight: 700;
        line-height: 1.3;
        margin: 30px 0 14px;
    }

    .pc-page .rte-content h3 { font-size: 20px; }
    .pc-page .rte-content h4 { font-size: 17px; }

    .pc-page .rte-content a {
        color: var(--primary);
        text-decoration: none;
        border-bottom: 1px solid color-mix(in srgb, var(--primary) 40%, transparent);
        transition: color .2s ease, border-color .2s ease;
    }

        .pc-page .rte-content a:hover {
            color: var(--primary-dark);
            border-bottom-color: var(--primary);
        }

    .pc-page .rte-content ul,
    .pc-page .rte-content ol { margin: 0 0 18px; padding-left: 4px; }

    .pc-page .rte-content li {
        list-style: none;
        position: relative;
        padding-left: 28px;
        margin-bottom: 10px;
    }

    .pc-page .rte-content ul li::before {
        content: "";
        position: absolute;
        left: 4px;
        top: 11px;
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: var(--primary);
        box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 14%, transparent);
    }

    .pc-page .rte-content ol { counter-reset: rte-li; }
    .pc-page .rte-content ol li { counter-increment: rte-li; }

    .pc-page .rte-content ol li::before {
        content: counter(rte-li);
        position: absolute;
        left: 0;
        top: 1px;
        width: 22px;
        height: 22px;
        display: grid;
        place-items: center;
        font-size: 12px;
        font-weight: 700;
        color: #fff;
        background: var(--primary);
        border-radius: 50%;
    }

    .pc-page .rte-content blockquote {
        margin: 0 0 22px;
        padding: 16px 22px;
        border-left: 4px solid var(--primary);
        background: color-mix(in srgb, var(--primary) 6%, var(--surface-soft));
        border-radius: 0 12px 12px 0;
        color: var(--text-main);
        font-style: italic;
    }

    .pc-page .rte-content img {
        max-width: 100%;
        height: auto;
        border-radius: 12px;
    }

    .pc-page .rte-content hr {
        border: 0;
        height: 1px;
        background: var(--border);
        margin: 28px 0;
    }

    .pc-page .rte-content code {
        background: var(--surface-neutral);
        padding: 2px 6px;
        border-radius: 6px;
        font-size: .9em;
    }

    /* inline tables inside ordinary rich text (not the Table block) */
    .pc-page .rte-content table {
        width: 100%;
        border-collapse: collapse;
        margin: 0 0 18px;
        font-size: 15px;
    }

        .pc-page .rte-content th,
        .pc-page .rte-content td {
            border: 1px solid var(--border);
            padding: 10px 12px;
            text-align: left;
            vertical-align: top;
        }

/* =========================================================
   BLOCK: Text (type 1)
   ========================================================= */
.pc-prose {
    max-width: 820px;
    margin: 0 auto;
}

/* =========================================================
   FIGURE  (shared image frame)
   ========================================================= */
.pc-figure { margin: 0; }

.pc-figure__media {
    display: block;
    overflow: hidden;
    border-radius: 16px;
    border: 1px solid var(--border);
    box-shadow: 0 18px 44px var(--shadow);
    background: var(--surface-soft);
}

    .pc-figure__media img {
        display: block;
        width: 100%;
        height: 100%;
        transition: transform .6s cubic-bezier(.2, .6, .2, 1);
    }

.pc-figure:hover .pc-figure__media img { transform: scale(1.04); }

.pc-figure figcaption {
    margin-top: 12px;
    text-align: center;
    font-size: 13.5px;
    color: var(--text-muted);
}

/* =========================================================
   BLOCK: Image only (type 2)
   ========================================================= */
.pc-block--t2 .pc-figure { max-width: 960px; }
.pc-block--t2 .pc-figure.is-center { margin-left: auto; margin-right: auto; }
.pc-block--t2 .pc-figure.is-right { margin-left: auto; }
.pc-block--t2 .pc-figure.is-left { margin-right: auto; }

.pc-block--t2 .pc-figure__media img {
    max-height: 540px;
    object-fit: cover;
}

/* =========================================================
   BLOCK: Text + Image (type 3)
   ========================================================= */
.pc-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(28px, 4vw, 56px);
    align-items: center;
    max-width: 1140px;
    margin: 0 auto;
}

    .pc-split.is-reverse .pc-split__media { order: 2; }

    .pc-split .pc-figure__media { aspect-ratio: 4 / 3; }
    .pc-split .pc-figure__media img { object-fit: cover; }

@media (max-width: 860px) {
    .pc-split { grid-template-columns: 1fr; gap: 26px; }
    .pc-split.is-reverse .pc-split__media { order: 0; }
}

/* =========================================================
   BLOCK: Full image banner (type 4)
   ========================================================= */
.pc-banner {
    margin: 0;
    overflow: hidden;
    border-radius: 18px;
    border: 1px solid var(--border);
    box-shadow: 0 22px 55px var(--shadow);
}

    .pc-banner img {
        display: block;
        width: 100%;
        max-height: 470px;
        object-fit: cover;
        transition: transform .8s cubic-bezier(.2, .6, .2, 1);
    }

.pc-banner:hover img { transform: scale(1.03); }

/* =========================================================
   BLOCK: Video (type 5)
   ========================================================= */
.pc-video {
    max-width: 980px;
    margin: 0 auto;
}

.pc-video__frame {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 16px;
    border: 1px solid var(--border);
    background: #000;
    box-shadow: 0 22px 55px var(--shadow);
}

    .pc-video__frame iframe {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        border: 0;
    }

/* =========================================================
   BLOCK: Table (type 6)
   ========================================================= */
.pc-tablewrap {
    max-width: 1040px;
    margin: 0 auto;
}

.pc-table {
    overflow-x: auto;
    border-radius: 16px;
    border: 1px solid var(--border);
    box-shadow: 0 14px 36px var(--shadow);
    background: var(--surface);
}

    .pc-table table {
        width: 100%;
        border-collapse: collapse;
        margin: 0;
        font-size: 15px;
    }

    .pc-table thead th {
        padding: 14px 18px;
        font-family: 'Poppins', sans-serif;
        font-size: 14px;
        font-weight: 600;
        letter-spacing: .02em;
        text-align: left;
        color: #fff;
        background: linear-gradient(135deg, var(--primary), var(--primary-dark));
        white-space: nowrap;
    }

    .pc-table td {
        padding: 13px 18px;
        border-top: 1px solid var(--border);
        color: var(--text-main);
        vertical-align: top;
    }

    .pc-table tbody tr:nth-child(even) {
        background: color-mix(in srgb, var(--primary) 4%, transparent);
    }

    .pc-table tbody tr:hover {
        background: color-mix(in srgb, var(--primary) 8%, transparent);
    }

/* =========================================================
   BLOCK: FAQ accordion (type 7) — native <details>/<summary>
   ========================================================= */
.pc-faq { max-width: 880px; margin: 0 auto; }

.pc-faq__item {
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--surface);
    margin-bottom: 14px;
    overflow: hidden;
    transition: border-color .2s ease, box-shadow .2s ease;
}

    .pc-faq__item[open] {
        border-color: color-mix(in srgb, var(--primary) 40%, var(--border));
        box-shadow: 0 12px 30px color-mix(in srgb, var(--primary) 10%, transparent);
    }

    .pc-faq__item > summary {
        list-style: none;
        cursor: pointer;
        display: flex;
        align-items: center;
        gap: 14px;
        padding: 18px 22px;
        font-family: 'Poppins', sans-serif;
        font-size: 16px;
        font-weight: 600;
        color: var(--heading);
        transition: background .2s ease;
    }

        /* hide the native disclosure triangle (incl. Safari/WebKit) */
        .pc-faq__item > summary::-webkit-details-marker { display: none; }

        /* plain "+" glyph (no icon-font dependency); rotates to "x" when open */
        .pc-faq__item > summary::after {
            content: "+";
            margin-left: auto;
            flex: none;
            font-size: 26px;
            font-weight: 300;
            line-height: 1;
            color: var(--primary);
            transition: transform .25s ease;
        }

    .pc-faq__item[open] > summary::after {
        transform: rotate(45deg);
    }

    .pc-faq__item > summary:hover {
        background: color-mix(in srgb, var(--primary) 5%, transparent);
    }

    .pc-faq__a {
        padding: 0 22px 20px;
        font-size: 15.5px;
        line-height: 1.8;
        color: var(--text-main);
    }

        .pc-faq__a > *:first-child { margin-top: 0; }
        .pc-faq__a > *:last-child { margin-bottom: 0; }
        .pc-faq__a p { margin: 0 0 12px; }

        .pc-faq__a a {
            color: var(--primary);
            text-decoration: none;
            border-bottom: 1px solid color-mix(in srgb, var(--primary) 40%, transparent);
        }

            .pc-faq__a a:hover { border-bottom-color: var(--primary); }

        .pc-faq__a ul,
        .pc-faq__a ol { margin: 0 0 12px; padding-left: 22px; }

/* =========================================================
   ACADEMIC PROGRAM TEMPLATE (PageTemplate = 2)
   ========================================================= */
.pc-program__intro { max-width: 860px; margin: 0 0 36px; }

.pc-program__title {
    position: relative;
    font-family: 'Poppins', sans-serif;
    font-size: clamp(26px, 3vw, 36px);
    font-weight: 800;
    line-height: 1.2;
    color: var(--heading);
    margin: 0 0 16px;
    padding-bottom: 16px;
}

    .pc-program__title::after {
        content: "";
        position: absolute;
        left: 0;
        bottom: 0;
        width: 72px;
        height: 4px;
        border-radius: 4px;
        background: linear-gradient(90deg, var(--primary), color-mix(in srgb, var(--primary) 25%, transparent));
    }

.pc-program__summary {
    font-size: 18px;
    line-height: 1.8;
    color: var(--text-muted);
}

/* fact cards */
.pc-facts { margin: 0 0 36px; }

.facts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 16px;
}

.facts-grid .fact {
    position: relative;
    overflow: hidden;
    padding: 18px 20px 18px 24px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: 0 8px 22px color-mix(in srgb, var(--primary) 6%, transparent);
}

    .facts-grid .fact::before {
        content: "";
        position: absolute;
        left: 0;
        top: 0;
        bottom: 0;
        width: 4px;
        background: linear-gradient(180deg, var(--primary), var(--primary-dark));
    }

.facts-grid .fact-label {
    display: block;
    margin-bottom: 6px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--text-muted);
}

.facts-grid .fact-value {
    display: block;
    font-size: 20px;
    font-weight: 700;
    color: var(--heading);
}

/* eligibility / career cards */
.pc-program__cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
    margin-bottom: 8px;
}

.pc-card {
    padding: 28px 30px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 18px;
    box-shadow: 0 10px 30px var(--shadow);
}

.pc-card__title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 16px;
    font-family: 'Poppins', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: var(--heading);
}

    .pc-card__title i {
        display: grid;
        place-items: center;
        width: 38px;
        height: 38px;
        flex: none;
        font-size: 18px;
        color: var(--primary);
        background: color-mix(in srgb, var(--primary) 12%, var(--surface));
        border-radius: 10px;
    }

/* download buttons */
.pc-downloads {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 32px;
}

.btn-download {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 13px 22px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    color: #fff;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    box-shadow: 0 10px 24px color-mix(in srgb, var(--primary) 30%, transparent);
    transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}

    .btn-download i { font-size: 18px; }

    .btn-download:hover {
        color: #fff;
        transform: translateY(-3px);
        filter: brightness(1.06);
        box-shadow: 0 16px 34px color-mix(in srgb, var(--primary) 38%, transparent);
    }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 576px) {
    .pc-block, .pc-section { padding: 36px 0; }
    .pc-program__summary { font-size: 16px; }
    .pc-card { padding: 22px 20px; }
    .pc-card__title { font-size: 18px; }
}

/* =====================================================================
   Website account — header login / logout link + protected-page login
   (reuses EMIS credentials; theme-aware)
   ===================================================================== */

.top-auth {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-left: 14px;
}

.top-auth .top-user {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    opacity: 0.95;
    max-width: 160px;
}

.top-auth .top-user-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.top-auth .top-auth-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-left: 0;
}

@media (max-width: 768px) {
    .top-auth { margin-left: 0; }
    .top-auth .top-user { max-width: 120px; }
}

/* Login page — error + access-denied states */
.login-error {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 16px;
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 14px;
    background: rgba(220, 38, 38, 0.10);
    color: #dc2626;
    border: 1px solid rgba(220, 38, 38, 0.30);
}

[data-theme="dark"] .login-error {
    background: rgba(248, 113, 113, 0.12);
    color: #f87171;
    border-color: rgba(248, 113, 113, 0.35);
}

.login-error i { margin-top: 2px; }

/* When the actions row carries more than one button (e.g. denied state) */
.login-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.btn-login.btn-login-outline {
    background: transparent;
    color: var(--text-main);
    border: 1px solid var(--border);
    text-decoration: none;
    text-align: center;
}

.btn-login.btn-login-outline:hover {
    background: var(--surface-soft);
    transform: translateY(-1px);
}

/* The denied state uses anchor "buttons" — keep them looking like buttons */
.login-actions a.btn-login {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-decoration: none;
}

/* Password field with show/hide toggle */
.pwd-wrap {
    position: relative;
}

.pwd-wrap .form-control {
    width: 100%;
    padding-right: 42px; /* room for the eye button */
}

.pwd-toggle {
    position: absolute;
    top: 50%;
    right: 6px;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    color: var(--text-muted);
    padding: 0;
}

.pwd-toggle:hover {
    color: var(--text-main);
    background: var(--surface-soft);
}

/* ============================================================
   Downloads / Publications page (ws.Menus.PageTemplate = 3)
   Full-width list + live search + per-file download count.
   ============================================================ */
.dl-section .dl-list { margin-top: 1.25rem; }

/* search toolbar */
.dl-toolbar {
    margin: 0 0 1.5rem;
}
.dl-search {
    position: relative;
    max-width: 480px;
}
.dl-search .bi {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
    font-size: 1rem;
}
.dl-search input {
    width: 100%;
    padding: 12px 16px 12px 44px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--surface);
    color: var(--text-main);
    font-size: .95rem;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.dl-search input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.12);
}

/* category sections */
.dl-cat {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--heading);
    margin: 1.75rem 0 .85rem;
    padding-bottom: .4rem;
    border-bottom: 2px solid var(--border);
}
.dl-cat-block:first-child .dl-cat { margin-top: 0; }

/* full-width stacked list */
.dl-group {
    display: flex;
    flex-direction: column;
    gap: .75rem;
}

.dl-item {
    display: flex;
    align-items: center;
    gap: 1.1rem;
    width: 100%;
    padding: 1rem 1.25rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    text-decoration: none;
    color: var(--text-main);
    transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.dl-item:hover {
    border-color: var(--primary);
    box-shadow: 0 8px 22px var(--shadow);
    transform: translateY(-2px);
}

.dl-icon {
    flex: 0 0 auto;
    width: 52px;
    height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: var(--surface-soft);
    color: var(--primary);
    font-size: 1.6rem;
}

.dl-body {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: .2rem;
}
.dl-title {
    font-weight: 600;
    font-size: 1.02rem;
    color: var(--dark);
    overflow-wrap: anywhere;
}
.dl-desc {
    font-size: .9rem;
    color: var(--text-muted);
    overflow-wrap: anywhere;
}
.dl-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .4rem;
    font-size: .8rem;
    color: var(--text-muted);
    margin-top: .15rem;
}
.dl-tag {
    font-weight: 700;
    letter-spacing: .03em;
    color: var(--primary);
}
.dl-dot { opacity: .5; }
.dl-count { display: inline-flex; align-items: center; gap: .3rem; }

/* download button on the right */
.dl-action {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .55rem 1.1rem;
    border-radius: 999px;
    background: var(--primary);
    color: #fff;
    font-size: .9rem;
    font-weight: 600;
    white-space: nowrap;
    transition: filter .15s ease;
}
.dl-item:hover .dl-action { filter: brightness(1.08); }

/* empty search result */
.dl-noresults {
    padding: 1.5rem;
    text-align: center;
    color: var(--text-muted);
    border: 1px dashed var(--border);
    border-radius: 12px;
}

@media (max-width: 600px) {
    .dl-item { flex-wrap: wrap; }
    .dl-action {
        order: 3;
        width: 100%;
        justify-content: center;
        margin-top: .25rem;
    }
}


/* ===================================================================
   TEAM / PROFILE DIRECTORY  (ws.Menus.PageTemplate = 4)
   People cards for department + committee pages. Themed via site tokens.
   =================================================================== */
.team-section { padding: 48px 0 64px; }
.team-intro {
    max-width: 760px;
    margin: 0 auto 32px;
    text-align: center;
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.6;
}
.team-role-band {
    margin: 36px 0 18px;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--heading);
    display: flex;
    align-items: center;
    gap: 12px;
}
.team-role-band::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--border);
}
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 22px;
}
.team-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 26px 20px 22px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: 0 2px 10px var(--shadow);
    transition: transform .18s ease, box-shadow .18s ease;
}
.team-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 26px var(--shadow);
}
.team-card__photo {
    width: 104px;
    height: 104px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 16px;
    border: 3px solid var(--bg-soft);
    box-shadow: 0 0 0 1px var(--border);
    background: var(--bg-soft);
    display: flex;
    align-items: center;
    justify-content: center;
}
.team-card__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.team-card__initials {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 1px;
}
.team-card__name {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 3px;
}
.team-card__title {
    font-size: .88rem;
    color: var(--text-muted);
    margin-bottom: 10px;
}
.team-card__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
    margin-bottom: 10px;
}
.team-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: 999px;
    background: var(--bg-soft);
    border: 1px solid var(--border);
    color: var(--text-main);
    font-size: .74rem;
}
.team-card__contact {
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 100%;
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px dashed var(--border);
}
.team-contact {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    justify-content: center;
    font-size: .82rem;
    color: var(--primary);
    text-decoration: none;
    word-break: break-word;
}
.team-contact:hover { text-decoration: underline; }

@media (max-width: 480px) {
    .team-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
    .team-card { padding: 20px 12px 16px; }
    .team-card__photo { width: 84px; height: 84px; }
}

/* =========================================================================
   Exam / Entrance Results (public) — listing + check + result card
   ========================================================================= */
.exr-list-page,
.exr-check-page { padding: 48px 0 64px; }

.exr-intro { color: var(--text-muted); max-width: 720px; margin: 0 0 24px; }

.exr-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 18px;
}

.exr-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 20px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--surface);
    text-decoration: none;
    color: var(--text-main);
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.exr-card:hover {
    transform: translateY(-2px);
    border-color: var(--primary);
    box-shadow: 0 10px 24px color-mix(in srgb, var(--primary) 14%, transparent);
}
.exr-card-icon {
    flex: 0 0 auto;
    width: 46px; height: 46px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 10px;
    background: color-mix(in srgb, var(--primary) 12%, transparent);
    color: var(--primary);
    font-size: 22px;
}
.exr-card-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.exr-card-title { font-weight: 600; color: var(--heading); }
.exr-card-meta { font-size: 13px; color: var(--text-muted); }
.exr-card-count { font-size: 12px; color: var(--text-muted); }
.exr-card-cta {
    flex: 0 0 auto;
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 13px; font-weight: 600; color: var(--primary);
}

/* ---- check form ---- */
.exr-check-card {
    max-width: 520px;
    margin: 0 auto 28px;
    padding: 26px 26px 30px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--surface);
}
.exr-check-meta { color: var(--text-muted); font-size: 14px; margin-bottom: 16px; }
.exr-field { margin-bottom: 16px; }
.exr-label { display: block; font-weight: 600; margin-bottom: 6px; color: var(--heading); }
.exr-input {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--body-bg);
    color: var(--text-main);
    font-size: 15px;
}
.exr-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 18%, transparent);
}
.exr-hint { display: block; margin-top: 5px; color: var(--text-muted); font-size: 12px; }
.exr-btn-check {
    width: 100%;
    padding: 12px 18px;
    border: none;
    border-radius: 8px;
    background: var(--primary);
    color: #fff;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: filter .15s ease;
}
.exr-btn-check:hover { filter: brightness(0.94); }
.exr-form-msg {
    margin-bottom: 14px;
    padding: 10px 12px;
    border-radius: 8px;
    background: color-mix(in srgb, #f59e0b 16%, transparent);
    color: #92400e;
    font-size: 14px;
}
[data-theme="dark"] .exr-form-msg { color: #fcd34d; }

/* ---- result card ---- */
.exr-result { max-width: 640px; margin: 0 auto; }
.exr-result-card {
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--surface);
    padding: 26px;
}
.exr-result-head { text-align: center; margin-bottom: 18px; }
.exr-result-name { font-size: 22px; font-weight: 700; color: var(--heading); }
.exr-result-ids { font-size: 14px; color: var(--text-muted); margin-top: 4px; }
.exr-result-exam { font-size: 13px; color: var(--text-muted); margin-top: 2px; }

.exr-status {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    font-size: 18px; font-weight: 700;
    padding: 12px; border-radius: 10px; margin: 6px 0 12px;
}
.exr-status--pass { background: color-mix(in srgb, #16a34a 14%, transparent); color: #15803d; }
.exr-status--fail { background: color-mix(in srgb, #dc2626 14%, transparent); color: #b91c1c; }
.exr-status--withheld { background: color-mix(in srgb, #f59e0b 16%, transparent); color: #b45309; }
[data-theme="dark"] .exr-status--pass { color: #4ade80; }
[data-theme="dark"] .exr-status--fail { color: #f87171; }
[data-theme="dark"] .exr-status--withheld { color: #fbbf24; }

.exr-status-msg { text-align: center; color: var(--text-main); margin: 0 0 16px; }

.exr-gpa {
    display: flex; align-items: center; justify-content: center; gap: 10px;
    margin: 0 auto 16px; padding: 14px 22px;
    border: 1px dashed var(--border); border-radius: 10px; width: fit-content;
}
.exr-gpa-label { color: var(--text-muted); font-weight: 600; }
.exr-gpa-value { font-size: 26px; font-weight: 800; color: var(--primary); }

.exr-table-wrap { overflow-x: auto; }
.exr-subjects { width: 100%; border-collapse: collapse; font-size: 14px; }
.exr-subjects th, .exr-subjects td {
    padding: 9px 12px; border: 1px solid var(--border); text-align: center;
}
.exr-subjects thead th { background: var(--surface-soft, var(--surface-neutral)); color: var(--heading); }
.exr-subjects .exr-subj-name { text-align: left; }

.exr-remarks { margin-top: 14px; font-size: 14px; color: var(--text-muted); }
.exr-remarks span { font-weight: 600; color: var(--text-main); }

.exr-print-bar { text-align: center; margin-top: 18px; }
.exr-btn-print {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 9px 18px; border: 1px solid var(--border); border-radius: 8px;
    background: transparent; color: var(--text-main); cursor: pointer; font-size: 14px;
}
.exr-btn-print:hover { border-color: var(--primary); color: var(--primary); }

/* ---- not found ---- */
.exr-notfound {
    max-width: 520px; margin: 0 auto; text-align: center;
    padding: 36px 24px; color: var(--text-muted);
}
.exr-notfound > .bi { font-size: 42px; color: var(--text-muted); }
.exr-notfound-title { font-size: 18px; font-weight: 700; color: var(--heading); margin-top: 12px; }
.exr-notfound-text { margin-top: 6px; }

@media (max-width: 480px) {
    .exr-check-card { padding: 20px 16px 24px; }
    .exr-result-card { padding: 20px 16px; }
}

/* ---- print: show only the result ---- */
@media print {
    body * { visibility: hidden !important; }
    .exr-result, .exr-result * { visibility: visible !important; }
    .exr-result { position: absolute; left: 0; top: 0; width: 100%; margin: 0; }
    .exr-no-print, .exr-print-bar { display: none !important; }
    .exr-result-card { border: none; }
}
