/* ============================================
   جامعة وادي الشاطئ - Wadi Shatti University
   Stylesheet - Main CSS
   ============================================ */

:root {
    --primary: #1a365d;
    --primary-light: #2c5282;
    --primary-dark: #0f2744;
    --accent: #c9a227;
    --accent-light: #e2c35a;
    --text: #1a202c;
    --text-light: #4a5568;
    --text-muted: #718096;
    --bg: #f7fafc;
    --bg-white: #ffffff;
    --border: #e2e8f0;
    --shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
    --shadow-lg: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
    --radius: 12px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Tajawal', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    overflow-x: hidden;
}

/* Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--primary-light); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary); }

/* ============================================
   ACCESSIBILITY: screen-reader text & skip link
   -----------------------------------------------
   Standard WordPress-accessibility-ready pattern: text is visually
   hidden off-screen by default (still read by screen readers), and
   the skip link becomes visible only when it receives keyboard focus
   — so keyboard/screen-reader users can jump straight past the
   header/navigation to the main content, without a stray visible
   link cluttering the page for everyone else.
   ============================================ */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute !important;
    width: 1px;
    word-wrap: normal !important;
}
.skip-link.screen-reader-text:focus {
    background: var(--primary-dark);
    color: #fff;
    display: block;
    font-weight: 700;
    height: auto;
    right: 6px;
    clip: auto !important;
    clip-path: none;
    margin: 0;
    outline: 2px solid var(--accent);
    padding: 14px 22px;
    position: fixed !important;
    top: 6px;
    left: auto;
    width: auto;
    z-index: 100000;
    border-radius: 6px;
    text-decoration: none;
}
body.dir-ltr .skip-link.screen-reader-text:focus { right: auto; left: 6px; }

/* Visible keyboard-focus outline for all interactive elements —
   without this, keyboard users tabbing through the menu/links have
   no visual indication of where focus currently is. */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* ============================================
   TOP BAR
   ============================================ */
.top-bar {
    background: var(--primary-dark);
    color: white;
    padding: 8px 0;
    font-size: 0.85rem;
}
.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
}
.top-bar-left { display: flex; gap: 24px; align-items: center; }
.top-bar-left span { display: flex; align-items: center; gap: 6px; opacity: 0.9; }
.top-bar-left i { color: var(--accent); font-size: 0.8rem; }
.top-bar-services { display: flex; gap: 4px; align-items: center; flex: 1; justify-content: center; }
.top-bar-services a {
    display: flex; align-items: center; gap: 6px;
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    padding: 6px 14px;
    border-radius: 20px;
    transition: var(--transition);
    white-space: nowrap;
}
.top-bar-services a:hover { background: rgba(255,255,255,0.12); color: white; }
.top-bar-services i { color: var(--accent); font-size: 0.8rem; }
@media (max-width: 1100px) {
    .top-bar-services { display: none; }
}
.lang-switch {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: white;
    padding: 4px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-family: 'Tajawal', sans-serif;
    font-size: 0.85rem;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}
.lang-switch:hover { background: var(--accent); color: var(--primary-dark); border-color: var(--accent); }

/* ============================================
   HEADER & NAVIGATION
   ============================================ */
.header {
    background: var(--bg-white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}
.header .container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}
.logo {
    display: flex;
    align-items: center;
    gap: 16px;
    text-decoration: none;
}
.logo-icon {
    width: 55px;
    height: 55px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    font-weight: 800;
    box-shadow: 0 4px 12px rgba(26, 54, 93, 0.3);
}
.logo-text { display: flex; flex-direction: column; }
.logo-text-site-name {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1.2;
    margin: 0;
}
.logo-text span {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
    letter-spacing: 1px;
}

.nav-desktop { display: flex; align-items: center; gap: 4px; }
.nav-item {
    position: relative;
    padding: 28px 14px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text);
    transition: var(--transition);
    border-bottom: 3px solid transparent;
}
.nav-item:hover, .nav-item:focus-within { color: var(--primary); border-bottom-color: var(--accent); }

.dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--bg-white);
    min-width: 280px;
    box-shadow: var(--shadow-lg);
    border-radius: 0 0 var(--radius) var(--radius);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    border-top: 3px solid var(--accent);
    overflow: hidden;
}
/* Pure hover reveal (mouse), plus :focus-within for keyboard/Tab users
   and .open for the touch-tap fallback in main.js — no arrow icon needed,
   the dropdown itself is the only affordance, same as leading university sites. */
.nav-item:hover .dropdown,
.nav-item:focus-within .dropdown,
.nav-item.open .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    color: var(--text);
    text-decoration: none;
    transition: var(--transition);
    border-bottom: 1px solid var(--border);
}
.dropdown-item:last-child { border-bottom: none; }
.dropdown-item:hover { background: var(--bg); color: var(--primary); padding-right: 28px; }
.dropdown-item i { color: var(--accent); width: 20px; text-align: center; }

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--primary);
    cursor: pointer;
    padding: 8px;
}

.site-search-toggle {
    background: none;
    border: none;
    font-size: 1.2rem;
    color: var(--primary);
    cursor: pointer;
    padding: 8px;
    margin-inline-start: 6px;
    border-radius: 50%;
    transition: var(--transition);
}
.site-search-toggle:hover { background: var(--bg); color: var(--accent); }

.site-search-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 39, 68, 0.94);
    z-index: 2000;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 12vh 24px 24px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}
.site-search-overlay.active { opacity: 1; visibility: visible; }
.site-search-box {
    background: var(--bg-white);
    border-radius: var(--radius);
    padding: 40px;
    width: 100%;
    max-width: 640px;
    position: relative;
    box-shadow: var(--shadow-lg);
    transform: translateY(-20px);
    transition: transform 0.25s ease;
}
.site-search-overlay.active .site-search-box { transform: translateY(0); }
.site-search-close {
    position: absolute;
    top: 16px;
    inset-inline-end: 16px;
    background: var(--bg);
    border: none;
    width: 36px; height: 36px;
    border-radius: 50%;
    font-size: 1rem;
    color: var(--text-light);
    cursor: pointer;
}
.site-search-close:hover { background: var(--border); color: var(--primary); }
.wau-search-form {
    display: flex;
    gap: 10px;
    border: 2px solid var(--border);
    border-radius: 10px;
    padding: 6px 6px 6px 16px;
}
.wau-search-form:focus-within { border-color: var(--accent); }
.wau-search-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 1.1rem;
    font-family: inherit;
    background: transparent;
}
.wau-search-btn {
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 8px;
    width: 44px;
    cursor: pointer;
    transition: var(--transition);
}
.wau-search-btn:hover { background: var(--accent); }
.site-search-hint { margin-top: 16px; color: var(--text-muted); font-size: 0.85rem; }
body.search-open { overflow: hidden; }

/* ============================================
   HERO SLIDER
   ============================================ */
.hero {
    position: relative;
    height: 600px;
    overflow: hidden;
    background: var(--primary-dark);
}
.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1s ease;
    display: flex;
    align-items: center;
}
.hero-slide.active { opacity: 1; }
.hero-slide-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: brightness(0.62) saturate(1.05);
}
.hero-slide-bg::after { content: ''; }
video.hero-slide-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}
.hero-slide::before {
    /* Editorial gradient overlay (deep navy → transparent) instead of a flat
       brightness dim, so text stays sharp against any photo while the image
       itself keeps more of its natural color and detail. */
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    /* "to left" (not a fixed angle) so the dark edge always sits behind the
       text side: right edge in RTL/Arabic, and flipped to the left edge
       automatically for LTR/English via the html[dir] rule below. */
    background: linear-gradient(to left, rgba(15,39,68,0.94) 0%, rgba(15,39,68,0.72) 38%, rgba(15,39,68,0.25) 68%, rgba(15,39,68,0.05) 100%),
                linear-gradient(0deg, rgba(15,39,68,0.55) 0%, rgba(15,39,68,0) 35%);
}
.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
}
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--accent);
    color: var(--primary-dark);
    padding: 6px 18px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 20px;
}
.hero-title {
    font-family: 'Amiri', 'Tajawal', serif;
    font-size: 3.2rem;
    font-weight: 700;
    color: white;
    line-height: 1.25;
    margin-bottom: 20px;
    max-width: 700px;
}
.hero-desc {
    font-size: 1.2rem;
    color: rgba(255,255,255,0.85);
    max-width: 600px;
    margin-bottom: 32px;
    line-height: 1.8;
}
.hero-btns { display: flex; gap: 16px; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    font-family: 'Tajawal', sans-serif;
    border: none;
}
.btn-primary {
    background: var(--accent);
    color: var(--primary-dark);
}
.btn-primary:hover { background: var(--accent-light); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(201, 162, 39, 0.3); }
.btn-outline {
    background: transparent;
    color: white;
    border: 2px solid rgba(255,255,255,0.3);
}
.btn-outline:hover { background: white; color: var(--primary); border-color: white; }
.btn-outline-primary {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--border);
}
.btn-outline-primary:hover { background: var(--bg); border-color: var(--primary); transform: translateY(-2px); }

.hero-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 3;
}
.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}
.dot.active { background: var(--accent); border-color: white; transform: scale(1.2); }
.dot:hover { background: white; }

/* ============================================
   QUICK E-SERVICES (floats over hero bottom edge)
   ============================================ */
.quick-services-wrap {
    position: relative;
    z-index: 5;
    margin-top: -44px;
}
.quick-services {
    background: var(--bg-white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    display: grid;
    grid-template-columns: repeat(6, 1fr);
}
.quick-service-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-align: center;
    padding: 24px 12px;
    text-decoration: none;
    color: var(--text);
    border-inline-end: 1px solid var(--border);
    transition: var(--transition);
}
.quick-services a:last-child { border-inline-end: none; }
.quick-service-item:hover { background: var(--bg); }
.quick-service-icon {
    width: 48px; height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem;
    transition: var(--transition);
}
.quick-service-item:hover .quick-service-icon {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
    transform: translateY(-4px);
}
.quick-service-item span { font-size: 0.9rem; font-weight: 700; }
@media (max-width: 900px) {
    .quick-services { grid-template-columns: repeat(3, 1fr); }
    .quick-service-item { border-bottom: 1px solid var(--border); }
}
@media (max-width: 560px) {
    .quick-services { grid-template-columns: repeat(2, 1fr); }
    .quick-services-wrap { margin-top: -24px; }
    .quick-service-item { padding: 16px 8px; }
    .quick-service-item span { font-size: 0.78rem; }
}

/* ============================================
   STATS BAR
   ============================================ */
.stats-bar {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    padding: 40px 0;
    position: relative;
    overflow: hidden;
}
.stats-bar::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}
.stats-bar .container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    position: relative;
    z-index: 1;
}
.stat-item {
    text-align: center;
    color: white;
    padding: 20px;
    border-radius: var(--radius);
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(10px);
    transition: var(--transition);
}
.stat-item:hover { transform: translateY(-5px); background: rgba(255,255,255,0.15); }
.stat-icon {
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 12px;
}
.stat-number {
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 8px;
    font-family: 'Inter', sans-serif;
}
.stat-label { font-size: 1rem; opacity: 0.9; font-weight: 500; }

/* ============================================
   SECTIONS & CONTAINER
   ============================================ */
.section { padding: 80px 0; }
.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}
.section-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    /* A deliberately darker gold than --accent: the brand gold
       (#c9a227) only reaches ~2.5:1 contrast against a white
       background at this text size, below the WCAG AA 4.5:1
       minimum for body-size text. This shade keeps the same gold
       hue while passing AA (~4.8:1) on white/light section
       backgrounds, which is where this label appears everywhere
       except the dark research section below. */
    color: #8f7112;
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 12px;
}
.section-title {
    font-family: 'Amiri', 'Tajawal', serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 16px;
    line-height: 1.35;
    position: relative;
    padding-bottom: 18px;
}
.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 50%;
    transform: translateX(50%);
    width: 64px;
    height: 3px;
    background: linear-gradient(90deg, var(--accent) 0%, var(--accent-light) 100%);
    border-radius: 3px;
}
.section-desc {
    color: var(--text-light);
    font-size: 1.1rem;
    line-height: 1.8;
}
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ============================================
   ABOUT SECTION
   ============================================ */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}
.about-image {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}
.about-image img { width: 100%; height: 500px; object-fit: cover; display: block; }
.about-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(26,54,93,0.8) 100%);
}
.about-image-content {
    position: absolute;
    bottom: 30px;
    right: 30px;
    left: 30px;
    z-index: 2;
    color: white;
}
.about-image-content h3 { font-size: 1.5rem; font-weight: 800; margin-bottom: 8px; }
.about-image-content p { opacity: 0.9; font-size: 0.95rem; }
.about-text h3 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 20px;
    line-height: 1.4;
}
.about-text p {
    color: var(--text-light);
    margin-bottom: 20px;
    font-size: 1.05rem;
    line-height: 1.9;
}
.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 30px;
}
.about-feature {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px;
    background: var(--bg-white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
}
.about-feature:hover { transform: translateX(-5px); box-shadow: var(--shadow-lg); }
.about-feature i {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: white;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}
.about-feature h4 { font-weight: 700; color: var(--primary); margin-bottom: 4px; }
.about-feature p { font-size: 0.9rem; color: var(--text-muted); margin: 0; }

/* ============================================
   FACULTIES
   ============================================ */
.faculties-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.faculty-card {
    background: var(--bg-white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    cursor: pointer;
    position: relative;
}
.faculty-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.faculty-card-header {
    height: 160px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}
.faculty-card-header::before {
    content: '';
    position: absolute;
    width: 150px;
    height: 150px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
    top: -50px;
    right: -50px;
}
.faculty-card-header i {
    font-size: 3.5rem;
    color: rgba(255,255,255,0.9);
    position: relative;
    z-index: 1;
}
.faculty-card-header img {
    width: 96px;
    height: 96px;
    object-fit: contain;
    background: #fff;
    border-radius: 50%;
    padding: 8px;
    position: relative;
    z-index: 1;
    box-shadow: 0 4px 14px rgba(0,0,0,0.15);
    transition: var(--transition);
}
.faculty-card:hover .faculty-card-header img { transform: scale(1.06); }

/* Single college hero logo */
.college-logo {
    width: 110px;
    height: 110px;
    flex-shrink: 0;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 20px rgba(0,0,0,0.18);
}
.college-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 50%;
    padding: 10px;
}
.college-logo i {
    font-size: 2.8rem;
    color: var(--primary);
}
@media (max-width: 576px) {
    .college-logo { width: 84px; height: 84px; }
    .college-logo i { font-size: 2.2rem; }
}
.faculty-card-body { padding: 24px; }
.faculty-card-body h3 {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 10px;
}
.faculty-card-body p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 16px;
}
.faculty-meta {
    display: flex;
    gap: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}
.faculty-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 600;
}
.faculty-meta i { color: var(--accent); font-size: 0.9rem; }

.faculty-card-facts { list-style: none; margin-bottom: 6px; }
.faculty-card-facts li {
    display: flex; align-items: center; gap: 8px;
    font-size: 0.85rem; color: var(--text-muted);
    padding: 3px 0;
}
.faculty-card-facts li i { color: var(--accent); width: 14px; text-align: center; }

.college-search-box {
    position: relative;
    max-width: 480px;
    margin: 0 auto 40px;
}
.college-search-box i {
    position: absolute;
    top: 50%; transform: translateY(-50%);
    inset-inline-start: 20px;
    color: var(--text-muted);
}
.college-search-box input {
    width: 100%;
    padding: 16px 50px;
    border: 2px solid var(--border);
    border-radius: 30px;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}
.college-search-box input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(201,162,39,0.12); }
.college-search-empty {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 24px;
}
.college-search-empty i { color: var(--accent); }

.program-toolbar {
    display: flex;
    gap: 16px;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 32px;
}
.program-toolbar .college-search-box { margin: 0; flex: 1; min-width: 260px; max-width: 420px; }
.program-college-select {
    padding: 14px 20px;
    border: 2px solid var(--border);
    border-radius: 30px;
    font-family: inherit;
    font-size: 0.95rem;
    background: var(--bg-white);
    color: var(--text);
    cursor: pointer;
    transition: var(--transition);
}
.program-college-select:focus { outline: none; border-color: var(--accent); }

.level-badge {
    display: inline-block;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 700;
    margin-bottom: 10px;
}
.level-badge.bachelor { background: #c6f6d5; color: #276749; }
.level-badge.master { background: #bee3f8; color: #2b6cb0; }
.level-badge.phd { background: #fed7d7; color: #c53030; }

/* ============================================
   NEWS & EVENTS
   ============================================ */
.news-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
}
.news-main {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}
.news-card {
    background: var(--bg-white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}
.news-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.news-card.featured { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; }
.news-card-img {
    height: 200px;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.news-placeholder-icon { font-size: 2.6rem; color: rgba(255,255,255,0.35); }
.news-card.featured .news-card-img { height: auto; }
.news-card-img img { width: 100%; height: 100%; object-fit: cover; }
.news-card-img::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,0.7) 100%);
}
.news-tag {
    position: absolute;
    top: 16px;
    right: 16px;
    background: var(--accent);
    color: var(--primary-dark);
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    z-index: 2;
}
.news-card-body { padding: 24px; }
.news-date {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 12px;
    font-weight: 500;
}
.news-card-body h3 {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 12px;
    line-height: 1.5;
}
.news-card-body p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.7;
}
.read-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    font-weight: 700;
    text-decoration: none;
    margin-top: 16px;
    font-size: 0.95rem;
    transition: var(--transition);
}
.read-more:hover { gap: 14px; color: var(--accent); }

.events-sidebar { display: flex; flex-direction: column; gap: 20px; }
.events-sidebar-title { display: flex; align-items: center; gap: 8px; color: var(--primary); font-size: 1.15rem; margin: 0 0 4px; padding-bottom: 14px; border-bottom: 2px solid var(--border); }
.events-sidebar-title i { color: var(--accent); }
.event-item {
    background: var(--bg-white);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow);
    display: flex;
    gap: 16px;
    align-items: center;
    transition: var(--transition);
    cursor: pointer;
}
.event-item:hover { transform: translateX(-5px); box-shadow: var(--shadow-lg); }
.event-date {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.event-date .day { font-size: 1.4rem; font-weight: 900; line-height: 1; }
.event-date .month { font-size: 0.75rem; font-weight: 600; opacity: 0.9; }
.event-info h4 { font-weight: 800; color: var(--primary); margin-bottom: 6px; font-size: 1rem; }
.event-info p { color: var(--text-muted); font-size: 0.85rem; display: flex; align-items: center; gap: 6px; }
.event-info i { color: var(--accent); }

/* ============================================
   SERVICES
   ============================================ */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.service-card {
    background: var(--bg-white);
    border-radius: var(--radius);
    padding: 40px 30px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border);
}
.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}
.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 100%);
    transform: scaleX(0);
    transition: transform 0.3s;
}
.service-card:hover::before { transform: scaleX(1); }
.service-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin: 0 auto 24px;
    transition: var(--transition);
}
.service-card:hover .service-icon {
    transform: rotateY(360deg);
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
    color: var(--primary-dark);
}
.service-card h3 { font-size: 1.3rem; font-weight: 800; color: var(--primary); margin-bottom: 12px; }
.service-card p { color: var(--text-light); font-size: 0.95rem; line-height: 1.8; margin-bottom: 20px; }
.service-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition);
}
.service-link:hover { gap: 14px; color: var(--accent); }

/* ============================================
   CONFERENCES & SEMINARS
   ============================================ */
.conferences-section { background: var(--bg-white); }
.conference-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.conference-card {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}
.conference-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: var(--accent); }
.conference-card-img {
    height: 180px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.conference-card-img img { width: 100%; height: 100%; object-fit: cover; }
.conference-placeholder-icon { font-size: 2.8rem; color: rgba(255,255,255,0.35); }
.conference-date-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    background: var(--accent);
    color: var(--primary-dark);
    border-radius: 10px;
    padding: 6px 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1.1;
    box-shadow: var(--shadow);
}
.conference-date-badge .day { font-size: 1.1rem; font-weight: 900; }
.conference-date-badge .month { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; }
.conference-card-body { padding: 22px 24px; }
.conference-card-body h3 {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 10px;
    line-height: 1.5;
}
.conference-card-body p { color: var(--text-light); font-size: 0.92rem; line-height: 1.7; }
.conference-card-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 50px 30px;
}
.conference-card-empty i { font-size: 2.5rem; color: var(--accent); margin-bottom: 16px; }
.conference-card-empty h3 { color: var(--primary); font-size: 1.2rem; margin-bottom: 8px; }
.conference-card-empty p { color: var(--text-muted); font-size: 0.95rem; }
.conferences-more-wrap { text-align: center; margin-top: 32px; }

/* ============================================
   RESEARCH SECTION
   ============================================ */
.research-section {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    color: white;
    position: relative;
    overflow: hidden;
}
.research-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%23ffffff' fill-opacity='0.03' fill-rule='evenodd'/%3E%3C/svg%3E");
}
.research-section .section-title { color: white; }
.research-section .section-desc { color: rgba(255,255,255,0.8); }
/* On this dark navy background, the darker "safe on white" gold used
   by .section-label elsewhere would itself fail contrast — the
   original lighter brand gold reads clearly here instead (~5.3:1). */
.research-section .section-label { color: var(--accent); }
.research-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    position: relative;
    z-index: 1;
}
.research-card {
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(10px);
    border-radius: var(--radius);
    padding: 30px;
    border: 1px solid rgba(255,255,255,0.1);
    transition: var(--transition);
}
.research-card:hover { background: rgba(255,255,255,0.15); transform: translateY(-5px); }
.research-card i {
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 20px;
}
.research-card h3 { font-size: 1.3rem; font-weight: 800; margin-bottom: 12px; }
.research-card p { color: rgba(255,255,255,0.8); font-size: 0.95rem; line-height: 1.8; margin-bottom: 20px; }
.research-card a {
    color: var(--accent);
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}
.research-card a:hover { gap: 14px; }

/* ============================================
   PARTNERS & ACCREDITATION STRIP
   ============================================ */
.partners-section { background: var(--bg); padding: 50px 0; border-top: 1px solid var(--border); }
.partners-label {
    text-align: center;
    color: var(--text-muted);
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    margin-bottom: 28px;
    text-transform: uppercase;
}
.partners-strip {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 20px;
}
.partner-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px 24px;
    min-width: 160px;
    text-align: center;
    filter: grayscale(100%);
    opacity: 0.75;
    transition: var(--transition);
}
.partner-item:hover { filter: grayscale(0%); opacity: 1; box-shadow: var(--shadow); transform: translateY(-3px); }
.partner-item img { max-height: 44px; max-width: 120px; object-fit: contain; }
.partner-item i { font-size: 1.8rem; color: var(--primary); }
.partner-item span { font-size: 0.78rem; font-weight: 700; color: var(--text-light); max-width: 140px; }

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--primary-dark);
    color: white;
    padding: 80px 0 0;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}
.footer-brand .logo-icon {
    margin-bottom: 20px;
    width: 50px;
    height: 50px;
    font-size: 1.3rem;
}
.footer-brand h3 { font-size: 1.3rem; font-weight: 800; margin-bottom: 12px; }
.footer-brand p { color: rgba(255,255,255,0.7); line-height: 1.8; font-size: 0.95rem; margin-bottom: 20px; }
.footer-social { display: flex; gap: 12px; }
.footer-social a {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: var(--transition);
}
.footer-social a:hover { background: var(--accent); color: var(--primary-dark); transform: translateY(-3px); }
.footer-links h4 {
    font-size: 1.1rem;
    font-weight: 800;
    margin-bottom: 24px;
    color: var(--accent);
    position: relative;
    padding-bottom: 12px;
}
.footer-links h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 40px;
    height: 3px;
    background: var(--accent);
    border-radius: 2px;
}
.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 12px; }
.footer-links a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
}
.footer-links a:hover { color: var(--accent); padding-right: 8px; }
.footer-links a i { font-size: 0.7rem; color: var(--accent); }
.footer-contact li { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 16px; }
.footer-contact i { color: var(--accent); margin-top: 4px; }
.footer-contact span { color: rgba(255,255,255,0.7); font-size: 0.95rem; line-height: 1.6; }
.visitor-counter {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 28px 0;
    text-align: center;
}
.visitor-counter .widget-title {
    color: rgba(255,255,255,0.85);
    font-size: 0.95rem;
    margin-bottom: 14px;
    display: flex; align-items: center; justify-content: center; gap: 8px;
}
.visitor-counter .widget-title i { color: var(--accent); }
.visitor-counter-digits { display: flex; justify-content: center; gap: 6px; }
.visitor-counter-digits .digit {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    color: var(--accent-light);
    font-weight: 900;
    font-size: 1.4rem;
    min-width: 34px;
    padding: 8px 4px;
    border-radius: 6px;
    text-align: center;
    font-variant-numeric: tabular-nums;
}
.visitor-counter-today { margin-top: 12px; color: rgba(255,255,255,0.6); font-size: 0.85rem; }
.visitor-counter-today strong { color: rgba(255,255,255,0.9); }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 24px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.6);
}

/* ============================================
   MOBILE MENU
   ============================================ */
.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background: var(--bg-white);
    z-index: 2000;
    box-shadow: var(--shadow-lg);
    transition: right 0.3s ease;
    overflow-y: auto;
}
.mobile-menu.active { right: 0; }
.mobile-menu-header {
    padding: 20px;
    background: var(--primary);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.mobile-menu-header h3 { font-weight: 800; }
.mobile-menu-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}
.mobile-menu-items { padding: 20px; }
.mobile-menu-item {
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
    font-weight: 600;
    color: var(--text);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.mobile-menu-item i { color: var(--primary); }
.mobile-submenu {
    padding: 0 16px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}
.mobile-submenu.active { max-height: 500px; }
.mobile-submenu a {
    display: block;
    padding: 10px 0;
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.95rem;
    border-bottom: 1px solid var(--border);
}
.mobile-submenu a:last-child { border-bottom: none; }
.mobile-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1999;
}
.mobile-overlay.active { display: block; }

/* ============================================
   ANIMATIONS
   ============================================ */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Respect the OS-level "reduce motion" preference: content still
   appears (via the .visible class toggled in main.js), it just
   doesn't slide/fade in for people who've asked for less motion. */
@media (prefers-reduced-motion: reduce) {
    .animate-on-scroll,
    .animate-on-scroll.visible {
        opacity: 1;
        transform: none;
        transition: none;
    }
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Visible keyboard-focus ring, in the university's gold accent, for
   every interactive element — mouse users see no change. */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
.faculty-card:focus-visible,
.news-card:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 2px;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 1200px) {
    .faculties-grid { grid-template-columns: repeat(2, 1fr); }
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .research-grid { grid-template-columns: repeat(2, 1fr); }
    .conference-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 992px) {
    .nav-desktop { display: none; }
    .mobile-toggle { display: block; }
    .hero-title { font-size: 2.2rem; }
    .about-grid { grid-template-columns: 1fr; }
    .news-grid { grid-template-columns: 1fr; }
    .news-main { grid-template-columns: 1fr; }
    .news-card.featured { grid-template-columns: 1fr; }
    .stats-bar .container { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .mobile-menu { display: block; }
}

@media (max-width: 768px) {
    .top-bar-left { display: none; }
    .hero { height: 500px; }
    .hero-title { font-size: 1.8rem; }
    .hero-btns { flex-direction: column; }
    .faculties-grid { grid-template-columns: 1fr; }
    .services-grid { grid-template-columns: 1fr; }
    .conference-grid { grid-template-columns: 1fr; }
    .research-grid { grid-template-columns: 1fr; }
    .stats-bar .container { grid-template-columns: 1fr; }
    .about-features { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .section { padding: 50px 0; }
    .section-title { font-size: 1.8rem; }
    .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
}

/* ============================================
   PAGE HEADER (for subpages)
   ============================================ */
.page-header {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    padding: 120px 0 60px;
    color: white;
    position: relative;
    overflow: hidden;
}
.page-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.page-header .container { position: relative; z-index: 1; }
.page-header h1 {
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 12px;
}
.page-header p {
    font-size: 1.1rem;
    opacity: 0.85;
    max-width: 600px;
}
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    font-size: 0.9rem;
    opacity: 0.8;
}
.breadcrumb a { color: var(--accent); text-decoration: none; }
.breadcrumb i { font-size: 0.7rem; }

/* ============================================
   CONTENT PAGES
   ============================================ */
.content-page { padding: 60px 0; }
.content-grid {
    display: grid;
    grid-template-columns: 1fr 3fr;
    gap: 40px;
}
.sidebar {
    background: var(--bg-white);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
    height: fit-content;
    position: sticky;
    top: 100px;
}
.sidebar h3 {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--accent);
}
.sidebar ul { list-style: none; }
.sidebar li { margin-bottom: 8px; }
.sidebar a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    color: var(--text);
    text-decoration: none;
    border-radius: 8px;
    transition: var(--transition);
    font-weight: 500;
}
.sidebar a:hover, .sidebar a.active {
    background: var(--primary);
    color: white;
}
.sidebar a i { font-size: 0.9rem; color: var(--accent); }
.sidebar a:hover i, .sidebar a.active i { color: white; }

.content-body {
    background: var(--bg-white);
    border-radius: var(--radius);
    padding: 40px;
    box-shadow: var(--shadow);
}
.content-body h2 {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 3px solid var(--accent);
    display: inline-block;
}
.content-body h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-light);
    margin: 30px 0 16px;
}
.content-body p {
    color: var(--text-light);
    line-height: 1.9;
    margin-bottom: 16px;
    font-size: 1.05rem;
}
.content-body ul {
    margin: 16px 0;
    padding-right: 24px;
    color: var(--text-light);
    line-height: 1.9;
}
.content-body li { margin-bottom: 8px; }
.content-body li::marker { color: var(--accent); }

/* Vision/Mission Cards */
.vision-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin: 30px 0;
}
.vision-card {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: white;
    padding: 30px;
    border-radius: var(--radius);
    position: relative;
    overflow: hidden;
}
.vision-card i {
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 16px;
}
.vision-card h4 { font-size: 1.3rem; font-weight: 800; margin-bottom: 12px; }
.vision-card p { color: rgba(255,255,255,0.9); font-size: 1rem; line-height: 1.8; }

/* Goals List */
.goals-list { margin-top: 30px; }
.goal-item {
    display: flex;
    gap: 20px;
    padding: 24px;
    background: var(--bg);
    border-radius: var(--radius);
    margin-bottom: 16px;
    transition: var(--transition);
    border-right: 4px solid var(--accent);
}
.goal-item:hover { transform: translateX(-5px); box-shadow: var(--shadow); }
.goal-number {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 1.2rem;
    flex-shrink: 0;
}
.goal-content h4 { font-weight: 800; color: var(--primary); margin-bottom: 8px; }
.goal-content p { color: var(--text-light); margin: 0; font-size: 0.95rem; }

/* Management Cards */
.management-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 30px;
}
.management-card {
    background: var(--bg-white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
}
.management-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.management-card-img {
    height: 200px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}
.management-card-img i { font-size: 4rem; color: rgba(255,255,255,0.3); }
.management-card-body { padding: 24px; }
.management-card-body h4 { font-size: 1.2rem; font-weight: 800; color: var(--primary); margin-bottom: 6px; }
.management-card-body .role {
    color: var(--accent);
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 12px;
}
.management-card-body p { color: var(--text-light); font-size: 0.9rem; line-height: 1.7; }

/* Faculty Detail Page */
.faculty-hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    padding: 100px 0 60px;
    color: white;
    position: relative;
}
.faculty-hero .container { position: relative; z-index: 1; display: flex; align-items: center; gap: 30px; }
.faculty-hero-icon {
    width: 100px;
    height: 100px;
    background: rgba(255,255,255,0.15);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255,255,255,0.2);
}
.faculty-hero h1 { font-size: 2.5rem; font-weight: 900; margin-bottom: 8px; }
.faculty-hero p { opacity: 0.85; font-size: 1.1rem; }

.faculty-tabs {
    display: flex;
    gap: 4px;
    background: var(--bg-white);
    padding: 8px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    margin-bottom: 30px;
    overflow-x: auto;
}
.faculty-tab {
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
    border: none;
    background: none;
    font-family: 'Tajawal', sans-serif;
    font-size: 1rem;
    color: var(--text-light);
}
.faculty-tab:hover { background: var(--bg); color: var(--primary); }
.faculty-tab.active { background: var(--primary); color: white; }

.tab-content { display: none; }
.tab-content.active { display: block; }

/* Info blocks (schedule / vision-mission-goals / guides & forms) */
.info-block {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
}
.info-block.wide { width: 100%; }
.info-block h3 {
    display: flex; align-items: center; gap: 10px;
    font-size: 1.15rem; margin-bottom: 18px; color: var(--primary);
}
.info-block h3 i { color: var(--accent); }

.guides-forms-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}
.download-list { list-style: none; }
.download-list li { border-bottom: 1px solid var(--border); }
.download-list li:last-child { border-bottom: none; }
.download-list a {
    display: flex; align-items: center; gap: 12px;
    padding: 14px 4px;
    color: var(--text);
    text-decoration: none;
    transition: var(--transition);
}
.download-list a:hover { color: var(--primary); padding-right: 10px; }
.download-list a i:first-child { color: var(--accent); width: 20px; text-align: center; }
.download-list a .download-icon { margin-right: auto; opacity: 0.5; }
.download-list a:hover .download-icon { opacity: 1; }

/* Vision / Mission / Goals */
.vmg-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.vmg-card {
    background: var(--bg-white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 32px 28px;
    text-align: center;
    transition: var(--transition);
}
.vmg-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.vmg-card i { font-size: 2.2rem; color: var(--accent); margin-bottom: 14px; }
.vmg-card h3 { font-size: 1.1rem; margin-bottom: 12px; color: var(--primary); }
.vmg-card p { color: var(--text-light); font-size: 0.95rem; }
.vmg-goals { list-style: none; text-align: right; }
.vmg-goals li { display: flex; align-items: flex-start; gap: 8px; padding: 8px 0; color: var(--text-light); font-size: 0.95rem; }
.vmg-goals li i { color: var(--accent); font-size: 0.8rem; margin-top: 6px; flex-shrink: 0; }

@media (max-width: 900px) {
    .vmg-grid { grid-template-columns: 1fr; }
    .guides-forms-grid { grid-template-columns: 1fr; }
}

.prog-block {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px 28px;
    margin-top: 24px;
}
.prog-block h3 {
    display: flex; align-items: center; gap: 10px;
    font-size: 1.1rem; margin-bottom: 14px; color: var(--primary);
}
.prog-block h3 i { color: var(--accent); }

/* Department Cards */
.dept-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}
.dept-card {
    background: var(--bg-white);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
    border-right: 4px solid var(--accent);
    transition: var(--transition);
}
.dept-card:hover { transform: translateX(-5px); box-shadow: var(--shadow-lg); }
.dept-card h4 { font-weight: 800; color: var(--primary); margin-bottom: 8px; font-size: 1.1rem; }
.dept-card p { color: var(--text-light); font-size: 0.95rem; line-height: 1.7; }
.dept-card .dept-meta {
    display: flex;
    gap: 16px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
    font-size: 0.85rem;
    color: var(--text-muted);
}
.dept-card .dept-meta span { display: flex; align-items: center; gap: 6px; }
.dept-card .dept-meta i { color: var(--accent); }

/* Staff Table */
.staff-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}
.staff-table th {
    background: var(--primary);
    color: white;
    padding: 14px 16px;
    text-align: right;
    font-weight: 700;
    font-size: 0.95rem;
}
.staff-table td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
    color: var(--text-light);
}
.staff-table tr:hover td { background: var(--bg); }
.staff-table .staff-name { font-weight: 700; color: var(--primary); }
.staff-table .staff-rank {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
}
.staff-rank.prof { background: #fed7d7; color: #c53030; }
.staff-rank.assoc { background: #bee3f8; color: #2b6cb0; }
.staff-rank.asst { background: #c6f6d5; color: #276749; }

/* Schedule Table */
.schedule-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    font-size: 0.95rem;
}
.schedule-table th {
    background: var(--primary);
    color: white;
    padding: 12px;
    text-align: center;
    font-weight: 700;
}
.schedule-table td {
    padding: 12px;
    border: 1px solid var(--border);
    text-align: center;
    color: var(--text-light);
}
.schedule-table tr:nth-child(even) td { background: var(--bg); }
.schedule-table .course-name { font-weight: 700; color: var(--primary); }
.schedule-table .course-time { font-size: 0.85rem; color: var(--text-muted); }

/* Portal Pages */
.portal-section {
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    padding: 40px 20px;
}
.portal-card {
    background: var(--bg-white);
    border-radius: var(--radius);
    padding: 48px;
    width: 100%;
    max-width: 450px;
    box-shadow: var(--shadow-lg);
    text-align: center;
}
.portal-card .portal-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 24px;
}
.portal-card h2 { font-size: 1.8rem; font-weight: 900; color: var(--primary); margin-bottom: 8px; }
.portal-card p { color: var(--text-muted); margin-bottom: 32px; }
.portal-form .form-group { margin-bottom: 20px; text-align: right; }
.portal-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
    color: var(--text);
    font-size: 0.95rem;
}
.portal-form input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--border);
    border-radius: 8px;
    font-family: 'Tajawal', sans-serif;
    font-size: 1rem;
    transition: var(--transition);
    direction: ltr;
}
.portal-form input:focus {
    outline: none;
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(26, 54, 93, 0.1);
}
.portal-form .btn-submit {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-family: 'Tajawal', sans-serif;
    font-size: 1.1rem;
    font-weight: 800;
    cursor: pointer;
    transition: var(--transition);
}
.portal-form .btn-submit:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(26, 54, 93, 0.3); }
.portal-form .form-links {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
    font-size: 0.9rem;
}
.portal-form .form-links a { color: var(--primary-light); text-decoration: none; font-weight: 600; }
.portal-form .form-links a:hover { color: var(--accent); }

/* Library Page */
.library-search {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    padding: 80px 0 40px;
    color: white;
    text-align: center;
}
.library-search h1 { font-size: 2.2rem; font-weight: 900; margin-bottom: 12px; }
.library-search p { opacity: 0.85; margin-bottom: 30px; }
.search-box {
    max-width: 700px;
    margin: 0 auto;
    display: flex;
    gap: 0;
    background: white;
    border-radius: 50px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}
.search-box input {
    flex: 1;
    padding: 16px 24px;
    border: none;
    font-family: 'Tajawal', sans-serif;
    font-size: 1rem;
    outline: none;
}
.search-box button {
    padding: 16px 32px;
    background: var(--accent);
    color: var(--primary-dark);
    border: none;
    font-family: 'Tajawal', sans-serif;
    font-weight: 800;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
}
.search-box button:hover { background: var(--accent-light); }

.library-categories {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: -30px;
    position: relative;
    z-index: 2;
}
.lib-cat-card {
    background: var(--bg-white);
    border-radius: var(--radius);
    padding: 30px 20px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    cursor: pointer;
}
.lib-cat-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.lib-cat-card i {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 16px;
}
.lib-cat-card h4 { font-weight: 800; color: var(--primary); margin-bottom: 8px; }
.lib-cat-card p { color: var(--text-muted); font-size: 0.9rem; }

/* Digital Repository */
.repo-hero {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    padding: 100px 0 60px;
    color: white;
    text-align: center;
}
.repo-hero h1 { font-size: 2.5rem; font-weight: 900; margin-bottom: 16px; }
.repo-hero p { opacity: 0.85; max-width: 600px; margin: 0 auto 30px; font-size: 1.1rem; }
.repo-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 30px;
}
.repo-stat { text-align: center; }
.repo-stat .num { font-size: 2rem; font-weight: 900; color: var(--accent); }
.repo-stat .label { font-size: 0.9rem; opacity: 0.8; }

.repo-filters {
    display: flex;
    gap: 12px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}
.repo-filter {
    padding: 10px 20px;
    background: var(--bg-white);
    border: 2px solid var(--border);
    border-radius: 30px;
    font-family: 'Tajawal', sans-serif;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.95rem;
}
.repo-filter:hover, .repo-filter.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.repo-items { display: flex; flex-direction: column; gap: 16px; }
.repo-item {
    background: var(--bg-white);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
    display: flex;
    gap: 20px;
    align-items: flex-start;
    transition: var(--transition);
}
.repo-item:hover { transform: translateX(-5px); box-shadow: var(--shadow-lg); }
.repo-item-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}
.repo-item-info { flex: 1; }
.repo-item-info h4 { font-weight: 800; color: var(--primary); margin-bottom: 8px; }
.repo-item-info p { color: var(--text-light); font-size: 0.95rem; line-height: 1.7; margin-bottom: 12px; }
.repo-item-meta {
    display: flex;
    gap: 20px;
    font-size: 0.85rem;
    color: var(--text-muted);
}
.repo-item-meta span { display: flex; align-items: center; gap: 6px; }
.repo-item-meta i { color: var(--accent); }
.repo-item-actions { display: flex; gap: 10px; }
.repo-item-actions .btn-sm {
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    border: none;
    font-family: 'Tajawal', sans-serif;
    transition: var(--transition);
}
.repo-item-actions .btn-view {
    background: var(--primary);
    color: white;
}
.repo-item-actions .btn-view:hover { background: var(--primary-light); }
.repo-item-actions .btn-download {
    background: var(--bg);
    color: var(--primary);
    border: 1px solid var(--border);
}
.repo-item-actions .btn-download:hover { background: var(--primary); color: white; }

/* Responsive for subpages */
@media (max-width: 992px) {
    .content-grid { grid-template-columns: 1fr; }
    .sidebar { position: static; }
    .vision-cards { grid-template-columns: 1fr; }
    .management-grid { grid-template-columns: 1fr; }
    .dept-grid { grid-template-columns: 1fr; }
    .library-categories { grid-template-columns: repeat(2, 1fr); }
    .faculty-hero .container { flex-direction: column; text-align: center; }
    .faculty-tabs { flex-wrap: nowrap; overflow-x: auto; }
}
@media (max-width: 768px) {
    .library-categories { grid-template-columns: 1fr; }
    .repo-item { flex-direction: column; }
    .repo-item-actions { width: 100%; }
    .repo-item-actions .btn-sm { flex: 1; }
    .repo-stats { flex-direction: column; gap: 20px; }
    .page-header { padding: 80px 0 40px; }
    .page-header h1 { font-size: 1.8rem; }
    .faculty-hero { padding: 80px 0 40px; }
    .faculty-hero h1 { font-size: 1.8rem; }
    .content-body { padding: 24px; }
    .portal-card { padding: 32px 24px; }
}
