/* ================================================================
   shared-college.css — جامعة السراج الأهلية | الكليات المشتركة
   ================================================================ */

:root {
    --primary-color: #d4a820;
    --primary-dark:  #b8900f;
    --secondary-color: #1a4fbe;
    --accent-color: #e8c547;
    --college-accent: #1a6fa8;
    --primary-rgb: 212,168,32;
    --accent-rgb: 26,111,168;
    --body-bg-rgb: 5,13,46;
    --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);
    --body-bg: #050d2e;
    --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: var(--body-bg, #050d2e);
    color: var(--text-color);
    min-height: 100vh;
    overflow-x: clip; /* clip لا يمنع position:fixed كما يفعل 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: var(--body-bg, #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: 2px solid var(--college-accent);
    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(var(--primary-rgb),.4);
    overflow: hidden;
    background: rgba(255,255,255,.08);
    padding: 8px;
    flex-shrink: 0;
}
.preloader-logo img {
    width: 68px; height: 68px;
    max-width: 68px; max-height: 68px;
    object-fit: contain;
    display: block;
}
@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(--college-accent), 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(--college-accent), 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: var(--ticker-bg, rgba(var(--primary-rgb),.12));
    border-bottom: 1px solid rgba(var(--primary-rgb),.3);
    padding: .45rem 1rem;
    display: flex; align-items: center; gap: 1rem;
    overflow: hidden; direction: inherit;
    position: sticky; top: 0; z-index: 1001;
    transition: background .4s;
}
.ticker-label {
    background: var(--college-accent); color: #fff;
    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: var(--ticker-text, rgba(255,255,255,.85));
    animation: tickerScroll var(--ticker-speed, 40s) linear infinite;
}
@keyframes tickerScroll { 0% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }

/* ===== NAVBAR ===== */
.navbar {
    position: sticky; top: 32px; z-index: 3100;
    background: rgba(var(--body-bg-rgb),.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: 1600px; margin: 0 auto;
    display: flex; align-items: center;
    justify-content: space-between;
    padding: .55rem 1.2rem; gap: .6rem;
}
.nav-logo {
    display: flex; align-items: center; gap: 12px;
    text-decoration: none; flex-shrink: 0;
}
.nav-logo-icon {
    width: 46px; height: 46px;
    border-radius: 50%;
    border: 2px solid var(--college-accent);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.6rem;
    background: rgba(255,255,255,.06);
}
.nav-logo-img {
    width: 46px; height: 46px;
    object-fit: contain;
    border-radius: 6px;
    flex-shrink: 0;
}
.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: 0;
    flex-wrap: nowrap;
    overflow-x: auto; overflow-y: visible;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
    flex: 1; min-width: 0;
    margin: 0 .4rem;
}
.nav-links::-webkit-scrollbar { display: none; } /* Chrome/Safari */
.nav-links > li { position: relative; flex-shrink: 0; }
.nav-links > li > a,
.nav-links > li > button {
    display: flex; align-items: center; gap: 4px;
    padding: .38rem .55rem;
    color: rgba(255,255,255,.85);
    text-decoration: none;
    font-size: .76rem; font-weight: 600;
    border: none; background: none; cursor: pointer;
    border-radius: 7px;
    transition: color .2s, background .2s;
    white-space: nowrap;
}
.nav-links > li > a:hover,
.nav-links > li > button:hover { color: var(--primary-color); background: rgba(var(--primary-rgb),.1); }
.nav-links > li.active > a { color: var(--college-accent); background: rgba(255,255,255,.08); }

/* Student Portal nav button */
.nav-links > li > a.nav-portal-btn {
    background: rgba(var(--accent-rgb),.25);
    border: 1px solid rgba(var(--accent-rgb),.55);
    color: #7ecef4;
    border-radius: 20px;
    padding: .35rem .9rem;
    font-size: .78rem;
    gap: .35rem;
    transition: background .2s, border-color .2s, color .2s, transform .2s;
}
.nav-links > li > a.nav-portal-btn:hover {
    background: rgba(var(--accent-rgb),.5);
    border-color: rgba(var(--accent-rgb),.9);
    color: #fff;
    transform: translateY(-1px);
}

/* Nav Right */
.nav-actions { display: flex; align-items: center; gap: .6rem; }
.lang-btn {
    background: rgba(var(--primary-rgb),.15);
    border: 1px solid rgba(var(--primary-rgb),.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(var(--primary-rgb),.3); }
.menu-toggle {
    display: none;
    flex-direction: column; align-items: center; justify-content: center;
    gap: 5px; width: 40px; height: 40px;
    background: rgba(255,255,255,.07);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 10px; cursor: pointer; padding: .4rem;
    flex-shrink: 0; z-index: 3002; position: relative;
    transition: background .2s, border-color .2s;
}
.menu-toggle span {
    display: block; width: 20px; height: 2px;
    background: #fff; border-radius: 2px;
    transition: transform .32s cubic-bezier(.4,0,.2,1),
                opacity .22s, width .22s;
    transform-origin: center;
}
.menu-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; width: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.menu-toggle:hover { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.25); }

/* ── Mobile Overlay ── */
.mobile-overlay {
    display: none; position: fixed; inset: 0;
    background: rgba(0,0,0,.55);
    z-index: 3000;
}
.mobile-overlay.open {
    display: block;
    animation: overlayIn .3s ease forwards;
}
@keyframes overlayIn { from { opacity:0; } to { opacity:1; } }

/* ===== 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(--college-accent), #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(--college-accent), var(--primary-color));
    border-radius: 2px;
}

/* ===== HOME / HERO ===== */
/* ── Hero Media Background ── */
.hero-media-bg {
    position: absolute; inset: 0;
    overflow: hidden; z-index: 0;
}
.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; opacity: 0.45;
    pointer-events: none;
    /* Scale up to hide black bars from YouTube letterboxing */
    transform: scale(1.15);
}
.hero-media-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to bottom, rgba(var(--body-bg-rgb),.55) 0%, rgba(var(--body-bg-rgb),.8) 100%);
    z-index: 1;
}

.hero {
    min-height: 85vh;
    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(var(--primary-rgb),.15);
    border: 1px solid rgba(var(--primary-rgb),.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(var(--primary-rgb),.3);} 50%{box-shadow:0 0 0 8px rgba(var(--primary-rgb),0);} }

.hero-college-icon {
    width: 110px; height: 110px;
    border-radius: 50%;
    border: 4px solid var(--college-accent);
    display: flex; align-items: center; justify-content: center;
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 0 40px rgba(var(--primary-rgb),.25);
    background: rgba(255,255,255,.06);
}
.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(--college-accent));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero h1 .hero-en { display: block; font-size: 55%; opacity: .7; -webkit-text-fill-color: rgba(255,255,255,.65); }
.hero-sub {
    font-size: clamp(.9rem, 1.5vw, 1.1rem);
    color: var(--text-muted); max-width: 620px;
    margin: 0 auto 2.5rem;
}
.hero-cta { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.btn-primary {
    background: linear-gradient(135deg, var(--college-accent), var(--primary-color));
    color: #fff; 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(var(--primary-rgb),.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(--college-accent); color: var(--college-accent); }

/* ===== QUICK NAV BUTTONS ===== */
.quick-nav {
    display: flex; gap: .8rem; flex-wrap: wrap; justify-content: center;
    margin-top: 2rem;
}
.quick-btn {
    background: rgba(255,255,255,.07);
    border: 1px solid rgba(255,255,255,.18);
    color: rgba(255,255,255,.85); padding: .55rem 1.2rem;
    border-radius: 20px; font-size: .8rem; font-weight: 600;
    cursor: pointer; transition: all .2s;
    display: flex; align-items: center; gap: .4rem;
}
.quick-btn:hover { background: rgba(var(--primary-rgb),.15); border-color: var(--college-accent); color: var(--college-accent); }

/* ===== STATS BAR ===== */
.stats-bar {
    display: grid; grid-template-columns: repeat(4,1fr);
    gap: 1.2rem; margin: 3rem 0;
}
.stat-item {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    padding: 1.8rem 1rem 1.5rem;
    text-align: center;
    position: relative; overflow: hidden;
    /* entrance state */
    opacity: 0;
    transform: translateY(40px) scale(.94);
    transition: opacity .55s cubic-bezier(.22,.68,0,1.2),
                transform .55s cubic-bezier(.22,.68,0,1.2),
                box-shadow .25s, border-color .25s;
}
.stat-item.stat-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}
/* shimmer sweep on enter */
.stat-item::before {
    content:''; position:absolute; inset:0;
    background: linear-gradient(115deg,
        transparent 30%,
        rgba(var(--primary-rgb),.13) 50%,
        transparent 70%);
    background-size: 250% 100%;
    background-position: 200% 0;
    pointer-events: none;
    transition: background-position 0s;
}
.stat-item.stat-visible::before {
    animation: statShimmer .8s .3s ease forwards;
}
@keyframes statShimmer {
    to { background-position: -60% 0; }
}
/* top accent line */
.stat-item::after {
    content:''; position:absolute; top:0; left:15%; right:15%; height:2px;
    background: linear-gradient(90deg, transparent, var(--college-accent), transparent);
    transform: scaleX(0);
    transition: transform .5s .3s ease;
}
.stat-item.stat-visible::after { transform: scaleX(1); }
.stat-item:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 16px 48px rgba(var(--primary-rgb),.18);
    border-color: rgba(var(--primary-rgb),.35);
}
/* icon ring */
.stat-icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 56px; height: 56px;
    font-size: 1.8rem;
    background: radial-gradient(circle, rgba(var(--primary-rgb),.15) 0%, transparent 70%);
    border: 1.5px solid rgba(var(--primary-rgb),.25);
    border-radius: 50%;
    margin-bottom: .85rem;
    transition: transform .3s, box-shadow .3s;
}
.stat-item:hover .stat-icon {
    transform: rotate(-8deg) scale(1.15);
    box-shadow: 0 0 20px rgba(var(--primary-rgb),.3);
}
.stat-num {
    font-size: 2.4rem; font-weight: 900;
    color: var(--college-accent); line-height: 1;
    margin-bottom: .4rem;
    font-variant-numeric: tabular-nums;
    letter-spacing: -.5px;
    transition: text-shadow .3s;
}
.stat-num.stat-done {
    animation: statPop .4s cubic-bezier(.22,.68,0,1.4) forwards;
}
@keyframes statPop {
    0%   { transform: scale(1); }
    45%  { transform: scale(1.18); text-shadow: 0 0 22px rgba(var(--primary-rgb),.7); }
    100% { transform: scale(1); text-shadow: 0 0 0 transparent; }
}
.stat-label { font-size: .82rem; color: var(--text-muted); letter-spacing: .01em; }

/* ===== VISION / ABOUT ===== */
.vision-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(260px,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, border-color .2s;
}
.vision-card:hover { transform: translateY(-4px); border-color: rgba(var(--primary-rgb),.4); }
.vc-icon { font-size: 2.2rem; margin-bottom: 1rem; }
.vc-title { font-size: 1rem; font-weight: 700; margin-bottom: .6rem; color: var(--college-accent); }
.vc-text { font-size: .85rem; color: var(--text-muted); line-height: 1.8; text-align: justify; }

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

/* ===== LEADERSHIP GRID ===== */
.leadership-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px,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, border-color .2s;
}
.leader-card:hover { transform: translateY(-4px); border-color: rgba(var(--primary-rgb),.4); }
.leader-avatar {
    width: 70px; height: 70px;
    border-radius: 50%;
    background: rgba(var(--primary-rgb),.1);
    border: 2px solid var(--college-accent);
    margin: 0 auto .8rem;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.8rem; color: var(--college-accent);
    overflow: hidden;
}
.leader-name { font-size: .88rem; font-weight: 700; margin-bottom: .3rem; }
.leader-pos { font-size: .78rem; color: var(--college-accent); margin-bottom: .2rem; }
.leader-dept { font-size: .74rem; color: var(--text-muted); }

/* ===== STAFF / FACULTY GRID ===== */
.staff-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.4rem; margin-top: 1rem;
}
.staff-card {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    padding: 1.8rem 1.2rem 1.4rem;
    text-align: center;
    cursor: pointer;
    transition: transform .22s, border-color .22s, box-shadow .22s;
    position: relative; overflow: hidden;
}
.staff-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0;
    height: 3px; background: var(--college-accent);
    transform: scaleX(0); transition: transform .3s;
}
.staff-card:hover { transform: translateY(-5px); border-color: rgba(var(--primary-rgb),.35); box-shadow: 0 12px 35px rgba(0,0,0,.35); }
.staff-card:hover::before { transform: scaleX(1); }

.staff-avatar {
    width: 100px; height: 100px;
    border-radius: 50%;
    border: 3px solid var(--college-accent);
    background: rgba(255,255,255,.06);
    display: flex; align-items: center; justify-content: center;
    font-size: 2.5rem; color: var(--college-accent);
    margin: 0 auto 1rem;
    overflow: hidden;
}
.staff-avatar img { width: 100%; height: 100%; object-fit: cover; }

.staff-name {
    font-size: .92rem; font-weight: 700;
    color: var(--text-color); margin-bottom: .3rem;
    line-height: 1.4;
}
.staff-rank {
    font-size: .77rem; color: var(--college-accent);
    font-weight: 600; margin-bottom: .25rem;
}
.staff-dept {
    font-size: .74rem; color: var(--text-muted);
    margin-bottom: .6rem;
    border-top: 1px solid var(--glass-border);
    padding-top: .6rem; margin-top: .4rem;
}
.staff-spec {
    font-size: .72rem; color: rgba(255,255,255,.4);
}
.staff-card .staff-more {
    display: inline-block; margin-top: .8rem;
    font-size: .75rem; color: var(--college-accent);
    font-weight: 600; opacity: 0;
    transition: opacity .2s;
}
.staff-card:hover .staff-more { opacity: 1; }

/* Staff Modal */
.staff-modal-overlay {
    display: none; position: fixed; inset: 0;
    background: rgba(0,0,0,.82); backdrop-filter: blur(6px);
    z-index: 8000; align-items: center; justify-content: center;
    padding: 1rem;
}
.staff-modal-overlay.active { display: flex; }
.staff-modal {
    background: var(--body-bg, #091633);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    max-width: 600px; width: 100%;
    max-height: 90vh; overflow-y: auto;
    animation: modalIn .28s cubic-bezier(.34,1.56,.64,1);
}
@keyframes modalIn { from { opacity:0; transform:scale(.9) } to { opacity:1; transform:scale(1) } }
.staff-modal-header {
    display: flex; align-items: center; gap: 1.4rem;
    padding: 1.8rem 1.8rem 1.2rem;
    border-bottom: 1px solid var(--glass-border);
}
.staff-modal-avatar {
    width: 90px; height: 90px; border-radius: 50%; flex-shrink: 0;
    border: 3px solid var(--college-accent);
    background: rgba(255,255,255,.06);
    display: flex; align-items: center; justify-content: center;
    font-size: 2.2rem; color: var(--college-accent);
    overflow: hidden;
}
.staff-modal-avatar img { width: 100%; height: 100%; object-fit: cover; }
.staff-modal-info { flex: 1; }
.staff-modal-name { font-size: 1.1rem; font-weight: 700; margin-bottom: .3rem; }
.staff-modal-rank { font-size: .82rem; color: var(--college-accent); font-weight: 600; margin-bottom: .2rem; }
.staff-modal-dept { font-size: .78rem; color: var(--text-muted); }
.staff-modal-body { padding: 1.4rem 1.8rem 1.8rem; }
.staff-modal-row {
    display: flex; gap: .6rem; align-items: flex-start;
    margin-bottom: .9rem; font-size: .85rem;
}
.staff-modal-row i { color: var(--college-accent); width: 18px; margin-top: .1rem; flex-shrink: 0; }
.staff-modal-bio {
    font-size: .85rem; color: var(--text-muted);
    line-height: 1.9; text-align: justify;
    border-top: 1px solid var(--glass-border);
    padding-top: 1rem; margin-top: .5rem;
}
.staff-modal-close {
    position: absolute; top: 1rem; left: 1rem;
    width: 36px; height: 36px; border-radius: 50%;
    background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.15);
    color: #fff; font-size: .95rem; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: background .2s;
}
.staff-modal-close:hover { background: rgba(255,80,80,.4); }
.staff-modal { position: relative; }

/* Student Portal Button */
.student-portal-bar {
    background: linear-gradient(135deg, rgba(var(--accent-rgb),.18), rgba(var(--accent-rgb),.08));
    border: 1px solid rgba(var(--accent-rgb),.35);
    border-radius: var(--radius-sm);
    padding: 1.2rem 1.8rem;
    display: flex; align-items: center; gap: 1.2rem;
    margin-bottom: 1.5rem; flex-wrap: wrap;
}
.student-portal-bar .sp-icon {
    font-size: 2rem; color: var(--primary-color); flex-shrink: 0;
}
.student-portal-bar .sp-text { flex: 1; }
.student-portal-bar .sp-title {
    font-size: .95rem; font-weight: 700; color: var(--primary-color); margin-bottom: .2rem;
}
.student-portal-bar .sp-sub {
    font-size: .8rem; color: var(--text-muted);
}
.btn-portal {
    background: var(--college-accent); color: #fff;
    padding: .6rem 1.4rem; border-radius: 8px;
    font-size: .85rem; font-weight: 700;
    text-decoration: none; display: inline-flex;
    align-items: center; gap: .5rem;
    transition: background .2s, transform .2s; white-space: nowrap;
}
.btn-portal:hover { background: var(--primary-dark); transform: translateY(-2px); }

/* ===== DEPARTMENTS ===== */
.depts-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(280px,1fr));
    gap: 1.4rem; margin-top: 1rem;
}
.dept-card {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-top: 3px solid var(--college-accent);
    border-radius: var(--radius-sm); padding: 1.8rem 1.5rem;
    transition: transform .2s, box-shadow .2s;
}
.dept-card:hover { transform: translateY(-5px); box-shadow: 0 14px 40px rgba(0,0,0,.3); }
.dept-icon { font-size: 2.2rem; margin-bottom: .8rem; }
.dept-name { font-size: 1rem; font-weight: 700; margin-bottom: .3rem; color: var(--college-accent); }
.dept-name-en { font-size: .78rem; color: var(--text-muted); font-style: italic; margin-bottom: .8rem; }
.dept-desc { font-size: .83rem; color: var(--text-muted); line-height: 1.75; }
.dept-info {
    margin-top: 1rem; padding-top: .8rem;
    border-top: 1px solid var(--glass-border);
    font-size: .78rem; color: var(--text-muted);
    display: flex; gap: 1rem; flex-wrap: wrap;
}
.dept-info span { display: flex; align-items: center; gap: .35rem; }
.dept-info i { color: var(--college-accent); }

/* ===== ADMISSION ===== */
.admission-intro {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-right: 4px solid var(--college-accent);
    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(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 10px; padding: 1rem;
    display: flex; gap: .8rem; align-items: flex-start;
}
.adm-req-icon { color: var(--college-accent); font-size: 1.3rem; 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: 150px;
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 10px; padding: 1.2rem;
    text-align: center;
}
.step-num {
    width: 36px; height: 36px; border-radius: 50%;
    background: var(--college-accent); color: #fff;
    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; }

/* Admission Table */
.adm-table-wrap {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius); overflow: hidden; margin-bottom: 2rem;
}
.adm-table {
    width: 100%; border-collapse: collapse; font-size: .88rem;
}
.adm-table th {
    background: rgba(var(--primary-rgb),.15);
    color: var(--college-accent);
    padding: .85rem 1rem;
    text-align: right; font-weight: 700;
    border-bottom: 2px solid rgba(var(--primary-rgb),.3);
}
.adm-table td {
    padding: .75rem 1rem;
    border-bottom: 1px solid var(--glass-border);
    color: var(--text-muted);
}
.adm-table tr:last-child td { border-bottom: none; }
.adm-table tr:hover td { background: rgba(255,255,255,.04); }

/* ===== 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(var(--primary-rgb),.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(--college-accent); 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; }

/* ===== 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;
    transition: transform .2s, box-shadow .2s;
}
.gallery-item:hover { transform: scale(1.03); box-shadow: 0 10px 30px rgba(0,0,0,.4); }
.gallery-placeholder {
    width: 100%; height: 100%;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    color: rgba(var(--primary-rgb),.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(--college-accent); 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(--college-accent); 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(--college-accent); 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(--college-accent);
}
.form-textarea { resize: vertical; min-height: 110px; }
.form-select option { background: var(--body-bg, #050d2e); }

/* ===== FOOTER ===== */
.glass-footer {
    background: rgba(var(--body-bg-rgb),.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(--college-accent);
    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-icon {
    width: 40px; height: 40px; border-radius: 50%;
    border: 2px solid var(--college-accent);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem; background: rgba(255,255,255,.06);
}
.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(--college-accent); }
.footer-links a i { width: 16px; color: var(--college-accent); }
.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(--college-accent); margin-top: 3px; flex-shrink: 0; }
.footer-contact-info a { color: var(--text-muted); text-decoration: none; transition: color .2s; }
.footer-contact-info a:hover { color: var(--college-accent); }
.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(--college-accent); }
.footer-bottom-links span { color: 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(--college-accent), var(--primary-color));
    border: none; color: #fff; font-size: 1rem;
    cursor: pointer; display: none;
    align-items: center; justify-content: center;
    box-shadow: 0 4px 16px rgba(var(--primary-rgb),.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(--college-accent);
    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;} }

/* ===== RESPONSIVE ===== */
@media (max-width: 1100px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .stats-bar { grid-template-columns: repeat(2,1fr); }
    .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
    /* ── Hamburger ── */
    .menu-toggle { display: flex; }

    /* ── Drawer ── */
    .nav-links {
        display: flex !important;
        flex-direction: column;
        position: fixed;
        top: 0; right: 0;
        width: min(290px, 85vw);
        height: 100vh;          /* ارتفاع كامل الشاشة */
        height: 100dvh;         /* يعوّض شريط URL في الموبايل */
        /* خلفية صلبة بدون backdrop-filter لتجنب مشاكل Chrome/Safari */
        background: #060f36;
        border-left: 1px solid rgba(255,255,255,.1);
        box-shadow: -12px 0 50px rgba(0,0,0,.8);
        padding: 1rem 1rem 2rem;
        z-index: 3001;
        overflow-y: auto;
        gap: .15rem;
        list-style: none;
        transform: translateX(110%);
        visibility: hidden;
        transition: transform .36s cubic-bezier(.4,0,.2,1),
                    visibility 0s linear .36s;
    }
    .nav-links.open {
        transform: translateX(0);
        visibility: visible;
        transition: transform .36s cubic-bezier(.4,0,.2,1),
                    visibility 0s linear 0s;
    }

    /* ── Items ── */
    .nav-links > li { width: 100%; }
    .nav-links > li > a,
    .nav-links > li > button {
        width: 100%; font-size: .9rem;
        padding: .72rem 1rem; border-radius: 10px;
        justify-content: flex-start;
    }
    .nav-links > li > a.nav-portal-btn {
        margin-top: .6rem; border-radius: 10px;
        justify-content: center; text-align: center;
        padding: .75rem 1rem;
    }

    /* ── Dropdown inline in drawer ── */
    .nav-dropdown-menu {
        position: static;
        background: rgba(255,255,255,.04);
        border: none; box-shadow: none; border-radius: 8px;
        border-right: 2px solid var(--college-accent);
        margin: .25rem 0 .25rem .6rem;
        padding: .25rem 0;
        animation: none;
    }
    .nav-dropdown-menu.open { display: block; }
    .nav-dropdown-menu li a  { padding: .52rem .9rem; font-size: .84rem; }
    .nav-dropdown-divider    { margin: .25rem 0; }

    /* ── Misc layout ── */
    .dean-panel     { flex-direction: column; align-items: center; }
    .navbar         { position: relative; }
    .nav-logo-img   { width: 36px; height: 36px; }
    .nav-logo-icon  { width: 36px; height: 36px; font-size: 1.3rem; }
    .logo-title     { font-size: .88rem; }
    .logo-sub       { font-size: .65rem; }
    .nav-container  { padding: .55rem 1rem; }
}
@media (max-width: 600px) {
    .footer-grid { grid-template-columns: 1fr; }
    .stats-bar { grid-template-columns: repeat(2,1fr); }
    .hero h1 { font-size: 1.7rem; }
    .depts-grid { grid-template-columns: 1fr; }
    .adm-steps { flex-direction: column; }
    .vision-grid { grid-template-columns: 1fr; }
    /* Even smaller logo on very small screens */
    .nav-logo-img { width: 30px; height: 30px; }
    .nav-logo-icon { width: 30px; height: 30px; font-size: 1.1rem; }
    .logo-title { font-size: .82rem; }
}

/* ===== STICKY HEADER (controlled via admin ticker settings) ===== */
/* position:fixed is used instead of sticky because overflow-x:hidden on body
   breaks position:sticky in most browsers.
   JS measures the header height and applies matching padding-top to <main>.  */
header.header-sticky {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 3200;
    width: 100%;
}
/* Inner elements don't need their own sticky when the whole header is fixed */
header.header-sticky .news-ticker {
    position: relative;
    top: auto;
}
header.header-sticky .navbar {
    position: relative !important;
    top: auto !important;
}

/* ── Lectures Section ── */
.lectures-search {
    display: flex; gap: .6rem; margin-bottom: 1.5rem; flex-wrap: wrap;
}
.lectures-search input {
    flex: 1; min-width: 180px;
    padding: .55rem 1rem; border-radius: 8px;
    border: 1px solid var(--glass-border);
    background: rgba(255,255,255,.07);
    color: var(--text-color); font-family: inherit; font-size: .9rem;
}
.lectures-search input:focus { outline: none; border-color: var(--college-accent); }
.course-accordion {
    border: 1px solid var(--glass-border);
    border-radius: 12px; margin-bottom: .85rem; overflow: hidden;
}
.course-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 1rem 1.25rem; cursor: pointer;
    background: rgba(255,255,255,.05); transition: background .2s;
}
.course-header:hover { background: rgba(255,255,255,.09); }
.course-header .course-meta { flex: 1; }
.course-header h3 { font-size: .98rem; font-weight: 700; color: var(--text-color); }
.course-header .course-code { font-size: .75rem; color: var(--college-accent); margin-top: .15rem; }
.course-header .course-dept { font-size: .75rem; color: rgba(255,255,255,.45); }
.course-chevron { font-size:.8rem; color: var(--college-accent); transition: transform .3s; }
.course-accordion.open .course-chevron { transform: rotate(180deg); }
.course-body { display: none; padding: 0 1.25rem 1rem; border-top: 1px solid var(--glass-border); }
.course-accordion.open .course-body { display: block; }
.week-label {
    font-size: .75rem; font-weight: 700; color: var(--primary-color);
    padding: .25rem .6rem; background: rgba(var(--primary-rgb),.1);
    border-radius: 4px; display: inline-block; margin: .8rem 0 .5rem;
}
.material-item {
    display: flex; align-items: center; gap: .75rem;
    padding: .55rem .75rem; border-radius: 8px;
    border: 1px solid rgba(255,255,255,.07);
    margin-bottom: .35rem; cursor: pointer; transition: background .2s;
}
.material-item:hover { background: rgba(255,255,255,.06); }
.material-icon { font-size: 1.1rem; width: 28px; text-align: center; flex-shrink: 0; }
.material-title { flex: 1; font-size: .87rem; color: var(--text-color); }
.material-badge {
    font-size: .68rem; padding: .18rem .5rem; border-radius: 4px;
    background: rgba(0,210,255,.15); color: #00d2ff;
}
.material-dl-btn {
    display: inline-flex; align-items: center; justify-content: center;
    width: 28px; height: 28px; border-radius: 6px; flex-shrink: 0;
    background: rgba(0,210,255,.1); border: 1px solid rgba(0,210,255,.2);
    color: #00d2ff; font-size: .85rem; text-decoration: none;
    transition: background .2s, transform .15s;
}
.material-dl-btn:hover { background: rgba(0,210,255,.22); transform: translateY(-1px); }
.lec-modal-overlay {
    position: fixed; inset: 0; background: rgba(0,0,0,.85);
    z-index: 9000; display: flex; align-items: center; justify-content: center;
    padding: 1rem; opacity: 0; pointer-events: none; transition: opacity .25s;
}
.lec-modal-overlay.active { opacity: 1; pointer-events: all; }
.lec-modal {
    background: #0a1535; border: 1px solid var(--glass-border);
    border-radius: 14px; width: 100%; max-width: 800px;
    max-height: 90vh; overflow-y: auto; padding: 1.5rem;
}
.lec-modal-header {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 1rem; padding-bottom: .75rem;
    border-bottom: 1px solid var(--glass-border);
}
.lec-modal-actions { display: flex; align-items: center; gap: .5rem; flex-shrink: 0; }
.lec-modal-close {
    background: transparent; border: none; font-size: 1.4rem;
    color: rgba(255,255,255,.5); cursor: pointer; padding: .2rem .5rem;
}
.lec-modal-close:hover { color: #ff6b6b; }
.lec-modal-dl-btn {
    display: inline-flex; align-items: center; gap: .35rem;
    padding: .3rem .8rem; border-radius: 6px; font-size: .8rem; font-weight: 600;
    text-decoration: none; color: #00d2ff;
    background: rgba(0,210,255,.1); border: 1px solid rgba(0,210,255,.25);
    transition: background .2s, transform .15s;
}
.lec-modal-dl-btn:hover { background: rgba(0,210,255,.22); transform: translateY(-1px); }
.lec-modal-body { line-height: 1.75; font-size: .92rem; color: rgba(255,255,255,.8); }
.lec-pdf-frame { width: 100%; height: 500px; border: none; border-radius: 8px; margin-top: .75rem; }
.lec-pdf-actions { text-align: center; padding: .5rem 0 .25rem; }
.lec-pdf-open-btn {
    display: inline-flex; align-items: center; gap: .4rem;
    padding: .45rem 1.1rem; border-radius: 8px; font-size: .85rem; font-weight: 600;
    text-decoration: none; color: #fff;
    background: rgba(0,210,255,.18); border: 1px solid rgba(0,210,255,.3);
    transition: background .2s, transform .15s;
}
.lec-pdf-open-btn:hover { background: rgba(0,210,255,.3); transform: translateY(-1px); }

/* ============================================================
   FORMS / استمارات
   ============================================================ */
.forms-filter { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 1.4rem; }
.forms-filter-btn {
    padding: .35rem 1rem; border-radius: 20px; border: 1px solid var(--glass-border);
    background: transparent; color: var(--text-muted); font-size: .8rem; font-weight: 600;
    cursor: pointer; transition: all .2s;
}
.forms-filter-btn:hover, .forms-filter-btn.active {
    background: var(--college-accent); color: #000; border-color: var(--college-accent);
}
.forms-category-title {
    font-size: .78rem; font-weight: 700; color: var(--college-accent);
    text-transform: uppercase; letter-spacing: .08em;
    border-bottom: 1px solid var(--glass-border); padding-bottom: .4rem;
    margin: 1.4rem 0 .9rem;
}
.forms-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1rem;
}
.form-card {
    background: var(--card-bg); border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm); padding: 1.2rem 1.2rem 1rem;
    display: flex; flex-direction: column; gap: .5rem;
    transition: transform .2s, border-color .2s, box-shadow .2s;
    position: relative; overflow: hidden;
}
.form-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: var(--college-accent); transform: scaleX(0); transition: transform .3s;
}
.form-card:hover { transform: translateY(-4px); border-color: rgba(var(--primary-rgb),.35); box-shadow: 0 10px 30px rgba(0,0,0,.3); }
.form-card:hover::before { transform: scaleX(1); }
.form-card-icon { font-size: 1.8rem; color: var(--college-accent); margin-bottom: .3rem; }
.form-card-title { font-size: .88rem; font-weight: 700; color: var(--text-color); line-height: 1.4; }
.form-card-desc { font-size: .76rem; color: var(--text-muted); line-height: 1.6; flex: 1; }
.form-card-footer { display: flex; align-items: center; justify-content: space-between; margin-top: .6rem; }
.form-type-badge {
    font-size: .68rem; font-weight: 700; padding: .2rem .6rem;
    border-radius: 20px;
}
.form-type-pdf  { background: rgba(220,53,69,.18); color: #ff8080; }
.form-type-word { background: rgba(13,110,253,.18); color: #7eb8ff; }
.form-type-img  { background: rgba(25,135,84,.18);  color: #6fdb8e; }
.form-type-file { background: rgba(255,255,255,.08); color: var(--text-muted); }
.btn-download {
    display: inline-flex; align-items: center; gap: .4rem;
    background: var(--college-accent); color: #000;
    padding: .35rem .9rem; border-radius: 8px;
    font-size: .76rem; font-weight: 700; text-decoration: none;
    transition: transform .2s, box-shadow .2s;
}
.btn-download:hover { transform: translateY(-2px); box-shadow: 0 4px 14px rgba(var(--primary-rgb),.4); }

/* ============================================================
   LIBRARY / المكتبة
   ============================================================ */
.lib-filter { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 1.4rem; }
.lib-filter-btn {
    padding: .35rem 1rem; border-radius: 20px; border: 1px solid var(--glass-border);
    background: transparent; color: var(--text-muted); font-size: .8rem; font-weight: 600;
    cursor: pointer; transition: all .2s;
}
.lib-filter-btn:hover, .lib-filter-btn.active {
    background: var(--college-accent); color: #000; border-color: var(--college-accent);
}
.lib-category-title {
    font-size: .78rem; font-weight: 700; color: var(--college-accent);
    letter-spacing: .07em; border-bottom: 1px solid var(--glass-border);
    padding-bottom: .4rem; margin: 1.4rem 0 .9rem;
    display: flex; align-items: center; gap: .5rem;
}
.lib-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 1rem;
}
.lib-card {
    background: var(--card-bg); border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm); padding: 1.2rem;
    display: flex; flex-direction: column; gap: .5rem;
    transition: transform .2s, border-color .2s, box-shadow .2s;
    position: relative; overflow: hidden;
}
.lib-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: var(--college-accent); transform: scaleX(0); transition: transform .3s;
}
.lib-card:hover { transform: translateY(-4px); border-color: rgba(var(--primary-rgb),.35); box-shadow: 0 10px 30px rgba(0,0,0,.3); }
.lib-card:hover::before { transform: scaleX(1); }
.lib-card-icon { font-size: 2rem; color: var(--college-accent); margin-bottom: .2rem; }
.lib-card-body { flex: 1; display: flex; flex-direction: column; gap: .3rem; }
.lib-card-title { font-size: .9rem; font-weight: 700; color: var(--text-color); line-height: 1.4; }
.lib-card-author { font-size: .76rem; color: var(--college-accent); display: flex; align-items: center; gap: .35rem; opacity: .85; }
.lib-card-desc { font-size: .76rem; color: var(--text-muted); line-height: 1.6; margin-top: .2rem; }
.lib-card-footer { display: flex; align-items: center; justify-content: space-between; margin-top: .6rem; flex-wrap: wrap; gap: .4rem; }
.lib-cat-badge {
    font-size: .68rem; font-weight: 700; padding: .2rem .65rem; border-radius: 20px;
    background: rgba(var(--primary-rgb),.12); color: var(--college-accent);
    display: inline-flex; align-items: center; gap: .3rem;
}
.btn-lib-dl {
    display: inline-flex; align-items: center; gap: .4rem;
    background: var(--college-accent); color: #000;
    padding: .33rem .85rem; border-radius: 8px;
    font-size: .76rem; font-weight: 700; text-decoration: none;
    transition: transform .2s, box-shadow .2s;
}
.btn-lib-dl:hover { transform: translateY(-2px); box-shadow: 0 4px 14px rgba(var(--primary-rgb),.4); }

/* ============================================================
   TOP STUDENTS / الطلبة الأوائل
   ============================================================ */
.ts-stage-tabs { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 1.4rem; }
.ts-stage-tab {
    padding: .38rem 1rem; border-radius: 20px; border: 1px solid var(--glass-border);
    background: transparent; color: var(--text-muted); font-size: .8rem; font-weight: 600;
    cursor: pointer; transition: all .2s;
}
.ts-stage-tab:hover, .ts-stage-tab.active {
    background: var(--college-accent); color: #000; border-color: var(--college-accent);
}
.ts-stage-section { display: none; }
.ts-stage-section.visible { display: block; }
.ts-stage-heading {
    font-size: .85rem; font-weight: 700; color: var(--college-accent);
    margin-bottom: 1.1rem; display: flex; align-items: center; gap: .6rem;
}
.ts-podium { display: flex; gap: 1rem; margin-bottom: 1.4rem; flex-wrap: wrap; }

/* بطاقة الأول — كبيرة ذهبية */
.ts-card-first {
    flex: 1; min-width: 200px; max-width: 280px;
    background: linear-gradient(145deg, rgba(var(--primary-rgb),.18), rgba(var(--primary-rgb),.06));
    border: 2px solid rgba(var(--primary-rgb),.5); border-radius: var(--radius-sm);
    padding: 1.8rem 1.4rem 1.4rem; text-align: center; position: relative;
    box-shadow: 0 8px 30px rgba(var(--primary-rgb),.15);
}
.ts-crown { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); font-size: 1.6rem; }
.ts-card-second, .ts-card-third {
    flex: 1; min-width: 160px; max-width: 220px;
    background: var(--card-bg); border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm); padding: 1.4rem 1rem 1.2rem; text-align: center; position: relative;
}
.ts-card-second { border-color: rgba(192,192,192,.35); box-shadow: 0 4px 18px rgba(192,192,192,.1); }
.ts-card-third  { border-color: rgba(205,127,50,.3);  box-shadow: 0 4px 18px rgba(205,127,50,.08); }

.ts-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px,1fr)); gap: 1rem; }
.ts-card-other {
    background: var(--card-bg); border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm); padding: 1.1rem .9rem; text-align: center;
}

/* مشترك */
.ts-avatar-wrap { position: relative; display: inline-block; margin-bottom: .7rem; }
.ts-avatar {
    width: 80px; height: 80px; border-radius: 50%; overflow: hidden;
    border: 3px solid var(--college-accent);
    background: rgba(255,255,255,.06); margin: 0 auto;
    display: flex; align-items: center; justify-content: center; font-size: 2rem;
}
.ts-card-first .ts-avatar { width: 100px; height: 100px; font-size: 2.6rem; }
.ts-avatar img { width: 100%; height: 100%; object-fit: cover; }
.ts-medal { position: absolute; bottom: -4px; right: -4px; font-size: 1.2rem; }
.ts-card-first .ts-medal { font-size: 1.4rem; }
.ts-name { font-size: .86rem; font-weight: 700; color: var(--text-color); line-height: 1.4; margin-bottom: .25rem; }
.ts-card-first .ts-name { font-size: .95rem; }
.ts-gpa {
    font-size: .78rem; font-weight: 800; color: var(--college-accent);
    background: rgba(var(--primary-rgb),.12); border-radius: 20px;
    padding: .18rem .7rem; display: inline-block; margin: .3rem 0;
}
.ts-dept { font-size: .71rem; color: var(--text-muted); margin-top: .2rem; }
.ts-year { font-size: .68rem; color: rgba(255,255,255,.3); margin-top: .15rem; }
.ts-rank-num {
    font-size: .7rem; font-weight: 800; padding: .18rem .55rem;
    border-radius: 20px; display: inline-block; margin-bottom: .4rem;
}
.ts-rank-1 { background: rgba(255,215,0,.2); color: gold; }
.ts-rank-2 { background: rgba(192,192,192,.2); color: silver; }
.ts-rank-3 { background: rgba(205,127,50,.2); color: #cd7f32; }
.ts-rank-n { background: rgba(255,255,255,.08); color: var(--text-muted); }

/* ── تبويبات الدفعة (سنة القبول) ── */
.ts-year-tabs {
    display: flex; gap: .6rem; flex-wrap: wrap;
    margin-bottom: 1.6rem; padding-bottom: .8rem;
    border-bottom: 1px solid var(--glass-border);
}
.ts-year-tab {
    padding: .42rem 1.1rem; border-radius: 24px;
    border: 1px solid var(--glass-border);
    background: transparent; color: var(--text-muted);
    font-size: .82rem; font-weight: 700; cursor: pointer;
    transition: all .25s; display: flex; align-items: center; gap: .4rem;
}
.ts-year-tab::before { content: '🎓'; font-size: .78rem; }
.ts-year-tab:hover   { border-color: var(--college-accent); color: var(--college-accent); }
.ts-year-tab.active  {
    background: linear-gradient(135deg, var(--college-accent), color-mix(in srgb, var(--college-accent) 70%, #fff));
    color: #000; border-color: transparent;
    box-shadow: 0 4px 14px color-mix(in srgb, var(--college-accent) 40%, transparent);
}
.ts-year-section { display: none; animation: tsYearIn .35s ease; }
.ts-year-section.visible { display: block; }
@keyframes tsYearIn { from { opacity:0; transform:translateY(10px); } to { opacity:1; transform:none; } }

/* ── كتلة مرحلة (عرض متتالي بدون تبويبات) ── */
.ts-stage-block {
    margin-bottom: 2.2rem;
    border-radius: var(--radius-sm);
    border: 1px solid color-mix(in srgb, var(--sc) 25%, transparent);
    overflow: hidden;
    background: color-mix(in srgb, var(--sc) 4%, transparent);
}
.ts-stage-block-header {
    display: flex; align-items: center; gap: .7rem;
    padding: .7rem 1.1rem;
    background: color-mix(in srgb, var(--sc) 12%, transparent);
    border-bottom: 1px solid color-mix(in srgb, var(--sc) 20%, transparent);
}
.ts-stage-block-dot {
    width: 10px; height: 10px; border-radius: 50%;
    background: var(--sc); flex-shrink: 0;
    box-shadow: 0 0 8px var(--sc);
}
.ts-stage-block-label {
    font-size: .88rem; font-weight: 800;
    color: color-mix(in srgb, var(--sc) 90%, #fff);
    letter-spacing: .02em;
}
.ts-stage-block-count {
    font-size: .72rem; color: var(--text-muted);
    margin-right: auto; /* push to left in RTL */
    margin-left: 0;
}
.ts-stage-block .ts-podium,
.ts-stage-block .ts-grid {
    padding: 1rem 1rem .5rem;
}
.ts-stage-block .ts-card-first { border-color: color-mix(in srgb, var(--sc) 60%, rgba(var(--primary-rgb),.5)); }

/* ── بطاقة الأول على الدفعة ── */
.ts-cohort-top-section {
    margin-bottom: 2rem; text-align: center;
}
.ts-cohort-top-label {
    font-size: .82rem; font-weight: 800; color: gold;
    letter-spacing: .04em; margin-bottom: 1rem;
    display: flex; align-items: center; justify-content: center; gap: .5rem;
    text-transform: uppercase;
}
.ts-cohort-crown { font-size: 1.3rem; }
.ts-cohort-card {
    display: inline-block; position: relative;
    background: linear-gradient(145deg, rgba(var(--primary-rgb),.22), rgba(var(--primary-rgb),.07));
    border: 2px solid rgba(var(--primary-rgb),.6); border-radius: var(--radius-sm);
    padding: 2.2rem 2.4rem 1.6rem; text-align: center;
    box-shadow: 0 10px 40px rgba(var(--primary-rgb),.25), 0 0 0 1px rgba(var(--primary-rgb),.12);
    min-width: 220px;
}
.ts-cohort-glow {
    position: absolute; inset: -1px; border-radius: inherit;
    background: radial-gradient(ellipse at top, rgba(var(--primary-rgb),.18) 0%, transparent 70%);
    pointer-events: none;
    animation: cohortGlow 2.5s ease-in-out infinite alternate;
}
@keyframes cohortGlow {
    from { opacity: .5; }
    to   { opacity: 1; box-shadow: 0 0 30px rgba(var(--primary-rgb),.35); }
}
.ts-avatar-cohort { width: 120px !important; height: 120px !important; font-size: 3rem !important;
    border-width: 4px !important; border-color: gold !important; }
.ts-cohort-name { font-size: 1.05rem !important; font-weight: 800; color: #fff; }
.ts-cohort-gpa  { font-size: .9rem !important; background: rgba(var(--primary-rgb),.2) !important; }

/* ── فاصل بين تبويبات المراحل والدفعة ── */
.ts-stage-tabs { margin-top: 1rem; }

/* ── مصفوفة أعمدة الأقسام × صفوف المراتب ── */
.ts-dept-matrix { padding: 1rem; overflow-x: auto; }
.ts-matrix-row {
    display: grid;
    grid-template-columns: 44px repeat(var(--col-count, 1), minmax(130px, 1fr));
    gap: .5rem; margin-bottom: .5rem;
    border-radius: 8px; padding: .25rem;
}
.ts-matrix-header-row { margin-bottom: .8rem; }
.ts-matrix-rank-lbl {
    display: flex; align-items: center; justify-content: center;
    font-size: 1.35rem; flex-shrink: 0; padding-top: .3rem;
}
.ts-matrix-dept-head {
    text-align: center; font-size: .73rem; font-weight: 800;
    color: var(--college-accent); padding: .5rem .4rem;
    background: rgba(255,255,255,.04); border-radius: 8px;
    border: 1px solid rgba(255,255,255,.08); line-height: 1.35;
    word-break: break-word;
}
.ts-matrix-cell { min-width: 0; }
.ts-matrix-empty {
    min-height: 80px; border: 1px dashed rgba(255,255,255,.07);
    border-radius: 8px; background: rgba(255,255,255,.01);
}
/* ── بادج الطالب المدمج ── */
.ts-badge-card {
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    padding: .9rem .5rem .7rem; text-align: center; position: relative;
    height: 100%; box-sizing: border-box;
    transition: transform .2s, box-shadow .2s;
    backdrop-filter: blur(6px);
}
.ts-badge-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,.3); }
.ts-avatar-sm { width: 60px !important; height: 60px !important; font-size: 1.5rem !important; }
@media (max-width: 600px) {
    .ts-matrix-row { grid-template-columns: 34px repeat(var(--col-count,1), minmax(110px,1fr)); gap: .35rem; }
    .ts-badge-card  { padding: .7rem .35rem .6rem; }
    .ts-avatar-sm   { width: 48px !important; height: 48px !important; }
}

/* ============================================================
   SCHEDULES / الجداول الدراسية
   ============================================================ */
.sch-stage-tabs { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 1.4rem; }
.sch-stage-tab {
    padding: .38rem 1rem; border-radius: 20px; border: 1px solid var(--glass-border);
    background: transparent; color: var(--text-muted); font-size: .8rem; font-weight: 600;
    cursor: pointer; transition: all .2s;
}
.sch-stage-tab:hover, .sch-stage-tab.active {
    background: var(--college-accent); color: #000; border-color: var(--college-accent);
}
.sch-stage-section { display: none; }
.sch-stage-section.visible { display: block; }
/* ── شبكة بطاقات الجداول ── */
.sch-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1.1rem;
}
.sch-card {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: .6rem;
    width: 300px;
    flex-shrink: 0;
    transition: transform .2s, border-color .2s;
    box-sizing: border-box;
}
.sch-card:hover { transform: translateY(-3px); border-color: rgba(var(--primary-rgb),.3); }
.sch-card-top { display: flex; align-items: flex-start; gap: .7rem; }
.sch-card-icon { font-size: 1.4rem; color: var(--college-accent); flex-shrink: 0; }
.sch-card-title { font-size: .85rem; font-weight: 700; color: var(--text-color); line-height: 1.4; }
.sch-card-dept { font-size: .74rem; color: var(--text-muted); margin-top: .2rem; }
.sch-badges { display: flex; gap: .4rem; flex-wrap: wrap; }
.sch-sem-badge { font-size: .69rem; font-weight: 700; padding: .18rem .6rem; border-radius: 20px; }
.sch-sem-1 { background: rgba(var(--primary-rgb),.15); color: var(--college-accent); }
.sch-sem-2 { background: rgba(var(--accent-rgb),.15); color: #7eb8ff; }
.sch-year-badge { font-size: .68rem; background: rgba(255,255,255,.06); color: var(--text-muted); padding: .18rem .6rem; border-radius: 20px; }
.sch-type-badge { font-size: .68rem; padding: .18rem .55rem; border-radius: 20px; }
.sch-type-pdf { background: rgba(220,53,69,.18); color: #ff8080; }
.sch-type-img { background: rgba(25,135,84,.18); color: #6fdb8e; }
.sch-card-actions { display: flex; gap: .5rem; flex-wrap: wrap; }
.btn-sch-view {
    display: inline-flex; align-items: center; gap: .35rem;
    background: rgba(var(--primary-rgb),.15); color: var(--college-accent);
    border: 1px solid rgba(var(--primary-rgb),.3); padding: .32rem .8rem;
    border-radius: 8px; font-size: .75rem; font-weight: 700;
    cursor: pointer; transition: background .2s; white-space: nowrap;
    text-decoration: none;
}
.btn-sch-view:hover { background: rgba(var(--primary-rgb),.28); }
.btn-sch-dl {
    display: inline-flex; align-items: center; gap: .35rem;
    background: rgba(255,255,255,.06); color: var(--text-muted);
    border: 1px solid var(--glass-border); padding: .32rem .8rem;
    border-radius: 8px; font-size: .75rem; font-weight: 600;
    text-decoration: none; white-space: nowrap; transition: background .2s;
}
.btn-sch-dl:hover { background: rgba(255,255,255,.1); color: var(--text-color); }

/* ── معاينة الجدول (thumbnail) ── */
.sch-card-thumb {
    position: relative;
    width: 100%;
    height: 170px;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    background: rgba(0,0,0,.3);
    border: 1px solid var(--glass-border);
    transition: border-color .2s;
    flex-shrink: 0;
}
.sch-card-thumb:hover { border-color: rgba(var(--primary-rgb),.4); }
.sch-card-thumb img {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: contain;
    display: block;
    transition: transform .3s;
}
.sch-card-thumb:hover img { transform: scale(1.04); }
.sch-thumb-overlay {
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
    background: rgba(0,0,0,0); color: #fff; font-size: 1.6rem;
    opacity: 0; transition: background .25s, opacity .25s;
}
.sch-card-thumb:hover .sch-thumb-overlay { background: rgba(0,0,0,.35); opacity: 1; }
.sch-pdf-thumb {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: .5rem; color: var(--text-muted);
}
.sch-pdf-thumb .fa-file-pdf { color: #ff8080; font-size: 2.8rem; }
.sch-pdf-thumb > span { font-size: .78rem; font-weight: 700; color: #ff8080; }
.sch-thumb-err { display: flex; align-items: center; justify-content: center; font-size: 2rem; color: rgba(255,255,255,.2); height: 100%; }
.sch-no-data-thumb {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: .4rem; color: rgba(248,113,113,.7); font-size: 1.6rem;
    cursor: default; border-color: rgba(239,68,68,.2) !important;
    background: rgba(239,68,68,.04) !important;
}
.sch-no-data-thumb span { font-size: .7rem; font-weight: 600; }

/* Modal لعرض الجداول (الصور) */
.sch-modal-overlay {
    display: none; position: fixed; inset: 0; background: rgba(0,0,0,.9);
    backdrop-filter: blur(8px); z-index: 9500; align-items: center;
    justify-content: center; padding: 1rem;
}
.sch-modal-overlay.active { display: flex; }
.sch-modal {
    position: relative; max-width: 95vw; max-height: 92vh;
    background: #0a1535; border: 1px solid var(--glass-border);
    border-radius: var(--radius); overflow: hidden;
    animation: schModalIn .28s cubic-bezier(.34,1.56,.64,1);
}
@keyframes schModalIn { from { opacity:0; transform:scale(.9) } to { opacity:1; transform:scale(1) } }
.sch-modal-close {
    position: absolute; top: .6rem; left: .6rem; z-index: 10;
    width: 36px; height: 36px; border-radius: 50%;
    background: rgba(0,0,0,.6); border: 1px solid rgba(255,255,255,.15);
    color: #fff; cursor: pointer; font-size: 1rem;
    display: flex; align-items: center; justify-content: center;
    transition: background .2s;
}
.sch-modal-close:hover { background: rgba(220,53,69,.7); }
.sch-modal img { display: block; max-width: 90vw; max-height: 88vh; object-fit: contain; }

/* ============================================================
   NAV DROPDOWN — قائمة "المزيد" المنسدلة
   ============================================================ */
.nav-dropdown { position: relative; }

.nav-dropdown-btn {
    display: flex; align-items: center; gap: 5px;
    padding: .45rem .7rem;
    color: rgba(255,255,255,.85);
    font-size: .8rem; font-weight: 600;
    border: none; background: none; cursor: pointer;
    border-radius: 8px;
    transition: color .2s, background .2s;
    white-space: nowrap;
}
.nav-dropdown-btn:hover { color: var(--primary-color); background: rgba(var(--primary-rgb),.1); }
.nav-dropdown-btn.open { color: var(--college-accent); background: rgba(255,255,255,.08); }

.nav-chevron {
    font-size: .65rem; transition: transform .22s;
}
.nav-dropdown-btn.open .nav-chevron { transform: rotate(180deg); }

.nav-dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    min-width: 200px;
    background: rgba(var(--body-bg-rgb),.97);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(0,0,0,.5);
    list-style: none;
    padding: .5rem 0;
    z-index: 2000;
    animation: dropIn .18s ease;
}
@keyframes dropIn { from { opacity:0; transform:translateY(-8px) } to { opacity:1; transform:translateY(0) } }
.nav-dropdown-menu.open { display: block; }

.nav-dropdown-menu li a {
    display: flex; align-items: center; gap: .55rem;
    padding: .55rem 1.1rem;
    color: rgba(255,255,255,.8);
    font-size: .81rem; font-weight: 500;
    text-decoration: none;
    transition: background .15s, color .15s;
    white-space: nowrap;
}
.nav-dropdown-menu li a i { color: var(--college-accent); width: 16px; text-align: center; font-size: .8rem; }
.nav-dropdown-menu li a:hover { background: rgba(var(--primary-rgb),.1); color: #fff; }

.nav-dropdown-divider {
    height: 1px; background: var(--glass-border);
    margin: .4rem 0;
}

/* على الموبايل: المنسدلة تظهر inline */
@media (max-width: 900px) {
    .nav-dropdown-menu {
        position: static;
        background: rgba(255,255,255,.04);
        border: none; box-shadow: none;
        border-radius: 0;
        border-right: 2px solid var(--college-accent);
        margin: .2rem 0 .2rem 1rem;
        padding: 0;
        animation: none;
    }
    .nav-dropdown-menu.open { display: block; }
    .nav-dropdown-menu li a { padding: .45rem .8rem; font-size: .8rem; }
    .nav-dropdown-divider { margin: .25rem 0; }
}

/* ================================================================
   THEME TOGGLE BUTTON
   ================================================================ */
.theme-toggle-btn {
    width: 36px; height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(var(--primary-rgb),.4);
    background: rgba(var(--primary-rgb),.12);
    color: var(--primary-color);
    font-size: 1rem;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; transition: background .2s, transform .3s;
    flex-shrink: 0;
}
.theme-toggle-btn:hover { background: rgba(var(--primary-rgb),.28); transform: rotate(20deg); }

/* ================================================================
   LIGHT MODE — body.light-mode
   ================================================================ */
body.light-mode {
    --body-bg: #050d2e;
    --bg-gradient:   linear-gradient(-45deg,#dbeafe,#e0f2fe,#f0fdf4,#fef9c3);
    --glass-bg:      rgba(255,255,255,.72);
    --glass-bg2:     rgba(255,255,255,.88);
    --glass-border:  rgba(0,0,0,.1);
    --text-color:    #1e293b;
    --text-muted:    rgba(30,41,59,.6);
    --card-bg:       rgba(255,255,255,.82);
    --shadow:        0 4px 24px rgba(0,0,0,.08);
    background-color: #e8f0fe;
    color: #1e293b;
}

/* Preloader */
body.light-mode #preloader { background: #dbeafe; }
body.light-mode #preloader .preloader-bar { background: rgba(0,0,0,.08); }

/* Particles — خفض الوضوح في النهاري */
body.light-mode #particles-canvas { opacity: .06; }

/* Navbar */
body.light-mode .navbar {
    background: rgba(255,255,255,.9);
    border-bottom: 1px solid rgba(0,0,0,.1);
    box-shadow: 0 4px 20px rgba(0,0,0,.08);
}
body.light-mode .nav-links > li > a,
body.light-mode .nav-links > li > button { color: #334155; }
body.light-mode .nav-links > li > a:hover,
body.light-mode .nav-links > li > a.active { color: var(--primary-color); background: rgba(var(--primary-rgb),.1); }
body.light-mode .nav-dropdown-btn:hover { color: var(--primary-color); }
body.light-mode .nav-dropdown-menu {
    background: rgba(255,255,255,.97);
    border-color: rgba(0,0,0,.1);
    box-shadow: 0 8px 28px rgba(0,0,0,.12);
}
body.light-mode .nav-dropdown-menu li a { color: #334155; }
body.light-mode .nav-dropdown-menu li a:hover { background: rgba(var(--primary-rgb),.08); color: #1e293b; }
body.light-mode .logo-sub { color: rgba(30,41,59,.6); }
body.light-mode .menu-toggle span { background: #334155; }

/* Ticker */
body.light-mode .news-ticker {
    background: rgba(var(--primary-rgb),.08);
    border-bottom: 1px solid rgba(var(--primary-rgb),.2);
}
body.light-mode .ticker-text { color: #334155; }

/* Section titles */
body.light-mode .section-title h2 {
    background: linear-gradient(135deg, var(--college-accent), var(--primary-color));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}
body.light-mode .section-title p   { color: rgba(30,41,59,.6); }
body.light-mode .section-divider   { background: linear-gradient(90deg, transparent, var(--primary-color), transparent); opacity: .5; }

/* Stat blocks */
body.light-mode .stat-number { color: var(--primary-color); }
body.light-mode .stat-label  { color: rgba(30,41,59,.65); }

/* Cards / Glass */
body.light-mode .glass      { background: rgba(255,255,255,.75); border-color: rgba(0,0,0,.1); }
body.light-mode .glass-card { background: rgba(255,255,255,.85); border-color: rgba(0,0,0,.08); }

/* Form inputs in contact section */
body.light-mode .form-input,
body.light-mode .form-select,
body.light-mode .form-textarea {
    background: rgba(255,255,255,.9);
    border-color: rgba(0,0,0,.15);
    color: #1e293b;
}
body.light-mode .form-input::placeholder,
body.light-mode .form-textarea::placeholder { color: rgba(30,41,59,.4); }
body.light-mode .form-group label { color: rgba(30,41,59,.75); }

/* Contact info card */
body.light-mode .contact-info-card,
body.light-mode .contact-form-card { color: #1e293b; }
body.light-mode .contact-row p { color: #334155; }
body.light-mode .contact-row i { color: var(--primary-color); }

/* Footer */
body.light-mode footer {
    background: rgba(255,255,255,.85);
    border-top: 1px solid rgba(0,0,0,.1);
    color: #334155;
}
body.light-mode .footer-copy { color: rgba(30,41,59,.55); }

/* Mobile menu overlay */
body.light-mode .nav-menu { background: rgba(255,255,255,.97); }
body.light-mode .mobile-overlay { background: rgba(0,0,0,.2); }

/* Scroll progress bar — keep as is */
body.light-mode #scroll-progress { opacity: .8; }

/* Quick links */
body.light-mode .quick-link-item { color: #334155; }
body.light-mode .quick-link-item:hover { color: var(--primary-color); }

/* ══════════════════════════════════════════════
   Expand-on-Hover Staff Strip
   ══════════════════════════════════════════════ */
.staff-strip {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    height: 26rem;
    overflow: hidden;
    padding: 0 1rem;
    box-sizing: border-box;
}
.staff-strip-item {
    position: relative;
    width: 5rem;
    min-width: 5rem;
    height: 100%;
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    transition: width 500ms ease-in-out, min-width 500ms ease-in-out;
    flex-shrink: 0;
}
.staff-strip-item.active {
    width: 24rem;
    min-width: 24rem;
}
.staff-strip-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: none;
}
.staff-strip-avatar-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,.07);
    font-size: 3rem;
}
.staff-strip-info {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    background: linear-gradient(to top, rgba(0,0,0,.85) 0%, transparent 100%);
    padding: 1.5rem 1rem 1rem;
    opacity: 0;
    transition: opacity 300ms ease;
    pointer-events: none;
}
.staff-strip-item.active .staff-strip-info { opacity: 1; }
.staff-strip-info .ssi-name {
    font-size: .95rem;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: .2rem;
}
.staff-strip-info .ssi-rank {
    font-size: .75rem;
    color: rgba(255,255,255,.65);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.staff-strip-info .ssi-details-btn {
    display: inline-block;
    margin-top: .55rem;
    font-size: .72rem;
    color: var(--college-accent, #d4a820);
    border: 1px solid var(--college-accent, #d4a820);
    padding: .2rem .65rem;
    border-radius: 20px;
    pointer-events: none;
}
@media (max-width: 700px) {
    .staff-strip {
        flex-wrap: wrap;
        height: auto;
        gap: .75rem;
    }
    .staff-strip-item,
    .staff-strip-item.active {
        width: calc(50% - .4rem);
        min-width: 0;
        height: 14rem;
    }
    .staff-strip-info { opacity: 1; }
}
