/* ================================================================
   style.css — جامعة السراج الأهلية | الموقع الرئيسي
   ================================================================ */

:root {
    --primary-color: #d4a820;
    --primary-dark:  #b8900f;
    --secondary-color: #1a4fbe;
    --accent-color: #e8c547;
    --glass-bg: rgba(255, 255, 255, 0.08);
    --glass-bg2: rgba(255, 255, 255, 0.12);
    --glass-border: rgba(255, 255, 255, 0.18);
    --text-color: #ffffff;
    --text-muted: rgba(255,255,255,0.7);
    --bg-gradient: linear-gradient(-45deg, #061c48, #0a2460, #071530, #0d2b5e);
    --card-bg: rgba(6,28,72,0.55);
    --shadow: 0 8px 32px rgba(0,0,0,0.3);
    --radius: 16px;
    --radius-sm: 10px;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #050d2e;
    color: var(--text-color);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
    direction: inherit;
}

/* ===== ANIMATED BG ===== */
.animated-bg {
    position: fixed; inset: 0;
    background: var(--bg-gradient);
    background-size: 400% 400%;
    animation: gradientBG 18s ease infinite;
    z-index: -2;
}
@keyframes gradientBG {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* ===== PARTICLES ===== */
#particles-canvas {
    position: fixed; inset: 0;
    z-index: -1; pointer-events: none;
}

/* ===== PRELOADER ===== */
#preloader {
    position: fixed; inset: 0;
    background: #050d2e;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    z-index: 9999; transition: opacity .5s;
}
.preloader-logo {
    width: 90px; height: 90px;
    border-radius: 50%;
    border: 3px solid var(--primary-color);
    display: flex; align-items: center; justify-content: center;
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    animation: spin 2s linear infinite;
    box-shadow: 0 0 30px rgba(212,168,32,.4);
}
@keyframes spin { to { transform: rotate(360deg); } }
.preloader-text {
    font-size: 1.1rem; color: var(--primary-color);
    letter-spacing: 1px; text-align: center;
    margin-bottom: .5rem;
}
.preloader-sub { font-size: .85rem; color: var(--text-muted); }
.preloader-bar {
    width: 220px; height: 3px;
    background: rgba(255,255,255,.1);
    border-radius: 2px; margin-top: 1.5rem; overflow: hidden;
}
.preloader-bar-fill {
    height: 100%; width: 0;
    background: linear-gradient(90deg, var(--secondary-color), var(--primary-color));
    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(--secondary-color), var(--primary-color));
    z-index: 9998; transition: width .1s;
}

/* ===== GLASS UTILITY ===== */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
}
.glass-card {
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

/* ===== TICKER ===== */
.news-ticker {
    background: rgba(212,168,32,.12);
    border-bottom: 1px solid rgba(212,168,32,.3);
    padding: .45rem 1rem;
    display: flex; align-items: center; gap: 1rem;
    overflow: hidden; direction: inherit;
    position: sticky; top: 0; z-index: 1001;
}
.ticker-label {
    background: var(--primary-color); color: #050d2e;
    padding: .2rem .8rem; border-radius: 20px;
    font-size: .78rem; 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: .85rem; color: rgba(255,255,255,.85);
    animation: ticker 40s linear infinite;
}
@keyframes ticker { 0% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }

/* ===== NAVBAR ===== */
.navbar {
    position: sticky; top: 32px; z-index: 1000;
    background: rgba(5,13,46,.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    border-radius: 0 0 14px 14px;
    box-shadow: 0 4px 24px rgba(0,0,0,.3);
}
.nav-container {
    max-width: 1400px; margin: 0 auto;
    display: flex; align-items: center;
    justify-content: space-between;
    padding: .7rem 2rem; gap: 1rem;
}
.nav-logo {
    display: flex; align-items: center; gap: 12px;
    text-decoration: none; flex-shrink: 0;
}
.nav-logo img {
    height: 46px; width: 46px;
    border-radius: 50%;
    border: 2px solid var(--primary-color);
    object-fit: cover;
}
.logo-text { line-height: 1.25; }
.logo-title {
    font-size: 1rem; font-weight: 800;
    color: var(--primary-color); display: block;
}
.logo-sub { font-size: .72rem; color: var(--text-muted); }

/* Nav Links */
.nav-links {
    display: flex; align-items: center;
    list-style: none; gap: .15rem;
    flex-wrap: nowrap;
}
.nav-links > li { position: relative; }
.nav-links > li > a,
.nav-links > li > button {
    display: flex; align-items: center; gap: 5px;
    padding: .5rem .75rem;
    color: rgba(255,255,255,.85);
    text-decoration: none;
    font-size: .82rem; font-weight: 600;
    border: none; background: none; cursor: pointer;
    border-radius: 8px;
    transition: color .2s, background .2s;
    white-space: nowrap;
}
.nav-links > li > a:hover,
.nav-links > li > button:hover,
.nav-links > li.active > a { color: var(--primary-color); background: rgba(212,168,32,.1); }
.nav-links > li > a i, .nav-links > li > button i { font-size: .75rem; opacity: .7; }

/* Dropdown */
.dropdown-menu {
    display: none; position: absolute;
    top: calc(100% + 6px); right: 0;
    background: rgba(5,13,46,.97);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    min-width: 220px; padding: .5rem 0;
    box-shadow: 0 8px 32px rgba(0,0,0,.5);
    z-index: 2000;
}
.dropdown-menu.colleges-dropdown { min-width: 680px; }
.nav-links > li:hover .dropdown-menu { display: block; }
.dropdown-menu a {
    display: flex; align-items: center; gap: 10px;
    padding: .55rem 1.2rem;
    color: rgba(255,255,255,.8); font-size: .83rem;
    text-decoration: none;
    transition: background .15s, color .15s;
}
.dropdown-menu a:hover { background: rgba(212,168,32,.12); color: var(--primary-color); }
.dropdown-menu a i { width: 18px; color: var(--primary-color); flex-shrink: 0; }
.dropdown-divider { height: 1px; background: var(--glass-border); margin: .3rem 0; }
.dropdown-header {
    padding: .4rem 1.2rem;
    font-size: .72rem; text-transform: uppercase;
    letter-spacing: 1px; color: var(--text-muted);
    font-weight: 600;
}

/* Colleges mega dropdown */
.colleges-grid-nav {
    display: grid; grid-template-columns: repeat(2,1fr);
    gap: 0; padding: .5rem;
}
.colleges-grid-nav a {
    border-radius: 8px; padding: .6rem 1rem;
}

/* Nav Right */
.nav-actions { display: flex; align-items: center; gap: .6rem; }
.lang-btn {
    background: rgba(212,168,32,.15);
    border: 1px solid rgba(212,168,32,.4);
    color: var(--primary-color);
    padding: .38rem .9rem; border-radius: 20px;
    font-size: .8rem; font-weight: 700; cursor: pointer;
    transition: background .2s;
}
.lang-btn:hover { background: rgba(212,168,32,.3); }
.menu-toggle {
    display: none; background: none; border: none;
    color: #fff; font-size: 1.4rem; cursor: pointer; padding: .3rem;
}

/* ===== MAIN LAYOUT ===== */
main { max-width: 1400px; margin: 0 auto; padding: 0 1.5rem; }
.section-wrapper {
    display: none;
    animation: fadeIn .4s ease;
}
.section-wrapper.active { display: block; }
@keyframes fadeIn { from { opacity:0; transform:translateY(12px); } to { opacity:1; transform:none; } }

/* ===== SECTION TITLE ===== */
.section-title {
    text-align: center;
    margin-bottom: 2.5rem;
    padding-top: 2rem;
}
.section-title h2 {
    font-size: 2rem; font-weight: 800;
    background: linear-gradient(135deg, var(--primary-color), #fff 60%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: .5rem;
}
.section-title p { color: var(--text-muted); font-size: .95rem; }
.section-divider {
    width: 80px; height: 3px; margin: .8rem auto 0;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

/* ===== HOME / HERO ===== */
/* ── Hero Media Background ── */
.hero-media-bg {
    position: absolute; inset: 0;
    overflow: hidden; z-index: 0;
    border-radius: inherit;
}
.hero-slide {
    position: absolute; inset: 0;
    background-size: cover; background-position: center;
    opacity: 0; transition: opacity 1.2s ease;
}
.hero-slide.active { opacity: 1; }
.hero-video-bg {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover; opacity: 0.35;
    pointer-events: none;
}
.hero-video-frame {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    border: none; pointer-events: none;
    /* YouTube iframe dimmed via overlay */
}
.hero-media-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to bottom, rgba(5,13,46,.55) 0%, rgba(5,13,46,.75) 100%);
    z-index: 1;
}

.hero {
    min-height: 88vh;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    text-align: center; padding: 4rem 1rem 2rem;
    position: relative;
}
.hero > *:not(.hero-media-bg) { position: relative; z-index: 2; }
.hero-badge {
    display: inline-flex; align-items: center; gap: .5rem;
    background: rgba(212,168,32,.15);
    border: 1px solid rgba(212,168,32,.35);
    padding: .4rem 1.2rem; border-radius: 30px;
    font-size: .82rem; color: var(--primary-color);
    margin-bottom: 1.5rem;
    animation: pulse 2.5s ease infinite;
}
@keyframes pulse { 0%,100%{box-shadow:0 0 0 0 rgba(212,168,32,.3);} 50%{box-shadow:0 0 0 8px rgba(212,168,32,0);} }

.hero-univ-logo {
    width: 120px; height: 120px;
    border-radius: 50%;
    border: 4px solid var(--primary-color);
    object-fit: contain;
    margin-bottom: 1.5rem;
    box-shadow: 0 0 40px rgba(212,168,32,.35);
    background: rgba(255,255,255,.06);
    padding: 10px;
}
.hero h1 {
    font-size: clamp(1.8rem, 4vw, 3.2rem);
    font-weight: 900; line-height: 1.2;
    margin-bottom: .6rem;
    background: linear-gradient(135deg, #fff 30%, var(--primary-color));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero-sub {
    font-size: clamp(.9rem, 1.5vw, 1.15rem);
    color: var(--text-muted); max-width: 650px;
    margin: 0 auto 2.5rem;
}
.hero-cta { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: #050d2e; font-weight: 700;
    padding: .8rem 2rem; border-radius: 30px;
    border: none; cursor: pointer; font-size: .95rem;
    text-decoration: none; display: inline-flex; align-items: center; gap: .5rem;
    transition: transform .2s, box-shadow .2s;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(212,168,32,.4); }
.btn-outline {
    background: transparent;
    border: 2px solid rgba(255,255,255,.4);
    color: #fff; font-weight: 600;
    padding: .8rem 2rem; border-radius: 30px;
    cursor: pointer; font-size: .95rem;
    text-decoration: none; display: inline-flex; align-items: center; gap: .5rem;
    transition: border-color .2s, color .2s;
}
.btn-outline:hover { border-color: var(--primary-color); color: var(--primary-color); }

/* ===== STATS BAR ===== */
.stats-bar {
    display: grid; grid-template-columns: repeat(4,1fr);
    gap: 1rem; margin: 3rem 0;
}
.stat-item {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    padding: 1.5rem 1rem;
    text-align: center;
    transition: transform .2s, box-shadow .2s;
    position: relative; overflow: hidden;
}
.stat-item::before {
    content:''; position:absolute; inset:0;
    background: linear-gradient(135deg, rgba(212,168,32,.05), transparent);
    pointer-events: none;
}
.stat-item:hover { transform: translateY(-4px); box-shadow: 0 12px 36px rgba(212,168,32,.15); }
.stat-icon { font-size: 2rem; color: var(--primary-color); margin-bottom: .5rem; }
.stat-num {
    font-size: 2.2rem; font-weight: 900;
    color: var(--primary-color); line-height: 1;
    margin-bottom: .3rem;
}
.stat-label { font-size: .82rem; color: var(--text-muted); }

/* ===== COLLEGES GRID ===== */
.colleges-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem; margin-top: 1rem;
}
.college-card {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform .25s, box-shadow .25s;
    cursor: pointer; position: relative;
}
.college-card:hover { transform: translateY(-6px); box-shadow: 0 16px 48px rgba(212,168,32,.2); }
.college-card-top {
    height: 130px;
    display: flex; align-items: center; justify-content: center;
    font-size: 3.5rem; position: relative;
    overflow: hidden;
}
.college-card-top::after {
    content:''; position:absolute; inset:0;
    background: linear-gradient(to bottom, transparent 40%, rgba(5,13,46,.8));
}
.college-card-body { padding: 1.2rem; }
.college-card-name {
    font-size: 1rem; font-weight: 700;
    margin-bottom: .35rem; line-height: 1.35;
}
.college-card-name-en {
    font-size: .75rem; color: var(--text-muted);
    margin-bottom: .6rem; font-style: italic;
}
.college-card-desc { font-size: .8rem; color: var(--text-muted); line-height: 1.6; margin-bottom: 1rem; }
.college-card-footer {
    display: flex; align-items: center; justify-content: space-between;
    border-top: 1px solid var(--glass-border);
    padding-top: .8rem; margin-top: .5rem;
}
.college-depts-count { font-size: .78rem; color: var(--text-muted); }
.college-link-btn {
    background: rgba(212,168,32,.15);
    border: 1px solid rgba(212,168,32,.35);
    color: var(--primary-color);
    padding: .3rem .9rem; border-radius: 20px;
    font-size: .78rem; font-weight: 600;
    text-decoration: none; cursor: pointer;
    transition: background .2s;
    display: inline-flex; align-items: center; gap: .4rem;
}
.college-link-btn:hover { background: rgba(212,168,32,.3); }

/* College color accents */
.clg-c1 { background: linear-gradient(135deg,#0d3b6e,#1a6fa8); }
.clg-c2 { background: linear-gradient(135deg,#1a4d2e,#2d8a52); }
.clg-c3 { background: linear-gradient(135deg,#4d1a1a,#8a2d2d); }
.clg-c4 { background: linear-gradient(135deg,#2d1a4d,#6a2d8a); }
.clg-c5 { background: linear-gradient(135deg,#1a3d4d,#2d7a8a); }
.clg-c6 { background: linear-gradient(135deg,#4d3d1a,#8a712d); }
.clg-c6b{ background: linear-gradient(135deg,#2d1a0d,#6e3b0d); }
.clg-c7 { background: linear-gradient(135deg,#1a1a4d,#2d2d8a); }
.clg-c8 { background: linear-gradient(135deg,#1a4d3a,#2d8a6e); }

/* Founding college badge */
.college-card.founding-college { border-color: rgba(212,168,32,.5); }
.founding-badge {
    display:inline-flex; align-items:center; gap:.3rem;
    background: rgba(212,168,32,.2); border: 1px solid rgba(212,168,32,.4);
    color: var(--primary-color); font-size:.68rem; font-weight:700;
    padding:.18rem .6rem; border-radius:12px; margin-bottom:.4rem;
}
.founding-badge i { font-size:.6rem; }

/* ===== PRESIDENT SECTION ===== */
.president-panel {
    display: flex; gap: 3rem; align-items: flex-start;
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    padding: 2.5rem;
    margin-bottom: 2rem;
}
.president-photo-wrap {
    flex-shrink: 0; text-align: center;
    min-width: 180px;
}
.president-photo {
    width: 160px; height: 160px;
    border-radius: 50%;
    border: 4px solid var(--primary-color);
    object-fit: cover;
    background: rgba(255,255,255,.08);
    display: flex; align-items: center; justify-content: center;
    font-size: 4rem;
    margin: 0 auto .8rem;
}
.president-name {
    font-size: .95rem; font-weight: 700;
    color: var(--primary-color); margin-bottom: .2rem;
}
.president-title { font-size: .78rem; color: var(--text-muted); }
.president-msg h3 {
    font-size: 1.3rem; font-weight: 700;
    color: var(--primary-color); margin-bottom: 1rem;
}
.president-msg p {
    font-size: .93rem; color: var(--text-muted);
    line-height: 1.9; margin-bottom: .8rem;
    text-align: justify;
}
.president-sig {
    margin-top: 1.2rem;
    font-size: .9rem; font-weight: 700;
    color: var(--primary-color);
    border-top: 1px solid var(--glass-border);
    padding-top: .8rem;
}

/* ===== LEADERSHIP GRID ===== */
.leadership-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px,1fr));
    gap: 1.2rem; margin-top: 1.5rem;
}
.leader-card {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    padding: 1.5rem 1rem;
    text-align: center;
    transition: transform .2s;
}
.leader-card:hover { transform: translateY(-4px); }
.leader-avatar {
    width: 80px; height: 80px;
    border-radius: 50%;
    background: rgba(212,168,32,.12);
    border: 2px solid var(--primary-color);
    margin: 0 auto .8rem;
    display: flex; align-items: center; justify-content: center;
    font-size: 2rem; color: var(--primary-color);
}
.leader-name { font-size: .9rem; font-weight: 700; margin-bottom: .3rem; }
.leader-pos { font-size: .78rem; color: var(--primary-color); margin-bottom: .2rem; }
.leader-dept { font-size: .74rem; color: var(--text-muted); }

/* ===== ORG CHART ===== */
.org-tree { text-align: center; padding: 1rem 0 2rem; overflow-x: auto; }
.org-box {
    display: inline-block;
    background: var(--card-bg);
    border: 2px solid var(--primary-color);
    border-radius: 10px; padding: .7rem 1.4rem;
    font-size: .85rem; font-weight: 600;
    color: #fff; white-space: nowrap;
    min-width: 140px;
}
.org-box.highlight {
    background: linear-gradient(135deg, rgba(212,168,32,.25), rgba(26,79,190,.2));
    border-color: var(--primary-color);
    font-size: .95rem; font-weight: 700;
}
.org-level { display: flex; justify-content: center; gap: 1.5rem; position: relative; margin: 0 1rem; }
.org-vline {
    width: 2px; height: 28px; background: var(--glass-border);
    margin: 0 auto;
}
.org-hline-wrap {
    display: flex; justify-content: center;
    position: relative; margin-bottom: 0;
}
.org-hline {
    height: 2px; background: var(--glass-border);
    position: absolute; top: 0;
}
.org-children {
    display: flex; justify-content: center;
    gap: 1.5rem; flex-wrap: wrap;
    position: relative; padding-top: 28px;
}
.org-children::before {
    content:''; position:absolute;
    top: 0; left: 10%; right: 10%; height: 2px;
    background: var(--glass-border);
}
.org-child { display: flex; flex-direction: column; align-items: center; }
.org-child::before {
    content:''; width:2px; height:28px;
    background: var(--glass-border);
}

/* ===== BOARD OF TRUSTEES ===== */
.trustees-table {
    width: 100%; border-collapse: collapse;
    font-size: .88rem;
}
.trustees-table th {
    background: rgba(212,168,32,.15);
    color: var(--primary-color);
    padding: .8rem 1rem;
    text-align: right;
    font-weight: 700; border-bottom: 2px solid rgba(212,168,32,.3);
}
.trustees-table td {
    padding: .75rem 1rem;
    border-bottom: 1px solid var(--glass-border);
    color: var(--text-muted);
}
.trustees-table tr:hover td { background: rgba(255,255,255,.04); }
.badge-chairman {
    background: rgba(212,168,32,.2); color: var(--primary-color);
    padding: .2rem .7rem; border-radius: 20px; font-size: .75rem;
}

/* ===== RESEARCH ===== */
.research-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(260px,1fr));
    gap: 1.2rem; margin-top: 1rem;
}
.research-card {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm); padding: 1.5rem;
    transition: transform .2s, border-color .2s;
}
.research-card:hover { transform: translateY(-4px); border-color: var(--primary-color); }
.rc-icon { font-size: 2rem; color: var(--primary-color); margin-bottom: .8rem; }
.rc-title { font-size: .95rem; font-weight: 700; margin-bottom: .5rem; }
.rc-desc { font-size: .82rem; color: var(--text-muted); line-height: 1.7; }
.rc-links { margin-top: 1rem; display: flex; flex-wrap: wrap; gap: .5rem; }
.rc-link-btn {
    display: inline-flex; align-items: center; gap: .4rem;
    background: rgba(255,255,255,.07); border: 1px solid var(--glass-border);
    color: rgba(255,255,255,.8); padding: .3rem .8rem;
    border-radius: 20px; font-size: .75rem; text-decoration: none;
    transition: background .2s, color .2s;
}
.rc-link-btn:hover { background: rgba(212,168,32,.15); color: var(--primary-color); border-color: rgba(212,168,32,.4); }

/* ===== NEWS ===== */
.news-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(300px,1fr));
    gap: 1.3rem; margin-top: 1rem;
}
.news-card {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm); overflow: hidden;
    transition: transform .2s, box-shadow .2s;
    cursor: pointer;
}
.news-card:hover { transform: translateY(-5px); box-shadow: 0 12px 36px rgba(0,0,0,.3); }
.news-thumb {
    width: 100%; height: 180px;
    object-fit: cover; display: block;
    background: linear-gradient(135deg, #0d3b6e, #1a6fa8);
}
.news-thumb-placeholder {
    width: 100%; height: 180px;
    background: linear-gradient(135deg, #0a2460, #061c48);
    display: flex; align-items: center; justify-content: center;
    font-size: 2.5rem; color: rgba(212,168,32,.4);
}
.news-card-body { padding: 1.1rem; }
.news-category {
    font-size: .72rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: .5px;
    color: var(--primary-color); margin-bottom: .4rem;
}
.news-title { font-size: .92rem; font-weight: 700; line-height: 1.45; margin-bottom: .5rem; }
.news-excerpt { font-size: .8rem; color: var(--text-muted); line-height: 1.6; margin-bottom: .8rem; }
.news-meta { font-size: .75rem; color: var(--text-muted); display: flex; gap: .8rem; flex-wrap: wrap; }
.news-meta i { color: var(--primary-color); }

/* ===== EVENTS ===== */
.events-list { display: flex; flex-direction: column; gap: 1rem; margin-top: 1rem; }
.event-item {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    display: flex; align-items: center; gap: 1.5rem;
    padding: 1rem 1.5rem;
    transition: border-color .2s;
}
.event-item:hover { border-color: var(--primary-color); }
.event-date {
    flex-shrink: 0; text-align: center; min-width: 60px;
    background: rgba(212,168,32,.12);
    border: 1px solid rgba(212,168,32,.3);
    border-radius: 10px; padding: .6rem .5rem;
}
.event-day { font-size: 1.6rem; font-weight: 900; color: var(--primary-color); line-height: 1; }
.event-month { font-size: .72rem; color: var(--text-muted); }
.event-info { flex: 1; }
.event-title { font-size: .92rem; font-weight: 700; margin-bottom: .25rem; }
.event-desc { font-size: .8rem; color: var(--text-muted); }
.event-place { font-size: .75rem; color: var(--primary-color); margin-top: .3rem; }
.event-place i { margin-left: .3rem; }

/* ===== QUALITY ===== */
.quality-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(260px,1fr));
    gap: 1.2rem; margin-top: 1rem;
}
.quality-card {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm); padding: 1.5rem;
    transition: transform .2s, border-color .2s;
}
.quality-card:hover { transform: translateY(-4px); border-color: rgba(212,168,32,.4); }
.qc-icon { font-size: 2rem; margin-bottom: .8rem; }
.qc-num {
    font-size: .7rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: 1px; color: var(--primary-color); margin-bottom: .4rem;
}
.qc-title { font-size: .95rem; font-weight: 700; margin-bottom: .5rem; }
.qc-desc { font-size: .82rem; color: var(--text-muted); line-height: 1.7; }

/* ===== ADMISSION ===== */
.admission-intro {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius); padding: 2rem;
    margin-bottom: 2rem;
}
.adm-req-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(240px,1fr));
    gap: 1rem; margin: 1rem 0 2rem;
}
.adm-req-item {
    background: rgba(26,79,190,.15);
    border: 1px solid rgba(26,79,190,.3);
    border-radius: 10px; padding: 1rem;
    display: flex; gap: .8rem; align-items: flex-start;
}
.adm-req-icon { color: var(--primary-color); font-size: 1.2rem; flex-shrink: 0; margin-top: .1rem; }
.adm-req-text { font-size: .85rem; color: var(--text-muted); line-height: 1.6; }
.adm-steps {
    display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 2rem;
}
.adm-step {
    flex: 1; min-width: 160px;
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 10px; padding: 1.2rem;
    text-align: center; position: relative;
}
.step-num {
    width: 36px; height: 36px; border-radius: 50%;
    background: var(--primary-color); color: #050d2e;
    font-weight: 900; font-size: .95rem;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto .8rem;
}
.step-title { font-size: .85rem; font-weight: 700; margin-bottom: .3rem; }
.step-desc { font-size: .78rem; color: var(--text-muted); line-height: 1.55; }

/* ===== CALENDAR ===== */
.calendar-grid {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 1.5rem; margin-top: 1rem;
}
.cal-semester {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm); overflow: hidden;
}
.cal-semester-header {
    background: rgba(212,168,32,.15);
    border-bottom: 1px solid rgba(212,168,32,.3);
    padding: .9rem 1.2rem;
    font-weight: 700; font-size: .95rem;
    color: var(--primary-color);
}
.cal-table { width: 100%; border-collapse: collapse; font-size: .83rem; }
.cal-table td {
    padding: .65rem 1rem;
    border-bottom: 1px solid rgba(255,255,255,.06);
    color: var(--text-muted);
}
.cal-table td:first-child { color: var(--primary-color); font-weight: 600; width: 120px; }
.cal-table tr.cal-important td { background: rgba(212,168,32,.08); color: #fff; }
.cal-table tr.cal-holiday td { background: rgba(26,79,190,.12); }

/* ===== GALLERY ===== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px,1fr));
    gap: 1rem; margin-top: 1rem;
}
.gallery-item {
    aspect-ratio: 4/3;
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    overflow: hidden; cursor: pointer;
    position: relative;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.gallery-item:hover img { transform: scale(1.06); }
.gallery-placeholder {
    width: 100%; height: 100%;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    color: rgba(212,168,32,.4); font-size: 2.5rem; gap: .5rem;
}
.gallery-placeholder span { font-size: .75rem; color: var(--text-muted); }

/* ===== CONTACT ===== */
.contact-grid {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 2rem; margin-top: 1.5rem;
}
.contact-info-card {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius); padding: 2rem;
}
.contact-info-card h3 {
    font-size: 1.1rem; font-weight: 700;
    color: var(--primary-color); margin-bottom: 1.5rem;
    padding-bottom: .7rem;
    border-bottom: 1px solid var(--glass-border);
}
.contact-row {
    display: flex; gap: 1rem; align-items: flex-start;
    margin-bottom: 1.1rem;
}
.contact-row i {
    color: var(--primary-color); font-size: 1.1rem;
    flex-shrink: 0; margin-top: .1rem;
}
.contact-row p { font-size: .88rem; color: var(--text-muted); line-height: 1.6; }
.contact-form-card {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius); padding: 2rem;
}
.contact-form-card h3 {
    font-size: 1.1rem; font-weight: 700;
    color: var(--primary-color); margin-bottom: 1.5rem;
    padding-bottom: .7rem;
    border-bottom: 1px solid var(--glass-border);
}
.form-group { margin-bottom: 1rem; }
.form-group label { display: block; font-size: .82rem; margin-bottom: .4rem; color: var(--text-muted); }
.form-input, .form-textarea, .form-select {
    width: 100%; padding: .7rem 1rem;
    background: rgba(255,255,255,.07);
    border: 1px solid var(--glass-border);
    border-radius: 8px; color: #fff; font-size: .88rem;
    transition: border-color .2s;
    font-family: inherit; direction: inherit;
}
.form-input:focus, .form-textarea:focus, .form-select:focus {
    outline: none; border-color: var(--primary-color);
}
.form-textarea { resize: vertical; min-height: 110px; }
.form-select option { background: #050d2e; }

/* ===== VISION / ABOUT ===== */
.vision-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(280px,1fr));
    gap: 1.2rem; margin-top: 1rem;
}
.vision-card {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm); padding: 2rem 1.5rem;
    transition: transform .2s;
}
.vision-card:hover { transform: translateY(-4px); }
.vc-icon { font-size: 2.2rem; margin-bottom: 1rem; }
.vc-title { font-size: 1rem; font-weight: 700; margin-bottom: .6rem; color: var(--primary-color); }
.vc-text { font-size: .85rem; color: var(--text-muted); line-height: 1.8; text-align: justify; }

/* ===== LIGHTBOX ===== */
#lightbox {
    display: none; position: fixed; inset: 0;
    background: rgba(0,0,0,.9); z-index: 5000;
    align-items: center; justify-content: center;
}
#lightbox.active { display: flex; }
#lightbox img { max-width: 90%; max-height: 85vh; border-radius: 8px; }
#lightbox-close {
    position: absolute; top: 1.5rem; left: 1.5rem;
    background: rgba(255,255,255,.1); border: none;
    color: #fff; width: 40px; height: 40px;
    border-radius: 50%; font-size: 1.2rem;
    cursor: pointer; display: flex; align-items: center; justify-content: center;
}

/* ===== NEWS MODAL ===== */
#newsModal {
    display: none; position: fixed; inset: 0;
    background: rgba(0,0,0,.75); z-index: 4000;
    align-items: center; justify-content: center;
    padding: 1rem;
}
#newsModal.active { display: flex; }
.news-modal-box {
    background: #060e2d;
    border: 1px solid var(--glass-border);
    border-radius: var(--radius); padding: 2rem;
    max-width: 680px; width: 100%; max-height: 88vh;
    overflow-y: auto; position: relative;
    backdrop-filter: blur(20px);
}
#newsModalClose {
    position: absolute; top: 1rem; left: 1rem;
    background: rgba(255,255,255,.1); border: none;
    color: #fff; width: 36px; height: 36px;
    border-radius: 50%; cursor: pointer; font-size: 1rem;
    display: flex; align-items: center; justify-content: center;
    transition: background .2s;
}
#newsModalClose:hover { background: rgba(255,255,255,.2); }

/* ===== SCROLL TOP ===== */
#scrollTopBtn {
    position: fixed; bottom: 2rem; left: 2rem;
    width: 44px; height: 44px; border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: none; color: #fff; font-size: 1rem;
    cursor: pointer; display: none;
    align-items: center; justify-content: center;
    box-shadow: 0 4px 16px rgba(212,168,32,.3);
    transition: transform .2s;
    z-index: 999;
}
#scrollTopBtn:hover { transform: translateY(-3px); }
#scrollTopBtn.show { display: flex; }

/* ===== TOAST ===== */
#toast-container {
    position: fixed; bottom: 1.5rem; right: 1.5rem;
    z-index: 9000; display: flex; flex-direction: column; gap: .5rem;
}
.toast {
    background: rgba(6,28,72,.95);
    border: 1px solid var(--glass-border);
    border-right: 4px solid var(--primary-color);
    padding: .8rem 1.2rem; border-radius: 8px;
    font-size: .85rem; max-width: 300px;
    animation: slideInRight .3s ease;
}
@keyframes slideInRight { from{transform:translateX(100%);opacity:0;} to{transform:none;opacity:1;} }

/* ===== FOOTER ===== */
.glass-footer {
    background: rgba(5,13,46,.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid var(--glass-border);
    margin-top: 4rem;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.1fr;
    gap: 2rem; padding: 2.5rem 2rem;
    max-width: 1400px; margin: 0 auto;
    text-align: right;
}
.footer-col h4 {
    font-size: 1rem; color: var(--primary-color);
    margin-bottom: 1rem; padding-bottom: .5rem;
    border-bottom: 1px solid var(--glass-border);
}
.footer-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 1rem; }
.footer-logo img { height: 40px; border-radius: 50%; border: 2px solid var(--primary-color); }
.footer-logo span { font-weight: 700; font-size: 1rem; }
.footer-about { font-size: .85rem; color: var(--text-muted); line-height: 1.7; margin-bottom: 1rem; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: .5rem; }
.footer-links a {
    color: var(--text-muted); text-decoration: none;
    font-size: .85rem; display: flex; align-items: center; gap: 8px;
    transition: color .2s;
}
.footer-links a:hover { color: var(--primary-color); }
.footer-links a i { width: 16px; color: var(--primary-color); }
.footer-contact-info p {
    font-size: .85rem; color: var(--text-muted);
    margin-bottom: .6rem; display: flex; align-items: flex-start; gap: 10px; line-height: 1.5;
}
.footer-contact-info i { color: var(--primary-color); margin-top: 3px; flex-shrink: 0; }
.social-icons { display: flex; gap: .6rem; margin-top: .8rem; flex-wrap: wrap; }
.social-icons a {
    width: 36px; height: 36px; border-radius: 50%;
    background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.15);
    display: flex; align-items: center; justify-content: center;
    color: #fff; text-decoration: none; font-size: .9rem;
    transition: background .2s, color .2s, transform .2s;
}
.social-icons a:hover { background: rgba(212,168,32,.25); color: var(--primary-color); transform: translateY(-2px); }
.footer-social { display: flex; gap: .6rem; margin-top: 1rem; flex-wrap: wrap; }
.social-btn {
    width: 36px; height: 36px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    text-decoration: none; font-size: .9rem;
    background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.15); color: #fff;
    transition: transform .2s, box-shadow .2s, background .2s;
}
.social-btn:hover { transform: translateY(-3px); box-shadow: 0 6px 16px rgba(212,168,32,.3); background: rgba(212,168,32,.2); }
.footer-bottom {
    border-top: 1px solid var(--glass-border);
    padding: 1rem 2rem; font-size: .83rem;
    opacity: .7; display: flex; align-items: center;
    justify-content: space-between; flex-wrap: wrap; gap: .5rem;
    max-width: 1400px; margin: 0 auto;
}
.footer-bottom-links { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.footer-bottom-links a { color: rgba(255,255,255,.5); font-size: .78rem; text-decoration: none; transition: color .2s; }
.footer-bottom-links a:hover { color: var(--primary-color); }
.footer-bottom-links span { color: rgba(255,255,255,.2); }

/* ===== LIGHT MODE ===== */
body.light-mode {
    background-color: #e8edf8;
    color: #1a1a2e;
    --text-muted: rgba(0,0,0,0.6);
    --card-bg: rgba(255,255,255,0.7);
    --glass-bg: rgba(255,255,255,0.6);
    --glass-border: rgba(0,0,0,0.1);
}
body.light-mode .navbar { background: rgba(255,255,255,0.9); }
body.light-mode .nav-links > li > a,
body.light-mode .nav-links > li > button { color: #1a1a2e; }
body.light-mode .footer-links a { color: #555; }
body.light-mode .dropdown-menu { background: rgba(255,255,255,.97); }
body.light-mode .dropdown-menu a { color: #333; }
body.light-mode .form-input,
body.light-mode .form-textarea,
body.light-mode .form-select {
    background: rgba(0,0,0,.04); border-color: rgba(0,0,0,.15); color: #1a1a2e;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1100px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .stats-bar { grid-template-columns: repeat(2,1fr); }
    .calendar-grid { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
    .nav-links { display: none; }
    .nav-links.open {
        display: flex; flex-direction: column;
        position: absolute; top: 100%; right: 0; left: 0;
        background: rgba(5,13,46,.98);
        border-top: 1px solid var(--glass-border);
        padding: 1rem; z-index: 1999; border-radius: 0 0 14px 14px;
    }
    .nav-links.open .dropdown-menu {
        position: static; box-shadow: none; border: none;
        background: rgba(255,255,255,.04); margin-top: .3rem;
        border-radius: 8px; display: block;
    }
    .nav-links.open .colleges-dropdown { min-width: unset; }
    .nav-links.open .colleges-grid-nav { grid-template-columns: 1fr; }
    .menu-toggle { display: block; }
    .president-panel { flex-direction: column; align-items: center; }
    .navbar { position: relative; }
}
@media (max-width: 600px) {
    .footer-grid { grid-template-columns: 1fr; }
    .stats-bar { grid-template-columns: repeat(2,1fr); }
    .hero h1 { font-size: 1.7rem; }
    .colleges-grid { grid-template-columns: 1fr; }
    .adm-steps { flex-direction: column; }
}
