/* ═══════════════════════════════════════════════
   University College CMS — Main Stylesheet
   كلية علوم الحاسوب وتكنولوجيا المعلومات — جامعة واسط
   ═══════════════════════════════════════════════ */

/* ── CSS Variables ── */
:root {
    --color-navy: #004d56;
    --color-navy-light: #006b78;
    --color-teal: #00a0aa;
    --color-teal-dark: #008189;
    --color-gold: #fcc300;
    --color-white: #ffffff;
    --color-light: #f4f7fb;
    --color-gray: #6c757d;
    --color-border: #e3e8ef;
    --font-arabic: 'Cairo', 'Tajawal', sans-serif;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.12);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.16);
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --transition: all 0.3s ease;
}

/* ── Global Reset ── */
* { box-sizing: border-box; }

body {
    font-family: var(--font-arabic);
    font-weight: 400;
    color: #333;
    background: var(--color-white);
    line-height: 1.8;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    color: var(--color-navy);
}

a {
    color: var(--color-teal);
    text-decoration: none;
    transition: var(--transition);
}
a:hover { color: var(--color-teal-dark); }

/* ── Top Bar ── */
.top-bar {
    background: var(--color-navy);
    color: var(--color-white);
    padding: 8px 0;
    font-size: 0.85rem;
    border-bottom: 2px solid var(--color-teal);
}
.top-bar a { color: rgba(255,255,255,0.8); }
.top-bar a:hover { color: var(--color-white); }
.top-bar .top-logo {
    height: 36px;
    width: auto;
}
.top-bar .social-icons a {
    width: 30px; height: 30px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    font-size: 0.8rem;
}
.top-bar .social-icons a:hover { background: var(--color-teal); }
.lang-switcher a {
    padding: 2px 8px;
    border-radius: 4px;
    color: rgba(255,255,255,0.8);
    font-size: 0.8rem;
}
.lang-switcher a.active {
    background: var(--color-teal);
    color: var(--color-white);
}
.search-toggle {
    color: var(--color-white);
    border: 1px solid rgba(255,255,255,0.3);
    padding: 4px 10px;
    border-radius: var(--radius-sm);
}
.search-toggle:hover { background: var(--color-teal); border-color: var(--color-teal); color: #fff; }

/* ── Secondary Bar ── */
.secondary-bar {
    background: var(--color-navy-light);
    padding: 6px 0;
    font-size: 0.8rem;
}
.secondary-bar a {
    color: rgba(255,255,255,0.7);
    padding: 2px 10px;
    border-left: 1px solid rgba(255,255,255,0.15);
}
.secondary-bar a:first-child { border-left: none; }
[dir="rtl"] .secondary-bar a { border-left: none; border-right: 1px solid rgba(255,255,255,0.15); }
[dir="rtl"] .secondary-bar a:first-child { border-right: none; }
.secondary-bar a:hover { color: var(--color-teal); }

/* ── Search Panel ── */
.search-panel {
    display: none;
    background: var(--color-navy);
    padding: 20px 0;
    animation: slideDown 0.3s ease;
}
.search-panel.active { display: block; }
.search-panel .form-control {
    border: none;
    border-radius: var(--radius-sm) 0 0 var(--radius-sm);
    padding: 12px 20px;
    font-size: 1.1rem;
}
.search-panel .btn-teal {
    background: var(--color-teal);
    color: #fff;
    border: none;
    padding: 12px 24px;
}
@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ── Main Navbar ── */
.main-navbar {
    background: var(--color-navy);
    padding: 0;
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 0;
    z-index: 1030;
}
.main-navbar .navbar-brand {
    color: var(--color-white);
    font-weight: 700;
    font-size: 1rem;
    padding: 14px 0;
}
.main-navbar .navbar-toggler {
    color: var(--color-white);
    border-color: rgba(255,255,255,0.3);
    font-size: 1.4rem;
    padding: 6px 12px;
}
.main-navbar .nav-link {
    color: rgba(255,255,255,0.85);
    padding: 16px 14px !important;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
    border-bottom: 3px solid transparent;
}
.main-navbar .nav-link:hover,
.main-navbar .nav-link.active {
    color: var(--color-white);
    background: rgba(255,255,255,0.06);
    border-bottom-color: var(--color-gold);
}
.main-navbar .dropdown-menu {
    border: none;
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
    box-shadow: var(--shadow-lg);
    padding: 0;
    min-width: 240px;
    animation: fadeIn 0.2s ease;
}
.main-navbar .dropdown-item {
    padding: 10px 20px;
    font-size: 0.88rem;
    color: #444;
    border-bottom: 1px solid var(--color-border);
    transition: var(--transition);
}
.main-navbar .dropdown-item:last-child { border-bottom: none; }
.main-navbar .dropdown-item:hover {
    background: var(--color-light);
    color: var(--color-teal);
    padding-left: 24px;
}
[dir="rtl"] .main-navbar .dropdown-item {
    text-align: right;
}
[dir="rtl"] .main-navbar .dropdown-item:hover { 
    padding-left: 20px; 
    padding-right: 24px; 
}
[dir="rtl"] .main-navbar .dropdown-menu {
    right: 0 !important;
    left: auto !important;
    text-align: right;
}
[dir="rtl"] .main-navbar .dropdown-toggle::after {
    margin-right: 0.255em;
    margin-left: 0;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ── Hero Section ── */
.hero-section {
    background: linear-gradient(135deg, var(--color-navy) 0%, var(--color-navy-light) 50%, var(--color-teal-dark) 100%);
    color: var(--color-white);
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.hero-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="none" stroke="rgba(255,255,255,0.03)" stroke-width="1"/></svg>');
    background-size: 200px;
    animation: float 20s linear infinite;
}
@keyframes float {
    from { background-position: 0 0; }
    to { background-position: 200px 200px; }
}
.hero-section h1 {
    color: var(--color-white);
    font-size: 2.4rem;
    margin-bottom: 12px;
    position: relative;
    z-index: 1;
}
.hero-section p {
    font-size: 1.2rem;
    opacity: 0.9;
    position: relative;
    z-index: 1;
}
.hero-section .hero-badge {
    display: inline-block;
    background: var(--color-teal);
    color: #fff;
    padding: 6px 20px;
    border-radius: 20px;
    font-size: 0.9rem;
    margin-top: 16px;
    position: relative;
    z-index: 1;
}

/* ── Section Title ── */
.section-title {
    text-align: center;
    margin-bottom: 40px;
}
.section-title h2 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    position: relative;
    display: inline-block;
}
.section-title h2::after {
    content: '';
    width: 60px; height: 3px;
    background: var(--color-teal);
    display: block;
    margin: 10px auto 0;
    border-radius: 2px;
}

/* ── News Cards ── */
.news-card {
    border: none;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}
.news-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}
.news-card .card-img-top {
    height: 200px;
    object-fit: cover;
}
.news-card .card-body {
    padding: 20px;
}
.news-card .card-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.5;
}
.news-card .card-title a { color: var(--color-navy); }
.news-card .card-title a:hover { color: var(--color-teal); }
.news-card .card-date {
    font-size: 0.8rem;
    color: var(--color-gray);
    margin-bottom: 8px;
}
.news-card .card-text {
    font-size: 0.88rem;
    color: #666;
    line-height: 1.6;
}

/* ── Related News Sidebar ── */
.related-news-sidebar { position: sticky; top: 20px; }
.related-card { transition: var(--transition); border-radius: var(--radius-md) !important; overflow: hidden; }
.related-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md) !important; }
.related-card h6 a:hover { color: var(--color-teal) !important; }

/* ── Statistics Bar ── */
.stats-section {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    padding: 50px 0;
    color: var(--color-white);
    position: relative;
    overflow: hidden;
}
.stats-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    opacity: 0.05;
    background-image: radial-gradient(#fff 1px, transparent 1px);
    background-size: 20px 20px;
}
.stat-card {
    text-align: center;
    padding: 20px;
}
.stat-card .stat-number {
    font-size: 2.8rem;
    font-weight: 700;
    display: block;
    line-height: 1;
    margin-bottom: 8px;
}
.stat-card .stat-label {
    font-size: 0.95rem;
    opacity: 0.9;
}

/* ── Important Links Section ── */
.important-links-section {
    padding: 60px 0;
    background: var(--color-light);
}
.link-card {
    background: var(--color-white);
    border-radius: var(--radius-md);
    padding: 24px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    height: 100%;
}
.link-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}
.link-card i {
    font-size: 2.5rem;
    color: var(--color-teal);
    margin-bottom: 12px;
}
.link-card h6 { font-weight: 700; margin-bottom: 8px; }
.link-card ul a { color: var(--color-navy); text-decoration: none; transition: var(--transition); }
.link-card ul a:hover { color: var(--color-teal); padding-inline-start: 4px; }

/* ── Department Cards ── */
.dept-card { transition: var(--transition); border-bottom: 3px solid transparent; cursor: pointer; }
.dept-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md) !important; border-bottom-color: var(--color-teal); }
.dept-icon { width: 64px; height: 64px; background: rgba(0,128,128,0.1); border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.dept-icon i { font-size: 1.8rem; color: var(--color-teal); }

/* ── Staff Cards ── */
.staff-card { transition: var(--transition); border-bottom: 3px solid transparent; }
.staff-card:hover { transform: translateY(-5px); box-shadow: 0 .5rem 1rem rgba(0,0,0,.15) !important; border-bottom-color: var(--color-teal); }
.text-teal { color: var(--color-teal) !important; }
.bg-teal { background-color: var(--color-teal) !important; }
.btn-outline-teal { color: var(--color-teal); border-color: var(--color-teal); }
.btn-outline-teal:hover { background-color: var(--color-teal); color: white; border-color: var(--color-teal); }
.btn-teal { background-color: var(--color-teal); color: white; border-color: var(--color-teal); }
.btn-teal:hover { background-color: var(--color-teal-dark, #0a8a7a); color: white; border-color: var(--color-teal-dark, #0a8a7a); }

/* ── Statistics Icons ── */
.stat-icon { font-size: 2rem; display: block; margin-bottom: 8px; opacity: 0.85; }

/* ── Quick Access ── */
.quick-access-card:hover { background: rgba(255,255,255,0.2) !important; transform: translateY(-2px); }

/* ── Breadcrumb ── */
.breadcrumb-section {
    background: var(--color-light);
    padding: 16px 0;
    border-bottom: 1px solid var(--color-border);
}
.breadcrumb-section .breadcrumb {
    margin: 0;
    padding: 0;
    background: none;
}
.breadcrumb-section .breadcrumb-item a { color: var(--color-teal); }
.breadcrumb-section .breadcrumb-item.active { color: var(--color-gray); }

/* ── Department Sidebar ── */
.dept-sidebar {
    position: sticky;
    top: 80px;
}
.dept-sidebar .list-group-item {
    border: none;
    padding: 12px 20px;
    font-weight: 600;
    color: #555;
    background: var(--color-light);
    margin-bottom: 2px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
}
.dept-sidebar .list-group-item:hover {
    background: rgba(0, 128, 128, 0.12);
    color: var(--color-teal);
}
.dept-sidebar .list-group-item.active {
    background: var(--color-teal);
    color: var(--color-white);
}

/* ── Page Content ── */
.page-content {
    padding: 40px 0;
    min-height: 500px;
}
.page-content img { max-width: 100%; height: auto; border-radius: var(--radius-sm); }

/* ── Staff Cards ── */
.staff-card {
    background: var(--color-white);
    border-radius: var(--radius-md);
    padding: 24px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    height: 100%;
}
.staff-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}
.staff-card .photo {
    width: 120px; height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 16px;
    border: 4px solid var(--color-light);
    display: block;
}
.staff-card .staff-name {
    font-weight: 700;
    font-size: 1rem;
    color: var(--color-navy);
    margin-bottom: 6px;
}
.staff-card .staff-dept {
    font-size: 0.85rem;
    color: var(--color-gray);
    margin-bottom: 10px;
}
.staff-card .btn-profile {
    background: var(--color-teal);
    color: #fff;
    border: none;
    padding: 6px 20px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 600;
}
.staff-card .btn-profile:hover {
    background: var(--color-teal-dark);
}

/* ── Rank Badges ── */
.badge { padding: 4px 12px; border-radius: var(--radius-sm); font-size: 0.78rem; font-weight: 600; }
.rank-professor { background: #0a1628; color: #fff; }
.rank-assistant-prof { background: #00a99d; color: #fff; }
.rank-lecturer { background: #1a73e8; color: #fff; }
.rank-asst-lecturer { background: #f57c00; color: #fff; }
.rank-assistant { background: #757575; color: #fff; }

/* ── Staff Profile Page ── */
.staff-sidebar {
    background: var(--color-light);
    border-radius: var(--radius-md);
    padding: 30px 24px;
    text-align: center;
}
.staff-sidebar .staff-photo {
    width: 200px; height: 200px;
    border-radius: var(--radius-md);
    object-fit: cover;
    margin: 0 auto 16px;
    display: block;
    box-shadow: var(--shadow-sm);
}
.staff-sidebar .staff-name-sidebar { font-size: 1.1rem; font-weight: 700; color: var(--color-navy); }
.staff-sidebar .staff-rank-sidebar { color: var(--color-gray); font-size: 0.9rem; margin-bottom: 6px; }
.staff-sidebar .staff-dept-sidebar { color: var(--color-teal); font-size: 0.85rem; margin-bottom: 16px; }
.staff-sidebar .sidebar-links { list-style: none; padding: 0; text-align: start; }
.staff-sidebar .sidebar-links li {
    padding: 10px 0;
    border-top: 1px solid var(--color-border);
    font-size: 0.9rem;
}
.staff-sidebar .sidebar-links li i { margin-inline-end: 8px; color: var(--color-teal); }
.staff-sidebar .visit-count { font-size: 0.85rem; color: var(--color-gray); margin-top: 16px; }

/* ── Staff Profile Tabs ── */
.staff-profile-tabs { margin-bottom: 24px; }
.staff-profile-tabs .nav-tabs { border: none; gap: 4px; flex-wrap: wrap; }
.staff-profile-tabs .tab-btn {
    border: 2px solid var(--color-border);
    border-radius: var(--radius-sm);
    padding: 10px 18px;
    font-weight: 600;
    font-size: 0.88rem;
    color: #555;
    background: var(--color-white);
    cursor: pointer;
    transition: var(--transition);
}
.staff-profile-tabs .tab-btn:hover { border-color: var(--color-teal); color: var(--color-teal); }
.staff-profile-tabs .tab-btn.active {
    background: var(--color-teal);
    color: var(--color-white);
    border-color: var(--color-teal);
}
.tab-content-panel { display: none; }
.tab-content-panel.active { display: block; animation: fadeIn 0.3s ease; }

/* ── Academic Accounts ── */
.academic-account-row {
    display: flex;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid #eee;
    gap: 12px;
}
.academic-account-row:last-child { border-bottom: none; }
.academic-account-row .account-icon {
    width: 36px; height: 36px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.85rem; font-weight: 700;
    flex-shrink: 0;
}
.account-icon.email-icon { background: #e3f2fd; color: #1a73e8; }
.account-icon.ws-icon { background: #fff3e0; color: #e65100; }
.account-icon.sc-icon { background: #e8f5e9; color: #2e7d32; }
.account-icon.rg-icon { background: #e0f2f1; color: #00695c; }
.account-icon.gs-icon { background: #fce4ec; color: #c62828; }
.account-icon.cv-icon { background: #f3e5f5; color: #6a1b9a; }
.account-icon.orcid-icon { background: #e8eaf6; color: #283593; }

/* ── Publications ── */
.publication-item {
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}
.publication-item::before {
    content: "•";
    color: var(--color-teal);
    font-weight: 700;
    margin-inline-end: 8px;
}
.publication-item:last-child { border-bottom: none; }

/* ── Separator ── */
.staff-separator {
    border-top: 1px dashed #ccc;
    margin: 20px 0;
    display: flex; align-items: center; justify-content: center;
    gap: 10px;
    color: var(--color-gray);
}

/* ── Top Students ── */
.student-card {
    background: var(--color-white);
    border-radius: var(--radius-md);
    padding: 24px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}
.student-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.student-card .student-photo {
    width: 100px; height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 12px;
    display: block;
    border: 3px solid var(--color-teal);
}
.student-card .rank-badge {
    font-size: 1.8rem;
    display: block;
    margin-bottom: 8px;
}

/* ── Courses ── */
.course-card {
    background: var(--color-white);
    border-radius: var(--radius-sm);
    padding: 16px;
    border-right: 4px solid var(--color-teal);
    margin-bottom: 12px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}
[dir="ltr"] .course-card { border-right: none; border-left: 4px solid var(--color-teal); }
.course-card:hover { box-shadow: var(--shadow-md); }
.course-card .course-code { color: var(--color-teal); font-weight: 700; font-size: 0.85rem; }
.course-card .course-name { font-weight: 600; margin-bottom: 6px; }
.course-card .course-hours { font-size: 0.85rem; color: var(--color-gray); }

/* ── Timetable ── */
.timetable-grid {
    overflow-x: auto;
}
.timetable-grid table { min-width: 700px; }
.timetable-grid th {
    background: var(--color-navy);
    color: var(--color-white);
    text-align: center;
    padding: 12px;
    font-weight: 600;
    font-size: 0.85rem;
}
.timetable-grid td {
    padding: 8px;
    vertical-align: middle;
    text-align: center;
    font-size: 0.85rem;
    border: 1px solid var(--color-border);
}
.slot-lecture { background: #e3f2fd; color: #1565c0; border-radius: var(--radius-sm); padding: 6px; }
.slot-lab { background: #e8f5e9; color: #2e7d32; border-radius: var(--radius-sm); padding: 6px; }
.slot-tutorial { background: #fff3e0; color: #e65100; border-radius: var(--radius-sm); padding: 6px; }

/* ── Exam Schedule ── */
.exam-warning {
    background: #ffeae5;
    border: 1px solid #ff5252;
    color: #c62828;
    padding: 12px 20px;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    font-weight: 600;
}
.countdown-badge {
    background: var(--color-teal);
    color: #fff;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* ── Footer ── */
.site-footer {
    background: var(--color-navy);
    color: rgba(255,255,255,0.85);
    padding: 50px 0 0;
    margin-top: 60px;
}
.footer-title {
    color: var(--color-white);
    font-size: 1.1rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--color-teal);
    display: inline-block;
}
.footer-desc { font-size: 0.9rem; line-height: 1.8; opacity: 0.8; }
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-links li { margin-bottom: 8px; }
.footer-links a {
    color: rgba(255,255,255,0.7);
    font-size: 0.88rem;
    transition: var(--transition);
}
.footer-links a:hover { color: var(--color-teal); padding-inline-start: 6px; }
.footer-links i { font-size: 0.7rem; margin-inline-end: 6px; }
.footer-contact {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-contact li {
    margin-bottom: 10px;
    font-size: 0.88rem;
}
.footer-contact i {
    color: var(--color-teal);
    margin-inline-end: 10px;
    width: 16px;
}
.footer-social {
    text-align: center;
    padding: 20px 0;
    margin-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
}
.footer-social a {
    display: inline-flex;
    width: 40px; height: 40px;
    align-items: center; justify-content: center;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    color: var(--color-white);
    margin: 0 6px;
    font-size: 1.1rem;
    transition: var(--transition);
}
.footer-social a:hover { background: var(--color-teal); transform: translateY(-3px); }
.copyright-bar {
    background: rgba(0,0,0,0.3);
    padding: 14px 0;
    margin-top: 20px;
    font-size: 0.82rem;
    opacity: 0.7;
}

/* ── Scroll to Top ── */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 44px; height: 44px;
    border-radius: 50%;
    background: var(--color-teal);
    color: #fff;
    border: none;
    font-size: 1.2rem;
    display: none;
    align-items: center; justify-content: center;
    box-shadow: var(--shadow-md);
    z-index: 999;
    cursor: pointer;
    transition: var(--transition);
}
[dir="rtl"] .scroll-to-top { right: auto; left: 30px; }
.scroll-to-top:hover { background: var(--color-navy); transform: translateY(-3px); }
.scroll-to-top.show { display: flex; }

/* ── Pagination ── */
.pagination .page-link {
    color: var(--color-navy);
    border-color: var(--color-border);
    padding: 8px 14px;
}
.pagination .page-item.active .page-link {
    background: var(--color-teal);
    border-color: var(--color-teal);
    color: #fff;
}

/* ── Filter Bar ── */
.filter-bar {
    background: var(--color-light);
    padding: 16px;
    border-radius: var(--radius-md);
    margin-bottom: 24px;
}
.filter-bar .form-select,
.filter-bar .form-control {
    border-color: var(--color-border);
    font-size: 0.9rem;
}

/* ── Button Teal ── */
.btn-teal {
    background: var(--color-teal);
    color: #fff;
    border: none;
    font-weight: 600;
}
.btn-teal:hover { background: var(--color-teal-dark); color: #fff; }
.btn-navy {
    background: var(--color-navy);
    color: #fff;
    border: none;
    font-weight: 600;
}
.btn-navy:hover { background: var(--color-navy-light); color: #fff; }

/* ── Social Share ── */
.social-share a {
    display: inline-flex;
    width: 36px; height: 36px;
    align-items: center; justify-content: center;
    border-radius: 50%;
    font-size: 0.9rem;
    margin: 0 4px;
    transition: var(--transition);
}
.social-share .fb { background: #1877f2; color: #fff; }
.social-share .tw { background: #1da1f2; color: #fff; }
.social-share .wa { background: #25d366; color: #fff; }
.social-share a:hover { transform: translateY(-2px); opacity: 0.85; }

/* ── Responsive ── */
@media (max-width: 991px) {
    .main-navbar .navbar-collapse, .main-navbar .offcanvas-body { background: var(--color-navy-light); padding: 10px; }
    .main-navbar .offcanvas-header { background: var(--color-navy); }
    .main-navbar .nav-link { padding: 10px 14px !important; border-bottom: 1px solid rgba(255,255,255,0.05); }
    .main-navbar .dropdown-menu { box-shadow: none; background: rgba(0,0,0,0.2); }
    .main-navbar .dropdown-item { color: rgba(255,255,255,0.8); border-color: rgba(255,255,255,0.05); }
    .hero-section h1 { font-size: 1.6rem; }
    .hero-section { padding: 50px 0; }
    .stat-card .stat-number { font-size: 2rem; }
}

@media (max-width: 767px) {
    .top-bar .top-bar-text { display: none; }
    .secondary-bar { display: none; }
    .staff-sidebar { margin-bottom: 24px; }
}

/* ── Graduate Studies ── */
.graduate-sidebar .list-group-item {
    border: none;
    padding: 12px 18px;
    font-weight: 600;
    color: #555;
    background: var(--color-light);
    margin-bottom: 2px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
}
.graduate-sidebar .list-group-item:hover,
.graduate-sidebar .list-group-item.active {
    background: var(--color-teal);
    color: #fff;
}

/* ══════════════════════════════════════════
   Department Sidebar — Enhanced Mobile Drawer
   ══════════════════════════════════════════ */

/* Desktop sidebar sticky */
@media (min-width: 992px) {
    .dept-sidebar {
        position: sticky;
        top: 80px;
    }
}

/* Mobile toggle button */
.dept-mobile-toggle {
    background: var(--color-teal) !important;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
}
.dept-mobile-toggle:hover,
.dept-mobile-toggle:focus {
    background: var(--color-teal-dark) !important;
}

/* Offcanvas drawer for mobile */
.dept-sidebar-offcanvas {
    border: none !important;
}
@media (max-width: 991.98px) {
    .dept-sidebar-offcanvas {
        width: 85% !important;
        max-width: 360px;
    }
    .dept-sidebar-offcanvas .offcanvas-header {
        background: linear-gradient(135deg, var(--color-teal), var(--color-teal-dark));
        color: white;
        padding: 16px 20px;
    }
    .dept-sidebar-offcanvas .offcanvas-header .offcanvas-title {
        color: white !important;
    }
    .dept-sidebar-offcanvas .offcanvas-header .btn-close {
        filter: brightness(0) invert(1);
    }
    .dept-sidebar-offcanvas .offcanvas-body {
        padding: 0 !important;
    }
    .dept-sidebar-offcanvas .list-group {
        border: none !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        list-style: none !important;
        counter-reset: none !important;
        padding: 0 !important;
    }
    .dept-sidebar-offcanvas .list-group-item {
        padding: 14px 24px;
        font-size: 0.95rem;
        border-bottom: 1px solid rgba(0,0,0,0.05);
        border-radius: 0 !important;
        margin-bottom: 0;
        list-style: none !important;
        display: flex !important;
        align-items: center;
        gap: 8px;
    }
    .dept-sidebar-offcanvas .list-group-item::before {
        content: none !important;
    }
    .dept-sidebar-offcanvas .list-group-item i {
        width: 24px;
        text-align: center;
        flex-shrink: 0;
    }
}

/* Sidebar active item styling */
.dept-sidebar .list-group-item.active,
.dept-sidebar .list-group-item.active:hover {
    background: var(--color-teal) !important;
    color: white !important;
    border-color: var(--color-teal) !important;
}
.dept-sidebar .list-group-item i {
    width: 20px;
    text-align: center;
    opacity: 0.7;
}
.dept-sidebar .list-group-item.active i {
    opacity: 1;
}

/* ══════════════════════════════════════════
   Staff Cards — Enhanced Design
   ══════════════════════════════════════════ */

.staff-card {
    background: var(--color-white);
    border-radius: var(--radius-md);
    padding: 24px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
    border-bottom: 3px solid transparent !important;
}
.staff-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 1rem 3rem rgba(0,0,0,.15) !important;
    border-bottom-color: var(--color-teal) !important;
}

/* ── Utility Classes ── */
.text-teal { color: var(--color-teal) !important; }
.bg-teal { background-color: var(--color-teal) !important; color: white !important; }
.border-teal { border-color: var(--color-teal) !important; }
.btn-outline-teal { color: var(--color-teal); border-color: var(--color-teal); }
.btn-outline-teal:hover { background-color: var(--color-teal); color: white; }

/* ── Empty State ── */
.alert-info {
    background: #e8f4f8;
    color: #31708f;
    border: 1px solid #bee5eb;
    border-radius: var(--radius-sm);
}

/* ── Content Body from TinyMCE ── */
.content-body {
    line-height: 2;
    font-size: 1rem;
}
.content-body p { margin-bottom: 1rem; }
.content-body img { max-width: 100%; height: auto; border-radius: var(--radius-sm); }
.content-body ul, .content-body ol { padding-inline-start: 20px; }
.content-body li { margin-bottom: 0.5rem; }

/* ── Print Styles ── */
@media print {
    .top-bar, .secondary-bar, .main-navbar, .site-footer, .scroll-to-top,
    .filter-bar, .btn, .social-share, .search-panel, .dept-mobile-toggle,
    .offcanvas-backdrop { display: none !important; }
    body { font-size: 12pt; color: #000; }
    .page-content { padding: 0; }
    .dept-sidebar { display: none !important; }
    .col-lg-9 { width: 100% !important; flex: 0 0 100% !important; max-width: 100% !important; }
}
