/* ========================================
   Yemen University - Department Page Styles
   ======================================== */

/* Department Hero */
.dept-hero {
    position: relative;
    min-height: 420px;
    display: flex;
    align-items: flex-end;
    padding: 120px 0 56px;
    overflow: hidden;
    margin-top: 72px;
}

.dept-hero-bg {
    position: absolute;
    inset: 0;
}

.dept-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(13, 45, 74, 0.9) 0%, rgba(13, 45, 74, 0.4) 60%, rgba(13, 45, 74, 0.2) 100%);
}

.dept-hero-content {
    position: relative;
    z-index: 2;
}

.dept-hero-title {
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 800;
    color: white;
    line-height: 1.15;
    margin-bottom: 14px;
}

.dept-hero-desc {
    font-size: 17px;
    color: rgba(255,255,255,0.75);
    line-height: 1.7;
    max-width: 560px;
}

/* Department Navigation */
.dept-nav-wrapper {
    background: white;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 72px;
    z-index: 99;
}

.dept-nav {
    display: flex;
    gap: 4px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 4px 0;
}

.dept-nav::-webkit-scrollbar {
    display: none;
}

.dept-nav-link {
    padding: 14px 20px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    border-bottom: 2px solid transparent;
    white-space: nowrap;
    transition: var(--transition);
}

.dept-nav-link:hover,
.dept-nav-link.active {
    color: var(--text-primary);
    border-bottom-color: var(--primary);
}

/* About Section */
.dept-about {
    padding: 64px 0;
    background: var(--bg-primary);
}

.dept-about-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 48px;
    align-items: start;
}

.dept-about-content .section-title {
    margin-bottom: 20px;
}

.dept-about-text {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 16px;
}

/* Highlights */
.dept-highlights {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 32px;
    padding-top: 32px;
    border-top: 1px solid var(--border-light);
}

.highlight-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.highlight-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius);
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    flex-shrink: 0;
}

.highlight-content h4 {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.highlight-content p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Quick Stats */
.dept-quick-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-top: 32px;
    padding: 24px;
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
}

.quick-stat {
    text-align: center;
}

.quick-stat-number {
    font-size: 28px;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 6px;
    font-family: var(--font-en);
}

.quick-stat-label {
    font-size: 13px;
    color: var(--text-tertiary);
}

/* Sidebar */
.dept-about-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.head-card {
    padding: 28px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    background: white;
    text-align: center;
}

.head-avatar {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-tertiary);
    margin: 0 auto 16px;
}

.head-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.head-name {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.head-role {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.head-bio {
    font-size: 13px;
    color: var(--text-tertiary);
    line-height: 1.7;
    margin-bottom: 16px;
}

.head-contact a {
    font-size: 13px;
    color: var(--primary);
    font-weight: 500;
}

/* Programs Section */
.dept-programs {
    padding: 64px 0;
    background: var(--bg-secondary);
}

.dept-programs-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.dept-program-card {
    padding: 32px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    background: white;
    transition: var(--transition);
}

.dept-program-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.program-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 12px;
}

.program-duration {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: var(--text-tertiary);
}

.program-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.program-desc {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 20px;
}

.program-details-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    padding: 20px;
    background: var(--bg-secondary);
    border-radius: var(--radius);
    margin-bottom: 20px;
}

.program-detail {
    text-align: center;
}

.detail-label {
    display: block;
    font-size: 12px;
    color: var(--text-tertiary);
    margin-bottom: 4px;
}

.detail-value {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
}

.program-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* Faculty Section */
.dept-faculty {
    padding: 64px 0;
    background: var(--bg-primary);
}

.dept-faculty-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.dept-faculty-card {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 24px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    background: white;
    transition: var(--transition);
}

.dept-faculty-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.faculty-avatar-large {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-tertiary);
    flex-shrink: 0;
}

.faculty-info {
    flex: 1;
}

.faculty-info .faculty-name {
    font-size: 17px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.faculty-role {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.faculty-degree {
    font-size: 13px;
    color: var(--text-tertiary);
    margin-bottom: 10px;
}

.faculty-research {
    display: flex;
    gap: 12px;
}

.faculty-research span {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-tertiary);
    padding: 4px 10px;
    background: var(--bg-secondary);
    border-radius: 100px;
}

.faculty-profile-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
    flex-shrink: 0;
    align-self: center;
}

.faculty-profile-link svg {
    transition: var(--transition);
}

.faculty-profile-link:hover svg {
    transform: translateX(-4px);
}

/* Labs Section */
.labs-section {
    padding: 64px 0;
    background: var(--bg-secondary);
}

.labs-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.lab-card {
    padding: 28px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    background: white;
    text-align: center;
    transition: var(--transition);
}

.lab-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.lab-icon {
    width: 64px;
    height: 64px;
    border-radius: var(--radius);
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    margin: 0 auto 16px;
}

.lab-name {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.lab-desc {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 12px;
}

.lab-equipment {
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
    padding: 4px 12px;
    background: var(--bg-secondary);
    border-radius: 100px;
}

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 1024px) {
    .dept-about-grid {
        grid-template-columns: 1fr;
    }

    .dept-about-sidebar {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .head-card,
    .contact-card {
        flex: 1;
        min-width: 280px;
    }

    .dept-faculty-grid {
        grid-template-columns: 1fr;
    }

    .labs-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .dept-hero {
        min-height: auto;
        padding: 100px 0 48px;
    }

    .dept-quick-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .program-details-grid {
        grid-template-columns: 1fr;
    }

    .dept-faculty-card {
        flex-direction: column;
        text-align: center;
    }

    .faculty-avatar-large {
        margin: 0 auto;
    }

    .faculty-research {
        justify-content: center;
    }

    .labs-grid {
        grid-template-columns: 1fr;
    }

    .dept-nav-wrapper {
        top: 64px;
    }
}

@media (max-width: 480px) {
    .dept-program-card {
        padding: 20px;
    }

    .dept-quick-stats {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
        padding: 16px;
    }

    .quick-stat-number {
        font-size: 22px;
    }

    .program-actions {
        flex-direction: column;
    }

    .program-actions .btn {
        width: 100%;
    }
}

/* ========================================
   NEW SECTIONS — Events · News · Research · Gallery
   ======================================== */

/* ── Shared helpers ── */
.section-tag-light {
    background: rgba(201,162,39,0.25);
    color: #c9a227;
    border: 1px solid rgba(201,162,39,0.4);
}

.white-title  { color: #ffffff !important; }
.light-subtitle { color: rgba(255,255,255,0.7) !important; }

/* ========================================
   A. EVENTS SECTION
   ======================================== */
.dept-events {
    padding: 80px 0;
    background: linear-gradient(160deg, #0d1f3c 0%, #1a3a6e 50%, #0d2550 100%);
    position: relative;
    overflow: hidden;
}

.dept-events::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 40% at 20% 20%, rgba(201,162,39,0.08) 0%, transparent 60%),
        radial-gradient(ellipse 50% 60% at 80% 80%, rgba(42,90,158,0.15) 0%, transparent 60%);
    pointer-events: none;
}

.dept-events .section-header { margin-bottom: 48px; }

.events-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    position: relative;
    z-index: 1;
}

.event-card {
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.event-card:hover {
    transform: translateY(-6px);
    background: rgba(255,255,255,0.09);
    box-shadow: 0 20px 60px rgba(0,0,0,0.4), 0 0 0 1px rgba(201,162,39,0.2);
}

.event-accent { height: 4px; width: 100%; }

.event-body {
    display: flex;
    gap: 20px;
    padding: 24px;
    align-items: flex-start;
}

.event-date-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 64px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 12px;
    padding: 12px 8px;
    flex-shrink: 0;
}

.event-day {
    font-size: 28px;
    font-weight: 800;
    color: #ffffff;
    line-height: 1;
    font-family: 'Inter', sans-serif;
}

.event-month {
    font-size: 12px;
    color: rgba(255,255,255,0.6);
    margin-top: 4px;
    font-weight: 500;
}

.event-content { flex: 1; min-width: 0; }

.event-type-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 8px;
}

.badge-workshop    { background: rgba(201,162,39,0.2); color: #f0c842; border: 1px solid rgba(201,162,39,0.35); }
.badge-lecture     { background: rgba(46,139,87,0.2);  color: #5adb8e; border: 1px solid rgba(46,139,87,0.35);  }
.badge-visit       { background: rgba(26,127,168,0.2); color: #5bc8f0; border: 1px solid rgba(26,127,168,0.35); }
.badge-competition { background: rgba(224,123,26,0.2); color: #f0a45a; border: 1px solid rgba(224,123,26,0.35); }

.event-title {
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 8px;
    line-height: 1.4;
}

.event-desc {
    font-size: 13px;
    color: rgba(255,255,255,0.6);
    line-height: 1.65;
    margin-bottom: 14px;
}

.event-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 16px;
}

.event-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: rgba(255,255,255,0.5);
}

.event-register-btn {
    display: inline-block;
    padding: 8px 20px;
    background: linear-gradient(135deg, #c9a227, #a07e1c);
    color: white;
    font-size: 13px;
    font-weight: 600;
    border-radius: 8px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 12px rgba(201,162,39,0.3);
}

.event-register-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(201,162,39,0.45);
    color: white;
}

/* ========================================
   B. NEWS SECTION
   ======================================== */
.dept-news {
    padding: 80px 0;
    background: #f4f6f9;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.news-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 48px rgba(26,58,110,0.12);
}

.news-image {
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.news-image-icon { opacity: 0.7; }

.news-category-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    padding: 4px 12px;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 700;
}

.cat-event       { background: #1a3a6e; color: white; }
.cat-achievement { background: #c9a227; color: white; }
.cat-development { background: #2e8b57; color: white; }

.news-body {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.news-date {
    font-size: 12px;
    color: var(--text-tertiary);
    font-weight: 500;
    margin-bottom: 8px;
}

.news-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.5;
    margin-bottom: 10px;
}

.news-excerpt {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
    flex: 1;
    margin-bottom: 16px;
}

.news-read-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #1a3a6e;
    transition: gap 0.2s ease, color 0.2s ease;
}

.news-read-more:hover { gap: 10px; color: #c9a227; }
.news-read-more svg   { transition: transform 0.2s ease; }
.news-read-more:hover svg { transform: translateX(-4px); }

/* ========================================
   C. RESEARCH SECTION
   ======================================== */
.dept-research {
    padding: 80px 0;
    background: #ffffff;
}

.research-metrics {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 56px;
}

.research-metric {
    text-align: center;
    padding: 32px 20px;
    border-radius: 16px;
    background: var(--bg-secondary, #f8f9fa);
    border: 1px solid rgba(26,58,110,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.research-metric:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(26,58,110,0.1);
}

.research-metric-icon {
    width: 60px;
    height: 60px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 14px;
    box-shadow: 0 6px 16px rgba(0,0,0,0.15);
}

.research-metric-value {
    font-size: 40px;
    font-weight: 800;
    color: #1a3a6e;
    line-height: 1;
    margin-bottom: 6px;
    font-family: 'Inter', sans-serif;
}

.research-metric-label {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 500;
}

.research-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.research-card {
    padding: 28px;
    border-radius: 16px;
    border: 1px solid rgba(26,58,110,0.1);
    background: white;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 14px;
    position: relative;
    overflow: hidden;
}

.research-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, #1a3a6e, #c9a227);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.research-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 48px rgba(26,58,110,0.12);
    border-color: rgba(26,58,110,0.2);
}

.research-card:hover::before { opacity: 1; }

.research-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

.research-field-tag,
.research-status-badge {
    padding: 4px 12px;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 600;
}

.status-funded     { background: #e8f0fb; color: #1a3a6e; }
.status-inprogress { background: #fff8e6; color: #b07d10; }
.status-completed  { background: #e8f5ee; color: #2e8b57; }

.research-card-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.45;
}

.research-card-desc {
    font-size: 13.5px;
    color: var(--text-secondary);
    line-height: 1.7;
    flex: 1;
}

.research-card-author {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-top: 14px;
    border-top: 1px solid rgba(0,0,0,0.06);
}

.research-author-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-secondary, #f0f2f5);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1a3a6e;
    flex-shrink: 0;
}

.research-author-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.research-author-field {
    font-size: 12px;
    color: var(--text-tertiary);
}

.research-card-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 700;
    color: #1a3a6e;
    padding: 8px 18px;
    border: 1.5px solid #1a3a6e;
    border-radius: 8px;
    align-self: flex-start;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.research-card-link:hover {
    background: #1a3a6e;
    color: white;
    transform: translateX(-3px);
}

/* ========================================
   D. GALLERY SECTION
   ======================================== */
.dept-gallery {
    padding: 80px 0;
    background: #f4f6f9;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 200px;
    gap: 16px;
}

.gallery-item {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease, z-index 0s;
}

.gallery-item:hover {
    transform: scale(1.02);
    z-index: 2;
}

.gallery-thumb {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.4s ease;
}

.gallery-item:hover .gallery-thumb { transform: scale(1.08); }

.gallery-thumb-icon {
    opacity: 0.4;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-thumb-icon { opacity: 0.15; }

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(13,37,80,0.85) 0%, rgba(13,37,80,0.3) 50%, transparent 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay { opacity: 1; }

.gallery-overlay-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
    padding: 0 16px;
}

.gallery-overlay-content span {
    font-size: 13px;
    font-weight: 600;
    color: white;
    line-height: 1.3;
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    right: 0;
    left: 0;
    padding: 10px 14px;
    background: linear-gradient(to top, rgba(0,0,0,0.65), transparent);
    font-size: 12px;
    font-weight: 500;
    color: rgba(255,255,255,0.85);
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-caption { transform: translateY(0); }

/* ── Lightbox ── */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.92);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.lightbox.active {
    opacity: 1;
    pointer-events: all;
}

.lightbox-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    max-width: 700px;
    width: 90%;
}

.lightbox-image {
    width: 100%;
    aspect-ratio: 16/9;
    border-radius: 16px;
    box-shadow: 0 24px 80px rgba(0,0,0,0.6);
    transform: scale(0.92);
    transition: transform 0.3s ease;
}

.lightbox.active .lightbox-image { transform: scale(1); }

.lightbox-caption {
    font-size: 16px;
    font-weight: 600;
    color: white;
    text-align: center;
}

.lightbox-counter {
    font-size: 13px;
    color: rgba(255,255,255,0.5);
    font-family: 'Inter', sans-serif;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: fixed;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(201,162,39,0.35);
}

.lightbox-close { top: 20px; left: 20px; }
.lightbox-prev  { top: 50%; right: 20px; transform: translateY(-50%); }
.lightbox-next  { top: 50%; left: 20px;  transform: translateY(-50%); }
.lightbox-prev:hover { transform: translateY(-50%) scale(1.1); }
.lightbox-next:hover { transform: translateY(-50%) scale(1.1); }

/* ========================================
   RESPONSIVE — New Sections
   ======================================== */
@media (max-width: 1024px) {
    .events-grid         { grid-template-columns: repeat(2, 1fr); }
    .news-grid           { grid-template-columns: repeat(2, 1fr); }
    .research-metrics    { grid-template-columns: repeat(2, 1fr); }
    .research-cards-grid { grid-template-columns: repeat(2, 1fr); }
    .gallery-grid        { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .dept-events,
    .dept-news,
    .dept-research,
    .dept-gallery { padding: 56px 0; }

    .events-grid         { grid-template-columns: 1fr; }
    .news-grid           { grid-template-columns: 1fr; }
    .research-metrics    { grid-template-columns: repeat(2, 1fr); }
    .research-cards-grid { grid-template-columns: 1fr; }
    .gallery-grid        { grid-template-columns: repeat(2, 1fr); }

    .event-body { flex-direction: column; gap: 14px; }
    .event-date-badge {
        flex-direction: row;
        gap: 6px;
        width: 100%;
        border-radius: 8px;
        padding: 10px 14px;
    }
    .event-day { font-size: 20px; }
}

@media (max-width: 480px) {
    .research-metrics    { grid-template-columns: 1fr 1fr; }
    .gallery-grid        { grid-template-columns: 1fr; }
    .research-metric-value { font-size: 30px; }
    .gallery-item        { height: 180px; }
}
