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

/* ===== CSS VARIABLES ===== */
:root {
    --primary:       #102e5e;
    --primary-dark:  #0b2249;
    --primary-light: #1a4080;
    --accent:        #f5c538;
    --accent-dark:   #d4a820;
    --accent-light:  #fad45a;
    --white:         #ffffff;
    --text-dark:     #1a1a2e;
    --text-muted:    #666;
    --text-light:    rgba(255,255,255,0.75);
    --bg-light:      #f4f6fa;
    --bg-card:       #ffffff;
    --border:        #e0e6f0;
    --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);
    --radius:        12px;
    --radius-sm:     8px;
    --radius-lg:     20px;
    --transition:    all 0.3s ease;
    /* Legacy compat */
    --primary-color: #f5c538;
    --card-bg: rgba(16,46,94,0.55);
    --glass-border: rgba(255,255,255,0.15);
    --text-color: #ffffff;
}

/* ===== 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: 9999;
    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: 1.1rem; font-weight: 700; color: var(--accent); }
.preloader-sub { font-size: 0.85rem; 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: 9998; transition: width 0.1s;
}

/* ===== TOP BAR ===== */
.top-bar {
    background: var(--primary-dark);
    color: var(--text-light);
    font-size: 0.82rem;
    position: sticky; top: 0; z-index: 1100;
    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: 20px;
    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: 1090;
}
.ticker-label {
    background: var(--accent);
    color: var(--primary);
    padding: 0.15rem 0.8rem;
    border-radius: 20px;
    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: 1000;
    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: 1rem; 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: 0.82rem; 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;
}
.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: 500;
    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: 20px;
    font-size: 0.82rem; 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; }
.btn-primary {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--accent);
    color: var(--primary);
    padding: 0.75rem 1.8rem;
    border-radius: var(--radius);
    font-weight: 700; font-size: 0.95rem;
    border: 2px solid var(--accent);
    transition: var(--transition);
    font-family: inherit;
}
.btn-primary:hover {
    background: var(--accent-dark);
    border-color: var(--accent-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245,197,56,0.4);
}
.btn-outline-hero {
    display: inline-flex; align-items: center; gap: 8px;
    background: transparent;
    color: var(--white);
    padding: 0.75rem 1.8rem;
    border-radius: var(--radius);
    font-weight: 700; font-size: 0.95rem;
    border: 2px solid rgba(255,255,255,0.5);
    transition: var(--transition);
}
.btn-outline-hero:hover {
    background: rgba(255,255,255,0.1);
    border-color: var(--white);
    transform: translateY(-2px);
}

/* 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: 10;
    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: 10;
    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: 1rem;
    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: 50;
    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: 0.82rem; font-weight: 700; line-height: 1.3; }

/* ===== STATISTICS BAR ===== */
.stats-section {
    background: var(--primary);
    padding: 3rem 0;
}
.stats-bar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
}
.stat-item {
    display: flex; flex-direction: column; align-items: center;
    gap: 0.5rem;
    padding: 1.5rem 1rem;
    text-align: center;
    border-left: 1px solid rgba(255,255,255,0.12);
    position: relative;
}
.stat-item:last-child { border-left: none; }
[dir="ltr"] .stat-item { border-left: none; border-right: 1px solid rgba(255,255,255,0.12); }
[dir="ltr"] .stat-item:last-child { border-right: none; }
.stat-icon {
    width: 50px; height: 50px;
    background: rgba(245,197,56,0.15);
    border: 2px solid rgba(245,197,56,0.3);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: var(--accent);
    font-size: 1.2rem;
}
.stat-num {
    font-size: 2.2rem; font-weight: 900;
    color: var(--accent);
    line-height: 1;
}
.stat-label {
    font-size: 0.85rem;
    color: var(--text-light);
    font-weight: 500;
}

/* ===== 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: 20px;
    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: 20px;
    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: 1rem;
    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: 1rem; line-height: 2;
    margin: 1.25rem 0 1.75rem;
}
.about-stats-row {
    display: flex; gap: 1.5rem; margin-bottom: 1.75rem;
    flex-wrap: wrap;
}
.about-stat {
    display: flex; flex-direction: column; align-items: center;
    padding: 1rem 1.5rem;
    background: var(--bg-light);
    border-radius: var(--radius);
    border-bottom: 3px solid var(--accent);
    min-width: 100px;
    text-align: center;
}
.about-stat-num {
    font-size: 1.6rem; font-weight: 900;
    color: var(--primary);
}
.about-stat-label { font-size: 0.78rem; color: var(--text-muted); font-weight: 600; }
.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: 0.95rem;
    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: 1.8rem; line-height: 1; }

/* ===== 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 {
    display: inline-flex; align-items: center; gap: 8px;
    background: transparent;
    color: var(--primary);
    padding: 0.75rem 2rem;
    border-radius: var(--radius);
    font-weight: 700; font-size: 0.95rem;
    border: 2px solid var(--primary);
    transition: var(--transition);
}
.btn-secondary:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
}

/* 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: 20px;
    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: 0.85rem;
    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 color variants */
.clg-c1 { background: linear-gradient(135deg, #102e5e, #1a4080); }
.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 {
    display: inline-flex; align-items: center; gap: 5px;
    background: rgba(245,197,56,0.12);
    color: var(--accent-dark);
    padding: 0.18rem 0.65rem;
    border-radius: 20px;
    font-size: 0.7rem; font-weight: 700;
    margin-bottom: 0.6rem;
    border: 1px solid rgba(245,197,56,0.3);
}
.college-card-name {
    font-size: 1rem; 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: 1rem; font-weight: 700;
    color: var(--white); margin-bottom: 0.5rem;
}
.rc-desc { font-size: 0.85rem; color: var(--text-light); line-height: 1.8; }
.rc-links { margin-top: 1rem; }
.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-list { display: flex; flex-direction: column; gap: 1rem; }
.event-item {
    display: flex; align-items: flex-start; gap: 1.25rem;
    background: var(--white);
    border-radius: var(--radius);
    padding: 1.25rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    cursor: pointer;
}
.event-item:hover {
    transform: translateX(-4px);
    box-shadow: var(--shadow);
    border-right: 4px solid var(--accent);
}
[dir="ltr"] .event-item:hover { transform: translateX(4px); border-right: none; border-left: 4px solid var(--accent); }
.event-date {
    background: var(--primary);
    color: var(--white);
    border-radius: var(--radius-sm);
    padding: 0.6rem 1rem;
    text-align: center;
    min-width: 64px; flex-shrink: 0;
}
.event-day { font-size: 1.5rem; font-weight: 900; line-height: 1; }
.event-month { font-size: 0.72rem; font-weight: 600; color: var(--accent); margin-top: 2px; }
.event-info { flex: 1; }
.event-title { font-size: 0.98rem; font-weight: 700; color: var(--text-dark); margin-bottom: 0.35rem; }
.event-place { font-size: 0.82rem; color: var(--text-muted); }
.event-place i { color: var(--accent-dark); }

/* ===== 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: 0.95rem; font-weight: 700;
}
.cal-table {
    width: 100%;
    border-collapse: collapse;
}
.cal-table td {
    padding: 0.65rem 1.25rem;
    font-size: 0.85rem;
    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: 0.95rem; 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-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: 0.95rem; 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: 0.85rem; font-weight: 700; text-align: right; }
[dir="ltr"] .admission-table th { text-align: left; }
.admission-table td {
    padding: 0.65rem 1rem; font-size: 0.85rem;
    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: 0.95rem; 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: #f0f4fa; }

.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: 8px;
    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: #f8fafc;
    border-radius: 16px;
    padding: 2rem 1rem;
    overflow: auto;
    max-height: 82vh;
    cursor: grab;
    box-shadow: 0 4px 24px rgba(16,46,94,.1);
    border: 1px solid #dce5f0;
    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: #102e5e; 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 #102e5e;
    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: 8px;
    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: #f5c538;
    color: #102e5e;
    border: 2px solid #d4a820;
    font-size: .82rem; font-weight: 900;
}
/* President — navy with gold border */
.org-box[data-type="president"] {
    background: #102e5e;
    color: #f5c538;
    border: 2.5px solid #f5c538;
    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: #f5c538;
    color: #102e5e;
    border: 1.5px solid #d4a820;
    font-size: .78rem; font-weight: 800;
}
/* Colleges group header — gold */
.org-box[data-type="colleges"] {
    background: #f5c538;
    color: #102e5e;
    border: 1.5px solid #d4a820;
    font-size: .78rem; font-weight: 800;
}
/* Department — white */
.org-box[data-type="department"] {
    background: #fff;
    color: #102e5e;
    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 #dce5f0;
    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); }
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}
.gallery-item {
    border-radius: var(--radius);
    overflow: hidden;
    aspect-ratio: 1;
    transition: var(--transition);
    cursor: pointer;
}
.gallery-item:hover { transform: scale(1.03); box-shadow: var(--shadow-lg); }
.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-item:hover .gallery-placeholder { background: linear-gradient(135deg, var(--primary-dark), var(--primary)); }
.gallery-placeholder span { font-size: 0.78rem; }

/* ===== 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: 1.1rem; 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: 0.85rem;
    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; }
.contact-form-card {
    background: var(--bg-light);
    border-radius: var(--radius);
    padding: 2rem;
}
.contact-form-card h3 {
    font-size: 1.1rem; 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 {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    width: 100%;
    background: var(--primary);
    color: var(--white);
    padding: 0.85rem;
    border-radius: var(--radius);
    font-family: inherit; font-size: 1rem; font-weight: 700;
    border: none; cursor: pointer;
    transition: var(--transition);
}
.btn-submit:hover { background: var(--accent); color: var(--primary); }

/* ===== 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: 1rem; font-weight: 800; color: var(--accent); }
.footer-about-text { font-size: 0.85rem; 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: 0.82rem; transition: var(--transition);
}
.footer-social a:hover { background: var(--accent); color: var(--primary); border-color: var(--accent); }
.footer-col-title {
    font-size: 0.95rem; 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: 0.82rem; 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: 999;
    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: 1rem;
    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: 9000;
    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: 4000;
    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: 1rem;
    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: 0.85rem; 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; }
    .stats-bar { grid-template-columns: repeat(4, 1fr); }
    .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: 1500;
        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; }
    .stats-bar { grid-template-columns: repeat(2, 1fr); }
    .stat-item:nth-child(2) { border-left: 1px solid rgba(255,255,255,0.12); }
    [dir="ltr"] .stat-item:nth-child(2) { border-left: none; border-right: 1px solid rgba(255,255,255,0.12); }
    .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; }
    .about-stats-row { justify-content: center; }
    .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); }
    .stats-bar { grid-template-columns: 1fr 1fr; }
    .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:9999; }
#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:8px; 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:.3s; 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 .4s; }
.gallery-item:hover img { transform:scale(1.05); }

/* ===== VISION CARDS (clickable) ===== */
.vision-grid { display: flex; flex-direction: column; gap: 1.25rem; }

.vcard {
    display: flex; align-items: flex-start; gap: 1.5rem;
    background: #fff;
    border: 1px solid #e8edf5;
    border-radius: 16px;
    padding: 1.75rem 2rem;
    cursor: pointer;
    transition: transform .25s, box-shadow .25s, border-color .25s;
    box-shadow: 0 2px 12px rgba(16,46,94,.06);
}
.vcard:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 36px rgba(16,46,94,.13);
    border-color: #c8d8f0;
}
.vcard-icon {
    flex-shrink: 0;
    width: 68px; height: 68px;
    border-radius: 18px;
    border: 2px solid;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.8rem;
    transition: transform .25s;
}
.vcard:hover .vcard-icon { transform: scale(1.1) rotate(-5deg); }
.vcard-content { flex: 1; }
.vcard-title {
    font-size: 1.15rem; font-weight: 800;
    color: var(--primary); margin-bottom: .5rem;
}
.vcard-preview {
    font-size: .9rem; color: #6b7a99; line-height: 1.75;
    margin-bottom: .85rem;
}
.vcard-readmore {
    display: inline-flex; align-items: center; gap: .45rem;
    font-size: .85rem; font-weight: 700;
    transition: gap .2s;
}
.vcard:hover .vcard-readmore { gap: .7rem; }

/* ── 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; }

/* ===== VISION MODAL ===== */
.vmodal-overlay {
    display: none; position: fixed; inset: 0;
    background: rgba(10,22,48,.65);
    backdrop-filter: blur(6px);
    z-index: 8000;
    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: 24px;
    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: 22px;
    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: 1rem; line-height: 2.1;
    color: #374060;
    margin-bottom: 1rem;
    text-align: justify;
}

@media (max-width: 600px) {
    .vcard { flex-direction: column; gap: 1rem; padding: 1.25rem; }
    .vmodal-box { padding: 2rem 1.5rem; }
}


/* ============================================================
   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: 99998;
    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: 9997;
    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; }
}
