/**
 * Govt. Graduate College Burewala - Main Stylesheet
 * Modern 2026 Academic Design System
 */

/* ========================================
   CSS Variables
   ======================================== */
:root {
    --color-primary: #1a365d;
    --color-primary-dark: #0f2440;
    --color-primary-light: #2c5282;
    --color-accent: #c9a227;
    --color-accent-hover: #b8922a;
    --color-secondary: #38a169;
    --color-text: #2d3748;
    --color-text-light: #718096;
    --color-text-muted: #a0aec0;
    --color-bg: #ffffff;
    --color-bg-light: #f7fafc;
    --color-bg-dark: #edf2f7;
    --color-border: #e2e8f0;
    --color-white: #ffffff;
    --color-danger: #e53e3e;
    --color-success: #38a169;

    --font-primary: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-size-base: 1rem;
    --line-height-base: 1.7;

    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
    --spacing-3xl: 4rem;

    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-full: 9999px;

    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 20px 50px rgba(0, 0, 0, 0.15);

    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;

    --header-height: 80px;
}

/* ========================================
   Base & Reset
   ======================================== */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    font-size: var(--font-size-base);
    line-height: var(--line-height-base);
    color: var(--color-text);
    background-color: var(--color-bg);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    transition: background-color var(--transition-base), color var(--transition-base);
    text-align: justify;
    text-justify: inter-word;
    hyphens: auto;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--color-accent);
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    color: var(--color-primary-dark);
    text-align: left;
}

/* UI elements — keep readable alignment (body text elsewhere is justified) */
label, legend, caption,
button, .btn, .badge,
input, select, textarea,
.nav-link, .navbar-brand, .navbar-nav,
.dropdown-item, .dropdown-menu-label,
.top-bar, .top-bar a,
.section-header, .section-header *,
.page-header, .page-header *,
.hero-content, .hero-content *,
.site-footer .footer-heading,
.site-footer .footer-title,
.site-footer .footer-brand,
.site-footer .footer-tagline,
.site-footer .footer-bottom,
.site-footer .footer-bottom p,
.card-title, .card-date,
.event-card__badges, .event-card__location,
.testimonial-author, .testimonial-stars,
.video-testimonial-meta, .event-detail__meta,
.notice-date-box, .notice-badge,
.stats-section, .stats-strip, .stats-strip *,
.stat-item, .stat-item *,
table, thead, tbody, tr, th, td,
.accordion-button,
.breadcrumb-nav, .breadcrumb-nav *,
.pagination, .page-link,
.theme-switcher, .theme-switcher-btn,
.admin-sidebar, .admin-sidebar *, .admin-topbar, .admin-topbar *,
.admin-main table,
.btn-group, .events-filter-bar, .events-filter-bar *, .events-filter-chip,
.text-center, .text-md-end, .text-end, .text-start,
.alert, .form-label, .form-check-label,
.promo-popup, .promo-popup *,
.gallery-lightbox, .video-testimonial-modal,
.scroll-top-btn, .home-intro__title, .home-intro__actions,
.page-jump-bar, .page-gallery-cta {
    hyphens: manual;
}

.section-header,
.section-header *,
.page-header,
.page-header *,
.top-bar,
.hero-content,
.stats-strip,
.stat-item,
.site-footer .footer-brand,
.text-center {
    text-align: center;
}

.btn, .badge, .pagination, .theme-switcher,
.stats-strip__value, .notice-date-box,
.scroll-top-btn, .home-intro__actions,
.btn-group, .events-filter-bar {
    text-align: center;
}

.nav-link, .navbar-brand, .dropdown-item,
.card-title, .form-label,
table, th, td,
.breadcrumb-nav,
.admin-sidebar, .admin-topbar {
    text-align: left;
}

/* ========================================
   Utility Classes
   ======================================== */
.section-padding {
    padding: var(--spacing-3xl) 0;
}

.section-title {
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
    position: relative;
}

.section-subtitle {
    color: var(--color-text-light);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto var(--spacing-xl);
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-2xl);
}

.section-header .section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--color-accent);
    margin: var(--spacing-md) auto 0;
    border-radius: var(--radius-full);
}

.btn-accent {
    background-color: var(--color-accent);
    border-color: var(--color-accent);
    color: var(--color-primary-dark);
    font-weight: 600;
    transition: all var(--transition-fast);
}

.btn-accent:hover, .btn-accent:focus {
    background-color: var(--color-accent-hover);
    border-color: var(--color-accent-hover);
    color: var(--color-primary-dark);
    transform: translateY(-1px);
}

.btn-primary-custom {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
    color: var(--color-white);
    font-weight: 500;
    padding: 0.625rem 1.5rem;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.btn-primary-custom:hover {
    background-color: var(--color-primary-dark);
    border-color: var(--color-primary-dark);
    color: var(--color-white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline-custom {
    border: 2px solid var(--color-primary);
    color: var(--color-primary);
    font-weight: 500;
    padding: 0.625rem 1.5rem;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.text-accent { color: var(--color-accent); }

/* Fade-in animation */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ========================================
   Top Bar
   ======================================== */
.top-bar {
    background: var(--color-primary-dark);
    color: rgba(255, 255, 255, 0.85);
    padding: var(--spacing-sm) 0;
    font-size: 0.875rem;
}

.top-bar a {
    color: rgba(255, 255, 255, 0.85);
}

.top-bar a:hover {
    color: var(--color-accent);
}

.top-bar-info li i {
    color: var(--color-accent);
    margin-right: var(--spacing-xs);
}

.top-bar-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.1);
    transition: all var(--transition-fast);
}

.top-bar-social a:hover {
    background: var(--color-accent);
    color: var(--color-primary-dark);
}

/* ========================================
   Announcement Ticker
   ======================================== */
.announcement-ticker {
    background: linear-gradient(90deg, var(--color-accent), #d4b545);
    color: var(--color-primary-dark);
    padding: var(--spacing-sm) 0;
    overflow: hidden;
}

.ticker-wrap {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.ticker-label {
    font-weight: 600;
    white-space: nowrap;
    flex-shrink: 0;
    font-size: 0.875rem;
}

.ticker-content {
    display: flex;
    animation: ticker 30s linear infinite;
    white-space: nowrap;
}

.ticker-item {
    padding-right: 3rem;
    font-size: 0.875rem;
}

.ticker-item a {
    color: var(--color-primary-dark);
    font-weight: 500;
}

@keyframes ticker {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ========================================
   Header & Navigation
   ======================================== */
.site-header {
    background: var(--color-white);
    box-shadow: var(--shadow-sm);
    transition: box-shadow var(--transition-base);
    z-index: 1030;
}

.site-header.scrolled {
    box-shadow: var(--shadow-md);
}

.navbar {
    padding: var(--spacing-md) 0;
}

.navbar > .container {
    gap: var(--spacing-sm);
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    max-width: min(280px, 42vw);
    margin-right: var(--spacing-md);
    flex-shrink: 0;
}

.brand-logo {
    object-fit: contain;
    flex-shrink: 0;
    width: 52px;
    height: 52px;
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.25;
    min-width: 0;
}

.brand-name {
    font-size: clamp(0.85rem, 1.5vw, 1rem);
    font-weight: 700;
    color: var(--color-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.brand-location {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--color-text-light);
}

.brand-badge {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--color-accent);
    background: rgba(201, 162, 39, 0.15);
    padding: 0.1rem 0.4rem;
    border-radius: var(--radius-sm);
    margin-left: 0.25rem;
    vertical-align: middle;
}

.navbar-nav {
    flex-wrap: nowrap;
    gap: 0.15rem;
}

.navbar-nav .nav-link {
    font-weight: 500;
    color: var(--color-text);
    padding: 0.5rem 0.65rem !important;
    font-size: 0.875rem;
    white-space: nowrap;
    position: relative;
    border-radius: var(--radius-md);
    transition: color 0.25s ease, background 0.25s ease, transform 0.2s ease;
}

.navbar-nav .nav-link:hover {
    color: var(--color-primary);
    background: rgba(26, 54, 93, 0.07);
}

.navbar-nav .nav-item.dropdown:hover > .nav-link,
.navbar-nav .nav-item.dropdown.show > .nav-link {
    color: var(--color-primary);
    background: rgba(201, 162, 39, 0.14);
}

.navbar-nav .nav-link.active {
    color: var(--color-primary);
    background: rgba(201, 162, 39, 0.1);
}

/* Underline active page only — not dropdown-toggle (Bootstrap uses ::after for the caret) */
.navbar-nav .nav-link.active:not(.dropdown-toggle)::after {
    content: '';
    position: absolute;
    bottom: 0.15rem;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 1rem);
    max-width: 48px;
    height: 2px;
    background: var(--color-accent);
    border-radius: var(--radius-full);
}

.nav-item-search {
    flex-shrink: 0;
    margin-left: 0.5rem;
}

.btn-nav-icon {
    width: 38px;
    height: 38px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-full);
    border: 1px solid var(--color-border);
    background: var(--color-bg-light);
    color: var(--color-primary);
}

.btn-nav-icon:hover {
    background: var(--color-primary);
    color: var(--color-white);
    border-color: var(--color-primary);
}

.navbar-toggler {
    border: none;
    padding: var(--spacing-sm);
}

.navbar-toggler:focus {
    box-shadow: none;
}

.header-search {
    display: block;
    width: 200px;
    flex-shrink: 0;
}

.header-search .input-group {
    flex-wrap: nowrap !important;
    width: 100%;
}

.header-search .form-control {
    border-radius: var(--radius-full) 0 0 var(--radius-full);
    border: 1px solid var(--color-border);
    font-size: 0.8125rem;
    width: 1%;
    min-width: 0;
    flex: 1 1 auto;
    height: 36px;
}

.header-search .btn {
    border-radius: 0 var(--radius-full) var(--radius-full) 0;
    height: 36px;
    padding: 0 0.75rem;
    flex-shrink: 0;
}

.search-toggle {
    color: var(--color-primary);
    font-size: 1.25rem;
}

/* Navigation dropdown menus */
.site-header .dropdown-menu {
    z-index: 1055;
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-lg);
}

.dropdown-menu-nav {
    padding: 1rem;
    border-radius: var(--radius-lg);
    margin-top: 0.5rem;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-lg);
    animation: navDropdownIn 0.28s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes navDropdownIn {
    from {
        opacity: 0;
        transform: translateY(10px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.dropdown-menu-nav--single {
    min-width: 240px;
    max-width: calc(100vw - 2rem);
}

.dropdown-menu-nav--2col {
    min-width: 400px;
    max-width: calc(100vw - 2rem);
}

.dropdown-menu-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem 1.5rem;
}

.dropdown-menu-columns.cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.5rem 1.25rem;
}

.dropdown-menu-col {
    min-width: 0;
}

.dropdown-menu-label {
    display: block;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--color-primary);
    padding: 0 0.5rem 0.5rem;
    margin-bottom: 0.25rem;
    border-bottom: 2px solid var(--color-accent);
}

.dropdown-menu-nav .dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.5rem 0.65rem;
    margin-bottom: 0.15rem;
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-text);
    white-space: nowrap;
    position: relative;
    overflow: hidden;
    transition: color 0.25s ease, background 0.25s ease, transform 0.25s ease, padding 0.25s ease, box-shadow 0.25s ease;
}

.dropdown-menu-nav .dropdown-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%) scaleY(0);
    width: 3px;
    height: 70%;
    background: var(--color-accent);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}

.dropdown-menu-nav .dropdown-item i {
    color: var(--color-accent);
    font-size: 1.05rem;
    width: 1.25rem;
    flex-shrink: 0;
    transition: transform 0.25s ease, color 0.25s ease;
}

.dropdown-menu-nav .dropdown-item:hover,
.dropdown-menu-nav .dropdown-item:focus {
    background: linear-gradient(105deg, rgba(201, 162, 39, 0.16) 0%, rgba(26, 54, 93, 0.06) 100%);
    color: var(--color-primary);
    transform: translateX(5px);
    padding-left: 0.85rem;
    box-shadow: var(--shadow-sm);
}

.dropdown-menu-nav .dropdown-item:hover::before,
.dropdown-menu-nav .dropdown-item:focus::before {
    transform: translateY(-50%) scaleY(1);
}

.dropdown-menu-nav .dropdown-item:hover i,
.dropdown-menu-nav .dropdown-item:focus i {
    transform: scale(1.12);
    color: var(--color-primary);
}

.dropdown-menu-nav .dropdown-item:active {
    background: var(--color-primary);
    color: var(--color-white);
    transform: translateX(3px);
}

.dropdown-menu-nav .dropdown-item:active i {
    color: var(--color-accent);
}

.dropdown-cta {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px dashed var(--color-border);
}

.dropdown-cta .btn {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.dropdown-cta .btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* ========================================
   Breadcrumbs
   ======================================== */
.breadcrumb-nav {
    background: var(--color-bg-light);
    padding: var(--spacing-md) 0;
    border-bottom: 1px solid var(--color-border);
}

.breadcrumb {
    margin-bottom: 0;
    font-size: 0.875rem;
}

.breadcrumb-item a {
    color: var(--color-text-light);
}

.breadcrumb-item.active {
    color: var(--color-primary);
    font-weight: 500;
}

/* ========================================
   Hero Slider
   ======================================== */
.hero-slider {
    position: relative;
    overflow: hidden;
}

.hero-slide {
    position: relative;
    min-height: 500px;
    display: flex;
    align-items: center;
    background-color: var(--color-primary-dark);
    background-image: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-slide::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(26, 54, 93, 0.85) 0%, rgba(15, 36, 64, 0.7) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    color: var(--color-white);
    max-width: 700px;
    padding: var(--spacing-2xl) 0;
}

.hero-content h1,
.hero-slide__title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    color: var(--color-white);
    margin-bottom: var(--spacing-md);
    line-height: 1.2;
}

.hero-slide__eyebrow {
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    opacity: 0.9;
    margin-bottom: 0.35rem;
}

.hero-content p {
    font-size: 1.125rem;
    opacity: 0.9;
    margin-bottom: var(--spacing-xl);
}

.hero-btns {
    display: flex;
    gap: var(--spacing-md);
    flex-wrap: wrap;
}

.carousel-indicators [data-bs-target] {
    width: 12px;
    height: 12px;
    border-radius: var(--radius-full);
    border: 2px solid var(--color-white);
    background: transparent;
    opacity: 0.6;
}

.carousel-indicators .active {
    background: var(--color-accent);
    border-color: var(--color-accent);
    opacity: 1;
}

/* ========================================
   Quick Links
   ======================================== */
.quick-links {
    margin-top: -60px;
    position: relative;
    z-index: 10;
}

.quick-link-card {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
    text-align: center;
    box-shadow: var(--shadow-lg);
    transition: all var(--transition-base);
    height: 100%;
    border: 1px solid var(--color-border);
    border-top: 4px solid var(--ql-theme, var(--color-primary));
    background: linear-gradient(
        165deg,
        rgba(var(--ql-theme-rgb, 26, 54, 93), 0.12) 0%,
        var(--color-white) 52%
    );
}

.quick-link-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 28px rgba(var(--ql-theme-rgb, 26, 54, 93), 0.22);
    border-color: rgba(var(--ql-theme-rgb, 26, 54, 93), 0.42);
}

.quick-link-icon {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, var(--ql-theme, var(--color-primary)), var(--ql-theme-deep, var(--color-primary-light)));
    color: var(--color-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto var(--spacing-md);
    transition: transform var(--transition-base), box-shadow var(--transition-base);
    box-shadow: 0 8px 20px rgba(var(--ql-theme-rgb, 26, 54, 93), 0.28);
}

.quick-link-card:hover .quick-link-icon {
    transform: scale(1.08);
}

.quick-link-card h3 {
    font-size: 1rem;
    margin-bottom: var(--spacing-xs);
    text-align: center;
    color: var(--ql-theme-deep, var(--color-primary-dark));
}

.quick-link-card p {
    font-size: 0.85rem;
    color: var(--color-text-light);
    margin-bottom: 0;
    text-align: center;
}

.quick-link-card--indigo { --ql-theme: #4f46e5; --ql-theme-rgb: 79, 70, 229; --ql-theme-deep: #4338ca; }
.quick-link-card--amber { --ql-theme: #d97706; --ql-theme-rgb: 217, 119, 6; --ql-theme-deep: #b45309; }
.quick-link-card--cyan { --ql-theme: #0891b2; --ql-theme-rgb: 8, 145, 178; --ql-theme-deep: #0e7490; }
.quick-link-card--emerald { --ql-theme: #059669; --ql-theme-rgb: 5, 150, 105; --ql-theme-deep: #047857; }
.quick-link-card--sky { --ql-theme: #0284c7; --ql-theme-rgb: 2, 132, 199; --ql-theme-deep: #0369a1; }
.quick-link-card--violet { --ql-theme: #7c3aed; --ql-theme-rgb: 124, 58, 237; --ql-theme-deep: #6d28d9; }
.quick-link-card--rose { --ql-theme: #e11d48; --ql-theme-rgb: 225, 29, 72; --ql-theme-deep: #be123c; }

/* Student Resources & similar themed content cards */
.resource-card {
    --res-theme: var(--color-primary);
    --res-theme-rgb: 26, 54, 93;
    --res-theme-deep: var(--color-primary-dark);

    height: 100%;
    padding: var(--spacing-xl);
    text-align: center;
    background: linear-gradient(
        165deg,
        rgba(var(--res-theme-rgb), 0.12) 0%,
        var(--color-white) 55%
    );
    border: 1px solid rgba(var(--res-theme-rgb), 0.22);
    border-top: 4px solid var(--res-theme);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
}

.resource-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(var(--res-theme-rgb), 0.2);
    border-color: rgba(var(--res-theme-rgb), 0.38);
}

.resource-card__icon {
    width: 56px;
    height: 56px;
    margin: 0 auto var(--spacing-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: #fff;
    background: linear-gradient(135deg, var(--res-theme), var(--res-theme-deep));
    border-radius: var(--radius-full);
    box-shadow: 0 8px 20px rgba(var(--res-theme-rgb), 0.28);
}

.resource-card__title {
    font-size: 1.05rem;
    margin-bottom: var(--spacing-sm);
    color: var(--res-theme-deep);
    text-align: center;
}

.resource-card__text {
    font-size: 0.88rem;
    color: var(--color-text-light);
    margin-bottom: 0;
    text-align: justify;
    text-justify: inter-word;
}

.resource-card--indigo { --res-theme: #4f46e5; --res-theme-rgb: 79, 70, 229; --res-theme-deep: #4338ca; }
.resource-card--amber { --res-theme: #d97706; --res-theme-rgb: 217, 119, 6; --res-theme-deep: #b45309; }
.resource-card--cyan { --res-theme: #0891b2; --res-theme-rgb: 8, 145, 178; --res-theme-deep: #0e7490; }
.resource-card--emerald { --res-theme: #059669; --res-theme-rgb: 5, 150, 105; --res-theme-deep: #047857; }
.resource-card--violet { --res-theme: #7c3aed; --res-theme-rgb: 124, 58, 237; --res-theme-deep: #6d28d9; }
.resource-card--sky { --res-theme: #0284c7; --res-theme-rgb: 2, 132, 199; --res-theme-deep: #0369a1; }
.resource-card--rose { --res-theme: #e11d48; --res-theme-rgb: 225, 29, 72; --res-theme-deep: #be123c; }
.resource-card--teal { --res-theme: #0d9488; --res-theme-rgb: 13, 148, 136; --res-theme-deep: #0f766e; }

[data-theme="dark"] .resource-card {
    background: linear-gradient(
        165deg,
        rgba(var(--res-theme-rgb), 0.16) 0%,
        var(--color-bg-light) 55%
    );
    border-color: rgba(var(--res-theme-rgb), 0.32);
}

[data-theme="dark"] .resource-card:hover {
    box-shadow: 0 12px 32px rgba(var(--res-theme-rgb), 0.35);
    border-color: rgba(var(--res-theme-rgb), 0.48);
}

[data-theme="dark"] .resource-card__title {
    color: var(--res-theme);
}

[data-theme="dark"] .resource-card--indigo { --res-theme: #818cf8; --res-theme-deep: #a5b4fc; }
[data-theme="dark"] .resource-card--amber { --res-theme: #fbbf24; --res-theme-deep: #fcd34d; }
[data-theme="dark"] .resource-card--cyan { --res-theme: #22d3ee; --res-theme-deep: #67e8f9; }
[data-theme="dark"] .resource-card--emerald { --res-theme: #34d399; --res-theme-deep: #6ee7b7; }
[data-theme="dark"] .resource-card--violet { --res-theme: #a78bfa; --res-theme-deep: #c4b5fd; }
[data-theme="dark"] .resource-card--sky { --res-theme: #38bdf8; --res-theme-deep: #7dd3fc; }
[data-theme="dark"] .resource-card--rose { --res-theme: #fb7185; --res-theme-deep: #fda4af; }
[data-theme="dark"] .resource-card--teal { --res-theme: #2dd4bf; --res-theme-deep: #5eead4; }

/* ========================================
   Cards
   ======================================== */
.modern-card {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border);
    transition: all var(--transition-base);
}

/* Equal-height card grids — add h-100 on the card or use .card-grid */
.card-grid .modern-card,
.modern-card.h-100 {
    height: 100%;
}

.modern-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.modern-card .card-img-top {
    height: 200px;
    object-fit: cover;
}

.modern-card .card-body {
    padding: var(--spacing-lg);
}

.modern-card .card-date {
    font-size: 0.8rem;
    color: var(--color-accent);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.modern-card .card-title {
    font-size: 1.1rem;
    margin: var(--spacing-sm) 0;
}

.modern-card .card-text {
    color: var(--color-text-light);
    font-size: 0.9rem;
}

/* Notice Card */
.notice-item {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-md);
    padding: var(--spacing-md);
    border-bottom: 1px solid var(--color-border);
    transition: background var(--transition-fast);
}

.notice-item:hover {
    background: var(--color-bg-light);
}

.notice-date-box {
    background: var(--color-primary);
    color: var(--color-white);
    border-radius: var(--radius-md);
    padding: var(--spacing-sm) var(--spacing-md);
    text-align: center;
    min-width: 60px;
    flex-shrink: 0;
}

.notice-date-box .day {
    display: block;
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1;
}

.notice-date-box .month {
    display: block;
    font-size: 0.7rem;
    text-transform: uppercase;
    opacity: 0.85;
}

.notice-badge {
    font-size: 0.7rem;
    padding: 0.15rem 0.5rem;
    border-radius: var(--radius-full);
    font-weight: 600;
    text-transform: uppercase;
}

.notice-badge.urgent { background: #fed7d7; color: #c53030; }
.notice-badge.admission { background: #c6f6d5; color: #276749; }
.notice-badge.exam { background: #bee3f8; color: #2b6cb0; }
.notice-badge.general { background: var(--color-bg-dark); color: var(--color-text-light); }

.notice-image-preview {
    position: relative;
    flex-shrink: 0;
    padding: 0;
    border: none;
    background: transparent;
    cursor: zoom-in;
    border-radius: var(--radius-md);
    overflow: hidden;
}

.notice-image-preview img {
    display: block;
    object-fit: cover;
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
}

.notice-image-preview--thumb img {
    width: 56px;
    height: 56px;
}

.notice-image-preview--large img {
    width: 100%;
    max-width: 420px;
    height: auto;
    max-height: 280px;
}

.notice-image-preview__hint {
    position: absolute;
    right: 4px;
    bottom: 4px;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    pointer-events: none;
}

.notice-image-preview--large .notice-image-preview__hint {
    right: 8px;
    bottom: 8px;
}

.gallery-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.gallery-lightbox .lightbox-content {
    position: relative;
    max-width: min(90vw, 1100px);
    max-height: 90vh;
    text-align: center;
    padding: 0 52px;
}

.gallery-lightbox img {
    max-width: 100%;
    max-height: 80vh;
    border-radius: 8px;
}

.gallery-lightbox .lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
    z-index: 2;
}

.gallery-lightbox .lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.92);
    color: #0f2440;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    font-size: 1.35rem;
    transition: background var(--transition-fast), transform var(--transition-fast);
}

.gallery-lightbox .lightbox-nav--prev {
    left: 0;
}

.gallery-lightbox .lightbox-nav--next {
    right: 0;
}

.gallery-lightbox .lightbox-nav:hover,
.gallery-lightbox .lightbox-nav:focus-visible {
    background: var(--color-accent);
    color: #1a202c;
    outline: none;
}

.gallery-lightbox .lightbox-caption {
    color: #fff;
    margin-top: 10px;
    font-size: 0.9rem;
}

@media (max-width: 767.98px) {
    .gallery-lightbox .lightbox-content {
        padding: 0 40px;
    }

    .gallery-lightbox .lightbox-nav {
        width: 36px;
        height: 36px;
        font-size: 1.1rem;
        background: rgba(255, 255, 255, 0.85);
    }
}

/* ========================================
   Statistics Counter (colorful cards)
   ======================================== */
.stats-section--colorful {
    position: relative;
    overflow: hidden;
    padding: 1.15rem 0;
    background:
        linear-gradient(125deg, rgba(2, 132, 199, 0.08) 0%, transparent 28%),
        linear-gradient(220deg, rgba(124, 58, 237, 0.07) 0%, transparent 32%),
        linear-gradient(310deg, rgba(5, 150, 105, 0.08) 0%, transparent 30%),
        linear-gradient(40deg, rgba(217, 119, 6, 0.07) 0%, transparent 28%),
        linear-gradient(180deg, #f8fafc 0%, #eef2ff 50%, #f8fafc 100%);
    border-block: 1px solid rgba(26, 54, 93, 0.08);
}

.stats-section--colorful::before,
.stats-section--colorful::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(40px);
    opacity: 0.55;
}

.stats-section--colorful::before {
    width: 220px;
    height: 220px;
    top: -80px;
    left: 8%;
    background: rgba(2, 132, 199, 0.25);
}

.stats-section--colorful::after {
    width: 200px;
    height: 200px;
    bottom: -70px;
    right: 10%;
    background: rgba(124, 58, 237, 0.22);
}

.stats-section__wrap {
    position: relative;
    z-index: 1;
    width: min(100%, 1380px);
    max-width: 100%;
    margin: 0 auto;
    padding: 0 clamp(0.85rem, 2.5vw, 2.75rem);
}

.stats-section--home {
    padding: 2.25rem 0;
}

.stats-section--home .stats-strip__item {
    gap: 0.5rem;
    padding: 1.35rem 1rem 1.25rem;
    min-height: 7.5rem;
    justify-content: center;
}

.stats-section--home .stats-strip__icon {
    width: 3.1rem;
    height: 3.1rem;
    font-size: 1.45rem;
    margin-bottom: 0.25rem;
}

.stats-section--home .stats-strip__value {
    font-size: clamp(1.75rem, 3.5vw, 2.45rem);
}

.stats-section--home .stats-strip__label {
    font-size: 0.78rem;
}

@media (min-width: 768px) {
    .stats-section--home {
        padding: 2.5rem 0;
    }

    .stats-section--home .stats-strip__item {
        min-height: 8.25rem;
        padding: 1.5rem 1.15rem 1.35rem;
    }
}

.stats-strip {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

@media (min-width: 768px) {
    .stats-strip {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 1rem;
    }
}

@media (min-width: 1200px) {
    .stats-strip {
        gap: 1.25rem;
    }
}

.stats-strip__item {
    --stat-theme: var(--color-primary);
    --stat-theme-rgb: 26, 54, 93;
    --stat-theme-deep: var(--color-primary-dark);

    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.35rem;
    padding: 0.85rem 0.75rem 0.8rem;
    background: var(--color-white);
    border: 1px solid rgba(var(--stat-theme-rgb), 0.14);
    border-radius: var(--radius-lg);
    border-top: 4px solid var(--stat-theme);
    box-shadow: 0 4px 18px rgba(var(--stat-theme-rgb), 0.12);
    transition: transform var(--transition-base), box-shadow var(--transition-base);
    position: relative;
    overflow: hidden;
}

.stats-strip__item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(145deg, rgba(var(--stat-theme-rgb), 0.1) 0%, transparent 55%);
    pointer-events: none;
}

.stats-strip__item:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(var(--stat-theme-rgb), 0.22);
    border-color: rgba(var(--stat-theme-rgb), 0.38);
}

.stats-strip__item--sky { --stat-theme: #0284c7; --stat-theme-rgb: 2, 132, 199; --stat-theme-deep: #0369a1; }
.stats-strip__item--violet { --stat-theme: #7c3aed; --stat-theme-rgb: 124, 58, 237; --stat-theme-deep: #6d28d9; }
.stats-strip__item--emerald { --stat-theme: #059669; --stat-theme-rgb: 5, 150, 105; --stat-theme-deep: #047857; }
.stats-strip__item--amber { --stat-theme: #d97706; --stat-theme-rgb: 217, 119, 6; --stat-theme-deep: #b45309; }
.stats-strip__item--cyan { --stat-theme: #0891b2; --stat-theme-rgb: 8, 145, 178; --stat-theme-deep: #0e7490; }
.stats-strip__item--rose { --stat-theme: #e11d48; --stat-theme-rgb: 225, 29, 72; --stat-theme-deep: #be123c; }
.stats-strip__item--indigo { --stat-theme: #4f46e5; --stat-theme-rgb: 79, 70, 229; --stat-theme-deep: #4338ca; }
.stats-strip__item--orange { --stat-theme: #ea580c; --stat-theme-rgb: 234, 88, 12; --stat-theme-deep: #c2410c; }

.stats-strip__icon {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.65rem;
    height: 2.65rem;
    font-size: 1.2rem;
    color: #fff;
    background: linear-gradient(145deg, var(--stat-theme), var(--stat-theme-deep));
    border-radius: var(--radius-md);
    box-shadow: 0 4px 14px rgba(var(--stat-theme-rgb), 0.35);
    margin-bottom: 0.15rem;
}

.stats-strip__value,
.stat-number {
    position: relative;
    z-index: 1;
    font-size: clamp(1.5rem, 3.2vw, 2.1rem);
    font-weight: 700;
    line-height: 1.1;
    color: var(--stat-theme-deep);
    letter-spacing: -0.02em;
}

.stats-strip__label,
.stat-label {
    position: relative;
    z-index: 1;
    font-size: 0.7rem;
    font-weight: 600;
    line-height: 1.25;
    color: var(--color-text-light);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

@media (min-width: 576px) {
    .stats-strip__item {
        padding: 1rem 0.9rem 0.9rem;
    }

    .stats-strip__label,
    .stat-label {
        font-size: 0.76rem;
    }
}

/* Legacy / admin stat blocks */
.stats-section:not(.stats-section--colorful) {
    padding: 1.1rem 0;
    background: linear-gradient(135deg, #1a365d 0%, #0f2440 100%);
    color: #fff;
}

.stat-item {
    text-align: center;
    padding: var(--spacing-md);
}

.stat-icon {
    font-size: 1.75rem;
    color: var(--color-accent);
    margin-bottom: var(--spacing-sm);
}

[data-theme="dark"] .stats-section--colorful {
    background:
        linear-gradient(125deg, rgba(34, 211, 238, 0.06) 0%, transparent 28%),
        linear-gradient(220deg, rgba(167, 139, 250, 0.06) 0%, transparent 32%),
        linear-gradient(310deg, rgba(52, 211, 153, 0.06) 0%, transparent 30%),
        linear-gradient(40deg, rgba(251, 191, 36, 0.05) 0%, transparent 28%),
        linear-gradient(180deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
    border-block-color: rgba(148, 163, 184, 0.15);
}

[data-theme="dark"] .stats-section--colorful::before {
    background: rgba(34, 211, 238, 0.15);
}

[data-theme="dark"] .stats-section--colorful::after {
    background: rgba(167, 139, 250, 0.14);
}

[data-theme="dark"] .stats-strip__item {
    background: var(--color-surface);
    border-color: rgba(var(--stat-theme-rgb), 0.28);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}

[data-theme="dark"] .stats-strip__item:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(var(--stat-theme-rgb), 0.38);
    border-color: rgba(var(--stat-theme-rgb), 0.48);
}

[data-theme="dark"] .stats-strip__value,
[data-theme="dark"] .stat-number {
    color: var(--stat-theme);
}

[data-theme="dark"] .stats-strip__label,
[data-theme="dark"] .stat-label {
    color: var(--color-text-light);
}

[data-theme="dark"] .stats-strip__item--sky { --stat-theme: #38bdf8; --stat-theme-deep: #7dd3fc; }
[data-theme="dark"] .stats-strip__item--violet { --stat-theme: #a78bfa; --stat-theme-deep: #c4b5fd; }
[data-theme="dark"] .stats-strip__item--emerald { --stat-theme: #34d399; --stat-theme-deep: #6ee7b7; }
[data-theme="dark"] .stats-strip__item--amber { --stat-theme: #fbbf24; --stat-theme-deep: #fcd34d; }

/* ========================================
   Principal Message
   ======================================== */
.principal-section {
    background: var(--color-bg-light);
}

.principal-card {
    background: var(--color-white);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    display: flex;
    flex-wrap: wrap;
}

.principal-photo {
    flex: 0 0 300px;
    position: relative;
}

.principal-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    min-height: 350px;
}

.principal-content {
    flex: 1;
    padding: var(--spacing-2xl);
    min-width: 280px;
}

.principal-quote {
    font-size: 1.05rem;
    color: var(--color-text-light);
    font-style: italic;
    border-left: 3px solid var(--color-accent);
    padding-left: var(--spacing-lg);
    margin: var(--spacing-lg) 0;
}

/* Principal message page — portrait + message panel */
.principal-layout {
    display: grid;
    gap: var(--spacing-xl);
    max-width: 1080px;
    margin: 0 auto;
    align-items: start;
}

@media (min-width: 992px) {
    .principal-layout {
        grid-template-columns: minmax(240px, 272px) minmax(0, 1fr);
        gap: 2.5rem;
    }

    .principal-layout__aside {
        position: sticky;
        top: calc(80px + var(--spacing-lg));
    }
}

.principal-layout__content {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xl);
    min-width: 0;
}

.principal-layout__jump {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: var(--spacing-md);
}

.principal-layout__jump-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 0.75rem;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--color-primary);
    text-decoration: none;
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    transition: background var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast);
}

.principal-layout__jump-link:hover {
    color: var(--color-primary-dark);
    border-color: var(--color-accent);
    background: rgba(201, 162, 39, 0.08);
}

.principal-layout__profile-panel {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    scroll-margin-top: 100px;
}

.principal-layout__message {
    scroll-margin-top: 100px;
}

.principal-layout__profile-body {
    padding: 2rem 2.25rem 2.25rem;
}

.principal-profile-section + .principal-profile-section {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--color-border);
}

.principal-profile-section__title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--color-primary-dark);
    margin-bottom: 1.15rem;
}

.principal-profile-section__title i {
    color: var(--color-accent);
}

.principal-experience-list {
    display: flex;
    flex-direction: column;
    gap: 1.15rem;
}

.principal-experience-item {
    padding: 1rem 1.15rem 1rem 1.25rem;
    border-left: 3px solid var(--color-accent);
    background: var(--color-bg-light);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.principal-experience-item__title {
    margin: 0 0 0.25rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-primary-dark);
}

.principal-experience-item__period {
    margin: 0 0 0.35rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-accent);
}

.principal-experience-item__org {
    font-size: 0.92rem;
    line-height: 1.55;
    color: var(--color-text-light);
}

.principal-memberships-table {
    font-size: 0.92rem;
}

.principal-memberships-table thead th {
    background: var(--color-primary);
    color: var(--color-white);
    font-weight: 600;
    border: none;
    padding: 0.75rem 1rem;
    white-space: nowrap;
}

.principal-memberships-table tbody td {
    padding: 0.7rem 1rem;
    vertical-align: top;
    border-color: var(--color-border);
}

.principal-memberships-table tbody tr:nth-child(even) {
    background: var(--color-bg-light);
}

.principal-portrait {
    padding: 0.65rem;
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
}

.principal-portrait img {
    display: block;
    width: 100%;
    aspect-ratio: 3 / 4;
    max-height: 360px;
    object-fit: cover;
    object-position: center 18%;
    border-radius: var(--radius-lg);
    border: 2px solid rgba(201, 162, 39, 0.35);
}

.principal-profile-meta {
    margin-top: var(--spacing-md);
    padding: var(--spacing-md) var(--spacing-sm);
    text-align: center;
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    border-top: 3px solid var(--color-accent);
    box-shadow: var(--shadow-sm);
}

.principal-profile-meta__name {
    margin: 0 0 0.35rem;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.4;
    color: var(--color-primary-dark);
}

.principal-profile-meta__role {
    margin: 0 0 0.5rem;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--color-accent);
}

.principal-profile-meta__qual {
    margin: 0;
    font-size: 0.8rem;
    line-height: 1.5;
    color: var(--color-text-light);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 0.4rem;
    text-align: left;
}

.principal-profile-meta__qual i {
    flex-shrink: 0;
    margin-top: 0.12rem;
    color: var(--color-primary-light);
}

.principal-profile-meta__email {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    margin-top: 0.65rem;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--color-primary-light);
    text-decoration: none;
    word-break: break-word;
}

.principal-profile-meta__email:hover {
    color: var(--color-accent);
    text-decoration: underline;
}

.principal-layout__message {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.principal-layout__message-header {
    padding: 2rem 2.25rem 1.35rem;
    border-bottom: 1px solid var(--color-border);
    background: linear-gradient(135deg, rgba(26, 54, 93, 0.05) 0%, rgba(201, 162, 39, 0.06) 100%);
}

.principal-layout__eyebrow {
    display: block;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: 0.4rem;
}

.principal-layout__message-title {
    color: var(--color-primary-dark);
}

.principal-layout__message-body {
    padding: 2rem 2.25rem 1.5rem;
}

.principal-layout__message-body p {
    margin: 0 0 1.25rem;
    font-size: 1.02rem;
    line-height: 1.85;
    color: var(--color-text);
}

.principal-layout__message-body p:last-child {
    margin-bottom: 0;
}

.principal-layout__lead {
    font-size: 1.08rem;
    color: var(--color-primary-dark);
    font-weight: 500;
}

.principal-layout__signoff {
    margin: 0 2.25rem 2rem;
    padding: 1.15rem 0 0;
    border-top: 1px solid var(--color-border);
}

.principal-layout__signoff p {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.principal-layout__signoff strong {
    font-size: 1rem;
    color: var(--color-primary-dark);
}

.principal-layout__signoff span {
    font-size: 0.88rem;
    color: var(--color-text-light);
}

@media (max-width: 991.98px) {
    .principal-layout__aside {
        max-width: 300px;
        margin-left: auto;
        margin-right: auto;
    }

    .principal-layout__jump {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .principal-layout__jump-link {
        flex: 1 1 auto;
        justify-content: center;
    }
}

[data-theme="dark"] .principal-portrait,
[data-theme="dark"] .principal-profile-meta,
[data-theme="dark"] .principal-layout__message,
[data-theme="dark"] .principal-layout__profile-panel,
[data-theme="dark"] .principal-layout__jump-link {
    background: var(--color-bg-light);
    border-color: var(--color-border);
}

[data-theme="dark"] .principal-experience-item {
    background: var(--color-bg-dark);
}

[data-theme="dark"] .principal-experience-item__title,
[data-theme="dark"] .principal-profile-section__title {
    color: #f1f5f9;
}

[data-theme="dark"] .principal-memberships-table tbody tr:nth-child(even) {
    background: rgba(0, 0, 0, 0.15);
}

[data-theme="dark"] .principal-memberships-table thead th {
    background: var(--color-primary-light);
}

[data-theme="dark"] .principal-profile-meta__email {
    color: #90cdf4;
}

[data-theme="dark"] .principal-profile-meta__name,
[data-theme="dark"] .principal-layout__message-title,
[data-theme="dark"] .principal-layout__lead,
[data-theme="dark"] .principal-layout__signoff strong {
    color: #f1f5f9;
}

[data-theme="dark"] .principal-layout__message-header {
    background: linear-gradient(135deg, rgba(144, 205, 244, 0.08) 0%, rgba(201, 162, 39, 0.08) 100%);
    border-bottom-color: var(--color-border);
}

[data-theme="dark"] .principal-layout__message-body p {
    color: var(--color-text-light);
}

[data-theme="dark"] .principal-layout__signoff {
    border-top-color: var(--color-border);
}

/* BS Programs page — colorful per-program themes */
.bs-programs-page {
    max-width: 980px;
    margin: 0 auto;
}

/* Theme tokens (light) */
.bs-program-detail--cyan { --bs-theme: #0891b2; --bs-theme-rgb: 8, 145, 178; --bs-theme-deep: #0e7490; }
.bs-program-detail--violet { --bs-theme: #7c3aed; --bs-theme-rgb: 124, 58, 237; --bs-theme-deep: #6d28d9; }
.bs-program-detail--teal { --bs-theme: #0d9488; --bs-theme-rgb: 13, 148, 136; --bs-theme-deep: #0f766e; }
.bs-program-detail--emerald { --bs-theme: #059669; --bs-theme-rgb: 5, 150, 105; --bs-theme-deep: #047857; }
.bs-program-detail--amber { --bs-theme: #d97706; --bs-theme-rgb: 217, 119, 6; --bs-theme-deep: #b45309; }
.bs-program-detail--indigo { --bs-theme: #4f46e5; --bs-theme-rgb: 79, 70, 229; --bs-theme-deep: #4338ca; }
.bs-program-detail--orange { --bs-theme: #ea580c; --bs-theme-rgb: 234, 88, 12; --bs-theme-deep: #c2410c; }
.bs-program-detail--rose { --bs-theme: #e11d48; --bs-theme-rgb: 225, 29, 72; --bs-theme-deep: #be123c; }
.bs-program-detail--fuchsia { --bs-theme: #c026d3; --bs-theme-rgb: 192, 38, 211; --bs-theme-deep: #a21caf; }
.bs-program-detail--blue { --bs-theme: #2563eb; --bs-theme-rgb: 37, 99, 235; --bs-theme-deep: #1d4ed8; }

.bs-programs-intro {
    margin-bottom: var(--spacing-xl);
}

.bs-programs-intro__hero {
    position: relative;
    padding: var(--spacing-xl);
    border-radius: var(--radius-xl);
    background: linear-gradient(135deg, #1a365d 0%, #2c5282 45%, #1a365d 100%);
    color: #fff;
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(26, 54, 93, 0.25);
}

.bs-programs-intro__hero::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -10%;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(201, 162, 39, 0.35) 0%, transparent 70%);
    pointer-events: none;
}

.bs-programs-intro__hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -5%;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(56, 161, 105, 0.3) 0%, transparent 70%);
    pointer-events: none;
}

.bs-programs-intro__hero > * {
    position: relative;
    z-index: 1;
}

.bs-programs-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin-bottom: var(--spacing-md);
}

.bs-programs-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.9rem;
    font-size: 0.78rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    border: 1px solid transparent;
}

.bs-programs-badge--blue {
    color: #bfdbfe;
    background: rgba(59, 130, 246, 0.25);
    border-color: rgba(147, 197, 253, 0.45);
}

.bs-programs-badge--gold {
    color: #fde68a;
    background: rgba(201, 162, 39, 0.3);
    border-color: rgba(252, 211, 77, 0.5);
}

.bs-programs-badge--green {
    color: #bbf7d0;
    background: rgba(56, 161, 105, 0.3);
    border-color: rgba(134, 239, 172, 0.45);
}

.bs-programs-intro__text {
    font-size: 1.02rem;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.92);
}

.bs-programs-intro__text strong {
    color: #fde68a;
}

.bs-programs-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: var(--spacing-xl);
    padding: var(--spacing-md);
    background: linear-gradient(145deg, rgba(var(--bs-theme-rgb, 26, 54, 93), 0.04), var(--color-bg-light));
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
}

.bs-programs-nav__link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.5rem 0.85rem;
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
    background: var(--color-white);
    color: var(--color-text);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast), background var(--transition-fast);
}

.bs-programs-nav__link i {
    font-size: 0.95rem;
}

.bs-programs-nav__link:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    color: #fff;
}

.bs-programs-nav__link--cyan { color: #0e7490; border-color: rgba(8, 145, 178, 0.35); }
.bs-programs-nav__link--cyan:hover { background: #0891b2; border-color: #0891b2; }
.bs-programs-nav__link--violet { color: #6d28d9; border-color: rgba(124, 58, 237, 0.35); }
.bs-programs-nav__link--violet:hover { background: #7c3aed; border-color: #7c3aed; }
.bs-programs-nav__link--teal { color: #0f766e; border-color: rgba(13, 148, 136, 0.35); }
.bs-programs-nav__link--teal:hover { background: #0d9488; border-color: #0d9488; }
.bs-programs-nav__link--emerald { color: #047857; border-color: rgba(5, 150, 105, 0.35); }
.bs-programs-nav__link--emerald:hover { background: #059669; border-color: #059669; }
.bs-programs-nav__link--amber { color: #b45309; border-color: rgba(217, 119, 6, 0.35); }
.bs-programs-nav__link--amber:hover { background: #d97706; border-color: #d97706; }
.bs-programs-nav__link--indigo { color: #4338ca; border-color: rgba(79, 70, 229, 0.35); }
.bs-programs-nav__link--indigo:hover { background: #4f46e5; border-color: #4f46e5; }
.bs-programs-nav__link--orange { color: #c2410c; border-color: rgba(234, 88, 12, 0.35); }
.bs-programs-nav__link--orange:hover { background: #ea580c; border-color: #ea580c; }
.bs-programs-nav__link--rose { color: #be123c; border-color: rgba(225, 29, 72, 0.35); }
.bs-programs-nav__link--rose:hover { background: #e11d48; border-color: #e11d48; }
.bs-programs-nav__link--fuchsia { color: #a21caf; border-color: rgba(192, 38, 211, 0.35); }
.bs-programs-nav__link--fuchsia:hover { background: #c026d3; border-color: #c026d3; }
.bs-programs-nav__link--blue { color: #1d4ed8; border-color: rgba(37, 99, 235, 0.35); }
.bs-programs-nav__link--blue:hover { background: #2563eb; border-color: #2563eb; }

.bs-programs-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xl);
}

.bs-program-detail {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    scroll-margin-top: 100px;
    border-top: 4px solid var(--bs-theme, var(--color-primary));
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.bs-program-detail:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 36px rgba(var(--bs-theme-rgb, 26, 54, 93), 0.18);
}

.bs-program-detail__header {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-md);
    padding: var(--spacing-lg) var(--spacing-xl);
    border-bottom: 1px solid var(--color-border);
    background: linear-gradient(120deg, rgba(var(--bs-theme-rgb, 26, 54, 93), 0.14) 0%, rgba(var(--bs-theme-rgb, 26, 54, 93), 0.04) 55%, transparent 100%);
}

.bs-program-detail__icon {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.45rem;
    color: #fff;
    background: linear-gradient(145deg, var(--bs-theme, var(--color-primary)), var(--bs-theme-deep, var(--color-primary-dark)));
    border-radius: var(--radius-md);
    box-shadow: 0 6px 18px rgba(var(--bs-theme-rgb, 26, 54, 93), 0.35);
}

.bs-program-detail__title {
    margin: 0 0 0.2rem;
    font-size: 1.18rem;
    font-weight: 700;
    color: var(--bs-theme-deep, var(--color-primary-dark));
}

.bs-program-detail__subtitle {
    font-size: 0.88rem;
    color: var(--color-text-light);
}

.bs-program-detail__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.55rem;
}

.bs-program-detail__shift,
.bs-program-detail__duration {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.25rem 0.6rem;
    font-size: 0.72rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    background: rgba(var(--bs-theme-rgb, 26, 54, 93), 0.1);
    border: 1px solid rgba(var(--bs-theme-rgb, 26, 54, 93), 0.22);
    color: var(--bs-theme-deep, var(--color-primary));
}

.bs-program-detail__nceac {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.25rem 0.6rem;
    font-size: 0.72rem;
    font-weight: 700;
    border-radius: var(--radius-full);
    color: #92400e;
    background: linear-gradient(135deg, #fde68a, #fcd34d);
    border: 1px solid #f59e0b;
}

.bs-program-detail__body {
    padding: var(--spacing-lg) var(--spacing-xl) var(--spacing-xl);
}

.bs-program-detail__desc {
    margin: 0 0 1rem;
    font-size: 0.98rem;
    line-height: 1.75;
    color: var(--color-text);
}

.bs-program-detail__careers {
    margin: 0 0 1.25rem;
    padding: 0.9rem 1.1rem;
    font-size: 0.9rem;
    line-height: 1.65;
    color: var(--color-text);
    background: rgba(var(--bs-theme-rgb, 26, 54, 93), 0.08);
    border-left: 4px solid var(--bs-theme, var(--color-accent));
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.bs-program-detail__careers strong {
    color: var(--bs-theme-deep, var(--color-primary-dark));
}

.bs-program-detail__panel {
    height: 100%;
    padding: 1rem 1.1rem;
    border-radius: var(--radius-lg);
    background: var(--color-bg-light);
    border: 1px solid var(--color-border);
}

.bs-program-detail__panel--scheme {
    background: rgba(var(--bs-theme-rgb, 26, 54, 93), 0.06);
    border-color: rgba(var(--bs-theme-rgb, 26, 54, 93), 0.18);
}

.bs-program-detail__section-title {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--bs-theme-deep, var(--color-primary-dark));
    margin-bottom: 0.75rem;
}

.bs-program-detail__section-title i {
    color: var(--bs-theme, var(--color-primary));
}

.bs-program-detail__list {
    margin: 0;
    padding-left: 1.15rem;
    font-size: 0.9rem;
    line-height: 1.65;
    color: var(--color-text-light);
}

.bs-program-detail__list li::marker {
    color: var(--bs-theme, var(--color-primary));
}

.bs-program-detail__list li + li {
    margin-top: 0.4rem;
}

.bs-program-detail__scheme {
    font-size: 0.9rem;
    color: var(--color-text-light);
}

.bs-program-detail__download {
    color: #fff !important;
    background: linear-gradient(135deg, var(--bs-theme, var(--color-primary)), var(--bs-theme-deep, var(--color-primary-dark))) !important;
    border: none !important;
    font-weight: 600;
    box-shadow: 0 4px 14px rgba(var(--bs-theme-rgb, 26, 54, 93), 0.3);
}

.bs-program-detail__download:hover {
    filter: brightness(1.08);
    transform: translateY(-1px);
}

.bs-programs-notice {
    display: flex;
    gap: var(--spacing-md);
    margin-top: var(--spacing-xl);
    padding: var(--spacing-lg) var(--spacing-xl);
    background: linear-gradient(135deg, rgba(26, 54, 93, 0.08) 0%, rgba(201, 162, 39, 0.12) 100%);
    border: 1px solid rgba(201, 162, 39, 0.35);
    border-radius: var(--radius-xl);
    border-left: 5px solid var(--color-accent);
    box-shadow: var(--shadow-sm);
}

.bs-programs-notice > i {
    flex-shrink: 0;
    font-size: 1.75rem;
    color: var(--color-accent);
    margin-top: 0.1rem;
}

.bs-programs-notice strong {
    color: var(--color-primary-dark);
    font-size: 1rem;
}

.bs-programs-notice p {
    margin-top: 0.35rem;
    font-size: 0.9rem;
    line-height: 1.65;
    color: var(--color-text-light);
}

.bs-programs-cta {
    margin-top: var(--spacing-xl);
    padding: var(--spacing-xl);
    border-radius: var(--radius-xl);
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 50%, #2b6cb0 100%);
    box-shadow: 0 12px 32px rgba(26, 54, 93, 0.3);
}

.bs-programs-cta .btn-primary-custom {
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: var(--color-primary-dark);
    font-weight: 700;
}

.bs-programs-cta .btn-outline-custom {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.65);
}

.bs-programs-cta .btn-outline-custom:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    border-color: #fff;
}

@media (max-width: 575.98px) {
    .bs-programs-intro__hero {
        padding: var(--spacing-lg);
    }

    .bs-program-detail__header {
        flex-direction: column;
        padding: var(--spacing-md);
    }

    .bs-program-detail__body {
        padding: var(--spacing-md);
    }

    .bs-programs-cta {
        padding: var(--spacing-lg);
    }

    .bs-programs-cta .btn-lg {
        display: block;
        width: 100%;
        margin: 0 0 0.75rem !important;
    }
}

/* Dark theme — BS Programs */
[data-theme="dark"] .bs-program-detail--cyan { --bs-theme: #22d3ee; --bs-theme-rgb: 34, 211, 238; --bs-theme-deep: #67e8f9; }
[data-theme="dark"] .bs-program-detail--violet { --bs-theme: #a78bfa; --bs-theme-rgb: 167, 139, 250; --bs-theme-deep: #c4b5fd; }
[data-theme="dark"] .bs-program-detail--teal { --bs-theme: #2dd4bf; --bs-theme-rgb: 45, 212, 191; --bs-theme-deep: #5eead4; }
[data-theme="dark"] .bs-program-detail--emerald { --bs-theme: #34d399; --bs-theme-rgb: 52, 211, 153; --bs-theme-deep: #6ee7b7; }
[data-theme="dark"] .bs-program-detail--amber { --bs-theme: #fbbf24; --bs-theme-rgb: 251, 191, 36; --bs-theme-deep: #fcd34d; }
[data-theme="dark"] .bs-program-detail--indigo { --bs-theme: #818cf8; --bs-theme-rgb: 129, 140, 248; --bs-theme-deep: #a5b4fc; }
[data-theme="dark"] .bs-program-detail--orange { --bs-theme: #fb923c; --bs-theme-rgb: 251, 146, 60; --bs-theme-deep: #fdba74; }
[data-theme="dark"] .bs-program-detail--rose { --bs-theme: #fb7185; --bs-theme-rgb: 251, 113, 133; --bs-theme-deep: #fda4af; }
[data-theme="dark"] .bs-program-detail--fuchsia { --bs-theme: #e879f9; --bs-theme-rgb: 232, 121, 249; --bs-theme-deep: #f0abfc; }
[data-theme="dark"] .bs-program-detail--blue { --bs-theme: #60a5fa; --bs-theme-rgb: 96, 165, 250; --bs-theme-deep: #93c5fd; }

[data-theme="dark"] .bs-programs-intro__hero {
    background: linear-gradient(135deg, #0f2440 0%, #1e3a5f 40%, #0f2440 100%);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(144, 205, 244, 0.15);
}

[data-theme="dark"] .bs-programs-nav {
    background: var(--color-bg-light);
    border-color: var(--color-border);
}

[data-theme="dark"] .bs-programs-nav__link {
    background: var(--color-bg-dark);
    border-color: var(--color-border);
    color: var(--color-text-light);
}

[data-theme="dark"] .bs-programs-nav__link--cyan { color: #67e8f9; border-color: rgba(34, 211, 238, 0.35); }
[data-theme="dark"] .bs-programs-nav__link--violet { color: #c4b5fd; border-color: rgba(167, 139, 250, 0.35); }
[data-theme="dark"] .bs-programs-nav__link--teal { color: #5eead4; border-color: rgba(45, 212, 191, 0.35); }
[data-theme="dark"] .bs-programs-nav__link--emerald { color: #6ee7b7; border-color: rgba(52, 211, 153, 0.35); }
[data-theme="dark"] .bs-programs-nav__link--amber { color: #fcd34d; border-color: rgba(251, 191, 36, 0.35); }
[data-theme="dark"] .bs-programs-nav__link--indigo { color: #a5b4fc; border-color: rgba(129, 140, 248, 0.35); }
[data-theme="dark"] .bs-programs-nav__link--orange { color: #fdba74; border-color: rgba(251, 146, 60, 0.35); }
[data-theme="dark"] .bs-programs-nav__link--rose { color: #fda4af; border-color: rgba(251, 113, 133, 0.35); }
[data-theme="dark"] .bs-programs-nav__link--fuchsia { color: #f0abfc; border-color: rgba(232, 121, 249, 0.35); }
[data-theme="dark"] .bs-programs-nav__link--blue { color: #93c5fd; border-color: rgba(96, 165, 250, 0.35); }

[data-theme="dark"] .bs-program-detail {
    background: var(--color-bg-light);
    border-color: var(--color-border);
}

[data-theme="dark"] .bs-program-detail__title,
[data-theme="dark"] .bs-program-detail__section-title,
[data-theme="dark"] .bs-program-detail__careers strong {
    color: var(--bs-theme, #f1f5f9);
}

[data-theme="dark"] .bs-program-detail__desc,
[data-theme="dark"] .bs-program-detail__careers {
    color: var(--color-text-light);
}

[data-theme="dark"] .bs-program-detail__panel {
    background: var(--color-bg-dark);
    border-color: var(--color-border);
}

[data-theme="dark"] .bs-program-detail__panel--scheme {
    background: rgba(var(--bs-theme-rgb, 96, 165, 250), 0.1);
    border-color: rgba(var(--bs-theme-rgb, 96, 165, 250), 0.25);
}

[data-theme="dark"] .bs-program-detail__shift,
[data-theme="dark"] .bs-program-detail__duration {
    color: var(--bs-theme, #e2e8f0);
    background: rgba(var(--bs-theme-rgb, 96, 165, 250), 0.15);
    border-color: rgba(var(--bs-theme-rgb, 96, 165, 250), 0.3);
}

[data-theme="dark"] .bs-program-detail__nceac {
    color: #78350f;
    background: linear-gradient(135deg, #fde68a, #fbbf24);
}

[data-theme="dark"] .bs-programs-notice {
    background: linear-gradient(135deg, rgba(15, 36, 64, 0.9) 0%, rgba(201, 162, 39, 0.15) 100%);
    border-color: rgba(201, 162, 39, 0.4);
}

[data-theme="dark"] .bs-programs-notice strong {
    color: #fde68a;
}

[data-theme="dark"] .bs-programs-cta {
    background: linear-gradient(135deg, #0f2440 0%, #1a365d 50%, #2c5282 100%);
    border: 1px solid rgba(144, 205, 244, 0.2);
}

[data-theme="dark"] .bs-program-detail:hover {
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(var(--bs-theme-rgb, 96, 165, 250), 0.25);
}

/* Intermediate Programs page — colorful themes */
.inter-programs-page {
    max-width: 980px;
    margin: 0 auto;
}

.inter-program-detail--rose { --inter-theme: #e11d48; --inter-theme-rgb: 225, 29, 72; --inter-theme-deep: #be123c; }
.inter-program-detail--indigo { --inter-theme: #4f46e5; --inter-theme-rgb: 79, 70, 229; --inter-theme-deep: #4338ca; }
.inter-program-detail--cyan { --inter-theme: #0891b2; --inter-theme-rgb: 8, 145, 178; --inter-theme-deep: #0e7490; }
.inter-program-detail--violet { --inter-theme: #7c3aed; --inter-theme-rgb: 124, 58, 237; --inter-theme-deep: #6d28d9; }
.inter-program-detail--blue { --inter-theme: #2563eb; --inter-theme-rgb: 37, 99, 235; --inter-theme-deep: #1d4ed8; }

.inter-programs-intro {
    margin-bottom: var(--spacing-xl);
}

.inter-programs-intro__hero {
    position: relative;
    padding: var(--spacing-xl);
    border-radius: var(--radius-xl);
    background: linear-gradient(135deg, #065f46 0%, #047857 40%, #1a365d 100%);
    color: #fff;
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(6, 95, 70, 0.28);
}

.inter-programs-intro__hero::before {
    content: '';
    position: absolute;
    top: -35%;
    right: -8%;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(167, 139, 250, 0.35) 0%, transparent 70%);
    pointer-events: none;
}

.inter-programs-intro__hero::after {
    content: '';
    position: absolute;
    bottom: -25%;
    left: -5%;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(251, 191, 36, 0.3) 0%, transparent 70%);
    pointer-events: none;
}

.inter-programs-intro__hero > * {
    position: relative;
    z-index: 1;
}

.inter-programs-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin-bottom: var(--spacing-md);
}

.inter-programs-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.9rem;
    font-size: 0.78rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    border: 1px solid transparent;
}

.inter-programs-badge--blue { color: #bfdbfe; background: rgba(59, 130, 246, 0.28); border-color: rgba(147, 197, 253, 0.45); }
.inter-programs-badge--green { color: #bbf7d0; background: rgba(56, 161, 105, 0.35); border-color: rgba(134, 239, 172, 0.45); }
.inter-programs-badge--gold { color: #fde68a; background: rgba(201, 162, 39, 0.32); border-color: rgba(252, 211, 77, 0.5); }

.inter-programs-intro__text {
    font-size: 1.02rem;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.93);
}

.inter-programs-intro__text strong {
    color: #fde68a;
}

.inter-programs-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin-bottom: var(--spacing-xl);
    padding: var(--spacing-md);
    background: var(--color-bg-light);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
}

.inter-programs-nav__link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.55rem 0.9rem;
    font-size: 0.84rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
    background: var(--color-white);
    color: var(--color-text);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast), color var(--transition-fast), background var(--transition-fast), border-color var(--transition-fast);
}

.inter-programs-nav__link:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    color: #fff;
}

.inter-programs-nav__link--rose { color: #be123c; border-color: rgba(225, 29, 72, 0.35); }
.inter-programs-nav__link--rose:hover { background: #e11d48; border-color: #e11d48; }
.inter-programs-nav__link--indigo { color: #4338ca; border-color: rgba(79, 70, 229, 0.35); }
.inter-programs-nav__link--indigo:hover { background: #4f46e5; border-color: #4f46e5; }
.inter-programs-nav__link--cyan { color: #0e7490; border-color: rgba(8, 145, 178, 0.35); }
.inter-programs-nav__link--cyan:hover { background: #0891b2; border-color: #0891b2; }
.inter-programs-nav__link--violet { color: #6d28d9; border-color: rgba(124, 58, 237, 0.35); }
.inter-programs-nav__link--violet:hover { background: #7c3aed; border-color: #7c3aed; }
.inter-programs-nav__link--blue { color: #1d4ed8; border-color: rgba(37, 99, 235, 0.35); }
.inter-programs-nav__link--blue:hover { background: #2563eb; border-color: #2563eb; }

.inter-programs-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xl);
}

.inter-program-detail {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    scroll-margin-top: 100px;
    border-top: 4px solid var(--inter-theme, var(--color-secondary));
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.inter-program-detail:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 36px rgba(var(--inter-theme-rgb, 56, 161, 105), 0.2);
}

.inter-program-detail__header {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-md);
    padding: var(--spacing-lg) var(--spacing-xl);
    border-bottom: 1px solid var(--color-border);
    background: linear-gradient(120deg, rgba(var(--inter-theme-rgb, 56, 161, 105), 0.16) 0%, rgba(var(--inter-theme-rgb, 56, 161, 105), 0.04) 60%, transparent 100%);
}

.inter-program-detail__icon {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.45rem;
    color: #fff;
    background: linear-gradient(145deg, var(--inter-theme), var(--inter-theme-deep));
    border-radius: var(--radius-md);
    box-shadow: 0 6px 18px rgba(var(--inter-theme-rgb), 0.35);
}

.inter-program-detail__title {
    margin: 0 0 0.2rem;
    font-size: 1.18rem;
    font-weight: 700;
    color: var(--inter-theme-deep);
}

.inter-program-detail__subtitle {
    font-size: 0.88rem;
    color: var(--color-text-light);
}

.inter-program-detail__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.55rem;
}

.inter-program-detail__duration,
.inter-program-detail__board {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.25rem 0.6rem;
    font-size: 0.72rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    background: rgba(var(--inter-theme-rgb), 0.1);
    border: 1px solid rgba(var(--inter-theme-rgb), 0.22);
    color: var(--inter-theme-deep);
}

.inter-program-detail__board {
    color: #047857;
    background: rgba(56, 161, 105, 0.12);
    border-color: rgba(56, 161, 105, 0.3);
}

.inter-program-detail__body {
    padding: var(--spacing-lg) var(--spacing-xl) var(--spacing-xl);
}

.inter-program-detail__desc {
    margin: 0 0 1rem;
    font-size: 0.98rem;
    line-height: 1.75;
    color: var(--color-text);
}

.inter-program-detail__outcomes {
    margin: 0 0 1.25rem;
    padding: 0.9rem 1.1rem;
    font-size: 0.9rem;
    line-height: 1.65;
    color: var(--color-text);
    background: rgba(var(--inter-theme-rgb), 0.08);
    border-left: 4px solid var(--inter-theme);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.inter-program-detail__outcomes strong {
    color: var(--inter-theme-deep);
}

.inter-program-detail__panel {
    height: 100%;
    padding: 1rem 1.1rem;
    border-radius: var(--radius-lg);
    background: var(--color-bg-light);
    border: 1px solid var(--color-border);
}

.inter-program-detail__panel--accent {
    background: rgba(var(--inter-theme-rgb), 0.07);
    border-color: rgba(var(--inter-theme-rgb), 0.2);
}

.inter-program-detail__section-title {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--inter-theme-deep);
    margin-bottom: 0.75rem;
}

.inter-program-detail__section-title i {
    color: var(--inter-theme);
}

.inter-program-detail__list {
    margin: 0;
    padding-left: 1.15rem;
    font-size: 0.9rem;
    line-height: 1.65;
    color: var(--color-text-light);
}

.inter-program-detail__list li::marker {
    color: var(--inter-theme);
}

.inter-program-detail__list li + li {
    margin-top: 0.35rem;
}

.inter-program-detail__list--ordered {
    padding-left: 1.25rem;
}

.inter-program-detail__duration-text {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--color-text-light);
}

.inter-program-detail__btn {
    color: #fff !important;
    background: linear-gradient(135deg, var(--inter-theme), var(--inter-theme-deep)) !important;
    border: none !important;
    font-weight: 600;
    box-shadow: 0 4px 14px rgba(var(--inter-theme-rgb), 0.3);
}

.inter-program-detail__btn:hover {
    filter: brightness(1.08);
    transform: translateY(-1px);
}

.inter-programs-notice {
    display: flex;
    gap: var(--spacing-md);
    margin-top: var(--spacing-xl);
    padding: var(--spacing-lg) var(--spacing-xl);
    background: linear-gradient(135deg, rgba(56, 161, 105, 0.1) 0%, rgba(26, 54, 93, 0.08) 100%);
    border: 1px solid rgba(56, 161, 105, 0.35);
    border-radius: var(--radius-xl);
    border-left: 5px solid var(--color-secondary);
    box-shadow: var(--shadow-sm);
}

.inter-programs-notice > i {
    flex-shrink: 0;
    font-size: 1.75rem;
    color: var(--color-secondary);
}

.inter-programs-notice strong {
    color: var(--color-primary-dark);
}

.inter-programs-notice p {
    margin-top: 0.35rem;
    font-size: 0.9rem;
    line-height: 1.65;
    color: var(--color-text-light);
}

.inter-programs-cta {
    margin-top: var(--spacing-xl);
    padding: var(--spacing-xl);
    border-radius: var(--radius-xl);
    background: linear-gradient(135deg, #047857 0%, #059669 45%, #1a365d 100%);
    box-shadow: 0 12px 32px rgba(6, 95, 70, 0.3);
}

.inter-programs-cta .btn-primary-custom {
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: var(--color-primary-dark);
    font-weight: 700;
}

.inter-programs-cta .btn-outline-custom {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.65);
}

.inter-programs-cta .btn-outline-custom:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    border-color: #fff;
}

@media (max-width: 575.98px) {
    .inter-programs-intro__hero { padding: var(--spacing-lg); }
    .inter-program-detail__header { flex-direction: column; padding: var(--spacing-md); }
    .inter-program-detail__body { padding: var(--spacing-md); }
    .inter-programs-cta { padding: var(--spacing-lg); }
    .inter-programs-cta .btn-lg { display: block; width: 100%; margin: 0 0 0.75rem !important; }
}

[data-theme="dark"] .inter-program-detail--rose { --inter-theme: #fb7185; --inter-theme-rgb: 251, 113, 133; --inter-theme-deep: #fda4af; }
[data-theme="dark"] .inter-program-detail--indigo { --inter-theme: #818cf8; --inter-theme-rgb: 129, 140, 248; --inter-theme-deep: #a5b4fc; }
[data-theme="dark"] .inter-program-detail--cyan { --inter-theme: #22d3ee; --inter-theme-rgb: 34, 211, 238; --inter-theme-deep: #67e8f9; }
[data-theme="dark"] .inter-program-detail--violet { --inter-theme: #a78bfa; --inter-theme-rgb: 167, 139, 250; --inter-theme-deep: #c4b5fd; }
[data-theme="dark"] .inter-program-detail--blue { --inter-theme: #60a5fa; --inter-theme-rgb: 96, 165, 250; --inter-theme-deep: #93c5fd; }

[data-theme="dark"] .inter-programs-intro__hero {
    background: linear-gradient(135deg, #064e3b 0%, #0f2440 50%, #1e3a5f 100%);
    border: 1px solid rgba(52, 211, 153, 0.2);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45);
}

[data-theme="dark"] .inter-programs-nav { background: var(--color-bg-light); }
[data-theme="dark"] .inter-programs-nav__link { background: var(--color-bg-dark); color: var(--color-text-light); }
[data-theme="dark"] .inter-program-detail { background: var(--color-bg-light); }
[data-theme="dark"] .inter-program-detail__title,
[data-theme="dark"] .inter-program-detail__section-title,
[data-theme="dark"] .inter-program-detail__outcomes strong { color: var(--inter-theme, #f1f5f9); }
[data-theme="dark"] .inter-program-detail__desc,
[data-theme="dark"] .inter-program-detail__outcomes { color: var(--color-text-light); }
[data-theme="dark"] .inter-program-detail__panel { background: var(--color-bg-dark); }
[data-theme="dark"] .inter-program-detail__panel--accent { background: rgba(var(--inter-theme-rgb), 0.12); }
[data-theme="dark"] .inter-program-detail__duration,
[data-theme="dark"] .inter-program-detail__board { color: var(--inter-theme); }
[data-theme="dark"] .inter-program-detail__board { color: #6ee7b7; background: rgba(52, 211, 153, 0.12); }
[data-theme="dark"] .inter-programs-notice { background: linear-gradient(135deg, rgba(6, 78, 59, 0.5) 0%, rgba(15, 36, 64, 0.8) 100%); border-color: rgba(52, 211, 153, 0.35); }
[data-theme="dark"] .inter-programs-notice strong { color: #6ee7b7; }
[data-theme="dark"] .inter-programs-cta { background: linear-gradient(135deg, #064e3b 0%, #0f2440 50%, #1a365d 100%); border: 1px solid rgba(52, 211, 153, 0.2); }
[data-theme="dark"] .inter-program-detail:hover { box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(var(--inter-theme-rgb), 0.25); }

[data-theme="dark"] .inter-programs-nav__link--rose { color: #fda4af; }
[data-theme="dark"] .inter-programs-nav__link--indigo { color: #a5b4fc; }
[data-theme="dark"] .inter-programs-nav__link--cyan { color: #67e8f9; }
[data-theme="dark"] .inter-programs-nav__link--violet { color: #c4b5fd; }

/* Admission hub & stream pages */
.admission-hub {
    max-width: 960px;
    margin: 0 auto;
}

.admission-hub__intro {
    padding: var(--spacing-lg) var(--spacing-xl);
    margin-bottom: var(--spacing-xl);
    border-radius: var(--radius-xl);
    background: linear-gradient(135deg, rgba(26, 54, 93, 0.08) 0%, rgba(201, 162, 39, 0.1) 100%);
    border: 1px solid var(--color-border);
    font-size: 1.02rem;
    line-height: 1.7;
}

.admission-hub-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: var(--spacing-xl);
    border-radius: var(--radius-xl);
    text-decoration: none;
    color: inherit;
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-md);
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.admission-hub-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    color: inherit;
}

.admission-hub-card--inter {
    background: linear-gradient(160deg, #ecfdf5 0%, #fff 45%, #eff6ff 100%);
    border-top: 4px solid #059669;
}

.admission-hub-card--bs {
    background: linear-gradient(160deg, #eff6ff 0%, #fff 45%, #fffbeb 100%);
    border-top: 4px solid #1a365d;
}

.admission-hub-card__icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    border-radius: var(--radius-md);
    margin-bottom: var(--spacing-md);
    color: #fff;
}

.admission-hub-card--inter .admission-hub-card__icon {
    background: linear-gradient(135deg, #059669, #047857);
}

.admission-hub-card--bs .admission-hub-card__icon {
    background: linear-gradient(135deg, #1a365d, #2c5282);
}

.admission-hub-card__title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.35rem;
    color: var(--color-primary-dark);
}

.admission-hub-card__meta {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--color-text-light);
    margin-bottom: 0.75rem;
}

.admission-hub-card__desc {
    font-size: 0.92rem;
    line-height: 1.6;
    color: var(--color-text);
    margin-bottom: var(--spacing-md);
}

.admission-hub-card__points {
    margin: 0 0 var(--spacing-md);
    padding-left: 1.1rem;
    font-size: 0.88rem;
    color: var(--color-text-light);
}

.admission-hub-card__points li + li {
    margin-top: 0.3rem;
}

.admission-hub-card__cta {
    margin-top: auto;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--color-primary);
}

.admission-hub-card--inter .admission-hub-card__cta { color: #047857; }
.admission-hub-card--bs .admission-hub-card__cta { color: #1a365d; }

.admission-hub__notice {
    display: flex;
    gap: var(--spacing-md);
    margin-top: var(--spacing-xl);
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    background: var(--color-bg-light);
    border: 1px solid var(--color-border);
    border-left: 4px solid var(--color-accent);
    font-size: 0.92rem;
}

.admission-hub__notice i {
    color: var(--color-accent);
    font-size: 1.25rem;
    flex-shrink: 0;
}

.admission-stream__hero {
    padding: var(--spacing-lg) var(--spacing-xl);
    margin-bottom: var(--spacing-xl);
    border-radius: var(--radius-xl);
    color: #fff;
}

.admission-stream--inter .admission-stream__hero {
    background: linear-gradient(135deg, #047857 0%, #059669 50%, #1a365d 100%);
    box-shadow: 0 10px 32px rgba(5, 150, 105, 0.25);
}

.admission-stream--bs .admission-stream__hero {
    background: linear-gradient(135deg, #0f2440 0%, #1a365d 50%, #2c5282 100%);
    box-shadow: 0 10px 32px rgba(26, 54, 93, 0.3);
}

.admission-stream__eyebrow {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #fde68a;
    margin-bottom: 0.5rem;
}

.admission-stream__intro {
    font-size: 1rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.93);
}

.admission-stream__card {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    padding: var(--spacing-xl);
    box-shadow: var(--shadow-sm);
}

.admission-stream__section {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-primary-dark);
}

.admission-stream--inter .admission-stream__section i { color: #059669; }
.admission-stream--bs .admission-stream__section i { color: #c9a227; }

.admission-stream__steps {
    margin: var(--spacing-md) 0 0;
    padding-left: 1.25rem;
    line-height: 1.7;
}

.admission-stream__steps li + li {
    margin-top: 0.5rem;
}

.admission-stream__list {
    margin: var(--spacing-md) 0 0;
    padding-left: 1.25rem;
    line-height: 1.65;
}

.admission-stream__table thead th {
    background: var(--color-primary);
    color: #fff;
    font-size: 0.88rem;
}

.admission-stream--inter .admission-stream__table thead th { background: #047857; }
.admission-stream--bs .admission-stream__table thead th { background: #1a365d; }

.admission-stream__policy {
    display: flex;
    gap: 0.65rem;
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    background: var(--color-bg-light);
    border-left: 4px solid var(--color-accent);
    font-size: 0.9rem;
    line-height: 1.6;
}

.admission-stream--inter .admission-stream__policy { border-left-color: #059669; }
.admission-stream--bs .admission-stream__policy { border-left-color: #c9a227; }

.admission-stream__policy i {
    flex-shrink: 0;
    color: var(--color-accent);
    margin-top: 0.1rem;
}

.admission-stream__sidebar-card {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    box-shadow: var(--shadow-sm);
}

.admission-stream__sidebar-card + .admission-stream__sidebar-card {
    margin-top: var(--spacing-md);
}

.admission-stream__sidebar-card h3 {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 1rem;
    margin-bottom: 0.75rem;
}

.admission-stream--inter .admission-stream__sidebar-card h3 i { color: #059669; }
.admission-stream--bs .admission-stream__sidebar-card h3 i { color: #c9a227; }

.admission-stream__dates-note {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--color-accent);
    margin-bottom: 0.75rem;
}

.admission-stream__dates li {
    padding: 0.65rem 0;
    border-bottom: 1px solid var(--color-border);
    font-size: 0.88rem;
}

.admission-stream__dates li:last-child {
    border-bottom: none;
}

.admission-stream__dates strong {
    display: block;
    color: var(--color-primary-dark);
    margin-bottom: 0.15rem;
}

.admission-stream__dates span {
    color: var(--color-text-light);
}

.admission-stream__btn {
    color: #fff !important;
    border: none !important;
    font-weight: 600;
}

.admission-stream--inter .admission-stream__btn {
    background: linear-gradient(135deg, #059669, #047857) !important;
}

.admission-stream--bs .admission-stream__btn {
    background: linear-gradient(135deg, #1a365d, #2c5282) !important;
}

.admission-stream__btn-outline {
    background: transparent !important;
    font-weight: 600;
}

.admission-stream--inter .admission-stream__btn-outline {
    color: #047857 !important;
    border: 1px solid rgba(5, 150, 105, 0.45) !important;
}

.admission-stream--bs .admission-stream__btn-outline {
    color: #1a365d !important;
    border: 1px solid rgba(26, 54, 93, 0.35) !important;
}

.admission-stream__sidebar-card--alt {
    background: var(--color-bg-light);
}

[data-theme="dark"] .admission-hub__intro,
[data-theme="dark"] .admission-hub__notice,
[data-theme="dark"] .admission-stream__card,
[data-theme="dark"] .admission-stream__sidebar-card {
    background: var(--color-bg-light);
    border-color: var(--color-border);
}

[data-theme="dark"] .admission-hub-card--inter {
    background: linear-gradient(160deg, rgba(5, 150, 105, 0.15) 0%, var(--color-bg-light) 100%);
}

[data-theme="dark"] .admission-hub-card--bs {
    background: linear-gradient(160deg, rgba(26, 54, 93, 0.2) 0%, var(--color-bg-light) 100%);
}

[data-theme="dark"] .admission-hub-card__title,
[data-theme="dark"] .admission-stream__section {
    color: #f1f5f9;
}

[data-theme="dark"] .admission-stream__policy {
    background: var(--color-bg-dark);
}

[data-theme="dark"] .admission-stream--inter .admission-stream__btn-outline { color: #6ee7b7 !important; border-color: rgba(52, 211, 153, 0.4) !important; }
[data-theme="dark"] .admission-stream--bs .admission-stream__btn-outline { color: #90cdf4 !important; border-color: rgba(144, 205, 244, 0.35) !important; }

/* ========================================
   Programs
   ======================================== */
.program-card {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
    text-align: center;
    border: 1px solid var(--color-border);
    transition: all var(--transition-base);
    height: 100%;
}

.program-card:hover {
    border-color: var(--color-primary);
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.program-icon {
    width: 70px;
    height: 70px;
    border-radius: var(--radius-lg);
    background: var(--color-bg-light);
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin: 0 auto var(--spacing-md);
    transition: all var(--transition-base);
}

.program-card:hover .program-icon {
    background: var(--color-primary);
    color: var(--color-white);
}

/* ========================================
   Gallery
   ======================================== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: var(--spacing-md);
}

.gallery-item {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 4/3;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: var(--color-bg-dark);
    transition: transform var(--transition-slow);
}

.gallery-item:hover img {
    transform: scale(1.08);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(transparent 50%, rgba(26, 54, 93, 0.85));
    display: flex;
    align-items: flex-end;
    padding: var(--spacing-md);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay span {
    color: var(--color-white);
    font-weight: 500;
    font-size: 0.9rem;
}

/* ========================================
   Testimonials
   ======================================== */
.testimonial-card {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
    box-shadow: var(--shadow-sm);
    border: 2px solid rgba(var(--t-card-rgb, 201, 162, 39), 0.42);
    border-left: 5px solid var(--t-card-theme, var(--color-accent));
    height: 100%;
    position: relative;
    background: linear-gradient(
        135deg,
        rgba(var(--t-card-rgb, 201, 162, 39), 0.07) 0%,
        var(--color-white) 45%
    );
}

.testimonial-card::before {
    content: '\201C';
    font-size: 4rem;
    color: var(--t-card-theme, var(--color-accent));
    opacity: 0.35;
    position: absolute;
    top: 10px;
    left: 20px;
    line-height: 1;
    font-family: Georgia, serif;
}

.testimonial-text {
    font-style: italic;
    color: var(--color-text-light);
    margin-bottom: var(--spacing-lg);
    position: relative;
    z-index: 1;
    text-align: justify;
    text-justify: inter-word;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    text-align: left;
}

.testimonial-card--indigo { --t-card-theme: #4f46e5; --t-card-rgb: 79, 70, 229; }
.testimonial-card--cyan { --t-card-theme: #0891b2; --t-card-rgb: 8, 145, 178; }
.testimonial-card--emerald { --t-card-theme: #059669; --t-card-rgb: 5, 150, 105; }
.testimonial-card--amber { --t-card-theme: #d97706; --t-card-rgb: 217, 119, 6; }
.testimonial-card--violet { --t-card-theme: #7c3aed; --t-card-rgb: 124, 58, 237; }
.testimonial-card--rose { --t-card-theme: #e11d48; --t-card-rgb: 225, 29, 72; }
.testimonial-card--sky { --t-card-theme: #0284c7; --t-card-rgb: 2, 132, 199; }

.testimonial-author img {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-full);
    object-fit: cover;
}

.testimonial-stars {
    color: var(--color-accent);
    font-size: 0.85rem;
}

/* Homepage testimonials slider */
.testimonials-slider {
    position: relative;
}

.testimonials-slider-viewport {
    overflow: hidden;
}

.testimonials-slider-track {
    display: flex;
    gap: var(--spacing-lg);
    transition: transform 0.55s ease;
    will-change: transform;
}

@media (prefers-reduced-motion: reduce) {
    .testimonials-slider-track {
        transition: none;
    }
}

.testimonials-slider-slide {
    flex: 0 0 100%;
    min-width: 0;
}

@media (min-width: 768px) {
    .testimonials-slider-slide {
        flex: 0 0 calc(50% - var(--spacing-lg) / 2);
    }
}

@media (min-width: 992px) {
    .testimonials-slider-slide {
        flex: 0 0 calc(33.333% - var(--spacing-lg) * 2 / 3);
    }
}

.testimonials-slider-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-md);
    margin-top: var(--spacing-xl);
}

.testimonials-slider-btn {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-full);
    border: 1px solid var(--color-border);
    background: var(--color-white);
    color: var(--color-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast);
    flex-shrink: 0;
}

.testimonials-slider-btn:hover,
.testimonials-slider-btn:focus-visible {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: var(--color-white);
}

.testimonials-slider-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
    pointer-events: none;
}

.testimonials-slider-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    min-height: 12px;
}

.testimonials-slider-dot {
    width: 10px;
    height: 10px;
    border-radius: var(--radius-full);
    border: 0;
    padding: 0;
    background: var(--color-border);
    cursor: pointer;
    transition: background var(--transition-fast), transform var(--transition-fast);
}

.testimonials-slider-dot.is-active {
    background: var(--color-accent);
    transform: scale(1.15);
}

.testimonials-slider-dot:hover,
.testimonials-slider-dot:focus-visible {
    background: var(--color-primary);
}

/* Video testimonials (separate page — lazy play) */
.video-testimonial-card {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.video-testimonial-play {
    position: relative;
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    background: #111;
    cursor: pointer;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.video-testimonial-play img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform var(--transition-base), opacity var(--transition-base);
}

.video-testimonial-play:hover img,
.video-testimonial-play:focus-visible img {
    transform: scale(1.03);
    opacity: 0.92;
}

.video-testimonial-play-icon {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.video-testimonial-play-icon i {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-full);
    background: rgba(0, 0, 0, 0.55);
    color: var(--color-white);
    font-size: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-left: 4px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
    transition: background var(--transition-fast), transform var(--transition-fast);
}

.video-testimonial-play:hover .video-testimonial-play-icon i,
.video-testimonial-play:focus-visible .video-testimonial-play-icon i {
    background: var(--color-accent);
    transform: scale(1.05);
}

.video-testimonial-duration {
    position: absolute;
    right: 10px;
    bottom: 10px;
    background: rgba(0, 0, 0, 0.75);
    color: var(--color-white);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: var(--radius-sm);
    pointer-events: none;
}

.video-testimonial-body {
    padding: var(--spacing-lg);
    margin: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.video-testimonial-quote {
    font-size: 0.95rem;
    color: var(--color-text-light);
    margin-bottom: var(--spacing-md);
    flex: 1;
}

.video-testimonial-meta {
    font-size: 0.9rem;
}

.video-testimonial-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.88);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-lg);
}

.video-testimonial-modal .video-modal-content {
    position: relative;
    width: min(960px, 100%);
    aspect-ratio: 16 / 9;
    background: #000;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.video-testimonial-modal iframe,
.video-testimonial-modal video {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
    object-fit: contain;
    background: #000;
}

.video-testimonial-modal .video-modal-close {
    position: absolute;
    top: -44px;
    right: 0;
    background: transparent;
    border: 0;
    color: var(--color-white);
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    padding: 0 4px;
}

.video-testimonial-modal .video-modal-title {
    position: absolute;
    top: -44px;
    left: 0;
    color: var(--color-white);
    font-size: 0.95rem;
    font-weight: 500;
    max-width: calc(100% - 48px);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ========================================
   Downloads
   ======================================== */
.download-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-md) var(--spacing-lg);
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    margin-bottom: var(--spacing-sm);
    transition: all var(--transition-fast);
}

.download-item:hover {
    border-color: var(--color-primary);
    box-shadow: var(--shadow-sm);
}

.download-icon {
    width: 45px;
    height: 45px;
    border-radius: var(--radius-md);
    background: #fed7d7;
    color: #c53030;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

/* ========================================
   Staff Cards
   ======================================== */
.staff-card {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    background: var(--color-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border);
    text-align: center;
    transition: all var(--transition-base);
}

.staff-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.staff-photo-wrap {
    padding: var(--spacing-md) var(--spacing-md) 0;
    background: linear-gradient(180deg, rgba(26, 54, 93, 0.06) 0%, transparent 100%);
}

.staff-photo-frame {
    width: 96px;
    aspect-ratio: 4 / 5;
    margin: 0 auto;
    padding: 2px;
    border-radius: var(--radius-md);
    background: linear-gradient(145deg, var(--color-accent), var(--color-primary-light));
    box-shadow: 0 6px 18px rgba(15, 36, 64, 0.12);
    overflow: hidden;
}

.staff-photo {
    width: 100%;
    height: 100%;
    border-radius: calc(var(--radius-lg) - 2px);
    object-fit: cover;
    object-position: center 12%;
    display: block;
    margin: 0;
    border: 2px solid var(--color-white);
    background: #dbeafe;
    transition: transform var(--transition-base);
}

.staff-card:hover .staff-photo {
    transform: scale(1.02);
}

.staff-info {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    padding: 0.35rem var(--spacing-md) var(--spacing-md);
}

.staff-name,
.staff-info > .h5 {
    min-height: 2.2rem;
    line-height: 1.25;
    font-size: 0.95rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0.15rem 0 0.1rem;
}

.staff-qualification {
    min-height: 1.1rem;
    font-size: 0.78rem;
    margin-bottom: 0.1rem;
}

.staff-info-contact {
    margin-top: auto;
    padding-top: 0.35rem;
}

.staff-contact-line {
    min-height: 1.1rem;
    line-height: 1.25;
    font-size: 0.78rem;
    overflow: hidden;
    text-overflow: ellipsis;
}

.staff-designation {
    color: var(--color-accent);
    font-weight: 600;
    font-size: 0.82rem;
    margin: 0 0 0.1rem;
}

.staff-department {
    color: var(--color-text-light);
    font-size: 0.78rem;
    margin-bottom: 0.15rem !important;
}

.staff-contact-placeholder,
.staff-department--empty {
    visibility: hidden;
}

.staff-info h3 {
    font-size: 1.1rem;
    margin-bottom: var(--spacing-xs);
}

.staff-card-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.3rem;
    padding: 0.35rem var(--spacing-sm) 0.15rem;
    flex-shrink: 0;
}

.staff-card-badges:empty {
    display: none;
}

.staff-card-badges:not(:empty) + .staff-info {
    padding-top: 0.15rem;
}

/* Full-width photo at top of staff card (teaching & non-teaching) */
.staff-card > .staff-photo {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    object-position: center 12%;
    border-radius: 0;
    border: none;
    margin: 0;
}

.staff-role-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    padding: 0.3rem 0.55rem;
    border-radius: var(--radius-full);
    color: #fff;
    box-shadow: var(--shadow-sm);
    line-height: 1.2;
    max-width: 100%;
}

.staff-role-badge--principal {
    background: linear-gradient(135deg, #b7791f, #ecc94b);
    color: #1a202c;
}

.staff-role-badge--vice-principal {
    background: linear-gradient(135deg, #553c9a, #805ad5);
}

.staff-role-badge--hod {
    background: linear-gradient(135deg, #1a5632, #38a169);
}

.staff-role-badge--coordinator {
    background: linear-gradient(135deg, #1a365d, #3182ce);
}

.staff-card--principal {
    border-top: 4px solid #ecc94b;
}

.staff-card--vice_principal {
    border-top: 4px solid #805ad5;
}

.staff-card--hod {
    border-top: 4px solid #38a169;
}

.staff-card--coordinator {
    border-top: 4px solid #3182ce;
}

.staff-leadership-section {
    padding: var(--spacing-xl);
    border-radius: var(--radius-xl);
    background: linear-gradient(135deg, rgba(26, 54, 93, 0.06), rgba(201, 162, 39, 0.08));
    border: 1px solid var(--color-border);
}

.staff-department-section {
    padding-top: var(--spacing-md);
    border-top: 1px solid var(--color-border);
    scroll-margin-top: 100px;
}

.staff-department-heading {
    scroll-margin-top: 100px;
}

#college-leadership-heading {
    scroll-margin-top: 100px;
}

.staff-department-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-md);
    flex-wrap: wrap;
    margin-bottom: var(--spacing-lg);
    padding-bottom: var(--spacing-sm);
    border-bottom: 2px solid rgba(26, 54, 93, 0.12);
}

.staff-faculty-total {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-md) var(--spacing-lg);
    border-radius: var(--radius-xl);
    border: 2px solid transparent;
    box-shadow: var(--shadow-sm);
}

.staff-faculty-total > i {
    font-size: 1.75rem;
    flex-shrink: 0;
}

.staff-faculty-total__body {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.staff-faculty-total__num {
    font-size: 1.75rem;
    font-weight: 700;
}

.staff-faculty-total__label {
    font-size: 0.82rem;
    font-weight: 600;
    opacity: 0.92;
}

.staff-faculty-total--primary {
    background: linear-gradient(135deg, rgba(26, 54, 93, 0.1), rgba(26, 54, 93, 0.04));
    border-color: rgba(26, 54, 93, 0.2);
    color: var(--color-primary);
}

.staff-faculty-total--primary > i {
    color: var(--color-primary);
}

.staff-faculty-total--accent {
    background: linear-gradient(135deg, rgba(201, 162, 39, 0.18), rgba(201, 162, 39, 0.06));
    border-color: rgba(201, 162, 39, 0.35);
    color: #92400e;
}

.staff-faculty-total--accent > i {
    color: var(--color-accent);
}

.staff-faculty-total--phd {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.12), rgba(124, 58, 237, 0.04));
    border-color: rgba(124, 58, 237, 0.3);
    color: #6d28d9;
}

.staff-faculty-total--phd > i {
    color: #7c3aed;
}

.staff-faculty-total--mphil {
    background: linear-gradient(135deg, rgba(13, 148, 136, 0.12), rgba(13, 148, 136, 0.04));
    border-color: rgba(13, 148, 136, 0.3);
    color: #0f766e;
}

.staff-faculty-total--mphil > i {
    color: #0d9488;
}

.staff-faculty-total--masters {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(37, 99, 235, 0.04));
    border-color: rgba(37, 99, 235, 0.28);
    color: #1d4ed8;
}

.staff-faculty-total--masters > i {
    color: #2563eb;
}

.staff-faculty-count {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.82rem;
    font-weight: 700;
    padding: 0.45rem 0.9rem;
    border-radius: var(--radius-full);
    border: 2px solid;
    background: var(--color-white);
    white-space: nowrap;
}

.staff-faculty-count__num {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1;
}

.staff-faculty-count__label {
    font-weight: 600;
    font-size: 0.75rem;
}

.staff-faculty-count--cyan { color: #0e7490; border-color: #0891b2; background: rgba(8, 145, 178, 0.1); }
.staff-faculty-count--violet { color: #6d28d9; border-color: #7c3aed; background: rgba(124, 58, 237, 0.1); }
.staff-faculty-count--teal { color: #0f766e; border-color: #0d9488; background: rgba(13, 148, 136, 0.1); }
.staff-faculty-count--emerald { color: #047857; border-color: #059669; background: rgba(5, 150, 105, 0.1); }
.staff-faculty-count--amber { color: #b45309; border-color: #d97706; background: rgba(217, 119, 6, 0.12); }
.staff-faculty-count--indigo { color: #4338ca; border-color: #4f46e5; background: rgba(79, 70, 229, 0.1); }
.staff-faculty-count--orange { color: #c2410c; border-color: #ea580c; background: rgba(234, 88, 12, 0.1); }
.staff-faculty-count--rose { color: #be123c; border-color: #e11d48; background: rgba(225, 29, 72, 0.1); }
.staff-faculty-count--fuchsia { color: #a21caf; border-color: #c026d3; background: rgba(192, 38, 211, 0.1); }
.staff-faculty-count--blue { color: #1d4ed8; border-color: #2563eb; background: rgba(37, 99, 235, 0.1); }
.staff-faculty-count--lime { color: #4d7c0f; border-color: #65a30d; background: rgba(101, 163, 13, 0.12); }
.staff-faculty-count--sky { color: #0369a1; border-color: #0284c7; background: rgba(2, 132, 199, 0.1); }
.staff-faculty-count--pink { color: #be185d; border-color: #db2777; background: rgba(219, 39, 119, 0.1); }
.staff-faculty-count--purple { color: #7e22ce; border-color: #9333ea; background: rgba(147, 51, 234, 0.1); }
.staff-faculty-count--green { color: #15803d; border-color: #16a34a; background: rgba(22, 163, 74, 0.1); }
.staff-faculty-count--slate { color: #334155; border-color: #475569; background: rgba(71, 85, 105, 0.1); }
.staff-faculty-count--red { color: #b91c1c; border-color: #dc2626; background: rgba(220, 38, 38, 0.1); }
.staff-faculty-count--gold { color: #92400e; border-color: var(--color-accent); background: rgba(201, 162, 39, 0.15); }

[data-theme="dark"] .staff-leadership-section {
    background: linear-gradient(135deg, rgba(144, 205, 244, 0.08), rgba(201, 162, 39, 0.06));
}

[data-theme="dark"] .staff-department-header {
    border-bottom-color: var(--color-border);
}

[data-theme="dark"] .staff-faculty-total--primary {
    background: linear-gradient(135deg, rgba(144, 205, 244, 0.12), rgba(26, 54, 93, 0.2));
    border-color: rgba(144, 205, 244, 0.25);
    color: #90cdf4;
}

[data-theme="dark"] .staff-faculty-total--accent {
    background: linear-gradient(135deg, rgba(201, 162, 39, 0.15), rgba(201, 162, 39, 0.05));
    color: #f6e05e;
}

[data-theme="dark"] .staff-faculty-total--phd {
    color: #c4b5fd;
    border-color: rgba(167, 139, 250, 0.35);
}

[data-theme="dark"] .staff-faculty-total--mphil {
    color: #5eead4;
    border-color: rgba(45, 212, 191, 0.35);
}

[data-theme="dark"] .staff-faculty-total--masters {
    color: #93c5fd;
    border-color: rgba(96, 165, 250, 0.35);
}

[data-theme="dark"] .staff-faculty-count {
    background: var(--color-bg-light);
}

[data-theme="dark"] .staff-photo-wrap {
    background: linear-gradient(180deg, rgba(144, 205, 244, 0.1) 0%, transparent 100%);
}

[data-theme="dark"] .staff-photo {
    border-color: rgba(226, 232, 240, 0.85);
    background: #1e3a5f;
}

[data-theme="dark"] .staff-photo-frame {
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
}

/* ========================================
   Contact & Map
   ======================================== */
.contact-info-card {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--color-border);
    height: auto;
}

.contact-info-card--home {
    margin-top: 0;
}

/* Homepage SEO sections */
.home-intro__title {
    font-size: clamp(1.85rem, 4vw, 2.65rem);
    font-weight: 700;
    color: var(--color-primary);
    text-align: center;
    margin-bottom: var(--spacing-md);
}

.home-intro__lead {
    font-size: 1.15rem;
    color: var(--color-text-light);
    max-width: 720px;
    margin: 0 auto var(--spacing-lg);
}

.home-intro__text {
    color: var(--color-text);
    line-height: 1.75;
    margin-bottom: var(--spacing-md);
}

.home-intro__actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
    justify-content: center;
    margin-top: var(--spacing-lg);
}

/* Announcement popup (homepage overlay — Punjab Schools style) */
.promo-popup {
    position: fixed;
    inset: 0;
    z-index: 10050;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-lg);
}

.promo-popup[hidden] {
    display: none !important;
}

.promo-popup__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.82);
    backdrop-filter: blur(3px);
}

.promo-popup__panel {
    position: relative;
    z-index: 1;
    max-width: min(92vw, 480px);
    width: 100%;
}

.promo-popup__viewport {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

.promo-popup__slide {
    display: none;
    margin: 0;
    background: #fff;
}

.promo-popup__slide.is-active {
    display: block;
}

.promo-popup__slide img {
    width: 100%;
    height: auto;
    max-height: min(82vh, 900px);
    object-fit: contain;
    display: block;
    background: #fff;
}

.promo-popup__link {
    display: block;
}

.promo-popup__close {
    position: absolute;
    top: -14px;
    right: -14px;
    z-index: 3;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: var(--radius-full);
    background: var(--color-accent);
    color: #0f2440;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    transition: transform var(--transition-fast), background var(--transition-fast);
}

.promo-popup__close:hover,
.promo-popup__close:focus-visible {
    transform: scale(1.06);
    background: #d4b545;
}

.promo-popup__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.92);
    color: #0f2440;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
}

.promo-popup__nav--prev { left: -18px; }
.promo-popup__nav--next { right: -18px; }

.promo-popup__nav:hover,
.promo-popup__nav:focus-visible {
    background: var(--color-accent);
}

.promo-popup__dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: var(--spacing-md);
}

.promo-popup__dot {
    width: 10px;
    height: 10px;
    border: 0;
    border-radius: var(--radius-full);
    padding: 0;
    background: rgba(255, 255, 255, 0.45);
    cursor: pointer;
}

.promo-popup__dot.is-active {
    background: var(--color-accent);
    transform: scale(1.15);
}

@media (max-width: 575.98px) {
    .promo-popup {
        padding: var(--spacing-md);
    }

    .promo-popup__close {
        top: 8px;
        right: 8px;
    }

    .promo-popup__nav--prev { left: 4px; }
    .promo-popup__nav--next { right: 4px; }
}

.event-card.modern-card {
    display: flex;
    flex-direction: column;
}

.event-card .card-body {
    flex: 1 1 auto;
}

.event-card__link {
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    color: var(--event-card-theme, var(--color-primary));
    margin-top: var(--spacing-sm);
    display: inline-flex;
    align-items: center;
    gap: 0.1rem;
}

.event-card__link:hover {
    color: var(--event-card-theme-deep, var(--color-primary-light));
}

.event-card--conference { --event-card-theme: #3182ce; --event-card-theme-deep: #2b6cb0; }
.event-card--campaign { --event-card-theme: #805ad5; --event-card-theme-deep: #6b46c1; }
.event-card--cermoney { --event-card-theme: #9f7aea; --event-card-theme-deep: #805ad5; }
.event-card--exhibition { --event-card-theme: #d97706; --event-card-theme-deep: #b45309; }
.event-card--workshop { --event-card-theme: #0891b2; --event-card-theme-deep: #0e7490; }
.event-card--sports { --event-card-theme: #38a169; --event-card-theme-deep: #2f855a; }
.event-card--seminar { --event-card-theme: #319795; --event-card-theme-deep: #2c7a7b; }
.event-card--annual_function { --event-card-theme: #d69e2e; --event-card-theme-deep: #b7791f; }
.event-card--walk { --event-card-theme: #059669; --event-card-theme-deep: #047857; }
.event-card--others { --event-card-theme: #718096; --event-card-theme-deep: #4a5568; }

.event-card__media {
    position: relative;
}

.event-card__badges {
    position: absolute;
    top: 10px;
    left: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.event-type-badge {
    font-size: 0.72rem;
    font-weight: 600;
    line-height: 1.25;
    text-align: center;
}


.event-type-badge--conference { background: #3182ce; }
.event-type-badge--campaign { background: #805ad5; }
.event-type-badge--cermoney { background: #9f7aea; }
.event-type-badge--exhibition { background: #d97706; color: #1a202c; }
.event-type-badge--workshop { background: #0891b2; }
.event-type-badge--sports { background: #38a169; }
.event-type-badge--seminar { background: #319795; }
.event-type-badge--annual_function { background: #d69e2e; color: #1a202c; }
.event-type-badge--walk { background: #059669; }
.event-type-badge--others { background: #718096; }

.event-card__location i {
    color: var(--color-accent);
}

.event-detail__cover {
    display: block;
    width: 100%;
    height: auto;
    max-height: min(72vh, 720px);
    object-fit: contain;
    object-position: center top;
    background: var(--color-bg-alt, #f1f5f9);
}

[data-theme="dark"] .event-detail__cover {
    background: rgba(15, 23, 42, 0.6);
}

.event-detail__meta {
    color: var(--color-text-light);
    font-size: 0.95rem;
}

.event-detail__meta i {
    color: var(--color-accent);
    margin-right: 4px;
}

.event-gallery-item {
    background: transparent;
    cursor: pointer;
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.event-gallery-item:hover,
.event-gallery-item:focus-visible {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Events page — type filter chips (symmetric grid, visible borders on hover) */
.events-filter-bar {
    padding: var(--spacing-md) 0;
}

.events-filter-bar__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(8.25rem, 1fr));
    gap: 0.5rem;
    max-width: 920px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .events-filter-bar__grid {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }

    .events-filter-bar__grid--downloads {
        grid-template-columns: repeat(5, minmax(0, 1fr));
        max-width: 640px;
    }

}

.events-filter-bar__grid--gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 960px;
    gap: 0.55rem;
}

@media (min-width: 576px) {
    .events-filter-bar__grid--gallery {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.events-filter-bar__grid--gallery .events-filter-chip {
    font-size: 0.78rem;
    padding: 0.45rem 0.65rem;
    min-height: 2.5rem;
    border-radius: var(--radius-md);
}

.events-filter-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.35rem;
    padding: 0.4rem 0.75rem;
    font-size: 0.8rem;
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    border-radius: var(--radius-full);
    border: 2px solid rgba(26, 54, 93, 0.2);
    color: var(--color-primary);
    background: var(--color-white);
    box-shadow: 0 1px 3px rgba(26, 54, 93, 0.06);
    transition:
        border-color var(--transition-fast),
        background-color var(--transition-fast),
        color var(--transition-fast),
        box-shadow var(--transition-fast),
        transform var(--transition-fast);
}

.events-filter-chip:hover,
.events-filter-chip:focus-visible {
    border-color: var(--color-primary);
    background: rgba(26, 54, 93, 0.05);
    color: var(--color-primary-dark);
    box-shadow: 0 4px 14px rgba(26, 54, 93, 0.12);
    transform: translateY(-1px);
}

.events-filter-chip.is-active {
    background: linear-gradient(180deg, #d4b84a 0%, var(--color-accent) 100%);
    border-color: var(--color-accent);
    color: var(--color-primary-dark);
    box-shadow: 0 4px 16px rgba(201, 162, 39, 0.35);
}

.events-filter-chip.is-active:hover,
.events-filter-chip.is-active:focus-visible {
    border-color: var(--color-accent-hover);
    background: linear-gradient(180deg, #e0c55a 0%, var(--color-accent-hover) 100%);
    color: var(--color-primary-dark);
    box-shadow: 0 6px 18px rgba(201, 162, 39, 0.4);
}

[data-theme="dark"] .events-filter-chip {
    border-color: rgba(144, 205, 244, 0.35);
    color: #e2e8f0;
    background: var(--color-bg-light);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .events-filter-chip:hover,
[data-theme="dark"] .events-filter-chip:focus-visible {
    border-color: var(--color-primary);
    background: rgba(144, 205, 244, 0.12);
    color: #f8fafc;
}

[data-theme="dark"] .events-filter-chip.is-active {
    background: linear-gradient(180deg, #e8c547 0%, #c9a227 100%);
    border-color: #e8c547;
    color: #0f2440;
}

.events-filter-bar .btn-group {
    gap: 0.35rem;
}

[data-theme="dark"] .event-type-badge--annual_function,
[data-theme="dark"] .event-type-badge--exhibition {
    color: #1a202c;
}

.home-program-card {
    height: 100%;
    padding: var(--spacing-lg);
    background: var(--color-white);
    border: 1px solid rgba(var(--home-prog-theme-rgb, 26, 54, 93), 0.18);
    border-radius: var(--radius-lg);
    border-top: 4px solid var(--home-prog-theme, var(--color-primary));
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
}

.home-program-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(var(--home-prog-theme-rgb, 26, 54, 93), 0.22);
    border-color: rgba(var(--home-prog-theme-rgb, 26, 54, 93), 0.38);
}

.home-program-card__icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    color: #fff;
    background: var(--home-prog-theme, var(--color-primary));
    border-radius: var(--radius-md);
    margin-bottom: var(--spacing-sm);
}

.home-program-card__title {
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.home-program-card__meta {
    font-size: 0.78rem;
    color: var(--color-text-light);
    margin-bottom: var(--spacing-sm);
}

.home-program-card__text {
    font-size: 0.85rem;
    color: var(--color-text-light);
    margin-bottom: var(--spacing-sm);
}

.home-program-card__link {
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    color: var(--home-prog-theme, var(--color-primary));
}

.home-program-card--cyan { --home-prog-theme: #0891b2; --home-prog-theme-rgb: 8, 145, 178; }
.home-program-card--violet { --home-prog-theme: #7c3aed; --home-prog-theme-rgb: 124, 58, 237; }
.home-program-card--teal { --home-prog-theme: #0d9488; --home-prog-theme-rgb: 13, 148, 136; }
.home-program-card--emerald { --home-prog-theme: #059669; --home-prog-theme-rgb: 5, 150, 105; }
.home-program-card--amber { --home-prog-theme: #d97706; --home-prog-theme-rgb: 217, 119, 6; }
.home-program-card--indigo { --home-prog-theme: #4f46e5; --home-prog-theme-rgb: 79, 70, 229; }
.home-program-card--orange { --home-prog-theme: #ea580c; --home-prog-theme-rgb: 234, 88, 12; }
.home-program-card--blue { --home-prog-theme: #2563eb; --home-prog-theme-rgb: 37, 99, 235; }

.home-achievement-card {
    height: 100%;
    padding: var(--spacing-lg);
    text-align: center;
    background: linear-gradient(
        165deg,
        rgba(var(--ach-theme-rgb, 201, 162, 39), 0.14) 0%,
        var(--color-white) 55%
    );
    border: 1px solid rgba(var(--ach-theme-rgb, 201, 162, 39), 0.22);
    border-top: 4px solid var(--ach-theme, var(--color-accent));
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.home-achievement-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(var(--ach-theme-rgb, 201, 162, 39), 0.16);
}

.home-achievement-card__icon {
    font-size: 2rem;
    color: var(--ach-theme, var(--color-accent));
    margin-bottom: var(--spacing-sm);
}

.home-achievement-card__title {
    font-size: 1rem;
    margin-bottom: var(--spacing-sm);
    color: var(--ach-theme-deep, var(--color-primary));
    text-align: center;
}

.home-achievement-card__text {
    font-size: 0.88rem;
    color: var(--color-text-light);
    margin-bottom: 0;
    text-align: justify;
    text-justify: inter-word;
}

.home-achievement-card--sky { --ach-theme: #0284c7; --ach-theme-rgb: 2, 132, 199; --ach-theme-deep: #0369a1; }
.home-achievement-card--violet { --ach-theme: #7c3aed; --ach-theme-rgb: 124, 58, 237; --ach-theme-deep: #6d28d9; }
.home-achievement-card--emerald { --ach-theme: #059669; --ach-theme-rgb: 5, 150, 105; --ach-theme-deep: #047857; }
.home-achievement-card--amber { --ach-theme: #d97706; --ach-theme-rgb: 217, 119, 6; --ach-theme-deep: #b45309; }
.home-achievement-card--cyan { --ach-theme: #0891b2; --ach-theme-rgb: 8, 145, 178; --ach-theme-deep: #0e7490; }
.home-achievement-card--rose { --ach-theme: #e11d48; --ach-theme-rgb: 225, 29, 72; --ach-theme-deep: #be123c; }
.home-achievement-card--indigo { --ach-theme: #4f46e5; --ach-theme-rgb: 79, 70, 229; --ach-theme-deep: #4338ca; }

.home-faq .section-header {
    text-align: center;
}

.home-faq .section-title::after {
    left: 50%;
    transform: translateX(-50%);
}

[data-theme="dark"] .home-intro__title {
    color: #90cdf4;
}

[data-theme="dark"] .home-program-card {
    background: linear-gradient(
        165deg,
        rgba(var(--home-prog-theme-rgb, 144, 205, 244), 0.14) 0%,
        var(--color-bg-light) 55%
    );
    border-color: rgba(var(--home-prog-theme-rgb, 144, 205, 244), 0.28);
}

[data-theme="dark"] .home-program-card:hover {
    box-shadow: 0 12px 32px rgba(var(--home-prog-theme-rgb, 144, 205, 244), 0.35);
    border-color: rgba(var(--home-prog-theme-rgb, 144, 205, 244), 0.48);
}

[data-theme="dark"] .home-achievement-card {
    background: linear-gradient(
        165deg,
        rgba(var(--ach-theme-rgb, 201, 162, 39), 0.18) 0%,
        var(--color-bg-light) 55%
    );
    border-color: rgba(var(--ach-theme-rgb, 201, 162, 39), 0.28);
}

[data-theme="dark"] .quick-link-card {
    background: linear-gradient(
        165deg,
        rgba(var(--ql-theme-rgb, 144, 205, 244), 0.16) 0%,
        var(--color-bg-light) 55%
    );
    border-color: rgba(var(--ql-theme-rgb, 144, 205, 244), 0.28);
}

[data-theme="dark"] .quick-link-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(var(--ql-theme-rgb, 144, 205, 244), 0.35);
    border-color: rgba(var(--ql-theme-rgb, 144, 205, 244), 0.48);
}

[data-theme="dark"] .quick-link-card h3 {
    color: var(--ql-theme, #90cdf4);
}

[data-theme="dark"] .home-achievement-card__title {
    color: var(--ach-theme, #90cdf4);
}

[data-theme="dark"] .testimonial-card {
    background: linear-gradient(
        135deg,
        rgba(var(--t-card-rgb, 201, 162, 39), 0.14) 0%,
        var(--color-bg-light) 45%
    );
    border: 2px solid rgba(var(--t-card-rgb, 201, 162, 39), 0.48);
    border-left: 5px solid var(--t-card-theme, var(--color-accent));
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.28);
}

[data-theme="dark"] .testimonial-card--indigo { --t-card-theme: #818cf8; --t-card-rgb: 129, 140, 248; }
[data-theme="dark"] .testimonial-card--cyan { --t-card-theme: #22d3ee; --t-card-rgb: 34, 211, 238; }
[data-theme="dark"] .testimonial-card--emerald { --t-card-theme: #34d399; --t-card-rgb: 52, 211, 153; }
[data-theme="dark"] .testimonial-card--amber { --t-card-theme: #fbbf24; --t-card-rgb: 251, 191, 36; }
[data-theme="dark"] .testimonial-card--violet { --t-card-theme: #a78bfa; --t-card-rgb: 167, 139, 250; }
[data-theme="dark"] .testimonial-card--rose { --t-card-theme: #fb7185; --t-card-rgb: 251, 113, 133; }
[data-theme="dark"] .testimonial-card--sky { --t-card-theme: #38bdf8; --t-card-rgb: 56, 189, 248; }

.footer-credit {
    background: var(--color-primary-dark);
    color: rgba(255, 255, 255, 0.92);
    padding: var(--spacing-lg) 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.site-credit {
    text-align: center;
    font-size: 0.9rem;
    line-height: 1.55;
}

.site-credit__signature {
    color: rgba(255, 255, 255, 0.95);
}

.site-credit__signature .bi {
    color: var(--color-accent);
    margin-right: 0.35rem;
}

.site-credit__name {
    color: var(--color-accent);
    font-weight: 600;
}

.site-credit__org {
    opacity: 0.88;
    font-size: 0.9rem;
}

.site-credit__contacts {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--spacing-md) var(--spacing-xl);
}

.site-credit__contact-item {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.95rem;
}

.site-credit__contact-item .bi {
    color: var(--color-accent);
    font-size: 1rem;
}

.site-credit__contact-item a {
    color: #fff;
    font-weight: 500;
    text-decoration: none;
    border-bottom: 1px solid rgba(201, 162, 39, 0.45);
}

.site-credit__contact-item a:hover {
    color: var(--color-accent);
    border-bottom-color: var(--color-accent);
}

[data-theme="dark"] .footer-credit {
    background: #0a1628;
}

.home-contact {
    background: var(--color-bg-light);
    padding-bottom: calc(var(--spacing-3xl) + 1rem);
    position: relative;
    z-index: 2;
    overflow: visible;
}

.home-contact .section-header {
    margin-bottom: var(--spacing-xl);
    text-align: left;
}

.home-contact .section-header .section-title::after {
    margin-left: 0;
    margin-right: auto;
}

@media (min-width: 992px) {
    .home-contact .section-header {
        text-align: center;
    }

    .home-contact .section-header .section-title::after {
        margin-left: auto;
        margin-right: auto;
    }
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

.contact-info-item i {
    width: 45px;
    height: 45px;
    border-radius: var(--radius-md);
    background: var(--color-bg-light);
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.contact-info-item__body {
    flex: 1 1 0;
    min-width: 0;
    padding-top: 0.15rem;
}

.contact-info-item__label {
    display: block;
    margin-bottom: 0.3rem;
    font-size: 0.95rem;
    color: var(--color-primary-dark);
}

.contact-info-item__text {
    display: block;
    font-size: 0.95rem;
    line-height: 1.55;
    color: var(--color-text);
    word-break: break-word;
}

.contact-info-item__link {
    display: block;
    font-size: 0.95rem;
    line-height: 1.55;
    color: var(--color-primary-light);
    text-decoration: none;
    word-break: break-word;
}

.contact-info-item__link:hover {
    color: var(--color-accent);
    text-decoration: underline;
}

[data-theme="dark"] .contact-info-item__label {
    color: #f1f5f9;
}

[data-theme="dark"] .contact-info-item__text {
    color: var(--color-text-light);
}

[data-theme="dark"] .contact-info-item__link {
    color: #90cdf4;
}

.map-container {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    min-height: 350px;
}

.map-container iframe {
    width: 100%;
    height: 350px;
    border: 0;
}

/* ========================================
   Page Header (Inner Pages)
   ======================================== */
.page-header {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: var(--color-white);
    padding: var(--spacing-2xl) 0;
    text-align: center;
}

.page-header h1 {
    color: var(--color-white);
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    margin-bottom: var(--spacing-sm);
}

.page-header p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

.page-jump-bar {
    padding: var(--spacing-lg) 0;
    background: var(--color-bg-light);
    border-bottom: 1px solid var(--color-border);
}

.page-jump-bar .departments-nav {
    margin-bottom: 0;
}

[data-theme="dark"] .page-jump-bar {
    background: var(--color-bg-dark);
    border-bottom-color: var(--color-border);
}

/* Teaching staff — unified stats + symmetric department grid */
.staff-teaching-hub {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    padding: var(--spacing-lg);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: calc(var(--header-height) + 0.5rem);
    z-index: 40;
}

.staff-teaching-hub__stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(155px, 1fr));
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-lg);
    padding-bottom: var(--spacing-lg);
    border-bottom: 1px solid var(--color-border);
}

.staff-teaching-hub__stats .staff-faculty-total {
    flex: none;
    max-width: none;
    width: 100%;
    padding: var(--spacing-sm) var(--spacing-md);
    gap: var(--spacing-sm);
}

.staff-teaching-hub__stats .staff-faculty-total > i {
    font-size: 1.35rem;
}

.staff-teaching-hub__stats .staff-faculty-total__num {
    font-size: 1.35rem;
}

.staff-teaching-hub__stats .staff-faculty-total__label {
    font-size: 0.72rem;
    line-height: 1.25;
}

.staff-teaching-hub .departments-nav {
    margin-bottom: 0;
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
}

/* Teaching staff hub — 4 colorful department buttons per row */
.staff-teaching-hub .departments-nav--grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.45rem;
}

.staff-teaching-hub .departments-nav--grid .departments-nav__link {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    width: 100%;
    min-height: 3rem;
    padding: 0.4rem 0.35rem;
    font-size: 0.68rem;
    line-height: 1.2;
    text-align: center;
    border-width: 1px;
    border-radius: var(--radius-sm);
}

.staff-teaching-hub .departments-nav--grid .departments-nav__link i {
    font-size: 1rem;
    flex-shrink: 0;
    line-height: 1;
}

.staff-teaching-hub .departments-nav--grid .departments-nav__link span {
    display: block;
    width: 100%;
    white-space: normal;
    word-break: break-word;
}

@media (max-width: 991.98px) {
    .staff-teaching-hub .departments-nav--grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .staff-teaching-hub__stats {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 575.98px) {
    .staff-teaching-hub .departments-nav--grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .staff-teaching-hub .departments-nav--grid .departments-nav__link {
        min-height: 2.75rem;
        font-size: 0.64rem;
    }

    .staff-teaching-hub .departments-nav--grid .departments-nav__link i {
        font-size: 0.9rem;
    }
}

.departments-nav--grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 0.65rem;
}

.departments-nav--grid .departments-nav__link {
    justify-content: center;
    text-align: center;
    width: 100%;
    min-height: 2.75rem;
    padding: 0.45rem 0.35rem;
    font-size: 0.72rem;
    line-height: 1.25;
}

.departments-nav--grid .departments-nav__link span {
    white-space: normal;
    word-break: break-word;
}

.departments-nav--grid .departments-nav__link i {
    flex-shrink: 0;
}

@media (max-width: 1199.98px) {
    .departments-nav--grid {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }
}

@media (max-width: 991.98px) {
    .departments-nav--grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 767.98px) {
    .departments-nav--grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 575.98px) {
    .departments-nav--grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .departments-nav--grid .departments-nav__link {
        font-size: 0.68rem;
        min-height: 2.5rem;
    }
}

[data-theme="dark"] .staff-teaching-hub {
    background: var(--color-bg-light);
    border-color: var(--color-border);
}

[data-theme="dark"] .staff-teaching-hub__stats {
    border-bottom-color: var(--color-border);
}

/* Departments page — colorful themed cards */
.departments-page {
    max-width: 1100px;
    margin: 0 auto;
}

.department-card--cyan { --dept-theme: #0891b2; --dept-theme-rgb: 8, 145, 178; --dept-theme-deep: #0e7490; }
.department-card--violet { --dept-theme: #7c3aed; --dept-theme-rgb: 124, 58, 237; --dept-theme-deep: #6d28d9; }
.department-card--teal { --dept-theme: #0d9488; --dept-theme-rgb: 13, 148, 136; --dept-theme-deep: #0f766e; }
.department-card--emerald { --dept-theme: #059669; --dept-theme-rgb: 5, 150, 105; --dept-theme-deep: #047857; }
.department-card--amber { --dept-theme: #d97706; --dept-theme-rgb: 217, 119, 6; --dept-theme-deep: #b45309; }
.department-card--indigo { --dept-theme: #4f46e5; --dept-theme-rgb: 79, 70, 229; --dept-theme-deep: #4338ca; }
.department-card--orange { --dept-theme: #ea580c; --dept-theme-rgb: 234, 88, 12; --dept-theme-deep: #c2410c; }
.department-card--rose { --dept-theme: #e11d48; --dept-theme-rgb: 225, 29, 72; --dept-theme-deep: #be123c; }
.department-card--fuchsia { --dept-theme: #c026d3; --dept-theme-rgb: 192, 38, 211; --dept-theme-deep: #a21caf; }
.department-card--blue { --dept-theme: #2563eb; --dept-theme-rgb: 37, 99, 235; --dept-theme-deep: #1d4ed8; }
.department-card--lime { --dept-theme: #65a30d; --dept-theme-rgb: 101, 163, 13; --dept-theme-deep: #4d7c0f; }
.department-card--sky { --dept-theme: #0284c7; --dept-theme-rgb: 2, 132, 199; --dept-theme-deep: #0369a1; }
.department-card--pink { --dept-theme: #db2777; --dept-theme-rgb: 219, 39, 119; --dept-theme-deep: #be185d; }
.department-card--purple { --dept-theme: #9333ea; --dept-theme-rgb: 147, 51, 234; --dept-theme-deep: #7e22ce; }
.department-card--green { --dept-theme: #16a34a; --dept-theme-rgb: 22, 163, 74; --dept-theme-deep: #15803d; }
.department-card--slate { --dept-theme: #475569; --dept-theme-rgb: 71, 85, 105; --dept-theme-deep: #334155; }
.department-card--red { --dept-theme: #dc2626; --dept-theme-rgb: 220, 38, 38; --dept-theme-deep: #b91c1c; }

.departments-intro {
    margin-bottom: var(--spacing-xl);
}

.departments-intro__hero {
    position: relative;
    padding: var(--spacing-xl);
    border-radius: var(--radius-xl);
    background: linear-gradient(135deg, #1a365d 0%, #2c5282 48%, #1a5632 100%);
    color: #fff;
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(26, 54, 93, 0.25);
}

.departments-intro__hero::before {
    content: '';
    position: absolute;
    top: -35%;
    right: -8%;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(201, 162, 39, 0.35) 0%, transparent 70%);
    pointer-events: none;
}

.departments-intro__hero::after {
    content: '';
    position: absolute;
    bottom: -28%;
    left: -6%;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.28) 0%, transparent 70%);
    pointer-events: none;
}

.departments-intro__hero > * {
    position: relative;
    z-index: 1;
}

.departments-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin-bottom: var(--spacing-md);
}

.departments-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.9rem;
    font-size: 0.78rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    border: 1px solid transparent;
}

.departments-badge--gold {
    color: #fde68a;
    background: rgba(201, 162, 39, 0.3);
    border-color: rgba(252, 211, 77, 0.5);
}

.departments-badge--blue {
    color: #bfdbfe;
    background: rgba(59, 130, 246, 0.25);
    border-color: rgba(147, 197, 253, 0.45);
}

.departments-badge--green {
    color: #bbf7d0;
    background: rgba(56, 161, 105, 0.3);
    border-color: rgba(134, 239, 172, 0.45);
}

.departments-badge--violet {
    color: #ddd6fe;
    background: rgba(124, 58, 237, 0.28);
    border-color: rgba(196, 181, 253, 0.45);
}

.departments-intro__text {
    font-size: 1.02rem;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.92);
}

.departments-intro__text strong {
    color: #fde68a;
}

.departments-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-bottom: var(--spacing-xl);
    padding: var(--spacing-md);
    background: linear-gradient(145deg, rgba(26, 54, 93, 0.04), var(--color-bg-light));
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
}

.departments-nav--sticky {
    position: sticky;
    top: calc(var(--header-height) + 0.5rem);
    z-index: 50;
}

.departments-nav__link--gold { color: #92400e; border-color: rgba(201, 162, 39, 0.45); }
.departments-nav__link--gold:hover { background: var(--color-accent); border-color: var(--color-accent); color: #1a365d; }

.departments-nav__link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.42rem 0.75rem;
    font-size: 0.78rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
    background: var(--color-white);
    color: var(--color-text);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast), background var(--transition-fast);
}

.departments-nav__link i {
    font-size: 0.9rem;
}

.departments-nav__link:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    color: #fff;
}

.departments-nav__link--cyan { color: #0e7490; border-color: rgba(8, 145, 178, 0.35); }
.departments-nav__link--cyan:hover { background: #0891b2; border-color: #0891b2; }
.departments-nav__link--violet { color: #6d28d9; border-color: rgba(124, 58, 237, 0.35); }
.departments-nav__link--violet:hover { background: #7c3aed; border-color: #7c3aed; }
.departments-nav__link--teal { color: #0f766e; border-color: rgba(13, 148, 136, 0.35); }
.departments-nav__link--teal:hover { background: #0d9488; border-color: #0d9488; }
.departments-nav__link--emerald { color: #047857; border-color: rgba(5, 150, 105, 0.35); }
.departments-nav__link--emerald:hover { background: #059669; border-color: #059669; }
.departments-nav__link--amber { color: #b45309; border-color: rgba(217, 119, 6, 0.35); }
.departments-nav__link--amber:hover { background: #d97706; border-color: #d97706; }
.departments-nav__link--indigo { color: #4338ca; border-color: rgba(79, 70, 229, 0.35); }
.departments-nav__link--indigo:hover { background: #4f46e5; border-color: #4f46e5; }
.departments-nav__link--orange { color: #c2410c; border-color: rgba(234, 88, 12, 0.35); }
.departments-nav__link--orange:hover { background: #ea580c; border-color: #ea580c; }
.departments-nav__link--rose { color: #be123c; border-color: rgba(225, 29, 72, 0.35); }
.departments-nav__link--rose:hover { background: #e11d48; border-color: #e11d48; }
.departments-nav__link--fuchsia { color: #a21caf; border-color: rgba(192, 38, 211, 0.35); }
.departments-nav__link--fuchsia:hover { background: #c026d3; border-color: #c026d3; }
.departments-nav__link--blue { color: #1d4ed8; border-color: rgba(37, 99, 235, 0.35); }
.departments-nav__link--blue:hover { background: #2563eb; border-color: #2563eb; }
.departments-nav__link--lime { color: #4d7c0f; border-color: rgba(101, 163, 13, 0.35); }
.departments-nav__link--lime:hover { background: #65a30d; border-color: #65a30d; }
.departments-nav__link--sky { color: #0369a1; border-color: rgba(2, 132, 199, 0.35); }
.departments-nav__link--sky:hover { background: #0284c7; border-color: #0284c7; }
.departments-nav__link--pink { color: #be185d; border-color: rgba(219, 39, 119, 0.35); }
.departments-nav__link--pink:hover { background: #db2777; border-color: #db2777; }
.departments-nav__link--purple { color: #7e22ce; border-color: rgba(147, 51, 234, 0.35); }
.departments-nav__link--purple:hover { background: #9333ea; border-color: #9333ea; }
.departments-nav__link--green { color: #15803d; border-color: rgba(22, 163, 74, 0.35); }
.departments-nav__link--green:hover { background: #16a34a; border-color: #16a34a; }
.departments-nav__link--slate { color: #334155; border-color: rgba(71, 85, 105, 0.35); }
.departments-nav__link--slate:hover { background: #475569; border-color: #475569; }
.departments-nav__link--red { color: #b91c1c; border-color: rgba(220, 38, 38, 0.35); }
.departments-nav__link--red:hover { background: #dc2626; border-color: #dc2626; }

.departments-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
}

.department-card {
    display: flex;
    flex-direction: column;
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    scroll-margin-top: 100px;
    border-top: 4px solid var(--dept-theme, var(--color-primary));
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.department-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 36px rgba(var(--dept-theme-rgb, 26, 54, 93), 0.18);
}

.department-card__header {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 1rem 1.15rem;
    border-bottom: 1px solid var(--color-border);
    background: linear-gradient(120deg, rgba(var(--dept-theme-rgb, 26, 54, 93), 0.14) 0%, rgba(var(--dept-theme-rgb, 26, 54, 93), 0.04) 55%, transparent 100%);
}

.department-card__icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: #fff;
    background: linear-gradient(145deg, var(--dept-theme, var(--color-primary)), var(--dept-theme-deep, var(--color-primary-dark)));
    border-radius: var(--radius-md);
    box-shadow: 0 6px 16px rgba(var(--dept-theme-rgb, 26, 54, 93), 0.32);
}

.department-card__title {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--dept-theme-deep, var(--color-primary-dark));
}

.department-card__body {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    padding: 1rem 1.15rem 1.15rem;
}

.department-card__email {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--dept-theme, var(--color-primary));
    text-decoration: none;
    margin-bottom: 0.65rem;
    max-width: 100%;
    word-break: break-word;
}

.department-card__email:hover {
    color: var(--dept-theme-deep, var(--color-accent));
    text-decoration: underline;
}

.department-card__desc {
    flex: 1 1 auto;
    margin: 0 0 0.85rem;
    font-size: 0.86rem;
    line-height: 1.55;
    color: var(--color-text-light);
    width: 100%;
}

.department-card__footer {
    width: 100%;
    margin-top: auto;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.55rem;
}

.department-card__programs {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 0.35rem 0.75rem;
    border-radius: var(--radius-full);
    background: rgba(var(--dept-theme-rgb, 26, 54, 93), 0.1);
    color: var(--dept-theme-deep, var(--color-primary));
    border: 1px solid rgba(var(--dept-theme-rgb, 26, 54, 93), 0.22);
    line-height: 1.45;
}

.department-card__staff-link {
    display: inline-flex;
    align-items: center;
    gap: 0.15rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-text);
    text-decoration: none;
    transition: color var(--transition-fast), gap var(--transition-fast);
}

.department-card__staff-link:hover {
    color: var(--dept-theme, var(--color-primary));
    gap: 0.3rem;
}

.departments-notice {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    padding: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
    background: linear-gradient(135deg, rgba(26, 54, 93, 0.06) 0%, rgba(201, 162, 39, 0.08) 100%);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    border-left: 4px solid var(--color-accent);
}

.departments-notice > i {
    flex-shrink: 0;
    font-size: 1.35rem;
    color: var(--color-accent);
    margin-top: 0.1rem;
}

.departments-notice strong {
    display: block;
    margin-bottom: 0.35rem;
    color: var(--color-primary-dark);
}

.departments-notice p {
    font-size: 0.92rem;
    line-height: 1.65;
    color: var(--color-text-light);
}

.departments-cta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    padding-top: var(--spacing-md);
}

.departments-cta__secondary {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.departments-cta__secondary:hover {
    background: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
}

@media (max-width: 575px) {
    .departments-intro__hero {
        padding: var(--spacing-lg);
    }

    .departments-nav {
        padding: var(--spacing-sm);
    }

    .departments-grid {
        grid-template-columns: 1fr;
    }
}

[data-theme="dark"] .departments-intro__hero {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #14532d 100%);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

[data-theme="dark"] .departments-nav {
    background: linear-gradient(145deg, rgba(144, 205, 244, 0.05), var(--color-bg-light));
}

[data-theme="dark"] .departments-nav__link {
    background: var(--color-bg-light);
    border-color: var(--color-border);
    color: var(--color-text-light);
}

[data-theme="dark"] .department-card {
    background: var(--color-bg-light);
    border-color: var(--color-border);
}

[data-theme="dark"] .department-card__header {
    border-bottom-color: var(--color-border);
}

[data-theme="dark"] .department-card__title {
    color: #f1f5f9;
}

[data-theme="dark"] .department-card__email {
    color: #90cdf4;
}

[data-theme="dark"] .department-card__desc {
    color: var(--color-text-light);
}

[data-theme="dark"] .department-card__staff-link {
    color: #e2e8f0;
}

[data-theme="dark"] .departments-notice {
    background: linear-gradient(135deg, rgba(144, 205, 244, 0.06) 0%, rgba(201, 162, 39, 0.08) 100%);
    border-color: var(--color-border);
}

[data-theme="dark"] .departments-notice strong {
    color: #f1f5f9;
}

[data-theme="dark"] .departments-cta__secondary {
    border-color: #90cdf4;
    color: #90cdf4;
}

[data-theme="dark"] .departments-cta__secondary:hover {
    background: #2c5282;
    border-color: #2c5282;
    color: #fff;
}

/* Content tags (departments, programs) */
.tag-badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.35rem 0.85rem;
    border-radius: var(--radius-full);
    background: rgba(26, 54, 93, 0.08);
    color: var(--color-primary);
    border: 1px solid var(--color-border);
    line-height: 1.4;
}

.page-content {
    background: var(--color-bg);
    padding-bottom: var(--spacing-3xl);
    position: relative;
    z-index: 1;
}

/* Two-column inner pages — grid avoids Bootstrap row equal-height stretch */
.page-grid {
    display: grid;
    gap: var(--spacing-lg);
    align-items: start;
}

@media (min-width: 992px) {
    .page-grid {
        grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    }
}

.page-grid .page-main,
.page-grid .page-sidebar {
    min-width: 0;
}

.page-content .row.page-layout {
    align-items: flex-start;
}

.page-content .row.page-layout > [class*="col-"] {
    align-self: flex-start;
}

/* Columns with stacked sidebar cards must not stretch to match main column */
.page-content .row > [class*="col-"]:has(> .modern-card + .modern-card) {
    align-self: flex-start;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.page-sidebar,
.page-content .row > [class*="col-"]:has(> .modern-card + .modern-card) {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
    align-self: flex-start;
}

.page-sidebar .modern-card,
.page-content .row > [class*="col-"] > .modern-card + .modern-card,
.page-content .row > [class*="col-"]:has(> .modern-card + .modern-card) > .modern-card {
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    flex: 0 0 auto !important;
    margin-bottom: 0 !important;
}

.page-content {
    overflow: visible;
}

.page-content::after {
    content: '';
    display: table;
    clear: both;
}

/* ========================================
   FAQ Accordion
   ======================================== */
.faq-item .accordion-button {
    font-weight: 500;
    color: var(--color-primary);
    background: var(--color-bg-light);
}

.faq-item .accordion-button:not(.collapsed) {
    background: var(--color-primary);
    color: var(--color-white);
}

.faq-item .accordion-button:focus {
    box-shadow: none;
    border-color: var(--color-border);
}

/* ========================================
   CTA Section
   ======================================== */
.cta-section {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
    color: var(--color-white);
    padding: var(--spacing-3xl) 0;
    text-align: center;
    position: relative;
    z-index: 1;
    clear: both;
}

.cta-section h2 {
    color: var(--color-white);
    margin-bottom: var(--spacing-md);
}

.cta-section p {
    opacity: 0.9;
    margin-bottom: var(--spacing-xl);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Page CTA — View Gallery (above footer) */
.page-gallery-cta {
    background: linear-gradient(135deg, var(--color-bg-light) 0%, #eef4fb 100%);
    border-top: 1px solid var(--color-border);
    padding: var(--spacing-xl) 0;
    position: relative;
    z-index: 1;
    clear: both;
}

.page-gallery-cta__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-lg);
    padding: var(--spacing-lg) var(--spacing-xl);
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    border-left: 4px solid var(--color-accent);
}

.page-gallery-cta__title {
    font-size: clamp(1.15rem, 2.5vw, 1.45rem);
    margin-bottom: 0.35rem;
    color: var(--color-primary);
}

.page-gallery-cta__desc {
    font-size: 0.95rem;
    color: var(--color-text-light);
}

.page-gallery-cta__btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
    flex-shrink: 0;
}

@media (max-width: 575.98px) {
    .page-gallery-cta__inner {
        flex-direction: column;
        text-align: center;
        padding: var(--spacing-lg);
    }

    .page-gallery-cta__btn {
        width: 100%;
        justify-content: center;
    }
}

[data-theme="dark"] .page-gallery-cta {
    background: linear-gradient(135deg, var(--color-bg) 0%, var(--color-bg-dark) 100%);
    border-top-color: var(--color-border);
}

[data-theme="dark"] .page-gallery-cta__inner {
    background: var(--color-surface);
    border-color: var(--color-border);
}

[data-theme="dark"] .page-gallery-cta__title {
    color: var(--color-primary);
}

/* ========================================
   Footer (fixed colors — not theme variables)
   ======================================== */
.site-footer {
    background: #0f2440;
    color: rgba(255, 255, 255, 0.85);
    position: relative;
    z-index: 2;
    clear: both;
}

.footer-top {
    padding: var(--spacing-3xl) 0 var(--spacing-2xl);
}

.footer-title {
    color: #ffffff;
    font-size: 1.25rem;
}

.footer-tagline {
    color: #c9a227;
    font-size: 0.9rem;
}

.footer-about {
    font-size: 0.9rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.75);
}

.footer-heading {
    color: #ffffff;
    font-size: 1.1rem;
    margin-bottom: var(--spacing-lg);
    position: relative;
    padding-bottom: var(--spacing-sm);
}

.footer-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--color-accent);
}

.footer-links li {
    margin-bottom: var(--spacing-sm);
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    transition: all var(--transition-fast);
}

.footer-links a:hover {
    color: var(--color-accent);
    padding-left: var(--spacing-sm);
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
    font-size: 0.9rem;
}

.footer-contact li > a,
.footer-contact li > span {
    flex: 1 1 0;
    min-width: 0;
    word-break: break-word;
    line-height: 1.5;
}

.footer-contact i {
    color: var(--color-accent);
    flex-shrink: 0;
    margin-top: 3px;
}

.footer-contact a {
    color: rgba(255, 255, 255, 0.7);
}

.footer-contact a:hover {
    color: var(--color-accent);
}

.footer-social {
    display: flex;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-lg);
}

.footer-social a {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.footer-social a:hover {
    background: #c9a227;
    color: #0f2440;
    transform: translateY(-2px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding: var(--spacing-lg) 0;
    font-size: 0.85rem;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0;
}

.footer-contact span {
    color: rgba(255, 255, 255, 0.75);
}

/* ========================================
   Scroll to Top
   ======================================== */
.scroll-top-btn {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 45px;
    height: 45px;
    border-radius: var(--radius-full);
    background: var(--color-accent);
    color: var(--color-primary-dark);
    border: none;
    box-shadow: var(--shadow-lg);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all var(--transition-base);
    z-index: 1050;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.scroll-top-btn.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-top-btn:hover {
    background: var(--color-primary);
    color: var(--color-white);
    transform: translateY(-3px);
}

/* ========================================
   Admin login (public auth pages)
   ======================================== */
body.login-page {
    background: linear-gradient(135deg, #1a365d, #0f2440);
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 1.5rem 0;
}

[data-theme="dark"] body.login-page {
    background: linear-gradient(135deg, #0f172a, #1a202c);
}

.login-theme-bar {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 10;
}

.login-card {
    max-width: 420px;
    width: 100%;
    margin: 0 auto;
    border-radius: 1rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    background: var(--color-white);
}

.login-card__body {
    padding: 2rem 2rem 1.75rem;
    text-align: left;
}

.login-brand {
    margin-bottom: 1.5rem;
    text-align: center;
    width: 100%;
}

.login-brand__icon {
    font-size: 2.75rem;
    line-height: 1;
    display: block;
}

.login-brand__title {
    margin-top: 0.65rem;
    margin-bottom: 0.25rem;
    font-weight: 600;
    color: var(--color-primary-dark);
    text-align: center;
}

.login-brand__subtitle {
    margin-bottom: 0;
    text-align: center;
}

.login-form .form-label {
    font-weight: 500;
    color: var(--color-primary-dark);
    margin-bottom: 0.35rem;
}

.login-form .form-control {
    background: #fff;
    color: #1a202c;
    border-color: rgba(26, 54, 93, 0.2);
}

.password-field {
    position: relative;
}

.password-field__input {
    padding-right: 2.75rem;
}

.password-field__toggle {
    position: absolute;
    top: 50%;
    right: 0.55rem;
    transform: translateY(-50%);
    border: 0;
    background: transparent;
    color: var(--color-text-light);
    padding: 0.2rem 0.35rem;
    line-height: 1;
    cursor: pointer;
    border-radius: var(--radius-sm);
}

.password-field__toggle:hover,
.password-field__toggle:focus-visible {
    color: var(--color-primary);
    outline: none;
}

.password-field__toggle .bi {
    font-size: 1.1rem;
    pointer-events: none;
}

.login-help {
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1.25rem;
}

.login-forgot {
    margin: 0 0 1.25rem;
    font-size: 0.875rem;
}

.login-forgot a {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 500;
}

.login-forgot a:hover,
.login-forgot a:focus-visible {
    text-decoration: underline;
}

.login-back {
    margin-top: 1.25rem;
    font-size: 0.875rem;
}

.login-back a {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 500;
}

.login-back a:hover,
.login-back a:focus-visible {
    text-decoration: underline;
}

[data-theme="dark"] .login-card {
    background: #1e293b;
    border: 1px solid rgba(148, 163, 184, 0.15);
}

[data-theme="dark"] .login-brand__title,
[data-theme="dark"] .login-form .form-label {
    color: #e2e8f0;
}

[data-theme="dark"] .login-form .form-control {
    background: #0f172a;
    color: #e2e8f0;
    border-color: rgba(148, 163, 184, 0.25);
}

[data-theme="dark"] .password-field__toggle {
    color: #94a3b8;
}

[data-theme="dark"] .password-field__toggle:hover,
[data-theme="dark"] .password-field__toggle:focus-visible {
    color: var(--color-accent);
}

/* ========================================
   Admin Styles
   ======================================== */
.admin-sidebar {
    background: var(--color-primary-dark);
    min-height: 100vh;
    width: var(--admin-sidebar-width, 260px);
    position: fixed;
    left: 0;
    top: 0;
    z-index: 1040;
    display: flex;
    flex-direction: column;
    transition: width var(--transition-base), transform var(--transition-base);
    overflow-x: hidden;
}

.admin-sidebar-brand-title {
    min-width: 0;
}

.admin-sidebar-text,
.admin-sidebar-label {
    transition: opacity var(--transition-fast);
    white-space: nowrap;
}

.admin-sidebar-tagline {
    display: block;
    margin-top: 0.25rem;
}

.admin-sidebar-toggle {
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    padding: 0;
    border: 0;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.85);
    cursor: pointer;
    flex-shrink: 0;
    transition: background var(--transition-fast);
}

.admin-sidebar-toggle:hover,
.admin-sidebar-toggle:focus-visible {
    background: rgba(255, 255, 255, 0.22);
    color: var(--color-white);
}

.admin-sidebar .nav-link {
    color: rgba(255, 255, 255, 0.75);
    padding: var(--spacing-sm) var(--spacing-lg);
    border-radius: var(--radius-md);
    margin: 2px var(--spacing-sm);
    font-size: 0.9rem;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
}

.admin-sidebar .nav-link:hover,
.admin-sidebar .nav-link.active {
    background: rgba(255, 255, 255, 0.1);
    color: var(--color-white);
}

.admin-sidebar .nav-link i {
    width: 24px;
    margin-right: var(--spacing-sm);
    flex-shrink: 0;
    text-align: center;
}

.admin-main {
    margin-left: var(--admin-sidebar-width, 260px);
    min-height: 100vh;
    background: var(--color-bg-light);
    transition: margin-left var(--transition-base);
}

/* Admin forms always use light-theme inputs (readable on white cards) */
.admin-panel .form-control,
.admin-panel .form-select,
.admin-panel .form-control:focus,
.admin-panel .form-select:focus {
    color: #2d3748 !important;
    background-color: #ffffff !important;
    border-color: #ced4da !important;
}

.admin-panel .form-select option {
    color: #2d3748;
    background-color: #ffffff;
}

.admin-panel .form-control::placeholder {
    color: #718096 !important;
}

.admin-sidebar-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 1035;
}

@media (min-width: 992px) {
    body.admin-sidebar-collapsed {
        --admin-sidebar-width: 76px;
    }

    body.admin-sidebar-collapsed .admin-sidebar-text,
    body.admin-sidebar-collapsed .admin-sidebar-label,
    body.admin-sidebar-collapsed .admin-sidebar-tagline {
        opacity: 0;
        visibility: hidden;
        width: 0;
        overflow: hidden;
    }

    body.admin-sidebar-collapsed .admin-sidebar-brand {
        padding-left: 0.85rem !important;
        padding-right: 0.85rem !important;
    }

    body.admin-sidebar-collapsed .admin-sidebar-brand-title {
        justify-content: center;
        width: 100%;
    }

    body.admin-sidebar-collapsed .admin-sidebar-toggle i {
        transform: rotate(180deg);
    }

    body.admin-sidebar-collapsed .admin-sidebar .nav-link {
        justify-content: center;
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }

    body.admin-sidebar-collapsed .admin-sidebar .nav-link i {
        margin-right: 0;
    }
}

.admin-topbar {
    background: var(--color-white);
    padding: var(--spacing-md) var(--spacing-xl);
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.stat-card {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
    box-shadow: var(--shadow-sm);
    border-left: 4px solid var(--color-primary);
}

.stat-card.accent { border-left-color: var(--color-accent); }
.stat-card.success { border-left-color: var(--color-success); }
.stat-card.danger { border-left-color: var(--color-danger); }

/* Dashboard: Quick actions (light theme) */
.admin-quick-actions .btn-outline-custom {
    border-width: 1px;
    border-color: rgba(15, 36, 64, 0.18);
    background: linear-gradient(180deg, rgba(15, 36, 64, 0.03), rgba(15, 36, 64, 0.00));
    color: var(--color-primary-dark);
    padding: 0.7rem 0.9rem;
    border-radius: 14px;
    text-align: left;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    transform: translateZ(0);
    box-shadow: 0 1px 0 rgba(15, 36, 64, 0.03);
}

.admin-quick-actions .btn-outline-custom i {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(201, 162, 39, 0.18);
    color: var(--color-primary-dark);
    flex-shrink: 0;
}

.admin-quick-actions .btn-outline-custom:hover,
.admin-quick-actions .btn-outline-custom:focus {
    background: linear-gradient(135deg, rgba(15, 36, 64, 0.06), rgba(201, 162, 39, 0.10));
    border-color: rgba(15, 36, 64, 0.28);
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(15, 36, 64, 0.12);
}

.admin-quick-actions .btn-outline-custom:focus-visible {
    outline: none;
    box-shadow: 0 0 0 4px rgba(201, 162, 39, 0.25), 0 10px 24px rgba(15, 36, 64, 0.12);
}

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 991.98px) {
    .dropdown-menu-nav,
    .dropdown-menu-nav--single,
    .dropdown-menu-nav--2col {
        position: static !important;
        transform: none !important;
        width: 100%;
        min-width: 0;
        max-width: none;
        box-shadow: none;
        border: none;
        border-radius: 0;
        padding: 0.25rem 0 0.5rem 0.75rem;
        margin-top: 0;
        background: transparent;
    }

    .dropdown-menu-columns,
    .dropdown-menu-columns.cols-3 {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .dropdown-menu-label {
        font-size: 0.75rem;
    }

    .hero-slide {
        min-height: 400px;
    }

    .quick-links {
        margin-top: var(--spacing-xl);
    }

    .principal-photo {
        flex: 0 0 100%;
    }

    .principal-photo img {
        min-height: 250px;
    }

    .admin-sidebar {
        transform: translateX(-100%);
        width: 260px;
    }

    .admin-sidebar.show {
        transform: translateX(0);
    }

    .admin-sidebar-backdrop.is-visible {
        display: block;
    }

    .admin-main {
        margin-left: 0;
    }
}

@media (max-width: 767.98px) {
    .section-padding {
        padding: var(--spacing-2xl) 0;
    }

    .hero-slide {
        min-height: 350px;
    }

    .hero-content h1 {
        font-size: 1.75rem;
    }

    .stat-item {
        padding: var(--spacing-md);
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }

    .scroll-top-btn {
        bottom: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 575.98px) {
    .brand-text {
        display: none;
    }

    .hero-btns {
        flex-direction: column;
    }

    .hero-btns .btn {
        width: 100%;
        text-align: center;
    }
}

/* ========================================
   Theme Switcher
   ======================================== */
.theme-switcher {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    padding: 3px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-full);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.theme-switcher--compact {
    background: var(--color-bg-light);
    border-color: var(--color-border);
}

.theme-switcher-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    border: none;
    border-radius: var(--radius-full);
    background: transparent;
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.95rem;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.theme-switcher--compact .theme-switcher-btn {
    color: var(--color-text-light);
    width: 28px;
    height: 28px;
    font-size: 0.85rem;
}

.theme-switcher-btn:hover {
    color: var(--color-accent);
    background: rgba(255, 255, 255, 0.1);
}

.theme-switcher--compact .theme-switcher-btn:hover {
    background: var(--color-bg-dark);
    color: var(--color-primary);
}

.theme-switcher-btn.active {
    background: var(--color-accent);
    color: var(--color-primary-dark);
}

.theme-switcher--compact .theme-switcher-btn.active {
    color: var(--color-primary-dark);
}

/* Mobile-only switcher next to menu button */
@media (min-width: 992px) {
    .site-header .navbar > .container > .d-lg-none .theme-switcher {
        display: none;
    }
}

/* XL screens: full nav fits; LG uses search icon */
@media (max-width: 1199.98px) {
    .navbar-nav .nav-link {
        padding: 0.5rem 0.5rem !important;
        font-size: 0.8125rem;
    }
}

@media (max-width: 991.98px) {
    .navbar-brand {
        max-width: 220px;
    }

    .navbar-collapse {
        padding-top: var(--spacing-md);
        border-top: 1px solid var(--color-border);
        margin-top: var(--spacing-sm);
    }

    .navbar-nav {
        flex-wrap: wrap;
    }

    .navbar-nav .nav-link {
        white-space: normal;
    }
}

/* ========================================
   Dark Theme
   ======================================== */
[data-theme="dark"] {
    color-scheme: dark;

    --color-primary: #90cdf4;
    --color-primary-dark: #f1f5f9;
    --color-primary-light: #63b3ed;
    --color-accent: #e8c547;
    --color-accent-hover: #d4b545;
    --color-text: #e2e8f0;
    --color-text-light: #cbd5e1;
    --color-text-muted: #94a3b8;
    --color-bg: #0f172a;
    --color-bg-light: #1e293b;
    --color-bg-dark: #162032;
    --color-border: #334155;
    --color-white: #1e293b;
    --color-surface: #1e293b;
    --color-surface-hover: #273449;

    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.45);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 10px 32px rgba(0, 0, 0, 0.55);
    --shadow-xl: 0 20px 50px rgba(0, 0, 0, 0.6);
}

[data-theme="dark"] .site-header {
    background: #1e2a3a;
    border-bottom: 1px solid var(--color-border);
}

[data-theme="dark"] .navbar-nav .nav-link {
    color: var(--color-text);
}

[data-theme="dark"] .navbar-nav .nav-link:hover,
[data-theme="dark"] .navbar-nav .nav-link.active {
    color: var(--color-primary);
}

[data-theme="dark"] .navbar-toggler-icon {
    filter: invert(1) grayscale(100%);
}

[data-theme="dark"] .dropdown-menu-nav {
    background: var(--color-bg-light);
    border-color: var(--color-border);
}

[data-theme="dark"] .navbar-nav .nav-link:hover {
    background: rgba(144, 205, 244, 0.1);
}

[data-theme="dark"] .navbar-nav .nav-item.dropdown:hover > .nav-link,
[data-theme="dark"] .navbar-nav .nav-item.dropdown.show > .nav-link {
    background: rgba(201, 162, 39, 0.18);
}

[data-theme="dark"] .dropdown-menu-nav .dropdown-item:hover,
[data-theme="dark"] .dropdown-menu-nav .dropdown-item:focus {
    background: linear-gradient(105deg, rgba(201, 162, 39, 0.2) 0%, rgba(144, 205, 244, 0.08) 100%);
}

[data-theme="dark"] .announcement-ticker {
    background: linear-gradient(90deg, #8b7320, #a08a2e);
}

/* Top bar — keep dark navy + light text (do not use remapped --color-primary-dark / --color-white) */
[data-theme="dark"] .top-bar {
    background: #0f2440;
    color: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .top-bar a {
    color: rgba(255, 255, 255, 0.92);
}

[data-theme="dark"] .top-bar a:hover {
    color: var(--color-accent);
}

[data-theme="dark"] .top-bar-info li i {
    color: var(--color-accent);
}

[data-theme="dark"] .top-bar-social a {
    background: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.9);
}

[data-theme="dark"] .top-bar-social a:hover {
    background: var(--color-accent);
    color: #0f2440;
}

[data-theme="dark"] .top-bar .theme-switcher {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.18);
}

[data-theme="dark"] .top-bar .theme-switcher-btn {
    color: rgba(255, 255, 255, 0.85);
}

[data-theme="dark"] .top-bar .theme-switcher-btn.active {
    color: #0f2440;
}

/* Hero slider — always light text on image overlay */
[data-theme="dark"] .hero-slide::before {
    background: linear-gradient(135deg, rgba(8, 15, 28, 0.88) 0%, rgba(15, 36, 64, 0.78) 100%);
}

[data-theme="dark"] .hero-content,
[data-theme="dark"] .hero-content h1,
[data-theme="dark"] .hero-content h2,
[data-theme="dark"] .hero-slide__title,
[data-theme="dark"] .hero-slide__eyebrow,
[data-theme="dark"] .hero-content p {
    color: #ffffff;
}

[data-theme="dark"] .hero-slide__eyebrow {
    color: rgba(255, 255, 255, 0.88);
}

[data-theme="dark"] .hero-content .btn-outline-light {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.85);
}

[data-theme="dark"] .hero-content .btn-outline-light:hover {
    background: #ffffff;
    color: #0f2440;
    border-color: #ffffff;
}

[data-theme="dark"] .page-header {
    background: linear-gradient(135deg, #1e3a5f 0%, #0f172a 100%);
    color: #ffffff;
}

[data-theme="dark"] .page-header h1 {
    color: #ffffff;
}

[data-theme="dark"] .page-header p {
    color: rgba(255, 255, 255, 0.92);
}

[data-theme="dark"] .breadcrumb-nav {
    background: var(--color-bg-dark);
    border-color: var(--color-border);
}

[data-theme="dark"] .breadcrumb-item a {
    color: var(--color-text-light);
}

[data-theme="dark"] .breadcrumb-item a:hover {
    color: var(--color-accent);
}

[data-theme="dark"] .breadcrumb-item.active {
    color: var(--color-primary);
}

[data-theme="dark"] .page-content {
    background: var(--color-bg);
}

[data-theme="dark"] .section-padding.bg-light,
[data-theme="dark"] .bg-light,
[data-theme="dark"] .home-contact {
    background-color: var(--color-bg-dark) !important;
}

[data-theme="dark"] .modern-card,
[data-theme="dark"] .program-card,
[data-theme="dark"] .staff-card,
[data-theme="dark"] .video-testimonial-card,
[data-theme="dark"] .testimonials-slider-btn,
[data-theme="dark"] .contact-info-card,
[data-theme="dark"] .download-item,
[data-theme="dark"] .stat-card {
    background: var(--color-surface);
    border-color: var(--color-border);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

[data-theme="dark"] .modern-card:hover,
[data-theme="dark"] .program-card:hover,
[data-theme="dark"] .staff-card:hover {
    border-color: rgba(144, 205, 244, 0.35);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
}

[data-theme="dark"] .modern-card .card-body,
[data-theme="dark"] .modern-card p,
[data-theme="dark"] .program-card p {
    color: var(--color-text-light);
}

[data-theme="dark"] .program-icon {
    background: var(--color-bg-dark);
    color: var(--color-accent);
    border: 1px solid var(--color-border);
}

[data-theme="dark"] .quick-link-icon {
    border: none;
    color: #fff;
}

[data-theme="dark"] .program-card:hover .program-icon {
    background: var(--color-primary);
    color: var(--color-bg);
}

[data-theme="dark"] .notice-item:hover {
    background: var(--color-bg-dark);
}

[data-theme="dark"] .notice-badge.general {
    background: var(--color-bg-dark);
    color: var(--color-text-light);
}

[data-theme="dark"] .header-search .form-control {
    background: var(--color-bg-light);
    border-color: var(--color-border);
    color: var(--color-text);
}

[data-theme="dark"] .search-toggle {
    color: var(--color-text);
}

[data-theme="dark"] .faq-item .accordion-button {
    background: var(--color-bg-light);
    color: var(--color-text);
}

[data-theme="dark"] .faq-item .accordion-button:not(.collapsed) {
    background: var(--color-primary-light);
    color: var(--color-bg);
}

[data-theme="dark"] .accordion-body {
    background: var(--color-bg);
    color: var(--color-text);
}

[data-theme="dark"] .table {
    --bs-table-bg: transparent;
    --bs-table-color: var(--color-text);
    --bs-table-border-color: var(--color-border);
}

[data-theme="dark"] .table-light {
    --bs-table-bg: var(--color-bg-dark);
    --bs-table-color: var(--color-text);
}

[data-theme="dark"] .admin-main {
    background: var(--color-bg);
}

[data-theme="dark"] .admin-topbar {
    background: var(--color-bg-light);
    border-bottom: 1px solid var(--color-border);
}

[data-theme="dark"] .form-control,
[data-theme="dark"] .form-select {
    background-color: var(--color-bg-light);
    border-color: var(--color-border);
    color: var(--color-text);
}

[data-theme="dark"] .form-control:focus,
[data-theme="dark"] .form-select:focus {
    background-color: var(--color-bg-light);
    color: var(--color-text);
}

[data-theme="dark"] .list-group-item {
    background: var(--color-bg-light);
    border-color: var(--color-border);
    color: var(--color-text);
}

[data-theme="dark"] .list-group-item-action:hover {
    background: var(--color-bg-dark);
    color: var(--color-primary);
}

[data-theme="dark"] .pagination .page-link {
    background: var(--color-bg-light);
    border-color: var(--color-border);
    color: var(--color-text);
}

[data-theme="dark"] .pagination .page-item.active .page-link {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: var(--color-bg);
}

[data-theme="dark"] .text-muted {
    color: var(--color-text-muted) !important;
}

[data-theme="dark"] h1,
[data-theme="dark"] h2,
[data-theme="dark"] h3,
[data-theme="dark"] h4,
[data-theme="dark"] h5,
[data-theme="dark"] h6,
[data-theme="dark"] .section-title,
[data-theme="dark"] .card-title {
    color: var(--color-primary-dark);
}

[data-theme="dark"] .tag-badge {
    background: rgba(144, 205, 244, 0.12);
    color: #e2e8f0;
    border-color: rgba(144, 205, 244, 0.25);
}

[data-theme="dark"] .badge.bg-light,
[data-theme="dark"] .bg-light.text-dark {
    background: rgba(144, 205, 244, 0.12) !important;
    color: #e2e8f0 !important;
}

[data-theme="dark"] .staff-designation {
    color: var(--color-accent);
}

[data-theme="dark"] .staff-name {
    color: #f1f5f9;
}

[data-theme="dark"] .staff-department {
    color: var(--color-text-light);
}

[data-theme="dark"] .section-subtitle {
    color: var(--color-text-muted);
}

[data-theme="dark"] .dropdown-menu-label {
    color: var(--color-primary);
}

[data-theme="dark"] .btn-outline-custom {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

[data-theme="dark"] .btn-outline-custom:hover {
    background: var(--color-primary);
    color: var(--color-bg);
}

/* Admin sidebar contrast in dark theme */
[data-theme="dark"] .admin-sidebar {
    background: #0b1220;
    border-right: 1px solid rgba(148, 163, 184, 0.18);
}

[data-theme="dark"] .admin-sidebar .nav-link {
    color: rgba(226, 232, 240, 0.9);
}

[data-theme="dark"] .admin-sidebar .nav-link:hover,
[data-theme="dark"] .admin-sidebar .nav-link.active {
    background: rgba(144, 205, 244, 0.12);
    color: #ffffff;
}

[data-theme="dark"] .admin-sidebar .text-white-50 {
    color: rgba(226, 232, 240, 0.7) !important;
}

[data-theme="dark"] .alert {
    border-color: var(--color-border);
}

[data-theme="dark"] .alert-success {
    background: rgba(56, 161, 105, 0.15);
    color: #9ae6b4;
}

[data-theme="dark"] .alert-danger {
    background: rgba(229, 62, 62, 0.15);
    color: #feb2b2;
}

[data-theme="dark"] .cta-section {
    background: linear-gradient(135deg, #1e3a5f 0%, #0f2440 100%);
}

[data-theme="dark"] .cta-section h2,
[data-theme="dark"] .cta-section p {
    color: #ffffff;
}

[data-theme="dark"] .top-bar {
    background: #0a1220;
}

[data-theme="dark"] .brand-name {
    color: #f1f5f9;
}

[data-theme="dark"] .brand-location {
    color: var(--color-text-muted);
}

/* Footer — always dark background + light text (immune to variable swaps) */
[data-theme="dark"] .site-footer {
    background: #0a1220;
    color: rgba(255, 255, 255, 0.85);
}

[data-theme="dark"] .site-footer .footer-title,
[data-theme="dark"] .site-footer .footer-heading,
[data-theme="dark"] .site-footer h3,
[data-theme="dark"] .site-footer h4 {
    color: #ffffff !important;
}

[data-theme="dark"] .site-footer .footer-tagline {
    color: #e8c547 !important;
}

[data-theme="dark"] .site-footer .footer-about,
[data-theme="dark"] .site-footer .footer-bottom p,
[data-theme="dark"] .site-footer .footer-contact span {
    color: rgba(255, 255, 255, 0.75) !important;
}

[data-theme="dark"] .site-footer .footer-links a,
[data-theme="dark"] .site-footer .footer-contact a {
    color: rgba(255, 255, 255, 0.75) !important;
}

[data-theme="dark"] .site-footer .footer-links a:hover,
[data-theme="dark"] .site-footer .footer-contact a:hover {
    color: #e8c547 !important;
}

[data-theme="dark"] .site-footer .footer-social a {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .site-footer .footer-contact i {
    color: #e8c547;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }
}
