/* ========================================
   Yemen University - College Page Styles
   ======================================== */

/* College Hero */
.college-hero {
    position: relative;
    min-height: 480px;
    display: flex;
    align-items: flex-end;
    padding: 120px 0 60px;
    overflow: hidden;
    margin-top: 72px;
}

.college-hero-bg {
    position: absolute;
    inset: 0;
}

.college-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(13, 33, 55, 0.9) 0%, rgba(13, 33, 55, 0.4) 60%, rgba(13, 33, 55, 0.2) 100%);
}

.college-hero-pattern {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 30% 70%, rgba(255,255,255,0.03) 0%, transparent 50%);
}

.college-hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
}

.college-hero-title {
    font-size: clamp(32px, 5vw, 44px);
    font-weight: 800;
    color: #ffffff;
    line-height: 1.2;
    margin-bottom: 16px;
}

.college-hero-desc {
    font-size: clamp(14px, 1.8vw, 17px);
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.8;
    max-width: 720px;
}

.college-hero-tag {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--gold-light);
    border-radius: 100px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 16px;
}

/* College Navigation */
.college-nav-wrapper {
    background: white;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 72px;
    z-index: 99;
}

.college-nav {
    display: flex;
    gap: 4px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 4px 0;
}

.college-nav::-webkit-scrollbar {
    display: none;
}

.college-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);
}

.college-nav-link:hover,
.college-nav-link.active {
    color: var(--text-primary);
    border-bottom-color: var(--primary);
}

/* About Section */
.college-about {
    padding: 64px 0;
    background: var(--bg-primary);
}

.about-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 48px;
    align-items: start;
}

.about-content .section-title {
    margin-bottom: 20px;
}

.about-text {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 16px;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-top: 32px;
    padding-top: 32px;
    border-top: 1px solid var(--border-light);
}

.about-stat {
    text-align: center;
}

.about-stat-number {
    font-size: 28px;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 6px;
    font-family: var(--font-en);
}

.about-stat-label {
    font-size: 13px;
    color: var(--text-tertiary);
}

/* Sidebar Cards */
.about-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.dean-card {
    padding: 28px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    background: white;
    text-align: center;
}

.dean-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-tertiary);
    margin: 0 auto 16px;
}

.dean-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.dean-name {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.dean-role {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.dean-bio {
    font-size: 13px;
    color: var(--text-tertiary);
    line-height: 1.6;
    margin-bottom: 16px;
}

.dean-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
    color: var(--primary);
}

.dean-link svg {
    transition: var(--transition);
}

.dean-link:hover svg {
    transform: translateX(-4px);
}

.contact-card {
    padding: 24px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    background: white;
}

.contact-card h4 {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 14px;
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.contact-item svg {
    flex-shrink: 0;
    margin-top: 2px;
    color: var(--text-tertiary);
}

/* Departments Section */
.departments-section {
    padding: 64px 0;
    background: var(--bg-secondary);
}

.departments-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.department-card {
    display: block;
    background: white;
    border-radius: var(--radius-lg);
    padding: 28px;
    border: 1px solid var(--border-light);
    transition: var(--transition);
}

.department-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--border);
}

.dept-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.dept-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
}

.dept-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.dept-programs,
.dept-faculty {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-tertiary);
    padding: 4px 10px;
    background: var(--bg-secondary);
    border-radius: 100px;
}

.dept-name {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.dept-desc {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 16px;
}

.dept-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
    color: var(--primary);
}

.dept-link svg {
    transition: var(--transition);
}

.department-card:hover .dept-link svg {
    transform: translateX(-4px);
}

/* Programs Section */
.programs-section {
    padding: 64px 0;
    background: var(--bg-primary);
}

.programs-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.program-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 28px 32px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    background: white;
    transition: var(--transition);
}

.program-card:hover {
    border-color: var(--border);
    box-shadow: var(--shadow);
    transform: translateX(-4px);
}

.program-info {
    flex: 1;
}

.program-name {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.program-desc {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 12px;
}

.program-details {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.program-details span {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--text-tertiary);
}

.program-details svg {
    flex-shrink: 0;
}

.program-badge {
    padding: 6px 16px;
    border-radius: 100px;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}

.badge-bachelor {
    background: #e0f2fe;
    color: #0369a1;
}

.badge-master {
    background: #f3e8ff;
    color: #7c3aed;
}

.badge-phd {
    background: #dcfce7;
    color: #15803d;
}

/* Faculty Section */
.faculty-section {
    padding: 64px 0;
    background: var(--bg-secondary);
}

.faculty-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.faculty-card {
    text-align: center;
    padding: 32px 24px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    background: white;
    transition: var(--transition);
}

.faculty-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--border);
}

.faculty-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-tertiary);
    margin: 0 auto 16px;
}

.faculty-name {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.faculty-role {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.faculty-degree {
    font-size: 12px;
    color: var(--text-tertiary);
}

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 1024px) {
    .about-grid {
        grid-template-columns: 1fr;
    }

    .about-sidebar {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .dean-card,
    .contact-card {
        flex: 1;
        min-width: 280px;
    }

    .departments-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .faculty-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .college-hero {
        min-height: auto;
        padding: 100px 0 48px;
    }

    .about-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-sidebar {
        flex-direction: column;
    }

    .departments-grid {
        grid-template-columns: 1fr;
    }

    .program-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .faculty-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .college-nav-wrapper {
        top: 64px;
    }
}

@media (max-width: 480px) {
    .about-stats {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .about-stat-number {
        font-size: 22px;
    }

    .faculty-grid {
        grid-template-columns: 1fr;
    }

    .program-card {
        padding: 20px;
    }
}

/* ========================================================================
   NEW SECTIONS — Events · News · Research · Gallery · Lightbox
   ======================================================================== */

/* ── Logo image ─────────────────────────────────────────────────────────── */
.logo-img {
    height: 44px;
    width: auto;
    object-fit: contain;
}

/* ========================================================================
   Section A — الفعاليات
   ======================================================================== */
.events-section {
    padding: 80px 0;
    background: #f8fafc;
    position: relative;
}

.events-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #1a3a6e, #c9a227, #1a3a6e);
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-top: 8px;
}

.event-card {
    background: white;
    border-radius: 16px;
    border: 1px solid #e8ecf0;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    cursor: default;
}

.event-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 48px rgba(26, 58, 110, 0.14);
    border-color: rgba(26, 58, 110, 0.25);
}

.event-card-inner {
    padding: 28px;
    position: relative;
}

.event-date-badge {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    background: linear-gradient(135deg, #1a3a6e, #2a5a9e);
    color: white;
    border-radius: 10px;
    padding: 10px 14px;
    margin-bottom: 16px;
    min-width: 56px;
    box-shadow: 0 4px 12px rgba(26, 58, 110, 0.3);
}

.event-day {
    font-size: 24px;
    font-weight: 800;
    line-height: 1;
    font-family: var(--font-en);
}

.event-month {
    font-size: 11px;
    font-weight: 500;
    opacity: 0.9;
    margin-top: 3px;
    white-space: nowrap;
}

.event-category-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 14px;
}

.badge-conference { background: #dbeafe; color: #1d4ed8; }
.badge-workshop   { background: #f3e8ff; color: #7c3aed; }
.badge-exhibition { background: #fef3c7; color: #92400e; }
.badge-lecture    { background: #dcfce7; color: #15803d; }
.badge-field      { background: #ffe4e6; color: #9f1239; }

.event-title {
    font-size: 17px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 10px;
    line-height: 1.4;
}

.event-desc {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 16px;
}

.event-meta {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}

.event-meta-item {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 13px;
    color: var(--text-tertiary);
}

.event-meta-item svg {
    flex-shrink: 0;
    color: #1a3a6e;
    opacity: 0.7;
}

.event-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 20px;
    background: linear-gradient(135deg, #1a3a6e, #2a5a9e);
    color: white;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    transition: opacity 0.2s, transform 0.2s;
    box-shadow: 0 2px 8px rgba(26, 58, 110, 0.25);
}

.event-btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

/* ========================================================================
   Section B — الأخبار
   ======================================================================== */
.college-news-section {
    padding: 80px 0;
    background: white;
    position: relative;
}

.college-news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.college-news-card {
    border-radius: 16px;
    border: 1px solid #e8ecf0;
    overflow: hidden;
    background: white;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.college-news-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.10);
}

.college-news-img {
    height: 180px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.college-news-img::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.15);
}

.news-img-icon {
    position: relative;
    z-index: 2;
    opacity: 0.85;
    transition: transform 0.3s ease;
}

.college-news-card:hover .news-img-icon {
    transform: scale(1.15);
}

.news-category-badge {
    position: absolute;
    bottom: 12px;
    right: 12px;
    z-index: 3;
    padding: 4px 12px;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(4px);
    border-radius: 100px;
    font-size: 12px;
    font-weight: 700;
    color: #1a3a6e;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}

.college-news-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.college-news-title {
    font-size: 17px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 10px;
    line-height: 1.45;
}

.college-news-excerpt {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.75;
    margin-bottom: 16px;
    flex: 1;
}

.college-news-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    padding-top: 14px;
    border-top: 1px solid #f0f0f0;
}

.college-news-date {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--text-tertiary);
}

.college-news-read {
    font-size: 12px;
    color: var(--text-tertiary);
    background: #f4f6f9;
    padding: 3px 10px;
    border-radius: 100px;
}

.college-news-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 700;
    color: #1a3a6e;
    transition: gap 0.2s;
}

.college-news-link:hover {
    gap: 10px;
}

.college-news-link svg {
    transition: transform 0.2s;
}

.college-news-link:hover svg {
    transform: translateX(-4px);
}

/* ========================================================================
   Section C — البحث العلمي
   ======================================================================== */
.college-research-section {
    padding: 80px 0;
    background: linear-gradient(180deg, #f0f4f8 0%, #e8edf3 100%);
    position: relative;
}

/* Stats row */
.research-stats-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    background: white;
    border-radius: 16px;
    border: 1px solid #e0e6f0;
    padding: 32px 24px;
    margin-bottom: 48px;
    box-shadow: 0 4px 20px rgba(26, 58, 110, 0.07);
}

.research-stat-item {
    flex: 1;
    text-align: center;
    padding: 0 24px;
}

.research-stat-number {
    display: block;
    font-size: 42px;
    font-weight: 900;
    color: #1a3a6e;
    line-height: 1;
    font-family: var(--font-en);
    background: linear-gradient(135deg, #1a3a6e, #2a5a9e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.research-stat-label {
    display: block;
    font-size: 14px;
    color: var(--text-secondary);
    margin-top: 8px;
    font-weight: 500;
}

.research-stat-divider {
    width: 1px;
    height: 60px;
    background: #d8e0ea;
    flex-shrink: 0;
}

/* Research cards */
.research-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.research-card {
    background: white;
    border-radius: 16px;
    border: 1px solid #e0e6f0;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.research-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 48px rgba(26, 58, 110, 0.14);
}

.research-card-top {
    height: 110px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.research-card-top::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.08);
}

.research-card-top svg {
    position: relative;
    z-index: 2;
    opacity: 0.95;
}

.research-card-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.research-card-badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.research-specialty-badge {
    padding: 4px 12px;
    background: #e0eaff;
    color: #1a3a6e;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 600;
}

.research-status-badge {
    padding: 4px 12px;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 600;
}

.status-funded    { background: #d1fae5; color: #065f46; }
.status-ongoing   { background: #fef3c7; color: #92400e; }
.status-completed { background: #e0f2fe; color: #0c4a6e; }

.research-card-title {
    font-size: 17px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 10px;
    line-height: 1.4;
}

.research-card-desc {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.75;
    margin-bottom: 20px;
    flex: 1;
}

.research-card-researcher {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    border-top: 1px solid #f0f0f0;
    margin-bottom: 16px;
}

.researcher-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #eef2ff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1a3a6e;
    flex-shrink: 0;
}

.researcher-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.research-view-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 700;
    color: #1a3a6e;
    padding: 9px 0;
    border-top: 2px solid transparent;
    transition: color 0.2s, gap 0.2s;
}

.research-view-btn:hover {
    color: #c9a227;
    gap: 10px;
}

/* ========================================================================
   Section D — معرض الصور
   ======================================================================== */
.college-gallery-section {
    padding: 80px 0;
    background: #0d1f3a;
    position: relative;
}

.college-gallery-section .section-tag {
    color: rgba(201, 162, 39, 0.9);
}

.college-gallery-section .section-title {
    color: white;
}

.college-gallery-section .section-subtitle {
    color: rgba(255,255,255,0.55);
}

.college-gallery-section .section-header > div {
    text-align: center;
    max-width: 560px;
    margin: 0 auto 48px;
}

.college-gallery-section .section-header {
    flex-direction: column;
    align-items: center;
    gap: 0;
    margin-bottom: 0;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.gallery-item {
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    aspect-ratio: 4/3;
}

.gallery-item:nth-child(1),
.gallery-item:nth-child(5),
.gallery-item:nth-child(9) {
    aspect-ratio: 4/3;
}

.gallery-img {
    width: 100%;
    height: 100%;
    min-height: 220px;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.gallery-item:hover .gallery-img {
    transform: scale(1.08);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(13, 31, 58, 0.88) 0%, rgba(13, 31, 58, 0.25) 60%, transparent 100%);
    display: flex;
    align-items: flex-end;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    transform: translateY(8px);
    transition: transform 0.35s ease;
}

.gallery-item:hover .gallery-overlay-content {
    transform: translateY(0);
}

.gallery-zoom-icon {
    width: 32px;
    height: 32px;
    background: rgba(255,255,255,0.15);
    border-radius: 8px;
    padding: 4px;
    backdrop-filter: blur(4px);
}

.gallery-item-label {
    font-size: 14px;
    font-weight: 700;
    color: white;
    text-shadow: 0 1px 4px rgba(0,0,0,0.4);
}

/* ========================================================================
   Lightbox Modal
   ======================================================================== */
.lightbox-modal {
    position: fixed;
    inset: 0;
    background: rgba(9, 18, 40, 0.96);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(8px);
}

.lightbox-modal.active {
    opacity: 1;
    pointer-events: all;
}

.lightbox-content {
    width: min(85vw, 900px);
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.lightbox-img-wrap {
    width: 100%;
    aspect-ratio: 16/10;
    border-radius: 16px;
    box-shadow: 0 40px 100px rgba(0,0,0,0.6);
    transition: background 0.35s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255,255,255,0.08);
    min-height: 300px;
}

.lightbox-caption {
    font-size: 16px;
    font-weight: 600;
    color: rgba(255,255,255,0.85);
    text-align: center;
    letter-spacing: 0.3px;
}

.lightbox-close {
    position: absolute;
    top: 24px;
    left: 24px;
    z-index: 10;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s;
    backdrop-filter: blur(4px);
}

.lightbox-close:hover {
    background: rgba(255,255,255,0.2);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
    backdrop-filter: blur(4px);
}

.lightbox-nav:hover {
    background: rgba(255,255,255,0.2);
    transform: translateY(-50%) scale(1.1);
}

.lightbox-prev { right: 24px; }
.lightbox-next { left: 24px;  }

/* ========================================================================
   Responsive — new sections
   ======================================================================== */
@media (max-width: 1024px) {
    .events-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .college-news-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .research-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .research-stats-row {
        flex-wrap: wrap;
        gap: 24px;
        justify-content: space-around;
    }

    .research-stat-divider {
        display: none;
    }

    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .events-grid {
        grid-template-columns: 1fr;
    }

    .college-news-grid {
        grid-template-columns: 1fr;
    }

    .research-cards-grid {
        grid-template-columns: 1fr;
    }

    .research-stats-row {
        padding: 24px 16px;
        gap: 20px;
    }

    .research-stat-number {
        font-size: 32px;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .lightbox-prev { right: 12px; }
    .lightbox-next { left: 12px;  }

    .lightbox-content {
        width: 92vw;
    }
}

@media (max-width: 480px) {
    .events-section,
    .college-news-section,
    .college-research-section,
    .college-gallery-section {
        padding: 56px 0;
    }

    .gallery-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .gallery-img {
        min-height: 140px;
    }

    .gallery-overlay {
        opacity: 1;
    }

    .gallery-overlay-content {
        transform: none;
    }

    .lightbox-img-wrap {
        aspect-ratio: 4/3;
        min-height: 200px;
    }
}

/* ========================================
   Stats Section for Colleges
   ======================================== */
.stats-section {
    background: var(--bg-secondary);
    padding: 60px 0;
    position: relative;
    border-bottom: 1px solid var(--border-light);
    margin-top: -40px; /* Overlaps with hero section for premium aesthetic */
    z-index: 10;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.stat-item {
    text-align: center;
    padding: 28px 24px;
    border-radius: var(--radius-lg);
    background: white;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--gold);
}

.stat-icon-wrap {
    font-size: 32px;
    margin-bottom: 12px;
    display: inline-block;
}

.stat-number {
    font-size: clamp(28px, 3.5vw, 42px);
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 12px;
    font-family: var(--font-en);
}

.stat-label {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 600;
}

@media (max-width: 1024px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .stats-section {
        margin-top: 0;
        padding: 40px 0;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
}
