/* ================================================================
   style.css — جامعة السراج الأهلية | University of Baghdad Style
   Primary: #102e5e  |  Accent: #f5c538  |  White: #ffffff
   ================================================================ */

/* ===== CSS VARIABLES ===== */
:root {
    /* ── Brand colours ── */
    --primary:       #102e5e;
    --primary-dark:  #0b2249;
    --primary-light: #1a4080;
    --accent:        #f5c538;
    --accent-dark:   #d4a820;
    --accent-light:  #fad45a;
    --white:         #ffffff;

    /* ── Text ── */
    --text-dark:     #1a1a2e;
    --text-muted:    #666;
    --text-light:    rgba(255,255,255,0.75);

    /* ── Backgrounds ── */
    --bg-light:      #f4f6fa;
    --bg-card:       #ffffff;
    --border:        #e0e6f0;

    /* ── Shadows ── */
    --shadow-sm:     0 2px 8px rgba(16,46,94,0.10);
    --shadow:        0 4px 20px rgba(16,46,94,0.12);
    --shadow-lg:     0 8px 40px rgba(16,46,94,0.18);

    /* ── Radii ── */
    --radius-xs:  4px;
    --radius-sm:  8px;
    --radius:     12px;
    --radius-lg:  20px;
    --radius-xl:  28px;

    /* ── Transitions ── */
    --transition:      all 0.3s ease;
    --transition-fast: all 0.15s ease;
    --transition-slow: all 0.5s ease;

    /* ── Type scale ── */
    --text-xs:   0.72rem;
    --text-sm:   0.82rem;
    --text-base: 1rem;
    --text-md:   1.1rem;
    --text-lg:   1.4rem;
    --text-xl:   1.8rem;
    --text-2xl:  2.5rem;
    --text-3xl:  3.2rem;

    /* ── Z-index layers ── */
    --z-base:     1;
    --z-raised:   10;
    --z-dropdown: 100;
    --z-sticky:   1000;
    --z-overlay:  4000;
    --z-modal:    8000;
    --z-toast:    9000;
    --z-top:      9999;

    /* ── Glass (hero overlays) ── */
    --glass-bg:     rgba(16,46,94,0.55);
    --glass-border: rgba(255,255,255,0.15);
}

/* ===== RESET & BASE ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Cairo', 'Segoe UI', Tahoma, sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.7;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; }
button { font-family: inherit; cursor: pointer; }

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section-padding { padding: 5rem 0; }

/* ===== PRELOADER ===== */
#preloader {
    position: fixed; inset: 0;
    background: var(--primary);
    display: flex; align-items: center; justify-content: center;
    z-index: var(--z-top);
    transition: opacity 0.5s, visibility 0.5s;
}
.preloader-inner {
    display: flex; flex-direction: column; align-items: center; gap: 1rem;
    text-align: center;
}
.preloader-logo-img {
    width: 90px; height: 90px; border-radius: 50%;
    border: 3px solid var(--accent);
    object-fit: cover;
}
.preloader-spinner {
    width: 50px; height: 50px;
    border: 3px solid rgba(245,197,56,0.2);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.preloader-text { font-size: var(--text-md); font-weight: 700; color: var(--accent); }
.preloader-sub { font-size: var(--text-sm); color: var(--text-light); }
.preloader-bar {
    width: 200px; height: 3px;
    background: rgba(255,255,255,0.15);
    border-radius: 2px; overflow: hidden;
}
.preloader-bar-fill {
    height: 100%; width: 0;
    background: var(--accent);
    border-radius: 2px;
    animation: loadBar 2.2s ease forwards;
}
@keyframes loadBar { to { width: 100%; } }

/* ===== SCROLL PROGRESS ===== */
#scroll-progress {
    position: fixed; top: 0; left: 0;
    height: 3px; width: 0;
    background: linear-gradient(90deg, var(--accent), var(--accent-light));
    z-index: calc(var(--z-top) - 1); transition: width 0.1s;
}

/* ===== TOP BAR ===== */
.top-bar {
    background: var(--primary-dark);
    color: var(--text-light);
    font-size: var(--text-sm);
    position: sticky; top: 0; z-index: calc(var(--z-sticky) + 100);
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.top-bar-inner {
    max-width: 1280px; margin: 0 auto;
    padding: 0.45rem 1.5rem;
    display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.top-bar-social { display: flex; gap: 0.6rem; }
.top-bar-social a {
    color: var(--text-light);
    width: 26px; height: 26px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    transition: var(--transition);
    font-size: 0.75rem;
}
.top-bar-social a:hover { background: var(--accent); color: var(--primary); }
.top-bar-center {
    font-weight: 600; color: var(--accent);
    font-size: 0.83rem;
    text-align: center; flex: 1;
}
.top-bar-actions {
    display: flex; align-items: center; gap: 0.6rem;
    flex-wrap: nowrap;
}
.top-bar-actions a {
    color: var(--text-light);
    transition: var(--transition);
    font-size: 0.8rem;
}
.top-bar-actions a:hover { color: var(--accent); }
.top-bar-sep { color: rgba(255,255,255,0.25); }
.lang-btn {
    background: var(--accent);
    color: var(--primary);
    border: none;
    padding: 0.2rem 0.75rem;
    border-radius: var(--radius-lg);
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
}
.lang-btn:hover { background: var(--accent-light); }

/* ===== NEWS TICKER ===== */
.news-ticker {
    background: var(--primary);
    border-bottom: 2px solid var(--accent);
    padding: 0.4rem 1rem;
    display: flex; align-items: center; gap: 1rem;
    overflow: hidden;
    position: sticky; top: 37px; z-index: calc(var(--z-sticky) + 90);
}
.ticker-label {
    background: var(--accent);
    color: var(--primary);
    padding: 0.15rem 0.8rem;
    border-radius: var(--radius-lg);
    font-size: 0.76rem;
    font-weight: 700;
    white-space: nowrap; flex-shrink: 0;
}
.ticker-wrap { flex: 1; overflow: hidden; }
.ticker-content {
    display: inline-block;
    white-space: nowrap;
    font-size: 0.83rem;
    color: var(--text-light);
    animation: tickerScroll 40s linear infinite;
}
@keyframes tickerScroll {
    0%   { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}
[dir="ltr"] .ticker-content {
    animation-direction: reverse;
}

/* ===== NAVBAR ===== */
.navbar {
    position: sticky;
    top: 73px;
    z-index: var(--z-sticky);
    background: var(--primary);
    box-shadow: 0 2px 20px rgba(16,46,94,0.3);
    transition: top 0.3s;
}
.navbar.scrolled {
    top: 0;
    box-shadow: 0 4px 30px rgba(16,46,94,0.4);
}
.nav-container {
    max-width: 1280px; margin: 0 auto;
    display: flex; align-items: center;
    justify-content: space-between;
    padding: 0.6rem 1.5rem; gap: 1rem;
}

/* Logo */
.nav-logo {
    display: flex; align-items: center; gap: 10px;
    flex-shrink: 0;
}
.nav-logo img {
    height: 48px; width: 48px;
    border-radius: 50%;
    border: 2px solid var(--accent);
    object-fit: cover;
}
.nav-logo .logo-text { line-height: 1.25; }
.nav-logo .logo-title {
    font-size: var(--text-base); font-weight: 800;
    color: var(--accent); display: block;
}
.nav-logo .logo-sub { font-size: 0.72rem; color: var(--text-light); }

/* Nav Links */
.nav-links {
    display: flex; align-items: center;
    gap: 0; flex-wrap: nowrap;
}
.nav-item { position: relative; }
.nav-item > a {
    display: flex; align-items: center; gap: 5px;
    padding: 0.75rem 0.75rem;
    color: rgba(255,255,255,0.88);
    font-size: var(--text-sm); font-weight: 600;
    border-bottom: 3px solid transparent;
    transition: var(--transition);
    white-space: nowrap;
}
.nav-item > a:hover,
.nav-item.active > a {
    color: var(--accent);
    border-bottom-color: var(--accent);
}
.nav-item > a .arrow-icon {
    font-size: 0.65rem;
    opacity: 0.7;
    transition: transform 0.2s ease;
}
.nav-item.has-dropdown:hover > a .arrow-icon { transform: rotate(180deg); }

/* Dropdown */
.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%; right: 0;
    background: var(--white);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg);
    min-width: 220px;
    border-top: 3px solid var(--accent);
    z-index: calc(var(--z-dropdown) + 400);
    overflow: hidden;
}
[dir="ltr"] .dropdown-menu { right: auto; left: 0; }
.nav-item.has-dropdown:hover .dropdown-menu { display: block; }
.dropdown-menu a {
    display: flex; align-items: center; gap: 8px;
    padding: 0.65rem 1rem;
    color: var(--text-dark);
    font-size: 0.83rem; font-weight: 600;
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
}
.dropdown-menu a:last-child { border-bottom: none; }
.dropdown-menu a:hover { background: var(--bg-light); color: var(--primary); }
.dropdown-menu a i { color: var(--accent-dark); width: 16px; }

.dropdown-label {
    padding: 0.5rem 1rem;
    font-size: 0.72rem;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.dropdown-footer {
    border-top: 2px solid var(--border);
    padding: 0.5rem 0;
}
.dropdown-footer a { color: var(--primary) !important; font-weight: 700 !important; }

/* Colleges nav grid */
.colleges-dropdown { min-width: 320px; }
.colleges-grid-nav {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 0;
}
.colleges-grid-nav a {
    padding: 0.55rem 0.9rem;
    font-size: 0.78rem;
    border-bottom: 1px solid var(--border);
}
.colleges-grid-nav a:nth-last-child(1),
.colleges-grid-nav a:nth-last-child(2) { border-bottom: none; }

/* Hamburger */
.menu-toggle {
    display: none;
    flex-direction: column; gap: 5px;
    background: none; border: none;
    padding: 5px; cursor: pointer;
}
.menu-toggle span {
    display: block; width: 24px; height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: var(--transition);
}
.menu-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== HERO SECTION ===== */
.hero-section {
    position: relative;
    height: 88vh; min-height: 560px;
    display: flex; align-items: center;
    overflow: hidden;
    background: var(--primary);
}
.hero-media-bg {
    position: absolute; inset: 0;
    z-index: 0;
}
.hero-media-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(16,46,94,0.88) 0%, rgba(16,46,94,0.65) 50%, rgba(16,46,94,0.75) 100%);
    z-index: 1;
}
.hero-slide {
    position: absolute; inset: 0;
    display: flex; align-items: center;
    z-index: 2;
    opacity: 0;
    transition: opacity 0.8s ease;
    background: linear-gradient(135deg, rgba(16,46,94,0.9), rgba(26,64,128,0.7));
}
.hero-slide.active { opacity: 1; }
/* Hero slide background images */
.hero-slide:nth-child(1) { background: linear-gradient(135deg, rgba(16,46,94,0.88), rgba(11,34,73,0.8)), url('assets/hero-1.jpg') center/cover; }
.hero-slide:nth-child(2) { background: linear-gradient(135deg, rgba(16,46,94,0.85), rgba(26,64,128,0.75)), url('assets/hero-2.jpg') center/cover; }
.hero-slide:nth-child(3) { background: linear-gradient(135deg, rgba(16,46,94,0.85), rgba(11,34,73,0.8)), url('assets/hero-3.jpg') center/cover; }
.hero-slide-content {
    max-width: 1280px; width: 100%;
    margin: 0 auto; padding: 0 1.5rem;
    position: relative; z-index: 3;
}
.hero-badge {
    display: inline-flex; align-items: center; gap: 6px;
    background: rgba(245,197,56,0.15);
    border: 1px solid rgba(245,197,56,0.4);
    color: var(--accent);
    padding: 0.35rem 1rem; border-radius: var(--radius-lg);
    font-size: var(--text-sm); font-weight: 600;
    margin-bottom: 1.2rem;
}
.hero-section h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 900;
    color: var(--white);
    line-height: 1.2;
    margin-bottom: 1rem;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.hero-sub {
    font-size: clamp(0.9rem, 2vw, 1.15rem);
    color: rgba(255,255,255,0.82);
    max-width: 620px;
    margin-bottom: 2rem;
    line-height: 1.8;
}
.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; }
/* ══════════════════════════════════════════
   UNIFIED BUTTON SYSTEM
   Variants: --accent | --navy | --outline | --ghost
   ══════════════════════════════════════════ */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 0.75rem 1.8rem;
    border-radius: var(--radius);
    font-family: inherit; font-weight: 700; font-size: var(--text-base);
    border: 2px solid transparent;
    cursor: pointer; text-decoration: none;
    transition: var(--transition);
    white-space: nowrap;
}
.btn:hover  { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn:disabled, .btn[disabled] { opacity: .5; pointer-events: none; }

/* Gold / Accent — primary action on dark backgrounds */
.btn--accent,
.btn-primary {
    background: var(--accent); color: var(--primary);
    border-color: var(--accent);
}
.btn--accent:hover,
.btn-primary:hover {
    background: var(--accent-dark); border-color: var(--accent-dark);
    box-shadow: 0 6px 20px rgba(245,197,56,0.4);
}

/* Navy — primary action on light backgrounds */
.btn--navy,
.btn-primary-about {
    background: var(--primary); color: var(--white);
    border-color: var(--primary);
}
.btn--navy:hover,
.btn-primary-about:hover {
    background: var(--accent); border-color: var(--accent);
    color: var(--primary);
    box-shadow: 0 6px 20px rgba(16,46,94,0.25);
}

/* Outline on light — secondary action */
.btn--outline,
.btn-secondary {
    background: transparent; color: var(--primary);
    border-color: var(--primary);
}
.btn--outline:hover,
.btn-secondary:hover {
    background: var(--primary); color: var(--white);
}

/* Ghost on dark — secondary action on hero / dark sections */
.btn--ghost,
.btn-outline-hero {
    background: transparent; color: var(--white);
    border-color: rgba(255,255,255,0.5);
}
.btn--ghost:hover,
.btn-outline-hero:hover {
    background: rgba(255,255,255,0.1); border-color: var(--white);
}

/* Full-width modifier */
.btn--full { width: 100%; }

/* Hero media bg slides */
.hero-slide-bg {
    position: absolute; inset: 0;
    background-size: cover; background-position: center;
    opacity: 0; transition: opacity 0.8s;
}
.hero-slide-bg.active { opacity: 1; }

/* Slider Dots */
.hero-dots {
    position: absolute; bottom: 2rem;
    left: 50%; transform: translateX(-50%);
    z-index: var(--z-raised);
    display: flex; gap: 8px;
}
.hero-dot {
    width: 10px; height: 10px; border-radius: 50%;
    background: rgba(255,255,255,0.4);
    border: 2px solid rgba(255,255,255,0.5);
    cursor: pointer; transition: var(--transition);
    padding: 0;
}
.hero-dot.active {
    background: var(--accent);
    border-color: var(--accent);
    transform: scale(1.2);
}

/* Slider Arrows */
.hero-arrow {
    position: absolute; top: 50%; transform: translateY(-50%);
    z-index: var(--z-raised);
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.25);
    color: var(--white);
    width: 44px; height: 44px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: var(--text-base);
    transition: var(--transition);
}
.hero-arrow:hover { background: var(--accent); color: var(--primary); border-color: var(--accent); }
.hero-arrow-prev { right: 1.5rem; }
.hero-arrow-next { left: 1.5rem; }
[dir="ltr"] .hero-arrow-prev { right: auto; left: 1.5rem; }
[dir="ltr"] .hero-arrow-next { left: auto; right: 1.5rem; }

/* ===== QUICK SERVICES ===== */
.quick-services {
    background: var(--white);
    padding: 2rem 0;
    box-shadow: var(--shadow);
    position: relative; z-index: calc(var(--z-raised) + 40);
    margin-top: -2px;
}
.services-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1rem;
}
.service-card {
    display: flex; flex-direction: column; align-items: center; gap: 0.6rem;
    padding: 1.5rem 0.75rem;
    border-radius: var(--radius);
    background: var(--bg-light);
    border: 2px solid transparent;
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
    color: var(--text-dark);
}
.service-card:hover {
    background: var(--primary);
    border-color: var(--primary);
    transform: translateY(-4px);
    box-shadow: var(--shadow);
    color: var(--white);
}
.service-card:hover .service-icon { background: var(--accent); color: var(--primary); }
.service-icon {
    width: 56px; height: 56px;
    border-radius: var(--radius);
    background: var(--primary);
    color: var(--accent);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem;
    transition: var(--transition);
}
.service-title { font-size: var(--text-sm); font-weight: 700; line-height: 1.3; }

/* ===== STATISTICS BAR ===== */
/* ── Integrated stats inside About section ── */
.about-stats-integrated {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.75rem;
}
.about-stats-integrated .stat-item {
    display: flex; flex-direction: column; align-items: center;
    gap: 0.4rem;
    padding: 1rem 1.5rem;
    text-align: center;
    background: var(--bg-light);
    border-radius: var(--radius);
    border-bottom: 3px solid var(--accent);
    border-left: none;
    min-width: 100px;
    flex: 1;
}
[dir="ltr"] .about-stats-integrated .stat-item { border-right: none; }
.about-stats-integrated .stat-icon {
    width: 40px; height: 40px;
    background: rgba(16,46,94,0.07);
    border: 2px solid rgba(16,46,94,0.12);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: var(--primary);
    font-size: 1rem;
}
.about-stats-integrated .stat-num {
    font-size: 1.7rem; font-weight: 900;
    color: var(--primary);
    line-height: 1;
}
.about-stats-integrated .stat-label {
    font-size: 0.78rem;
    color: var(--text-muted);
    font-weight: 600;
}

/* ===== SECTION HEADERS ===== */
.section-header { text-align: center; margin-bottom: 3rem; }
.section-badge {
    display: inline-block;
    background: rgba(16,46,94,0.08);
    color: var(--primary);
    padding: 0.3rem 1rem; border-radius: var(--radius-lg);
    font-size: 0.8rem; font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 0.75rem;
    border: 1px solid rgba(16,46,94,0.12);
}
.section-badge-light {
    display: inline-block;
    background: rgba(245,197,56,0.15);
    color: var(--accent);
    padding: 0.3rem 1rem; border-radius: var(--radius-lg);
    font-size: 0.8rem; font-weight: 700;
    margin-bottom: 0.75rem;
    border: 1px solid rgba(245,197,56,0.3);
}
.section-heading {
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 0.75rem;
    line-height: 1.3;
}
.section-heading-light {
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    font-weight: 800;
    color: var(--white);
    margin-bottom: 0.75rem;
}
.section-header-light { text-align: center; margin-bottom: 3rem; }
.section-sub {
    font-size: var(--text-base);
    color: var(--text-muted);
    max-width: 560px; margin: 0 auto;
}
.section-divider {
    width: 60px; height: 4px;
    background: linear-gradient(90deg, var(--accent), var(--accent-dark));
    border-radius: 2px;
    margin: 1rem auto 0;
}
.section-divider-light {
    width: 60px; height: 4px;
    background: var(--accent);
    border-radius: 2px;
    margin: 1rem auto 0;
}

/* ===== ABOUT SECTION ===== */
.about-section { background: var(--white); }
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem; align-items: center;
}
.about-text .section-badge { margin-bottom: 0.75rem; }
.about-desc {
    color: var(--text-muted);
    font-size: var(--text-base); line-height: 2;
    margin: 1.25rem 0 1.75rem;
}
/* .about-stats-row merged into .about-stats-integrated (dynamic from API) */
.btn-primary-about {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--primary);
    color: var(--white);
    padding: 0.75rem 1.8rem;
    border-radius: var(--radius);
    font-weight: 700; font-size: var(--text-base);
    border: 2px solid var(--primary);
    transition: var(--transition);
}
.btn-primary-about:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--primary);
    transform: translateY(-2px);
}
.about-image { position: relative; }
.about-img-wrap {
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
    min-height: 380px;
    background: linear-gradient(135deg, var(--primary-light), var(--primary-dark));
}
.about-img-wrap img {
    width: 100%; height: 100%;
    object-fit: cover; display: block;
}
.about-img-wrap.img-placeholder::after {
    content: '';
    display: block;
    width: 100%; padding-top: 75%;
}
.about-img-wrap.img-placeholder {
    display: flex; align-items: center; justify-content: center;
}
.about-img-overlay {
    position: absolute; bottom: 1.5rem; right: 1.5rem;
}
[dir="ltr"] .about-img-overlay { right: auto; left: 1.5rem; }
.about-img-badge {
    background: var(--accent);
    color: var(--primary);
    padding: 1rem 1.5rem;
    border-radius: var(--radius);
    font-weight: 800;
    text-align: center;
    box-shadow: var(--shadow-lg);
    display: flex; flex-direction: column; align-items: center;
}
.year-num { font-size: var(--text-xl); line-height: 1; }

/* ===== DOCUMENT FRAME (Ministerial Letter) ===== */
.doc-frame-wrap {
    position: relative;
    border-radius: 18px;
    background: linear-gradient(145deg, #0d2b5e 0%, #0a1f45 60%, #071530 100%);
    padding: 2rem 1.75rem 3.5rem;
    box-shadow:
        0 25px 60px rgba(0,0,0,.35),
        0 0 0 1px rgba(245,197,56,.15),
        inset 0 1px 0 rgba(255,255,255,.07);
    overflow: hidden;
    min-height: 420px;
    display: flex; flex-direction: column; align-items: center; gap: 1rem;
}

/* Animated gradient shimmer background */
.doc-frame-wrap::before {
    content: '';
    position: absolute; inset: 0;
    background: radial-gradient(ellipse at 30% 20%, rgba(245,197,56,.06) 0%, transparent 60%),
                radial-gradient(ellipse at 70% 80%, rgba(245,197,56,.04) 0%, transparent 50%);
    pointer-events: none;
}

/* Corner accents */
.doc-corner {
    position: absolute;
    width: 22px; height: 22px;
    border-color: rgba(245,197,56,.55);
    border-style: solid;
    border-width: 0;
    z-index: 2;
}
.doc-corner--tl { top: 14px; right: 14px; border-top-width: 2px; border-right-width: 2px; border-radius: 0 4px 0 0; }
.doc-corner--tr { top: 14px; left: 14px;  border-top-width: 2px; border-left-width: 2px;  border-radius: 4px 0 0 0; }
.doc-corner--bl { bottom: 14px; right: 14px; border-bottom-width: 2px; border-right-width: 2px; border-radius: 0 0 0 4px; }
.doc-corner--br { bottom: 14px; left: 14px;  border-bottom-width: 2px; border-left-width: 2px;  border-radius: 0 0 4px 0; }

/* Official stamp badge */
.doc-stamp {
    display: inline-flex; align-items: center; gap: .5rem;
    background: rgba(245,197,56,.12);
    border: 1px solid rgba(245,197,56,.35);
    border-radius: 30px;
    padding: .35rem 1rem;
    font-size: .78rem; font-weight: 700;
    color: var(--accent);
    letter-spacing: .4px;
    z-index: 2;
}
.doc-stamp i { font-size: .85rem; }

/* Document paper card */
.doc-inner {
    position: relative;
    width: 100%;
    flex: 1;
    border-radius: 10px;
    overflow: hidden;
    box-shadow:
        0 8px 30px rgba(0,0,0,.4),
        0 0 0 1px rgba(255,255,255,.06),
        0 2px 4px rgba(0,0,0,.3);
    cursor: pointer;
    transform: perspective(900px) rotateX(1deg);
    transition: transform .4s ease, box-shadow .4s ease;
}
.doc-inner:hover {
    transform: perspective(900px) rotateX(0deg) scale(1.02);
    box-shadow:
        0 16px 50px rgba(0,0,0,.5),
        0 0 0 1px rgba(245,197,56,.2),
        0 0 30px rgba(245,197,56,.06);
}

.doc-img {
    width: 100%; display: block;
    border-radius: 10px;
    object-fit: contain;
    background: #fff;
    max-height: 340px;
    transition: transform .5s ease;
}
.doc-inner:hover .doc-img { transform: scale(1.03); }

/* Shine overlay */
.doc-shine {
    position: absolute; inset: 0;
    background: linear-gradient(
        135deg,
        rgba(255,255,255,.12) 0%,
        rgba(255,255,255,0)   40%,
        rgba(255,255,255,0)   60%,
        rgba(255,255,255,.05) 100%
    );
    pointer-events: none;
    border-radius: 10px;
    transition: opacity .3s;
}
.doc-inner:hover .doc-shine { opacity: 0; }

/* Founding year badge */
.doc-frame-wrap .about-img-badge {
    position: absolute;
    bottom: 1.2rem; right: 1.5rem;
    z-index: 3;
    padding: .75rem 1.2rem;
    font-size: .85rem;
}
[dir="ltr"] .doc-frame-wrap .about-img-badge { right: auto; left: 1.5rem; }

/* Click hint */
.doc-click-hint {
    position: absolute;
    bottom: 1.2rem; left: 1.5rem;
    display: flex; align-items: center; gap: .4rem;
    font-size: .73rem; color: rgba(255,255,255,.35);
    z-index: 3;
    transition: color .2s;
}
[dir="ltr"] .doc-click-hint { left: auto; right: 1.5rem; }
.doc-frame-wrap:hover .doc-click-hint { color: rgba(245,197,56,.6); }
.doc-click-hint i { font-size: .8rem; }

/* ── Document Modal ── */
.doc-modal {
    display: none;
    position: fixed; inset: 0;
    background: rgba(5,13,46,.92);
    backdrop-filter: blur(8px);
    z-index: 9999;
    align-items: center; justify-content: center;
    padding: 1.5rem;
    animation: docModalIn .3s ease;
}
.doc-modal.open { display: flex; }
@keyframes docModalIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}
.doc-modal-inner {
    background: #fff;
    border-radius: 16px;
    max-width: 780px; width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 30px 80px rgba(0,0,0,.6);
    animation: docCardIn .35s cubic-bezier(.34,1.56,.64,1);
    position: relative;
}
@keyframes docCardIn {
    from { transform: scale(.88) translateY(20px); opacity: 0; }
    to   { transform: scale(1) translateY(0); opacity: 1; }
}
.doc-modal-header {
    display: flex; align-items: center; gap: .6rem;
    background: var(--primary);
    color: var(--accent);
    padding: 1rem 1.5rem;
    font-weight: 700; font-size: .92rem;
    border-radius: 16px 16px 0 0;
}
.doc-modal-close {
    position: absolute; top: .7rem; left: .9rem;
    width: 34px; height: 34px;
    border-radius: 50%;
    background: rgba(255,255,255,.15);
    border: none; color: #fff;
    font-size: 1rem; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: background .2s;
    z-index: 1;
}
[dir="rtl"] .doc-modal-close { left: auto; right: .9rem; }
.doc-modal-close:hover { background: rgba(255,255,255,.3); }
.doc-modal-img {
    width: 100%; display: block;
    border-radius: 0 0 16px 16px;
}

/* ===== NEWS SECTION ===== */
.news-section { background: var(--bg-light); }
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}
.news-grid-full { display: none; }
.news-grid-full:not(:empty) { display: grid; }
.section-footer-btn { text-align: center; margin-top: 2rem; }
/* .btn-secondary → alias for .btn--outline (defined in button system above) */

/* News Card */
.news-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    cursor: pointer;
    display: flex; flex-direction: column;
}
.news-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.news-thumb {
    width: 100%; height: 200px;
    object-fit: cover; display: block;
}
.news-thumb-placeholder {
    width: 100%; height: 200px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    display: flex; align-items: center; justify-content: center;
    color: rgba(255,255,255,0.4);
    font-size: 3rem;
}
.news-card-body { padding: 1.25rem; flex: 1; display: flex; flex-direction: column; }
.news-category {
    display: inline-block;
    background: rgba(16,46,94,0.08);
    color: var(--primary);
    padding: 0.2rem 0.75rem;
    border-radius: var(--radius-lg);
    font-size: 0.72rem; font-weight: 700;
    margin-bottom: 0.6rem;
    border: 1px solid rgba(16,46,94,0.12);
}
.news-title {
    font-size: 0.98rem; font-weight: 700;
    color: var(--text-dark);
    line-height: 1.5; margin-bottom: 0.5rem;
}
.news-excerpt {
    font-size: var(--text-sm);
    color: var(--text-muted);
    line-height: 1.7; flex: 1;
    margin-bottom: 0.75rem;
}
.news-meta {
    font-size: 0.78rem; color: var(--text-muted);
    display: flex; align-items: center; gap: 8px;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border);
    margin-top: auto;
}
.news-meta i { color: var(--accent-dark); }

/* ===== COLLEGES SECTION ===== */
.colleges-section { background: var(--white); }
.colleges-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}
.college-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    cursor: pointer;
    border: 1px solid var(--border);
    display: flex; flex-direction: column;
}
.college-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--accent); }
.college-card-top {
    height: 120px;
    background: var(--primary);
    display: flex; align-items: center; justify-content: center;
    position: relative; overflow: hidden;
}
.college-card-top::before {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(245,197,56,0.15), transparent);
}
.college-card-top .college-emoji { font-size: 3rem; position: relative; z-index: 1; }
.college-logo-img {
    width: 80px; height: 80px;
    object-fit: contain;
    position: relative; z-index: 1;
    border-radius: 50%;
    background: rgba(255,255,255,0.92);
    padding: 8px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.25);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.college-card:hover .college-logo-img {
    transform: scale(1.08);
    box-shadow: 0 8px 24px rgba(0,0,0,0.35);
}
/* College color variants */
.clg-c1 { background: linear-gradient(135deg, var(--primary), var(--primary-light)); }
.clg-c2 { background: linear-gradient(135deg, #1a5e3a, #0d3a22); }
.clg-c3 { background: linear-gradient(135deg, #5e1a1a, #3a0d0d); }
.clg-c4 { background: linear-gradient(135deg, #1a3a5e, #0d2240); }
.clg-c5 { background: linear-gradient(135deg, #3a1a5e, #220d3a); }
.clg-c6 { background: linear-gradient(135deg, #5e3a1a, #3a220d); }
.clg-c6b { background: linear-gradient(135deg, #1a5e5e, #0d3a3a); }
.clg-c8 { background: linear-gradient(135deg, #5e5e1a, #3a3a0d); }
.college-card-body { padding: 1.25rem; flex: 1; display: flex; flex-direction: column; }
/* .founding-badge removed — no longer used */
.college-card-name {
    font-size: var(--text-base); font-weight: 800;
    color: var(--primary);
    margin-bottom: 0.25rem;
    line-height: 1.4;
}
.college-card-name-en {
    font-size: 0.75rem; color: var(--text-muted);
    margin-bottom: 0.6rem;
}
.college-card-desc {
    font-size: 0.83rem; color: var(--text-muted);
    line-height: 1.7; flex: 1; margin-bottom: 1rem;
}
.college-card-footer {
    display: flex; align-items: center; justify-content: space-between;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border);
    gap: 0.5rem;
}
.college-depts-count { font-size: 0.78rem; color: var(--text-muted); font-weight: 600; }
.college-link-btn {
    display: inline-flex; align-items: center; gap: 5px;
    background: var(--primary);
    color: var(--white);
    padding: 0.35rem 0.9rem;
    border-radius: var(--radius-sm);
    font-size: 0.75rem; font-weight: 700;
    transition: var(--transition);
    border: none; cursor: pointer;
}
.college-link-btn:hover { background: var(--accent); color: var(--primary); }

/* ===== RESEARCH SECTION ===== */
.research-section {
    background: var(--primary);
    position: relative; overflow: hidden;
}
.research-section::before {
    content: '';
    position: absolute; inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23f5c538' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}
.research-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem; position: relative;
}
.research-card {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: var(--radius);
    padding: 2rem;
    text-align: center;
    transition: var(--transition);
}
.research-card:hover {
    background: rgba(245,197,56,0.1);
    border-color: rgba(245,197,56,0.3);
    transform: translateY(-4px);
}
.rc-icon {
    width: 64px; height: 64px;
    border-radius: 50%;
    background: rgba(245,197,56,0.15);
    border: 2px solid rgba(245,197,56,0.3);
    display: flex; align-items: center; justify-content: center;
    color: var(--accent);
    font-size: 1.5rem;
    margin: 0 auto 1rem;
}
.rc-title {
    font-size: var(--text-base); font-weight: 700;
    color: var(--white); margin-bottom: 0.5rem;
}
.rc-desc { font-size: var(--text-sm); color: var(--text-light); line-height: 1.8; }
.rc-badge {
    display: inline-flex; align-items: center; gap: 5px;
    background: rgba(245,197,56,0.15);
    color: var(--accent);
    border: 1px solid rgba(245,197,56,0.35);
    padding: .2rem .75rem;
    border-radius: 20px;
    font-size: .72rem; font-weight: 700;
    margin-bottom: .7rem;
}
.rc-badge.rc-badge--phd    { background:rgba(129,140,248,.15); color:#818cf8; border-color:rgba(129,140,248,.35); }
.rc-badge.rc-badge--diploma{ background:rgba(52,211,153,.15);  color:#34d399; border-color:rgba(52,211,153,.35); }
.rc-sub {
    font-size: var(--text-sm); color: rgba(255,255,255,.55);
    margin-top: .35rem; display: flex; align-items: center; justify-content: center; gap: .4rem;
}
.rc-links { margin-top: 1rem; }

/* Graduate Studies — Coming Soon card */
.research-card--soon {
    border-color: rgba(245,197,56,0.25);
    background: rgba(245,197,56,0.05);
    position: relative;
}
.rc-soon-badge {
    display: inline-flex; align-items: center; gap: 5px;
    background: rgba(245,197,56,0.18);
    color: var(--accent);
    border: 1px solid rgba(245,197,56,0.4);
    padding: 0.2rem 0.75rem;
    border-radius: 20px;
    font-size: 0.72rem; font-weight: 700;
    letter-spacing: 0.04em;
    margin-bottom: 1rem;
    animation: pulse-badge 2.4s ease-in-out infinite;
}
@keyframes pulse-badge {
    0%,100% { box-shadow: 0 0 0 0 rgba(245,197,56,0); }
    50%      { box-shadow: 0 0 0 5px rgba(245,197,56,0.15); }
}
.rc-soon-text {
    font-size: var(--text-sm);
    color: rgba(255,255,255,0.6);
    line-height: 1.9;
    margin-top: 0.75rem;
    font-style: italic;
}
.rc-link-btn {
    display: inline-flex; align-items: center; gap: 5px;
    background: var(--accent);
    color: var(--primary);
    padding: 0.4rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.8rem; font-weight: 700;
    transition: var(--transition);
}
.rc-link-btn:hover { background: var(--accent-light); transform: translateY(-2px); }

/* ===== EVENTS SECTION ===== */
.events-section { background: var(--bg-light); }
/* ===== EVENTS TIMELINE ===== */
.events-timeline {
    position: relative;
    padding: 0 0 0 3rem;
}
[dir="ltr"] .events-timeline { padding: 0 3rem 0 0; }

/* vertical line */
.events-timeline::before {
    content: '';
    position: absolute;
    top: 0; bottom: 0;
    right: 0; width: 3px;
    background: linear-gradient(to bottom, var(--primary) 0%, rgba(16,46,94,.1) 100%);
    border-radius: 3px;
}
[dir="ltr"] .events-timeline::before { right: auto; left: 0; }

.event-item {
    position: relative;
    display: flex; gap: 1.25rem;
    margin-bottom: 1.75rem;
    cursor: pointer;
}
.event-item:last-child { margin-bottom: 0; }

/* dot on timeline */
.event-item::after {
    content: '';
    position: absolute;
    top: 1.1rem;
    right: -3.42rem;
    width: 14px; height: 14px;
    border-radius: 50%;
    background: var(--accent);
    border: 3px solid #fff;
    box-shadow: 0 0 0 2px var(--accent);
    transition: transform .2s;
}
[dir="ltr"] .event-item::after { right: auto; left: -3.42rem; }
.event-item:hover::after { transform: scale(1.35); }

/* past event dot */
.event-item.is-past::after {
    background: #e53e3e;
    box-shadow: 0 0 0 2px #e53e3e;
}

/* card */
.event-card-wrap {
    display: flex; gap: 1rem; align-items: flex-start;
    background: #fff;
    border-radius: 14px;
    padding: 1.1rem 1.4rem;
    box-shadow: 0 2px 14px rgba(16,46,94,.07);
    border: 1px solid #e5eaf5;
    flex: 1;
    transition: transform .22s, box-shadow .22s;
}
.event-item:hover .event-card-wrap {
    transform: translateX(-5px);
    box-shadow: 0 8px 28px rgba(16,46,94,.13);
}
[dir="ltr"] .event-item:hover .event-card-wrap { transform: translateX(5px); }

/* past: red strikethrough */
.event-item.is-past .event-card-wrap {
    opacity: .72;
    border-color: #fed7d7;
    background: #fff5f5;
}
.event-item.is-past .event-title {
    text-decoration: line-through;
    text-decoration-color: #e53e3e;
    text-decoration-thickness: 2px;
    color: #9b2c2c;
}
.event-item.is-past .event-past-badge {
    display: inline-flex;
}

.event-date-box {
    background: var(--primary);
    color: #fff;
    border-radius: 10px;
    padding: .6rem .9rem;
    text-align: center;
    min-width: 58px; flex-shrink: 0;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.event-item.is-past .event-date-box { background: #c53030; }
.event-day   { font-size: 1.5rem; font-weight: 900; line-height: 1; }
.event-month { font-size: .7rem; font-weight: 700; color: rgba(255,255,255,.8); margin-top: 2px; letter-spacing: .04em; text-transform: uppercase; }

.event-info  { flex: 1; }
.event-title { font-size: .97rem; font-weight: 700; color: var(--text-dark); margin-bottom: .45rem; line-height: 1.4; }
.event-place { font-size: .82rem; color: var(--text-muted); display: flex; align-items: center; gap: .35rem; }
.event-place i { color: var(--accent-dark); font-size: .75rem; }

.event-past-badge {
    display: none;
    font-size: .68rem; font-weight: 700;
    background: #e53e3e; color: #fff;
    padding: .18rem .55rem; border-radius: 20px;
    margin-top: .45rem; width: fit-content;
    letter-spacing: .04em;
}

.event-upcoming-badge {
    display: inline-flex;
    font-size: .68rem; font-weight: 700;
    background: rgba(16,46,94,.1); color: var(--primary);
    padding: .18rem .55rem; border-radius: 20px;
    margin-top: .45rem; width: fit-content;
    letter-spacing: .04em;
}

/* ── Scroll wrapper ── */
.events-scroll-wrap {
    position: relative;
    height: 520px;
    overflow-y: auto;
    border-radius: 16px;
    border: 1px solid #e0e8f5;
    background: #f8fafd;
    padding: 1.5rem 1.25rem 1.5rem 1.5rem;
    scrollbar-width: thin;
    scrollbar-color: var(--primary) #e0e8f5;
}
/* Webkit scrollbar */
.events-scroll-wrap::-webkit-scrollbar        { width: 6px; }
.events-scroll-wrap::-webkit-scrollbar-track  { background: #e8edf7; border-radius: 6px; }
.events-scroll-wrap::-webkit-scrollbar-thumb  { background: var(--primary); border-radius: 6px; }
.events-scroll-wrap::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* fade at bottom to hint more content */
.events-scroll-wrap::after {
    content: '';
    position: sticky; bottom: 0;
    display: block; height: 40px; margin-top: -40px;
    background: linear-gradient(to bottom, transparent, #f8fafd);
    pointer-events: none;
    border-radius: 0 0 16px 16px;
}

/* scroll hint text */
.events-scroll-hint {
    text-align: center; font-size: .75rem; color: #9bacc8;
    padding: .6rem 0 0; display: flex; align-items: center;
    justify-content: center; gap: .4rem;
}

/* ── Filter bar ── */
.events-filter-bar {
    display: flex; gap: .5rem; flex-wrap: wrap;
    margin-bottom: 1.75rem;
}
.evf-btn {
    padding: .45rem 1.1rem; border-radius: 20px; cursor: pointer;
    font-size: .82rem; font-weight: 700; font-family: inherit;
    border: 1.5px solid #d0d9ed;
    background: #fff; color: #6b7a99;
    transition: all .18s;
}
.evf-btn:hover  { border-color: var(--primary); color: var(--primary); }
.evf-btn.active { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ── Empty state ── */
.events-empty {
    text-align: center; padding: 2.5rem 1rem;
    color: #9bacc8; font-size: .95rem;
}

@media (max-width: 768px) {
    .events-scroll-wrap { height: 420px; }
}
@media (max-width: 480px) {
    .events-scroll-wrap { height: 360px; padding: 1rem; }
    .events-timeline { padding: 0 0 0 1.75rem; }
    .event-item::after { right: -2.2rem; }
}

/* ===== CALENDAR SECTION ===== */
.calendar-section { background: var(--white); }
.calendar-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}
.cal-semester {
    background: var(--bg-light);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}
.cal-semester-header {
    background: var(--primary);
    color: var(--accent);
    padding: 1rem 1.25rem;
    font-size: var(--text-base); font-weight: 700;
}
.cal-table {
    width: 100%;
    border-collapse: collapse;
}
.cal-table td {
    padding: 0.65rem 1.25rem;
    font-size: var(--text-sm);
    border-bottom: 1px solid var(--border);
    color: var(--text-dark);
}
.cal-table tr:last-child td { border-bottom: none; }
.cal-table tr.cal-important td { background: rgba(16,46,94,0.04); font-weight: 700; }
.cal-table tr.cal-holiday td { color: #008844; }

/* ===== QUALITY SECTION ===== */
.quality-section { background: var(--bg-light); }
.quality-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.25rem;
}
.quality-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border-top: 3px solid var(--accent);
}
.quality-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.qc-icon { font-size: 1.5rem; color: var(--accent-dark); margin-bottom: 0.5rem; }
.qc-num { font-size: 0.7rem; font-weight: 700; color: var(--text-muted); margin-bottom: 0.35rem; letter-spacing: 1px; }
.qc-title { font-size: var(--text-base); font-weight: 700; color: var(--primary); margin-bottom: 0.5rem; }
.qc-desc { font-size: 0.83rem; color: var(--text-muted); line-height: 1.7; }

/* ===== ADMISSION SECTION ===== */
.admission-section { background: var(--white); }
.section-intro { color: var(--text-muted); line-height: 2; }
/* Admission Guide Banner */
.admission-guide-banner {
    display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap;
    background: linear-gradient(135deg, rgba(220,38,38,.08), rgba(245,197,56,.06));
    border: 1px solid rgba(220,38,38,.25);
    border-radius: var(--radius);
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.75rem;
}
.agb-icon {
    width: 54px; height: 54px; flex-shrink: 0;
    background: rgba(220,38,38,.12);
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.6rem; color: #ff6b6b;
}
.agb-body { flex: 1; min-width: 140px; }
.agb-title { font-weight: 800; font-size: var(--text-md); color: var(--text); }
.agb-sub   { font-size: var(--text-sm); color: var(--text-muted); margin-top: .2rem; }
.agb-actions { display: flex; gap: .6rem; flex-wrap: wrap; }
.agb-btn {
    display: inline-flex; align-items: center; gap: .4rem;
    padding: .45rem 1.1rem; border-radius: var(--radius-sm);
    font-size: .82rem; font-weight: 700; text-decoration: none;
    transition: var(--transition);
}
.agb-btn--view {
    background: rgba(245,197,56,.15); color: var(--accent-dark);
    border: 1px solid rgba(245,197,56,.3);
}
.agb-btn--view:hover { background: rgba(245,197,56,.25); }
.agb-btn--dl {
    background: rgba(46,213,115,.12); color: #2ed573;
    border: 1px solid rgba(46,213,115,.3);
}
.agb-btn--dl:hover { background: rgba(46,213,115,.22); }

.admission-block {
    background: var(--bg-light);
    border-radius: var(--radius);
    padding: 1.75rem;
    margin-bottom: 1.5rem;
}
.admission-block h3 {
    font-size: 1.05rem; font-weight: 800;
    color: var(--primary);
    margin-bottom: 1.25rem;
    display: flex; align-items: center; gap: 8px;
}
.admission-block h3 i { color: var(--accent-dark); }
.admission-list { display: flex; flex-direction: column; gap: 0.6rem; }
.admission-list li {
    display: flex; align-items: flex-start; gap: 8px;
    font-size: 0.9rem; color: var(--text-dark); line-height: 1.7;
}
.admission-list li i { color: var(--accent-dark); margin-top: 4px; flex-shrink: 0; }
.admission-steps { display: flex; flex-direction: column; gap: 1rem; }
.admission-step {
    display: flex; align-items: flex-start; gap: 1rem;
    background: var(--white);
    border-radius: var(--radius-sm);
    padding: 1rem;
    border: 1px solid var(--border);
}
.step-num {
    width: 36px; height: 36px; flex-shrink: 0;
    background: var(--primary);
    color: var(--accent);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-weight: 900; font-size: 0.9rem;
}
.step-body strong { font-size: var(--text-base); color: var(--text-dark); display: block; margin-bottom: 0.25rem; }
.step-body p { font-size: 0.83rem; color: var(--text-muted); line-height: 1.6; margin: 0; }
.admission-table {
    width: 100%; border-collapse: collapse;
}
.admission-table thead tr { background: var(--primary); color: var(--white); }
.admission-table th { padding: 0.75rem 1rem; font-size: var(--text-sm); font-weight: 700; text-align: right; }
[dir="ltr"] .admission-table th { text-align: left; }
.admission-table td {
    padding: 0.65rem 1rem; font-size: var(--text-sm);
    border-bottom: 1px solid var(--border); color: var(--text-dark);
}
.admission-table tbody tr:hover { background: var(--bg-light); }

/* ===== VISION SECTION ===== */
.vision-section { background: var(--white); }
.vision-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}
.vision-card {
    background: var(--bg-light);
    border-radius: var(--radius);
    padding: 1.75rem;
    border-right: 4px solid var(--accent);
    transition: var(--transition);
}
[dir="ltr"] .vision-card { border-right: none; border-left: 4px solid var(--accent); }
.vision-card:hover { background: var(--white); box-shadow: var(--shadow); }
.vc-icon {
    width: 50px; height: 50px;
    background: rgba(16,46,94,0.08);
    border-radius: var(--radius-sm);
    display: flex; align-items: center; justify-content: center;
    color: var(--primary);
    font-size: 1.2rem;
    margin-bottom: 1rem;
}
.vc-title { font-size: 1.05rem; font-weight: 800; color: var(--primary); margin-bottom: 0.6rem; }
.vc-text { font-size: 0.88rem; color: var(--text-muted); line-height: 1.9; }

/* ===== HISTORY SECTION ===== */
.history-section { background: var(--bg-light); }

/* ===== LEADERSHIP SECTION ===== */
.leadership-section { background: var(--white); }
.president-panel {
    display: flex; gap: 2.5rem; align-items: flex-start;
    background: var(--bg-light);
    border-radius: var(--radius);
    padding: 2.5rem;
    margin-bottom: 3rem;
    border-right: 4px solid var(--accent);
}
[dir="ltr"] .president-panel { border-right: none; border-left: 4px solid var(--accent); }
.president-photo-wrap { flex-shrink: 0; text-align: center; }
.president-photo {
    width: 130px; height: 130px;
    border-radius: 50%;
    background: var(--primary);
    border: 4px solid var(--accent);
    display: flex; align-items: center; justify-content: center;
    font-size: 3rem; color: var(--text-light);
    margin: 0 auto 0.75rem; overflow: hidden;
}
.president-name { font-size: var(--text-base); font-weight: 800; color: var(--primary); margin-bottom: 0.25rem; }
.president-title { font-size: 0.78rem; color: var(--text-muted); font-weight: 600; }
.president-msg h3 { font-size: 1.2rem; font-weight: 800; color: var(--primary); margin-bottom: 1rem; }
.president-msg p { font-size: 0.9rem; color: var(--text-muted); line-height: 2; margin-bottom: 0.75rem; }
.president-sig { font-size: 0.88rem; font-weight: 700; color: var(--primary); font-style: italic; margin-top: 1rem; }
.leadership-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1.25rem;
}
.leader-card {
    background: var(--bg-light);
    border-radius: var(--radius);
    padding: 1.5rem;
    text-align: center;
    transition: var(--transition);
    border-bottom: 3px solid transparent;
}
.leader-card:hover { background: var(--white); border-bottom-color: var(--accent); box-shadow: var(--shadow); }
.leader-avatar {
    width: 70px; height: 70px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--text-light);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 0.75rem;
    overflow: hidden;
}
.leader-name { font-size: 0.88rem; font-weight: 700; color: var(--primary); margin-bottom: 0.3rem; }
.leader-pos { font-size: 0.75rem; color: var(--text-muted); line-height: 1.4; }

/* ===== ORG CHART — PDF-style matching image ===== */
.orgchart-section { background: var(--bg-light); }

.orgchart-controls {
    display: flex; justify-content: center; gap: .5rem;
    margin-bottom: 1.25rem;
}
.org-ctrl-btn {
    background: var(--primary); color: #fff; border: none;
    width: 38px; height: 38px; border-radius: var(--radius-sm);
    display: flex; align-items: center; justify-content: center;
    font-size: .9rem; cursor: pointer;
    transition: background .2s;
}
.org-ctrl-btn:hover { background: var(--accent); color: var(--primary); }

.orgchart-viewport {
    background: var(--bg-light);
    border-radius: var(--radius);
    padding: 2rem 1rem;
    overflow: auto;
    max-height: 82vh;
    cursor: grab;
    box-shadow: 0 4px 24px rgba(16,46,94,.1);
    border: 1px solid var(--border);
    scrollbar-width: thin;
    scrollbar-color: var(--primary) #e8edf5;
}
.orgchart-viewport.grabbing { cursor: grabbing; }
.org-tree { transform-origin: top center; padding: 1rem 2rem 3rem; }
.loading-placeholder { text-align:center; padding:3rem; color:#6b7a99; }
.loading-placeholder i { font-size:2rem; margin-bottom:1rem; display:block; opacity:.4; }

/* ── Core layout ── */
.orgc        { display:flex; flex-direction:column; align-items:center; }
.orgc-top    { display:flex; flex-direction:column; align-items:center; }

/* ── Connectors ── */
/* Top-section (council → president): navy lines */
.orgc-v      {
    width: 3px;
    background: var(--col-color, #102e5e);
    min-height: 28px;
    margin: 0 auto;
    border-radius: 2px;
}
.orgc-v.short{ min-height: 16px; }
.orgc-v.tall { min-height: 52px; }
.orgc-hconn  {
    width: 56px; height: 3px;
    background: var(--col-color, #102e5e);
    border-radius: 2px;
}
.orgc-hbar   { height: 3px; background: var(--primary); align-self: stretch; border-radius: 2px; }

.orgc-pres-row    { display:flex; align-items:center; }
.orgc-pres-center { display:flex; flex-direction:column; align-items:center; }
.orgc-side        { display:flex; align-items:center; }
.orgc-midsection  { display:flex; flex-direction:column; align-items:center; }
.orgc-tbar        { display:flex; gap:1.5rem; }
.orgc-tbar-branch { display:flex; flex-direction:column; align-items:center; }

/* Fan-out bar — separator between top and branches */
.orgc-branches {
    display: flex; gap: 1rem; align-items: flex-start; justify-content: center;
    border-top: 4px solid var(--primary);
    padding-top: 0;
}

/* ── Column ── */
.orgc-col {
    display: flex; flex-direction: column; align-items: center;
    gap: .4rem; min-width: 155px; max-width: 200px;
    position: relative;
}

/* Colored top stripe — thicker, taller, visible */
.orgc-col::before {
    content: ''; display: block;
    width: 4px; height: 36px;
    background: var(--col-color, #102e5e);
    border-radius: 3px;
    flex-shrink: 0;
    box-shadow: 0 2px 8px color-mix(in srgb, var(--col-color,#102e5e) 40%, transparent);
}

.orgc-col-head { display:flex; flex-direction:column; align-items:center; width:100%; }
.orgc-item     { display:flex; flex-direction:column; align-items:center; gap:.25rem; width:100%; }

/* Connector dot between item-header and its subitems */
.orgc-item--has-kids .org-box::after {
    content: '';
    display: block;
    width: 3px; height: 10px;
    background: var(--col-color, #102e5e);
    margin: 0 auto;
    border-radius: 0 0 2px 2px;
}

.orgc-subitems {
    display: flex; flex-direction: column; gap: .25rem; align-items: stretch;
    width: calc(100% - 16px);
    border-right: 3px solid var(--col-color, #102e5e);
    margin-right: 8px;
    padding-right: 10px;
    border-radius: 0 0 0 4px;
}
[dir="ltr"] .orgc-subitems {
    border-right: none; border-left: 3px solid var(--col-color, #102e5e);
    margin-right: 0; margin-left: 8px; padding-right: 0; padding-left: 10px;
    border-radius: 0 0 4px 0;
}

/* ── Box styles ── */
.org-box {
    border-radius: var(--radius-sm);
    padding: 7px 12px;
    min-width: 130px; max-width: 185px;
    text-align: center;
    display: flex; flex-direction: column; gap: 3px;
    font-family: 'Cairo', sans-serif;
    box-shadow: 0 2px 6px rgba(16,46,94,.1);
    position: relative;
    width: 100%;
    box-sizing: border-box;
}

/* Council — gold */
.org-box[data-type="council"] {
    background: var(--accent);
    color: var(--primary);
    border: 2px solid var(--accent-dark);
    font-size: .82rem; font-weight: 900;
}
/* President — navy with gold border */
.org-box[data-type="president"] {
    background: var(--primary);
    color: var(--accent);
    border: 2.5px solid var(--accent);
    font-size: .82rem; font-weight: 900;
    box-shadow: 0 4px 16px rgba(16,46,94,.25);
}
/* VP / assistant — gold (matches image) */
.org-box[data-type="vp"],
.org-box[data-type="assistant"] {
    background: var(--accent);
    color: var(--primary);
    border: 1.5px solid var(--accent-dark);
    font-size: .78rem; font-weight: 800;
}
/* Colleges group header — gold */
.org-box[data-type="colleges"] {
    background: var(--accent);
    color: var(--primary);
    border: 1.5px solid var(--accent-dark);
    font-size: .78rem; font-weight: 800;
}
/* Department — white */
.org-box[data-type="department"] {
    background: #fff;
    color: var(--primary);
    border: 1.5px solid var(--col-color, #c8d5e8);
    font-size: .74rem; font-weight: 700;
}
/* Division / unit — white lighter */
.org-box[data-type="division"],
.org-box[data-type="unit"] {
    background: #fff;
    color: #2c3e65;
    border: 1px solid var(--border);
    font-size: .7rem; font-weight: 600;
    box-shadow: none;
}

.org-box-title   { font-size: inherit; font-weight: inherit; line-height: 1.4; }
.org-box-manager { font-size: .65rem; color: #6b7a99; margin-top: 1px; }

/* ===== GALLERY SECTION ===== */
.gallery-section { background: var(--bg-light); }

/* ── Album Grid ── */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
}
.gallery-album-card {
    border-radius: 14px;
    overflow: hidden;
    cursor: pointer;
    background: #fff;
    box-shadow: 0 2px 12px rgba(16,46,94,.08);
    transition: transform .25s, box-shadow .25s;
}
.gallery-album-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 36px rgba(16,46,94,.16);
}
.album-cover {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
}
.album-cover img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
    display: block;
}
.gallery-album-card:hover .album-cover img { transform: scale(1.07); }
.album-cover-fallback {
    width: 100%; height: 100%;
    display: none;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,.35);
    font-size: 2.5rem;
}
.album-count-badge {
    position: absolute;
    bottom: .65rem;
    left: .65rem;
    background: rgba(0,0,0,.6);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    color: #fff;
    border-radius: 20px;
    padding: .22rem .75rem;
    font-size: .73rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: .35rem;
}
.album-meta {
    padding: .85rem 1rem .9rem;
}
.album-title {
    font-size: .88rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.album-count-text {
    font-size: .75rem;
    color: var(--text-muted);
    margin-top: .25rem;
}

/* Backwards compat for old gallery-item / gallery-placeholder (used elsewhere) */
.gallery-item {
    border-radius: var(--radius);
    overflow: hidden;
    aspect-ratio: 1;
    transition: var(--transition);
    cursor: pointer;
}
.gallery-placeholder {
    width: 100%; height: 100%;
    min-height: 160px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 0.5rem;
    color: rgba(255,255,255,0.5);
    font-size: 2rem;
    transition: var(--transition);
}
.gallery-placeholder span { font-size: 0.78rem; }

/* ── Album Modal ── */
.album-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.93);
    z-index: 9999;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.album-modal.active { display: flex; }

.album-modal-inner {
    width: 100%;
    max-width: 960px;
    height: 100vh;
    display: flex;
    flex-direction: column;
    padding: .75rem 1rem;
    box-sizing: border-box;
}

.album-modal-header {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .5rem 0 .75rem;
    color: #fff;
    flex-shrink: 0;
    border-bottom: 1px solid rgba(255,255,255,.08);
}
.album-modal-header h3 {
    flex: 1;
    font-size: 1rem;
    font-weight: 700;
    margin: 0;
}
#albumModalCounter {
    font-size: .82rem;
    color: rgba(255,255,255,.5);
    white-space: nowrap;
}
.album-modal-close {
    width: 34px; height: 34px;
    border-radius: 50%;
    background: rgba(255,255,255,.1);
    border: none;
    color: #fff;
    cursor: pointer;
    font-size: .9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s;
    flex-shrink: 0;
}
.album-modal-close:hover { background: rgba(255,255,255,.2); }

.album-modal-stage {
    flex: 1;
    display: flex;
    align-items: center;
    gap: .5rem;
    min-height: 0;
    padding: .75rem 0;
}
.album-img-wrap {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .5rem;
}
.album-img-wrap img {
    max-width: 100%;
    max-height: calc(100vh - 220px);
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 4px 32px rgba(0,0,0,.5);
}
.album-img-caption {
    font-size: .88rem;
    font-weight: 500;
    color: rgba(255,255,255,.85);
    text-align: center;
    max-width: 90%;
    min-height: 1.4em;
    padding: .35rem .75rem;
    background: rgba(0,0,0,.35);
    border-radius: 20px;
    backdrop-filter: blur(4px);
    margin-top: .5rem;
}
.album-nav-btn {
    width: 42px; height: 42px;
    flex-shrink: 0;
    border-radius: 50%;
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.15);
    color: #fff;
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s, transform .15s;
}
.album-nav-btn:hover { background: rgba(255,255,255,.2); transform: scale(1.1); }

.album-modal-thumbs {
    display: flex;
    gap: .45rem;
    padding: .6rem 0;
    overflow-x: auto;
    flex-shrink: 0;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,.2) transparent;
}
.album-modal-thumbs::-webkit-scrollbar { height: 4px; }
.album-modal-thumbs::-webkit-scrollbar-thumb { background: rgba(255,255,255,.2); border-radius: 2px; }
.album-thumb {
    width: 62px; height: 62px;
    flex-shrink: 0;
    border-radius: 7px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    opacity: .5;
    transition: opacity .2s, border-color .2s;
}
.album-thumb.active {
    border-color: var(--accent);
    opacity: 1;
}
.album-thumb:hover { opacity: .85; }
.album-thumb img {
    width: 100%; height: 100%;
    object-fit: cover;
}

/* ===== CONTACT SECTION ===== */
.contact-section { background: var(--white); }
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
}
.contact-info-card {
    background: var(--primary);
    border-radius: var(--radius);
    padding: 2rem;
    color: var(--white);
}
.contact-info-card h3 {
    font-size: var(--text-md); font-weight: 800;
    color: var(--accent);
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(255,255,255,0.12);
}
.contact-row {
    display: flex; align-items: flex-start; gap: 12px;
    margin-bottom: 1rem;
}
.contact-row i {
    color: var(--accent); margin-top: 3px;
    width: 16px; text-align: center; flex-shrink: 0;
}
.contact-row p { font-size: 0.88rem; color: rgba(255,255,255,0.85); line-height: 1.6; }
.contact-social-wrap { margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid rgba(255,255,255,0.12); }
.contact-social-label { font-size: 0.78rem; color: var(--text-light); margin-bottom: 0.75rem; }
.social-icons { display: flex; gap: 0.6rem; }
.social-icons a {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: var(--white);
    display: flex; align-items: center; justify-content: center;
    font-size: var(--text-sm);
    transition: var(--transition);
}
.social-icons a:hover { background: var(--accent); color: var(--primary); border-color: var(--accent); }
.map-placeholder {
    margin-top: 1.5rem;
    background: rgba(255,255,255,0.06);
    border-radius: var(--radius-sm);
    padding: 2rem;
    text-align: center;
    color: rgba(255,255,255,0.4);
    font-size: 2rem;
    border: 1px dashed rgba(255,255,255,0.15);
}
.map-placeholder p { font-size: 0.78rem; margin-top: 0.5rem; }
.map-wrapper {
    margin-top: 1.5rem;
    border-radius: var(--radius);
    overflow: hidden;
    height: 280px;
    border: 1px solid rgba(255,255,255,0.12);
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}
.contact-form-card {
    background: var(--bg-light);
    border-radius: var(--radius);
    padding: 2rem;
}
.contact-form-card h3 {
    font-size: var(--text-md); font-weight: 800;
    color: var(--primary);
    margin-bottom: 1.5rem;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { margin-bottom: 1.25rem; }
.form-group label {
    display: block; font-size: 0.83rem; font-weight: 700;
    color: var(--text-dark); margin-bottom: 0.4rem;
}
.form-input, .form-textarea {
    width: 100%;
    padding: 0.7rem 1rem;
    background: var(--white);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 0.9rem;
    color: var(--text-dark);
    transition: var(--transition);
    outline: none;
}
.form-input:focus, .form-textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(16,46,94,0.08);
}
.form-textarea { resize: vertical; }
/* .btn-submit → extends .btn--navy with full width */
.btn-submit {
    width: 100%; padding: 0.85rem;
    background: var(--primary); color: var(--white);
    border: 2px solid var(--primary);
    border-radius: var(--radius);
    font-family: inherit; font-size: var(--text-base); font-weight: 700;
    cursor: pointer; transition: var(--transition);
    display: flex; align-items: center; justify-content: center; gap: 8px;
}
.btn-submit:hover {
    background: var(--accent); border-color: var(--accent);
    color: var(--primary); transform: translateY(-2px);
}

/* ===== FOOTER ===== */
.site-footer { background: var(--primary-dark); color: var(--text-light); }
.footer-main { padding: 4rem 0 2rem; }
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1.2fr 1.2fr 1.5fr;
    gap: 2.5rem;
}
.footer-logo {
    display: flex; align-items: center; gap: 10px;
    margin-bottom: 1rem;
}
.footer-logo img {
    height: 42px; width: 42px; border-radius: 50%;
    border: 2px solid var(--accent); object-fit: cover;
}
.footer-logo span { font-size: var(--text-base); font-weight: 800; color: var(--accent); }
.footer-about-text { font-size: var(--text-sm); line-height: 1.9; color: var(--text-light); margin-bottom: 1.25rem; }
.footer-social { display: flex; gap: 0.5rem; }
.footer-social a {
    width: 34px; height: 34px; border-radius: 50%;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
    color: var(--text-light);
    display: flex; align-items: center; justify-content: center;
    font-size: var(--text-sm); transition: var(--transition);
}
.footer-social a:hover { background: var(--accent); color: var(--primary); border-color: var(--accent); }
.footer-col-title {
    font-size: var(--text-base); font-weight: 800;
    color: var(--accent);
    margin-bottom: 1.25rem;
    padding-bottom: 0.6rem;
    border-bottom: 2px solid rgba(245,197,56,0.25);
}
.footer-links { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-links a {
    font-size: 0.83rem; color: var(--text-light);
    display: flex; align-items: center; gap: 7px;
    transition: var(--transition);
    line-height: 1.5;
}
.footer-links a:hover { color: var(--accent); transform: translateX(-3px); }
[dir="ltr"] .footer-links a:hover { transform: translateX(3px); }
.footer-links i { font-size: 0.65rem; color: var(--accent); opacity: 0.7; }
.footer-contact-info p {
    display: flex; align-items: flex-start; gap: 8px;
    font-size: var(--text-sm); color: var(--text-light);
    margin-bottom: 0.65rem; line-height: 1.6;
}
.footer-contact-info i { color: var(--accent); margin-top: 3px; width: 14px; flex-shrink: 0; }
.footer-bottom {
    background: rgba(0,0,0,0.25);
    border-top: 1px solid rgba(255,255,255,0.07);
    padding: 1rem 0;
}
.footer-bottom-inner {
    display: flex; align-items: center; justify-content: space-between;
    flex-wrap: wrap; gap: 0.75rem;
    font-size: 0.8rem; color: rgba(255,255,255,0.5);
}
.footer-bottom-links { display: flex; align-items: center; gap: 0.75rem; }
.footer-bottom-links a { color: rgba(255,255,255,0.5); transition: var(--transition); }
.footer-bottom-links a:hover { color: var(--accent); }
.footer-bottom-links span { color: rgba(255,255,255,0.2); }

/* ===== SCROLL TOP BUTTON ===== */
#scrollTopBtn {
    position: fixed; bottom: 2rem; left: 2rem;
    z-index: calc(var(--z-sticky) - 1);
    background: var(--primary);
    color: var(--accent);
    width: 44px; height: 44px;
    border-radius: 50%;
    border: 2px solid var(--accent);
    display: flex; align-items: center; justify-content: center;
    font-size: var(--text-base);
    cursor: pointer;
    opacity: 0; visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    box-shadow: var(--shadow);
}
[dir="ltr"] #scrollTopBtn { left: auto; right: 2rem; }
#scrollTopBtn.show { opacity: 1; visibility: visible; transform: translateY(0); }
#scrollTopBtn:hover { background: var(--accent); color: var(--primary); transform: translateY(-3px); }

/* ===== TOAST ===== */
#toast-container {
    position: fixed; bottom: 2rem; right: 2rem;
    z-index: var(--z-toast);
    display: flex; flex-direction: column; gap: 0.5rem;
}
[dir="ltr"] #toast-container { right: auto; left: 2rem; }
.toast {
    background: var(--primary);
    color: var(--white);
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius);
    font-size: 0.88rem; font-weight: 600;
    box-shadow: var(--shadow-lg);
    border-right: 4px solid var(--accent);
    animation: toastIn 0.3s ease;
}
[dir="ltr"] .toast { border-right: none; border-left: 4px solid var(--accent); }
@keyframes toastIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* ===== MODALS ===== */
.modal-overlay {
    display: none;
    position: fixed; inset: 0;
    background: rgba(10,18,50,0.75);
    z-index: var(--z-overlay);
    align-items: center; justify-content: center;
    padding: 1rem;
    backdrop-filter: blur(4px);
}
.modal-overlay.active, #eventModal[style*="flex"] { display: flex; }
#eventModal { display: none; }
.modal-box {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 2rem;
    max-width: 680px; width: 100%;
    max-height: 85vh; overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 60px rgba(16,46,94,0.35);
    border-top: 4px solid var(--accent);
}
.modal-close {
    position: absolute; top: 1rem; left: 1rem;
    background: var(--bg-light);
    border: none; color: var(--text-dark);
    width: 36px; height: 36px;
    border-radius: 50%;
    cursor: pointer; font-size: var(--text-base);
    display: flex; align-items: center; justify-content: center;
    transition: var(--transition);
}
[dir="ltr"] .modal-close { left: auto; right: 1rem; }
.modal-close:hover { background: var(--primary); color: var(--white); }
.modal-cat {
    font-size: 0.75rem; font-weight: 700;
    color: var(--accent-dark);
    text-transform: uppercase; letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}
.modal-title {
    font-size: 1.25rem; font-weight: 800;
    color: var(--primary);
    line-height: 1.4; margin-bottom: 0.5rem;
}
.modal-meta {
    font-size: 0.8rem; color: var(--text-muted);
    margin-bottom: 1.25rem;
}
.modal-meta-flex {
    display: flex; flex-wrap: wrap; gap: 0.75rem;
    margin-bottom: 1.25rem; font-size: var(--text-sm); color: var(--text-muted);
}
.modal-body {
    font-size: 0.93rem; line-height: 2;
    color: var(--text-dark); white-space: pre-wrap;
}

/* ===== LEGACY COMPAT (for API-injected content) ===== */
.glass-card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

/* ===== RESPONSIVE ===== */

/* 1200px */
@media (max-width: 1200px) {
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
    .research-grid { grid-template-columns: repeat(2, 1fr); }
    .services-grid { grid-template-columns: repeat(3, 1fr); }
}

/* 992px */
@media (max-width: 992px) {
    .about-grid { grid-template-columns: 1fr; }
    .about-image { order: -1; }
    .about-img-wrap { min-height: 280px; }
    .news-grid { grid-template-columns: repeat(2, 1fr); }
    .calendar-grid { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
    .gallery-grid { grid-template-columns: repeat(3, 1fr); }
    .nav-links { display: none; }
    .menu-toggle { display: flex; }
    .nav-links.open {
        display: flex; flex-direction: column;
        position: fixed; top: 0; right: 0;
        width: 280px; height: 100vh;
        background: var(--primary);
        padding: 5rem 1.5rem 2rem;
        overflow-y: auto;
        z-index: calc(var(--z-sticky) + 500);
        gap: 0;
        box-shadow: -8px 0 30px rgba(0,0,0,0.3);
    }
    [dir="ltr"] .nav-links.open { right: auto; left: 0; box-shadow: 8px 0 30px rgba(0,0,0,0.3); }
    .nav-item > a {
        padding: 0.85rem 0;
        border-bottom: 1px solid rgba(255,255,255,0.08);
        border-bottom-width: 1px !important;
        border-top: none; border-left: none; border-right: none;
    }
    .nav-item.active > a { color: var(--accent); border-bottom: 1px solid rgba(255,255,255,0.08) !important; }
    .dropdown-menu {
        position: static;
        display: none !important;
        background: rgba(255,255,255,0.05);
        border-top: none;
        box-shadow: none;
        border-radius: 0;
    }
    .dropdown-menu a { color: rgba(255,255,255,0.75); border-bottom-color: rgba(255,255,255,0.06); }
    .dropdown-menu a:hover { background: rgba(255,255,255,0.05); color: var(--accent); }
    .nav-item.has-dropdown.open .dropdown-menu { display: block !important; }
}

/* 768px */
@media (max-width: 768px) {
    .top-bar-inner { flex-wrap: wrap; justify-content: center; gap: 0.5rem; }
    .top-bar-center { order: -1; width: 100%; text-align: center; }
    .section-padding { padding: 3rem 0; }
    .hero-section { height: auto; min-height: 70vh; }
    .hero-slide-content { padding: 5rem 1.25rem 4rem; }
    .about-stats-integrated { gap: 0.75rem; }
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .news-grid { grid-template-columns: 1fr; }
    .colleges-grid { grid-template-columns: 1fr; }
    .research-grid { grid-template-columns: 1fr; }
    .quality-grid { grid-template-columns: 1fr; }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr; }
    .president-panel { flex-direction: column; align-items: center; text-align: center; }
    .form-row { grid-template-columns: 1fr; }
    .footer-bottom-inner { flex-direction: column; text-align: center; }
}

/* 576px */
@media (max-width: 576px) {
    .top-bar-social { display: none; }
    .hero-cta { flex-direction: column; }
    .btn-primary, .btn-outline-hero { width: 100%; justify-content: center; }
    .services-grid { grid-template-columns: repeat(3, 1fr); }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .about-stats-integrated { gap: 0.5rem; }
    .about-stats-integrated .stat-item { min-width: 80px; padding: 0.75rem 1rem; }
    .leadership-grid { grid-template-columns: 1fr 1fr; }
    .president-panel { padding: 1.5rem; }
    .modal-box { padding: 1.5rem; }
    .hero-arrow { display: none; }
}

/* ===== LIGHTBOX ===== */
#lightbox { display:none; position:fixed; inset:0; z-index: var(--z-top); }
#lightbox.active { display:flex; align-items:center; justify-content:center; }
.lb-backdrop { position:absolute; inset:0; background:rgba(0,0,0,.92); }
.lb-content { position:relative; z-index:1; max-width:90vw; max-height:90vh; text-align:center; }
.lb-content img { max-width:100%; max-height:80vh; border-radius: var(--radius-sm); box-shadow:0 20px 60px rgba(0,0,0,.5); }
.lb-caption { color:#fff; margin-top:.75rem; font-size:.9rem; }
.lb-close { position:absolute; top:-2.5rem; left:0; background:var(--accent); color:var(--primary); border:none; width:36px; height:36px; border-radius:50%; font-size:1rem; cursor:pointer; display:flex; align-items:center; justify-content:center; }

/* ===== GALLERY OVERLAY ===== */
.gallery-item { position:relative; overflow:hidden; }
.gallery-overlay { position:absolute; inset:0; background:linear-gradient(to top, rgba(16,46,94,.85) 0%, transparent 60%); opacity:0; transition: var(--transition); display:flex; align-items:flex-end; padding:.75rem; }
.gallery-overlay span { color:#fff; font-size:.85rem; font-weight:600; }
.gallery-item:hover .gallery-overlay { opacity:1; }
.gallery-item img { width:100%; height:100%; object-fit:cover; transition: transform 0.4s var(--at-ease); }
.gallery-item:hover img { transform:scale(1.05); }

/* ===== VISION CARDS (clickable) ===== */
/* ===== VISION PANELS (tall vertical badges) ===== */
.vision-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    align-items: stretch;
}
.vpanel {
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(16,46,94,.10);
    transition: transform .28s, box-shadow .28s;
    display: flex; flex-direction: column;
}
.vpanel:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 48px rgba(16,46,94,.18);
}
.vpanel-top {
    padding: 2rem 1.75rem 1.75rem;
    position: relative; overflow: hidden;
}
.vpanel-top::before {
    content: ''; position: absolute; inset: 0;
    background: rgba(255,255,255,.06);
    border-radius: 50% 50% 0 0 / 60px;
}
.vpanel-icon-wrap {
    width: 64px; height: 64px;
    border-radius: 16px;
    background: rgba(255,255,255,.18);
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 1.1rem;
    backdrop-filter: blur(4px);
    border: 1.5px solid rgba(255,255,255,.25);
}
.vpanel-icon-wrap svg {
    width: 30px; height: 30px; fill: none;
    stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
.vpanel-title {
    font-size: 1.25rem; font-weight: 900;
    color: #fff; letter-spacing: .02em;
}
.vpanel-label {
    font-size: .72rem; font-weight: 700; letter-spacing: .1em;
    text-transform: uppercase; color: rgba(255,255,255,.65);
    margin-bottom: .35rem;
}
.vpanel-body {
    background: #fff;
    padding: 1.6rem 1.75rem 2rem;
    flex: 1;
    font-size: .92rem; color: #4a5568;
    line-height: 2; white-space: pre-wrap;
}

/* ── Values sub-grid ── */
.vvalues-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem; margin-top: .5rem;
}
.vvalue-card {
    background: #f4f7fc;
    border-radius: 12px; padding: 1.1rem 1rem;
    text-align: center; border: 1px solid #e0e8f5;
    transition: background .2s, transform .2s;
}
.vvalue-card:hover { background: #e8eef8; transform: translateY(-3px); }
.vvalue-card i { font-size: 1.6rem; color: var(--primary); display: block; margin-bottom: .5rem; }
.vvalue-card span { font-weight: 700; font-size: .88rem; color: var(--primary); }
.vvalue-card p { font-size: .78rem; color: #6b7a99; margin-top: .35rem; line-height: 1.6; }

/* ===== STRATEGIC GOALS ===== */
.vgoals-section { margin-top: 2.75rem; grid-column: 1 / -1; }
.vgoals-label {
    font-size: .78rem; font-weight: 700; letter-spacing: .08em;
    text-transform: uppercase; color: var(--primary);
    background: rgba(16,46,94,.07); border-radius: 20px;
    padding: .35rem 1.1rem; display: inline-block; margin-bottom: 1.5rem;
}
.vgoals-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}
.vgoal-item {
    display: flex; flex-direction: column;
    border-radius: 14px; overflow: hidden;
    border: 1px solid #dde5f2;
    box-shadow: 0 2px 12px rgba(16,46,94,.06);
    transition: transform .22s, box-shadow .22s;
}
.vgoal-item:hover { transform: translateY(-4px); box-shadow: 0 10px 30px rgba(16,46,94,.13); }
.vgoal-num-col {
    background: var(--primary);
    display: flex; align-items: center; gap: .75rem;
    padding: .9rem 1.25rem;
}
.vgoal-num-col span {
    color: #fff; font-size: 1.6rem; font-weight: 900; line-height: 1;
}
.vgoal-num-col .vgoal-num-title {
    color: rgba(255,255,255,.85); font-size: .82rem; font-weight: 700; line-height: 1.4;
}
.vgoal-item:nth-child(2) .vgoal-num-col { background: #154a2e; }
.vgoal-item:nth-child(3) .vgoal-num-col { background: #5c2d00; }
.vgoal-item:nth-child(4) .vgoal-num-col { background: #1a3a6e; }
.vgoal-item:nth-child(5) .vgoal-num-col { background: #2d1a5c; }
.vgoal-content-col {
    padding: 1.1rem 1.25rem 1.25rem;
    background: #fff; flex: 1;
}
.vgoal-title { display: none; }
.vgoal-subs {
    display: flex; flex-direction: column; gap: .55rem;
    list-style: none; padding: 0; margin: 0;
}
.vgoal-subs li {
    display: flex; align-items: flex-start; gap: .65rem;
    font-size: .875rem; color: #4a5568; line-height: 1.7;
}
.vgoal-sub-dot {
    width: 20px; height: 20px; border-radius: 50%; flex-shrink: 0; margin-top: .22rem;
    background: rgba(16,46,94,.1); color: var(--primary);
    display: flex; align-items: center; justify-content: center;
    font-size: .6rem; font-weight: 900;
}

/* ===== VISION MODAL ===== */
.vmodal-overlay {
    display: none; position: fixed; inset: 0;
    background: rgba(10,22,48,.65);
    backdrop-filter: blur(6px);
    z-index: var(--z-modal);
    align-items: flex-start; justify-content: center;
    overflow-y: auto;
    padding: 2rem 1.5rem;
}
.vmodal-overlay.active { display: flex; animation: vmFadeIn .3s ease; }
@keyframes vmFadeIn { from { opacity:0; } to { opacity:1; } }

.vmodal-box {
    background: #fff;
    border-radius: var(--radius-xl);
    max-width: 680px; width: 100%;
    margin: auto;
    padding: 3rem;
    position: relative;
    animation: vmSlideUp .35s cubic-bezier(.34,1.56,.64,1);
    box-shadow: 0 30px 80px rgba(10,22,48,.25);
}
@keyframes vmSlideUp { from { transform:translateY(40px); opacity:0; } to { transform:translateY(0); opacity:1; } }

.vmodal-close {
    position: absolute; top: 1.2rem; left: 1.2rem;
    width: 36px; height: 36px; border-radius: 50%;
    background: #f0f4fb; border: none; cursor: pointer;
    font-size: .95rem; color: var(--primary);
    display: flex; align-items: center; justify-content: center;
    transition: background .2s, transform .2s;
}
.vmodal-close:hover { background: var(--primary); color: #fff; transform: rotate(90deg); }

.vmodal-icon-wrap {
    width: 80px; height: 80px; border-radius: var(--radius-lg);
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2.2rem; color: #fff;
    box-shadow: 0 8px 24px rgba(0,0,0,.18);
}
.vmodal-title {
    text-align: center; font-size: 1.5rem; font-weight: 900;
    color: var(--primary); margin-bottom: 1rem;
}
.vmodal-divider {
    height: 4px; border-radius: 4px;
    width: 60px; margin: 0 auto 1.75rem;
}
.vmodal-body p {
    font-size: var(--text-base); line-height: 2.1;
    color: #374060;
    margin-bottom: 1rem;
    text-align: justify;
}

@media (max-width: 900px) {
    .vision-grid { grid-template-columns: 1fr; }
    .vgoals-list { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .vmodal-box { padding: 2rem 1.5rem; }
    .vpanel-top { padding: 1.5rem 1.25rem 1.25rem; }
    .vpanel-body { padding: 1.25rem; }
    .vgoals-list { grid-template-columns: 1fr; }
}


/* ============================================================
   ACTIVE THEORY STYLE — TRANSITIONS & FX
   Curtain wipe · Film grain · Line clip-path reveal
   ============================================================ */

/* ── Curtain wipe overlay ── */
#at-curtain {
    position: fixed;
    inset: 0;
    background: #080e1c;
    z-index: calc(var(--z-top) + 1);
    pointer-events: none;
    transform: translateY(100%);
    will-change: transform;
}
#at-curtain.at-enter {
    pointer-events: all;
    transform: translateY(0);
    transition: transform 0.65s cubic-bezier(0.76, 0, 0.24, 1);
}
#at-curtain.at-exit {
    transform: translateY(-100%);
    transition: transform 0.65s cubic-bezier(0.76, 0, 0.24, 1);
}
/* Curtain inner label */
#at-curtain-label {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(245,197,56,0.5);
    font-size: .75rem;
    letter-spacing: .25em;
    text-transform: uppercase;
    font-family: 'Cairo', sans-serif;
    white-space: nowrap;
}

/* ── Film grain canvas ── */
#at-grain {
    position: fixed;
    inset: 0;
    z-index: calc(var(--z-top) - 2);
    pointer-events: none;
    opacity: 0.048;
    mix-blend-mode: overlay;
}

/* ── Line clip-path reveal wrapper ── */
.cs-line-wrap {
    display: block;
    overflow: hidden;
    padding-bottom: 0.08em; /* prevent descender clip */
}
.cs-line {
    display: block;
    will-change: transform, opacity;
}

/* ── Badge reveal ── */
.cs-badge-wrap {
    display: inline-block;
    overflow: hidden;
}
.cs-badge-inner {
    display: inline-block;
    will-change: transform, opacity;
}

/* ── Item (card) reveal ── */
.cs-item {
    will-change: transform, opacity;
}

/* ═══════════════════════════════════════════════════════
   SCROLL-DRIVEN  (Chrome 115+ · Safari 18+)
   ═══════════════════════════════════════════════════════ */
@keyframes at-line-in {
    from { transform: translateY(108%); }
    to   { transform: translateY(0);    }
}
@keyframes at-badge-in {
    from { transform: translateY(100%); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
}
@keyframes at-item-in {
    from { opacity: 0; transform: translateY(55px); }
    to   { opacity: 1; transform: translateY(0);    }
}
@keyframes at-sub-in {
    from { opacity: 0; transform: translateY(28px); }
    to   { opacity: 1; transform: translateY(0);    }
}

@supports (animation-timeline: view()) {

    /* Lines slide up from behind clip */
    .cs-line {
        animation: at-line-in cubic-bezier(0.76, 0, 0.24, 1) both;
        animation-timeline: view(block);
        animation-range:
            calc(var(--cs-start, 3%))
            calc(var(--cs-start, 3%) + 22%);
    }

    /* Badge */
    .cs-badge-inner {
        animation: at-badge-in cubic-bezier(0.76, 0, 0.24, 1) both;
        animation-timeline: view(block);
        animation-range: entry 2% entry 16%;
    }

    /* Sub-text */
    .cs-section .section-sub {
        animation: at-sub-in cubic-bezier(0.76, 0, 0.24, 1) both;
        animation-timeline: view(block);
        animation-range: entry 8% entry 24%;
    }

    /* Cards / items — staggered cascade */
    .cs-item {
        animation: at-item-in cubic-bezier(0.76, 0, 0.24, 1) both;
        animation-timeline: view(block);
        animation-range:
            calc(var(--cs-start, 6%))
            calc(var(--cs-start, 6%) + 26%);
    }
}

/* ═══════════════════════════════════════════════════════
   FALLBACK — IntersectionObserver
   ═══════════════════════════════════════════════════════ */
:root { --at-ease: cubic-bezier(0.76, 0, 0.24, 1); }

@supports not (animation-timeline: view()) {

    .cs-section.cs-init .cs-line,
    .cs-section.cs-init .cs-badge-inner,
    .cs-section.cs-init .section-sub,
    .cs-section.cs-init .cs-item { transition: none; }

    .cs-section.cs-init .cs-line {
        transform: translateY(108%);
    }
    .cs-section.cs-in .cs-line {
        transform: translateY(0);
        transition: transform 0.9s var(--at-ease);
        transition-delay: calc(var(--li, 0) * 90ms + 60ms);
    }

    .cs-section.cs-init .cs-badge-inner {
        transform: translateY(100%); opacity: 0;
    }
    .cs-section.cs-in .cs-badge-inner {
        transform: translateY(0); opacity: 1;
        transition: transform 0.75s var(--at-ease),
                    opacity   0.75s var(--at-ease);
        transition-delay: 40ms;
    }

    .cs-section.cs-init .section-sub {
        opacity: 0; transform: translateY(28px);
    }
    .cs-section.cs-in .section-sub {
        opacity: 1; transform: translateY(0);
        transition: opacity 0.7s var(--at-ease),
                    transform 0.7s var(--at-ease);
        transition-delay: 260ms;
    }

    .cs-section.cs-init .cs-item {
        opacity: 0; transform: translateY(55px);
    }
    .cs-section.cs-in .cs-item {
        opacity: 1; transform: translateY(0);
        transition: opacity 0.8s var(--at-ease),
                    transform 0.8s var(--at-ease);
        transition-delay: calc(var(--cs-i, 0) * 90ms + 220ms);
    }
}

/* Reduced-motion */
@media (prefers-reduced-motion: reduce) {
    .cs-line, .cs-badge-inner, .cs-item,
    .cs-section .section-sub {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
    #at-grain { display: none; }
}

/* ── Album modal mobile ── */
@media (max-width: 600px) {
    .album-modal-inner { padding: .5rem .6rem; }
    .album-nav-btn { width: 34px; height: 34px; font-size: .85rem; }
    .album-thumb { width: 50px; height: 50px; }
    .album-img-wrap img { max-height: calc(100vh - 240px); }
    .album-modal-header h3 { font-size: .88rem; }
}
