:root {
    --primary-gradient: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    --accent-color: #fbbf24;
    --accent-hover: #f59e0b;
    --accent-glow: rgba(251, 191, 36, 0.4);
    --text-color: #1e293b;
    --text-light: #64748b;
    --bg-color: #f8fafc;
    --white: #ffffff;
    --link-color: #0f172a;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-card: 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);
    --shadow-hover: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --font-heading: 'Outfit', sans-serif;
    --font-main: 'Inter', sans-serif;
    --transition-speed: 0.3s;
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.5);
}

[data-theme="dark"] {
    --primary-gradient: linear-gradient(135deg, #0f172a 0%, #020617 100%);
    --accent-color: #fcd34d;
    --text-color: #f1f5f9;
    --text-light: #94a3b8;
    --bg-color: #020617;
    --white: #0f172a;
    --link-color: #f8fafc;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
    --shadow-card: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
    --glass-bg: rgba(15, 23, 42, 0.7);
    --glass-border: rgba(255, 255, 255, 0.1);
}

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

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-x: hidden;
    width: 100%;
    position: relative;
    max-width: 100%;
}

html {
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

h1, h2, h3, h4, h5, h6 {
    overflow-wrap: break-word;
    word-wrap: break-word;
}


/* ==================== THEME CIRCULAR REVEAL TRANSITION ==================== */
/* View Transitions API (Chrome 111+) */
::view-transition-old(root),
::view-transition-new(root) {
    animation: none;
    mix-blend-mode: normal;
}

::view-transition-old(root) {
    z-index: 1;
}

::view-transition-new(root) {
    z-index: 9999;
    animation: circleReveal 0.7s ease-in-out;
}

@keyframes circleReveal {
    from {
        clip-path: circle(0% at var(--reveal-x, 50%) var(--reveal-y, 50%));
    }

    to {
        clip-path: circle(var(--reveal-r, 150%) at var(--reveal-x, 50%) var(--reveal-y, 50%));
    }
}

/* Fallback overlay for Safari / Firefox */
.theme-reveal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 99999;
    pointer-events: none;
    clip-path: circle(0% at var(--rx, 50%) var(--ry, 50%));
    transition: clip-path 0.65s ease-in-out;
}

.theme-reveal-overlay.expanding {
    clip-path: circle(var(--rmax, 150%) at var(--rx, 50%) var(--ry, 50%));
}

/* ==================== HEADER STYLES ==================== */
header.main-header {
    color: var(--white);
    padding: 3.5rem 0;
    position: relative;
    overflow: hidden;
    border-bottom: 2px solid rgba(255, 255, 255, 0.05);
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 40%, #0f0f1a 70%, #0d0d0d 100%);
}

header.main-header .header-container {
    position: relative;
    z-index: 1;
}

#molecular-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* Subtle glowing line at the bottom similar to footer's top line */
header.main-header::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-color), transparent);
    opacity: 0.4;
}

/* Ambient dark-mode-like glow behind the letters */
header.main-header::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 300px;
    background: radial-gradient(circle, rgba(251, 191, 36, 0.08) 0%, transparent 60%);
    pointer-events: none;
}

.header-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 4rem;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 3rem;
    align-items: center;
    position: relative;
    z-index: 10;
}

.header-left,
.header-right {
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo-box {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 140px;
    height: 140px;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    background: transparent;
    position: relative;
    /* This makes the logos "float" down over the nav bar slightly */
    transform: translateY(20px);
    z-index: 100;
}

.logo-box:hover {
    transform: translateY(15px) scale(1.08);
}

.logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: transparent;
    filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.25));
    transition: all 0.4s ease;
}

.logo-box:hover .logo-img {
    filter: drop-shadow(0 12px 20px rgba(251, 191, 36, 0.3));
}

.header-center {
    text-align: center;
}

.header-center h1 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 800;
    margin: 0 0 0.8rem 0;
    letter-spacing: -0.01em;
    background: linear-gradient(135deg, var(--white) 0%, #cbd5e1 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-center p {
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0;
    color: var(--accent-color);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Responsive Header */
@media (max-width: 1024px) {
    .header-container {
        grid-template-columns: 100px 1fr 100px;
        gap: 1.5rem;
    }

    .logo-box {
        width: 70px;
        height: 70px;
    }

    .logo-text {
        font-size: 1.2rem;
    }

    .header-center h1 {
        font-size: 2rem;
    }

    .header-center p {
        font-size: 0.85rem;
    }
}

@media (max-width: 768px) {
    .header-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 1rem;
        text-align: center;
    }

    .header-left,
    .header-right {
        display: none;
    }

    header.main-header {
        padding: 2.5rem 0;
    }

    .header-center h1 {
        font-size: 1.6rem;
    }

    .header-center p {
        font-size: 0.75rem;
    }
}



/* ==================== NAVBAR WITH DROPDOWNS ==================== */
nav {
    background: var(--white);
    box-shadow: var(--shadow-sm);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 4rem;
    position: relative;
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0;
}

nav li {
    position: relative;
}

nav a {
    display: block;
    color: var(--link-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    padding: 1rem 1rem;
    transition: all var(--transition-speed);
    border-bottom: 3px solid transparent;
    white-space: nowrap;
}

nav a:hover {
    border-bottom: 3px solid var(--accent-color);
    background: rgba(247, 215, 116, 0.1);
}

/* Dropdown Styles */
.dropdown {
    position: relative;
}

.dropdown-toggle {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.arrow {
    font-size: 0.7rem;
    transition: transform 0.3s;
}

.dropdown:hover .arrow {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
    border-radius: 0 0 8px 8px;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    padding: 0;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    width: 100%;
    list-style: none;
    margin: 0;
}

.dropdown-menu a {
    padding: 0.8rem 1.2rem;
    border-bottom: none;
    border-left: 3px solid transparent;
}

.dropdown-menu a:hover {
    background: rgba(247, 215, 116, 0.15);
    border-left: 3px solid var(--accent-color);
    border-bottom: none;
}

/* Theme Toggle */
.theme-toggle {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.3rem;
    padding: 0.5rem 1rem;
    transition: transform 0.3s;
}

.theme-toggle:hover {
    transform: scale(1.2);
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 1rem;
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1001;
}

.hamburger span {
    height: 3px;
    width: 25px;
    background-color: var(--link-color);
    margin-bottom: 4px;
    border-radius: 2px;
    transition: all 0.3s;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Dark Mode Dropdown */
[data-theme="dark"] .dropdown-menu {
    background: var(--white);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.8);
}

/* ==================== MOBILE RESPONSIVE (FIXED) ==================== */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 60px;
        left: 0;
        background-color: var(--white);
        padding: 2rem 0;
        box-shadow: 0 10px 40px rgba(0,0,0,0.15);
        gap: 0;
        max-height: calc(100vh - 60px);
        overflow-y: auto;
        z-index: 10001 !important;
    }

    .nav-links.active {
        display: flex !important;
    }

    nav li {
        width: 100%;
        border-bottom: 1px solid #eee;
    }

    nav a {
        padding: 1rem 2rem;
        border-bottom: none !important;
        width: 100%;
    }

    /* Mobile Dropdown - FIXED */
    .dropdown {
        position: relative;
    }

    .dropdown-toggle {
        width: 100%;
        justify-content: space-between;
        padding: 1rem 2rem;
    }

    .dropdown-menu {
        position: static !important;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        box-shadow: none;
        background: #f8f9fa;
        border-radius: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        display: block;
    }

    .dropdown.active .dropdown-menu {
        max-height: 500px !important;
    }

    .dropdown.active .arrow {
        transform: rotate(180deg);
    }

    .dropdown-menu a {
        padding: 0.8rem 3rem;
        border-left: none;
        border-bottom: 1px solid #e0e0e0;
    }

    .dropdown-menu a:hover {
        background: rgba(247, 215, 116, 0.2);
        border-left: none;
    }

    /* Theme toggle in mobile */
    .theme-toggle {
        margin: 1rem 2rem;
    }
}


/* ==================== TOP GRID SECTION ==================== */
.top-grid-section {
    padding: 2rem 0;
    background: var(--bg-color);
}

.top-grid-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 4rem;
}

.top-grid {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    gap: 2rem;
    align-items: start;
}

/* Sidebar Card Styling */
.sidebar-card-unified {
    padding: 1.25rem;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    box-shadow: var(--shadow-card);
}

.sidebar-header-unified {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

/* LEFT COLUMN */
.left-column {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    height: 100%;
}

.welcome-card {
    padding: 2.5rem;
    position: relative;
    z-index: 1;
}

.welcome-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--text-light);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.typing-text {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--accent-color);
    margin-bottom: 1.5rem;
    min-height: 80px;
    line-height: 1.2;
    text-shadow: 0 0 20px var(--accent-glow);
}

.welcome-desc {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-light);
}

/* Stats Card */
.stats-card {
    padding: 2rem;
}

.stats-title {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 2rem;
    color: var(--text-color);
    position: relative;
    padding-bottom: 0.75rem;
}

.stats-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--accent-color);
    border-radius: 2px;
}

.stats-mini-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.stats-card-compact {
    margin-bottom: 1.5rem;
}

.stat-mini-box {
    background: rgba(255, 255, 255, 0.4);
    border: 1px solid rgba(0, 0, 0, 0.05);
    padding: 0.85rem 0.5rem;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s ease;
}

[data-theme="dark"] .stat-mini-box {
    background: rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.05);
}

.stat-mini-box:hover {
    transform: translateY(-3px);
    background: var(--white);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.stat-mini-box .number {
    display: block;
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--accent-color);
    line-height: 1.1;
}

.stat-mini-box .label {
    font-size: 0.65rem;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--text-light);
    letter-spacing: 0.05em;
}

.stat-mini h2 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--accent-color);
    margin-bottom: 0.2rem;
    letter-spacing: -0.02em;
}

.stat-mini p {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Director's Message */
.director-card {
    padding: 1.5rem;
}

.director-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.director-img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.director-header h3 {
    font-size: 1.1rem;
    margin: 0;
    color: var(--text-color);
}

.director-name {
    font-size: 0.9rem;
    color: var(--accent-color);
    margin: 0;
}

.director-text {
    font-style: italic;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.read-more-toggle {
    background: none;
    border: none;
    color: var(--accent-color);
    font-weight: 600;
    cursor: pointer;
    padding: 0;
    font-size: 0.95rem;
    transition: color 0.3s;
}

.read-more-toggle:hover {
    color: var(--accent-hover);
}

/* Compact Events List */
.seminar-list-compact {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 1.25rem;
}

.seminar-item-mini {
    display: flex;
    gap: 12px;
    padding: 0.85rem;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 14px;
    align-items: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02);
}

[data-theme="dark"] .seminar-item-mini {
    background: rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.05);
}

.seminar-item-mini:hover {
    transform: translateY(-3px);
    background: var(--white);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.mini-date {
    min-width: 48px;
    height: 48px;
    background: var(--link-color) !important;
    color: var(--bg-color) !important;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    line-height: 1;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.mini-date .day {
    font-size: 1.1rem;
    font-weight: 800;
}

.mini-date .mon {
    font-size: 0.6rem;
    text-transform: uppercase;
    font-weight: 700;
    opacity: 0.9;
    margin-top: 1px;
}

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

.mini-content h4 {
    font-size: 0.85rem;
    margin: 0 0 4px 0;
    font-weight: 700;
    line-height: 1.3;
    color: var(--text-color);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.mini-content p {
    font-size: 0.75rem;
    margin: 0;
    color: var(--text-light);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* CENTER COLUMN - Featured Carousel */
.center-column {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.featured-card {
    padding: 1.5rem;
}

.featured-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.carousel-container {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    background: var(--bg-color);
    border: 1px solid var(--glass-border);
}

.carousel-slides {
    position: relative;
    height: auto;
}

.carousel-slide {
    display: none;
    flex-direction: column;
    width: 100%;
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
}

.carousel-slide.active {
    display: flex;
    opacity: 1;
}

.carousel-slide img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    transition: transform 6s ease-in-out;
}

.carousel-slide.active img {
    transform: scale(1.1);
}

.carousel-caption {
    background: var(--bg-color);
    color: var(--text-color);
    padding: 1.5rem;
    text-align: left;
    border-top: 1px solid var(--glass-border);
    position: static !important;
}

.carousel-caption h4 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    line-height: 1.2;
    color: var(--text-color);
}

.carousel-caption p {
    font-size: 1rem;
    color: var(--text-light);
    font-weight: 400;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.3);
    border: none;
    color: white;
    font-size: 2.5rem;
    padding: 0.5rem 1rem;
    cursor: pointer;
    transition: background 0.3s;
    z-index: 10;
    border-radius: 4px;
}

.carousel-btn:hover {
    background: rgba(255, 255, 255, 0.5);
}

.carousel-btn.prev {
    left: 10px;
}

.carousel-btn.next {
    right: 10px;
}

.carousel-dots {
    text-align: center;
    padding: 1rem 0 0.5rem 0;
}

.dot {
    height: 12px;
    width: 12px;
    margin: 0 5px;
    background-color: #bbb;
    border-radius: 50%;
    display: inline-block;
    cursor: pointer;
    transition: background-color 0.3s;
}

.dot.active,
.dot:hover {
    background-color: var(--accent-color);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--text-color);
    line-height: 1.2;
}

h1 {
    font-size: 3rem;
    font-weight: 800;
}

h2 {
    font-size: 2.2rem;
    font-weight: 700;
}

h3 {
    font-size: 1.8rem;
    font-weight: 700;
}

h4 {
    font-size: 1.4rem;
    font-weight: 600;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 3.5rem;
    position: relative;
    padding-bottom: 1.5rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--accent-color);
    border-radius: 2px;
}

/* Alumni Spotlight */
.alumni-card {
    padding: 1.5rem;
}

.section-subtitle {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.alumni-spotlight {
    display: flex;
    gap: 1rem;
    align-items: start;
}

.alumni-img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.alumni-info h4 {
    margin: 0 0 0.3rem 0;
    color: var(--text-color);
    font-size: 1.1rem;
}

.alumni-position {
    font-size: 0.9rem;
    color: var(--accent-color);
    margin: 0 0 0.5rem 0;
    font-weight: 600;
}

.alumni-quote {
    font-style: italic;
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.5;
}

/* RIGHT COLUMN - Events */
.right-column {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    height: 100%;
}

.events-card {
    padding: 1.5rem;
}

.events-title {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.events-list {
    max-height: 450px;
    overflow-y: auto;
}

.events-list::-webkit-scrollbar {
    width: 6px;
}

.events-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.events-list::-webkit-scrollbar-thumb {
    background: var(--accent-color);
    border-radius: 10px;
}

.event-item {
    padding: 1rem;
    margin-bottom: 1rem;
    background: #f6faff;
    border-left: 4px solid var(--accent-color);
    border-radius: 6px;
    transition: transform 0.2s;
}

.event-item:hover {
    transform: translateX(5px);
}

.event-date {
    font-size: 0.85rem;
    color: var(--accent-color);
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.event-item h4 {
    font-size: 1.05rem;
    margin: 0 0 0.5rem 0;
    color: var(--text-color);
}

.event-item p {
    font-size: 0.9rem;
    color: var(--text-light);
    margin: 0.3rem 0;
}

.btn-small {
    display: inline-block;
    padding: 0.6rem 1.2rem;
    background: var(--accent-color);
    color: var(--text-color);
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 600;
    text-align: center;
    margin-top: 1rem;
    transition: background 0.3s;
}

.btn-small:hover {
    background: var(--accent-hover);
}

/* Awards Card */
.stats-card {
    padding: 2.2rem;
}

.stats-title {
    font-family: var(--font-main);
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--text-color);
    position: relative;
    padding-bottom: 0.75rem;
}

.stats-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--accent-color);
    border-radius: 2px;
}

.stats-mini-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.stat-mini {
    text-align: center;
    padding: 1.2rem 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    border: 1px solid var(--glass-border);
    transition: all 0.3s ease;
}

.stat-mini:hover {
    background: var(--white);
    transform: scale(1.05);
    box-shadow: var(--shadow-sm);
}

.stat-mini h2 {
    font-family: var(--font-main);
    font-size: 2.4rem;
    font-weight: 800;
    color: var(--accent-color);
    margin-bottom: 0.2rem;
    letter-spacing: -0.02em;
}

.stat-mini p {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.divider {
    border: none;
    border-top: 1px solid #ddd;
    margin: 1rem 0;
}

/* Awards Horizontal Section (Below Featured Research) */
.awards-horizontal {
    padding: 1.5rem;
    margin-top: 1.5rem;
}

.awards-cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-top: 1rem;
}

.equipment-card {
    background: var(--glass-bg);
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    padding: 1rem;
    box-shadow: var(--shadow-card);
    transition: all var(--transition-speed) cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.equipment-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: var(--accent-glow);
}

.award-mini-card {
    background: #f6faff;
    padding: 1.2rem;
    border-radius: 8px;
    border-left: 4px solid var(--accent-color);
    transition: all 0.3s ease;
}

.award-mini-card:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.award-date-badge {
    display: inline-block;
    background: var(--accent-color);
    color: var(--text-color);
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

.award-mini-card h4 {
    font-size: 1rem;
    margin: 0.5rem 0;
    color: var(--text-color);
    font-weight: 700;
}

.award-mini-card p {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.5;
    margin: 0;
}

/* Quick Links Card */
.quick-links-card {
    padding: 1.5rem;
}

.quick-links-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.8rem;
    margin-top: 1rem;
}

.quick-link-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem 1rem;
    background: #f6faff;
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-color);
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.quick-link-item:hover {
    background: var(--accent-color);
    border-left-color: var(--text-color);
    transform: translateX(5px);
}

.link-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.link-text {
    font-size: 0.9rem;
    font-weight: 600;
}

/* Publications / Research Impact Card */
.publications-card {
    padding: 1.5rem;
}

.impact-stats-mini {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin: 1rem 0;
}

.impact-stat-item {
    text-align: center;
    padding: 1rem;
    background: #f6faff;
    border-radius: 8px;
}

.impact-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 0.3rem;
}

.impact-label {
    font-size: 0.8rem;
    color: var(--text-light);
    line-height: 1.2;
}

.recent-pubs-list {
    margin: 1rem 0;
}

.pub-item {
    padding: 1rem;
    margin-bottom: 0.8rem;
    background: #f6faff;
    border-radius: 8px;
    border-left: 4px solid #4caf50;
    transition: all 0.3s ease;
}

.pub-item:hover {
    transform: translateX(5px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.faculty-card {
    background: var(--glass-bg);
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-card);
    transition: all var(--transition-speed) cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.faculty-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: var(--accent-glow);
}

.pub-badge {
    display: inline-block;
    background: #4caf50;
    color: white;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.pub-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-color);
    margin: 0.3rem 0;
    line-height: 1.4;
}

.pub-author {
    font-size: 0.85rem;
    color: var(--text-light);
    margin: 0;
}

/* ==================== NEWS SECTION ==================== */
.news-section {
    padding: 2.5rem 0;
    background: var(--bg-color);
}

.section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.news-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.news-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.news-card .card-img {
    height: 200px;
    width: 100%;
    object-fit: cover;
    display: block;
}

.news-card-content {
    padding: 2rem;
}

.news-date {
    font-size: 0.85rem;
    color: var(--accent-color);
    font-weight: 700;
    margin: 0 0 0.75rem 0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.news-title {
    margin: 0.5rem 0;
    color: var(--text-color);
    line-height: 1.3;
}

.news-summary {
    font-size: 1rem;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.read-more-link {
    display: inline-block;
    margin-top: 0.5rem;
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.read-more-link:hover {
    color: var(--accent-hover);
}

/* ==================== RESEARCH THEMES ==================== */
.research-themes-section {
    padding: 4rem 0;
    background: #f5f7fa;
}

.research-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.research-card {
    padding: 2rem;
    text-align: center;
    transition: transform 0.3s;
}

.research-card:hover {
    transform: translateY(-8px);
}

.research-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.research-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.research-card p {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.research-link {
    display: inline-block;
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.research-link:hover {
    color: var(--accent-hover);
}

/* Glass Card Effect */
.glass-card {
    background: var(--glass-bg);
    border-radius: 16px;
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: all var(--transition-speed) cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-4px);
    border-color: var(--accent-glow);
}

/* Scroll Reveal Animation */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s, transform 0.6s;
}

.scroll-reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.scroll-reveal.delay-1 {
    transition-delay: 0.2s;
}

.scroll-reveal.delay-2 {
    transition-delay: 0.4s;
}

.scroll-reveal.delay-3 {
    transition-delay: 0.6s;
}

/* ==================== FOOTER STYLES ==================== */
footer.main-footer {
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 40%, #0f0f1a 70%, #0d0d0d 100%);
    color: var(--text-light);
    padding: 5rem 0 2rem 0;
    margin-top: auto;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
}

#footer-molecular-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

footer.main-footer .footer-grid,
footer.main-footer .footer-bottom {
    position: relative;
    z-index: 1;
}

/* Subtle background glow effect */
footer.main-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-color), transparent);
    opacity: 0.3;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.5fr;
    gap: 3rem;
    padding-bottom: 3rem;
    text-align: left;
    max-width: 1300px; /* Reduced for better laptop fit */
    margin: 0 auto;
    width: 90%;
}

.footer-col h3 {
    color: var(--white);
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    font-weight: 600;
    position: relative;
    padding-bottom: 0.8rem;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--accent-color);
    border-radius: 2px;
}

.footer-col p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0.8rem;
    line-height: 1.6;
    font-size: 0.95rem;
}

.footer-col ul {
    list-style: none;
    padding: 0;
}

.footer-col ul li {
    margin-bottom: 0.8rem;
}

.footer-col a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    font-size: 0.95rem;
}

.footer-col a:hover {
    color: var(--accent-color);
    transform: translateX(5px);
}

.social-links {
    margin-top: 1.5rem;
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-links a:hover {
    background: var(--accent-color);
    color: #0f172a;
    transform: translateY(-3px);
    border-color: var(--accent-color);
    box-shadow: 0 4px 12px rgba(251, 191, 36, 0.3);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 2rem 0;
    text-align: center;
    background: rgba(0, 0, 0, 0.1);
    width: 100%;
}

.contact-info-list {
    margin-top: 1.5rem;
    list-style: none;
    padding: 0;
}

.contact-info-list li {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    margin-bottom: 1.25rem !important;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.5;
}

.contact-info-list li span:first-child {
    font-size: 1.2rem;
    line-height: 1;
    flex-shrink: 0;
    margin-top: 0.2rem;
}

.contact-info-list li a {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-info-list li a:hover {
    color: var(--accent-color);
}

/* Laptop and Tablet Optimizations */
@media (max-width: 1200px) {
    .footer-grid {
        grid-template-columns: 1.2fr 1fr 1.3fr;
        gap: 2.5rem;
        max-width: 1000px;
    }
}

@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2.5rem;
    }
    
    .footer-col:last-child {
        grid-column: span 2;
    }
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
    margin: 0;
}

@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    footer.main-footer {
        padding: 4rem 1.5rem 2rem;
    }
}

/* Dark Mode Specific */
[data-theme="dark"] .event-item {
    background: #2a2a2a;
}

[data-theme="dark"] .carousel-container {
    background: #1a1a1a;
}

[data-theme="dark"] .divider {
    border-top-color: #444;
}

[data-theme="dark"] .award-mini-card {
    background: #2a2a2a;
}

[data-theme="dark"] .quick-link-item {
    background: #2a2a2a;
}

[data-theme="dark"] .quick-link-item:hover {
    background: var(--accent-color);
}

[data-theme="dark"] .impact-stat-item {
    background: #2a2a2a;
}

[data-theme="dark"] .pub-item {
    background: #2a2a2a;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1300px) {
    .top-grid {
        grid-template-columns: 1fr 1fr;
    }

    .right-column {
        grid-column: 1 / -1;
    }
}

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

    .carousel-slides {
        height: auto;
    }
}

@media (max-width: 768px) {
    .top-grid-container,
    .nav-container,
    .table-container-premium,
    .container {
        padding: 0 1.25rem;
        width: 100%;
        max-width: 100%;
        overflow-x: visible !important; /* Allow nav-links to show */
    }

    nav {
        overflow: visible !important; /* Allow absolute children to show */
        background-color: var(--white) !important;
        position: sticky !important;
        top: 0 !important;
        width: 100% !important;
        height: 60px !important;
        display: flex !important;
        align-items: center;
        z-index: 9999 !important;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    }

    .hamburger {
        display: flex !important;
        position: relative !important;
        background: rgba(0, 0, 0, 0.05) !important;
        padding: 0.6rem;
        border-radius: 6px !important;
        border: 1px solid rgba(0, 0, 0, 0.1) !important;
        top: 0 !important;
        right: 0 !important;
        transform: none !important;
        width: 42px !important;
        height: 42px !important;
        align-items: center;
    }

    .top-grid-section {
        padding: 0.5rem 0 2rem 0 !important;
    }

    .top-grid {
        display: block !important;
        width: 100% !important;
    }

    .left-column, .center-column, .right-column {
        width: 100% !important;
        display: block !important;
        padding: 0 !important;
        margin: 0 0 1.5rem 0 !important;
    }

    .welcome-card, .director-card, .featured-card, .sidebar-card-unified, .events-card-compact, .stats-card-compact {
        width: 100% !important;
        margin: 0 0 1.5rem 0 !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    .hamburger span {
        background-color: var(--link-color) !important;
        margin-bottom: 3px;
        width: 22px;
        height: 2px;
        border-radius: 2px;
    }

    /* Global Mobile Nav Container */
    .nav-container {
        display: flex !important;
        justify-content: flex-end !important;
        align-items: center !important;
        width: 100% !important;
        height: 60px !important;
        padding: 0 1.5rem !important;
    }

    .typing-text {
        font-size: 1.6rem;
        white-space: normal !important;
        overflow-wrap: break-word;
        height: auto !important;
        min-height: 3.5rem;
    }

    header h1 {
        font-size: 1.8rem;
        overflow-wrap: break-word;
        word-wrap: break-word;
    }

    .carousel-slides {
        height: auto;
    }

    .carousel-caption h4 {
        font-size: 1.3rem;
    }

    .carousel-caption p {
        font-size: 0.95rem;
    }

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

    .news-grid,
    .research-grid {
        grid-template-columns: 1fr;
    }

    .news-card-content {
        padding: 1.5rem;
    }
}

/* ==================== EVENTS PAGE ==================== */
.events-page-section {
    padding: 4rem 0;
    min-height: 60vh;
}

.page-title {
    font-size: 2.5rem;
    text-align: center;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.page-subtitle {
    text-align: center;
    color: var(--text-light);
    font-size: 1.1rem;
    margin-bottom: 3rem;
}

.events-timeline {
    max-width: 900px;
    margin: 0 auto;
}

.event-item-full {
    display: flex;
    gap: 2rem;
    padding: 2rem;
    margin-bottom: 2rem;
    background: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow-card);
    border-left: 5px solid var(--accent-color);
    transition: transform 0.3s, box-shadow 0.3s;
}

.event-item-full:hover {
    transform: translateX(10px);
    box-shadow: var(--shadow-hover);
}

.event-item-full.past-event {
    opacity: 0.7;
    border-left-color: #999;
}

.event-date-badge {
    flex-shrink: 0;
    width: 100px;
    height: 100px;
    background: var(--accent-color);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    text-align: center;
    color: var(--text-color);
}

.event-details {
    flex: 1;
}

.event-details h3 {
    font-size: 1.5rem;
    margin: 0 0 1rem 0;
    color: var(--text-color);
}

.event-details p {
    margin: 0.5rem 0;
    font-size: 1rem;
    color: var(--text-light);
}

.event-status {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    background: #e0e0e0;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-top: 1rem;
    color: #666;
}

.event-status.upcoming {
    background: #d4edda;
    color: #155724;
}

@media (max-width: 768px) {
    .event-item-full {
        flex-direction: column;
        gap: 1rem;
    }

    .event-date-badge {
        width: 80px;
        height: 80px;
        font-size: 0.9rem;
    }
}

/* Alumni Carousel Enhancements */
.alumni-carousel {
    position: relative;
}

.alumni-spotlight {
    display: flex;
    gap: 1rem;
    align-items: start;
    min-height: 140px;
    transition: opacity 0.5s;
}

.alumni-fade-in {
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.alumni-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}

.alumni-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ddd;
    cursor: pointer;
    transition: all 0.3s;
}

.alumni-dot:hover {
    background: #bbb;
    transform: scale(1.2);
}

.alumni-dot.active {
    background: var(--accent-color);
    width: 24px;
    border-radius: 5px;
}

/* ==================== PAGE HEADER ==================== */
.page-header {
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 40%, #0f0f1a 70%, #0d0d0d 100%);
    padding: 6rem 0 4rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-header .container {
    position: relative;
    z-index: 1;
}

.page-header-grid-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(251, 191, 36, 0.1), transparent 60%);
    pointer-events: none;
    z-index: 0;
}

.page-title {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 800;
    margin: 0 0 1rem 0;
    color: #ffffff;
    letter-spacing: -0.02em;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.page-breadcrumb {
    font-family: var(--font-main);
    color: var(--accent-color);
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.content-section {
    padding: 4rem 0;
    min-height: 60vh;
}

/* Responsive page header */
@media (max-width: 768px) {
    .page-header {
        padding: 2rem 0 1.5rem 0;
    }

    .page-title {
        font-size: 1.8rem;
    }

    .page-breadcrumb {
        font-size: 0.9rem;
    }
}

/* ==================== RESEARCH PAGE STYLES ==================== */
/* ==================== RESEARCH PAGE STYLES (COLOR CORRECTED) ==================== */

/* Research Hero - Matching header colors */
.research-hero {
    position: relative;
    background: var(--primary-gradient);
    /* Dark blue like header */
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    overflow: hidden;
}

.research-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('https://images.unsplash.com/photo-1532094349884-543bc11b234d?auto=format&fit=crop&w=1600&q=80');
    background-size: cover;
    background-position: center;
    opacity: 0.15;
    /* Subtle overlay */
}

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

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.3rem;
    max-width: 800px;
    margin: 0 auto;
    opacity: 0.95;
    color: var(--accent-color);
    /* Gold text */
}

/* Research Metrics - Consistent with header */
.research-metrics {
    padding: 4rem 0;
    background: linear-gradient(180deg, #2b4162 0%, #1a2332 100%);
    /* Dark blue gradient */
    margin-top: -2px;
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.metric-card {
    text-align: center;
    padding: 2rem;
    background: rgba(247, 215, 116, 0.1);
    /* Subtle gold tint */
    backdrop-filter: blur(10px);
    border-radius: 12px;
    border: 1px solid rgba(247, 215, 116, 0.2);
    color: white;
    transition: all 0.3s;
}

.metric-card:hover {
    background: rgba(247, 215, 116, 0.15);
    transform: translateY(-5px);
}

.metric-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.metric-card h3 {
    font-size: 3rem;
    font-weight: 700;
    margin: 0.5rem 0;
    color: var(--accent-color);
    /* Gold numbers */
}

.metric-card p {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0.5rem 0;
}

.metric-sub {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* ==================== RESEARCH FOCUS AREAS ==================== */
.research-areas {
    padding: 5rem 0;
    background: #f8fafc;
    /* Very light blue/gray background */
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    font-size: 1.2rem;
    margin-top: -1rem;
    margin-bottom: 3rem;
}

.areas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.area-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.03);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    height: 100%;
}

.area-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

.area-icon-container {
    width: 64px;
    height: 64px;
    background: #f1f5f9;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 2rem;
    transition: transform 0.3s ease, background 0.3s ease;
}

.area-icon-img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.area-card:hover .area-icon-container {
    transform: scale(1.1);
    background: rgba(234, 179, 8, 0.15);
    /* Subtle gold tint on hover */
}

.area-card h3 {
    font-size: 1.4rem;
    margin: 0 0 1rem 0;
    color: #1a202c;
    font-weight: 800;
    line-height: 1.3;
}

.area-brief {
    color: #4a5568;
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
    line-height: 1.6;
    flex-grow: 1;
    /* Pushes button to bottom */
}

.expand-btn {
    background: #fbbf24;
    /* MRC Gold */
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #1a202c;
    margin-top: auto;
}

.expand-btn:hover {
    background: #f59e0b;
    /* Darker gold */
    transform: translateX(4px);
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .areas-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .area-card {
        padding: 2rem;
    }
}

.tag {
    background: rgba(247, 215, 116, 0.2);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--text-color);
    border: 1px solid rgba(247, 215, 116, 0.3);
}

.facility-link {
    display: inline-block;
    color: var(--accent-color);
    font-weight: 600;
    margin-top: 1rem;
}

/* Publications Section */
.publications-section {
    padding: 5rem 0;
    background: #f5f7fa;
}

[data-theme="dark"] .publications-section {
    background: var(--bg-color);
}

.publications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.pub-card {
    background: var(--glass-bg);
    padding: 2.5rem;
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-card);
    transition: all var(--transition-speed) cubic-bezier(0.4, 0, 0.2, 1);
}

.pub-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: var(--accent-glow);
}

.pub-badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: white;
}

.pub-badge.nature {
    background: #E74C3C;
}

.pub-badge.science {
    background: #3498DB;
}

.pub-badge.adv-mater {
    background: #2b4162;
}

/* Your blue */

.pub-card h3 {
    font-size: 1.3rem;
    margin: 1rem 0;
    color: var(--text-color);
    line-height: 1.4;
}

.pub-authors {
    color: var(--text-light);
    font-size: 0.95rem;
    margin: 0.5rem 0;
}

.pub-details {
    color: var(--text-light);
    font-size: 0.9rem;
    margin: 0.5rem 0 1rem 0;
}

.pub-metrics {
    display: flex;
    gap: 1rem;
    font-size: 0.85rem;
    color: var(--text-light);
    margin: 1rem 0;
    flex-wrap: wrap;
}

.read-more {
    color: var(--accent-color);
    font-weight: 600;
    text-decoration: none;
}

.view-all-pubs {
    text-align: center;
    margin-top: 3rem;
}

.btn-primary {
    display: inline-block;
    padding: 1rem 2rem;
    background: var(--accent-color);
    color: var(--text-color);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
}

/* Research Highlights Detailed */
.research-highlights-detailed {
    padding: 5rem 0;
    background: var(--bg-color);
}

.highlight-item {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
    margin-bottom: 4rem;
    align-items: center;
}

.highlight-item.reverse {
    grid-template-columns: 1.5fr 1fr;
}

.highlight-item.reverse .highlight-image {
    order: 2;
}

.highlight-image {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-card);
}

.highlight-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.highlight-image:hover img {
    transform: scale(1.05);
}

.highlight-badge {
    display: inline-block;
    background: var(--accent-color);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.highlight-content h3 {
    font-size: 2rem;
    margin: 1rem 0;
    color: var(--text-color);
}

.highlight-points {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}

.highlight-points li {
    padding: 0.5rem 0;
    font-size: 1.05rem;
    color: var(--text-light);
}

.highlight-impact {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.impact-badge {
    background: rgba(43, 65, 98, 0.1);
    /* Your dark blue */
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-color);
    border: 1px solid rgba(43, 65, 98, 0.2);
}

/* Active Projects */
.active-projects {
    padding: 5rem 0;
    background: #f5f7fa;
}

.projects-timeline {
    display: grid;
    gap: 2rem;
    margin-top: 3rem;
}

.project-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    border-left: 5px solid var(--accent-color);
    box-shadow: var(--shadow-card);
    transition: all 0.3s;
}

.project-card:hover {
    transform: translateX(10px);
    box-shadow: var(--shadow-hover);
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.project-header h3 {
    font-size: 1.5rem;
    color: var(--text-color);
}

.project-duration {
    background: rgba(247, 215, 116, 0.2);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.project-description {
    color: var(--text-light);
    margin: 1rem 0;
    font-size: 1.05rem;
}

.project-meta {
    display: flex;
    gap: 1rem;
    margin: 1rem 0;
    flex-wrap: wrap;
}

.funding-badge {
    background: #e8f5e9;
    color: #2e7d32;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.status-badge {
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.status-badge.ongoing {
    background: rgba(247, 215, 116, 0.3);
    color: #b8860b;
}

.project-pi {
    font-size: 0.95rem;
    color: var(--text-light);
    margin-top: 1rem;
}

.view-all-projects {
    text-align: center;
    margin-top: 3rem;
}

.btn-outline {
    display: inline-block;
    padding: 1rem 2rem;
    border: 2px solid var(--accent-color);
    color: var(--text-color);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-outline:hover {
    background: var(--accent-color);
    transform: translateY(-2px);
}

/* Partners Section */
.partners-section {
    padding: 5rem 0;
    background: var(--bg-color);
}

.partners-category {
    margin: 3rem 0;
}

.partners-category h3 {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: var(--text-color);
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
}

.partner-logo {
    background: var(--white);
    padding: 2rem 1rem;
    border-radius: 12px;
    text-align: center;
    font-weight: 600;
    box-shadow: var(--shadow-card);
    transition: all 0.3s;
}

.partner-logo:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-top: 3px solid var(--accent-color);
}

/* CTA Section - Matching header colors */
.research-cta {
    padding: 5rem 0;
    background: var(--primary-gradient);
    /* Same as header */
    color: white;
}

.cta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.cta-card {
    background: rgba(247, 215, 116, 0.1);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    border: 1px solid rgba(247, 215, 116, 0.2);
    transition: all 0.3s;
}

.cta-card:hover {
    background: rgba(247, 215, 116, 0.15);
    transform: translateY(-5px);
}

.cta-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.cta-card p {
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.btn-cta {
    display: inline-block;
    padding: 0.8rem 2rem;
    background: var(--accent-color);
    color: var(--text-color);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-cta:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .areas-grid,
    .publications-grid {
        grid-template-columns: 1fr;
    }

    .highlight-item,
    .highlight-item.reverse {
        grid-template-columns: 1fr;
    }

    .highlight-item.reverse .highlight-image {
        order: 0;
    }

    .project-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}

/* ==================== FACULTY & PEOPLE PAGES ==================== */

.faculty-stats {
    background: var(--primary-gradient);
    padding: 3rem 0;
    color: white;
}

.stats-row {
    display: flex;
    justify-content: space-around;
    gap: 2rem;
    flex-wrap: wrap;
}

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

.stat-item h3 {
    font-size: 3rem;
    color: var(--accent-color);
    margin: 0;
}

.stat-item p {
    font-size: 1.1rem;
    margin: 0.5rem 0 0 0;
}

.faculty-section {
    padding: 4rem 0;
    background: var(--bg-color);
}

.filter-bar {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.search-input {
    flex: 2;
    padding: 1rem 1.5rem;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s;
}

.search-input:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(247, 215, 116, 0.1);
}

.filter-select {
    flex: 1;
    padding: 1rem 1.5rem;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    background: white;
}

.faculty-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

.faculty-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: all 0.3s;
}

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

.faculty-image {
    position: relative;
    overflow: hidden;
    height: 280px;
}

.faculty-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.faculty-card:hover .faculty-image img {
    transform: scale(1.1);
}

.faculty-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(43, 65, 98, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    opacity: 0;
    transition: opacity 0.3s;
}

.faculty-card:hover .faculty-overlay {
    opacity: 1;
}

.contact-icon {
    font-size: 2rem;
    color: var(--accent-color);
    transition: transform 0.3s;
}

.contact-icon:hover {
    transform: scale(1.2);
}

.faculty-info {
    padding: 1.5rem;
}

.faculty-info h3 {
    font-size: 1.4rem;
    margin: 0 0 0.5rem 0;
    color: var(--text-color);
}

.faculty-title {
    color: var(--accent-color);
    font-weight: 600;
    margin: 0.3rem 0;
}

.faculty-research {
    color: var(--text-light);
    font-size: 0.95rem;
    margin: 0.5rem 0 1rem 0;
}

.faculty-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1rem 0;
}

.tag-badge {
    background: rgba(247, 215, 116, 0.2);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-color);
}

.tag-badge.blue {
    background: rgba(43, 65, 98, 0.1);
    color: #2b4162;
}

.faculty-contact {
    font-size: 0.85rem;
    color: var(--text-light);
    margin: 1rem 0;
}

.faculty-contact p {
    margin: 0.3rem 0;
}

.view-profile-btn {
    display: inline-block;
    padding: 0.6rem 1.2rem;
    background: var(--accent-color);
    color: var(--text-color);
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.3s;
    margin-top: 0.5rem;
}

.view-profile-btn:hover {
    background: var(--accent-hover);
    transform: translateX(5px);
}

.no-results {
    text-align: center;
    padding: 3rem;
    color: var(--text-light);
    font-size: 1.1rem;
}


/* ==================== FACILITIES PAGE ==================== */

/* Modern Facilities Intro Section */
.facilities-intro-modern {
    padding: 8rem 0;
    background: var(--bg-color);
    position: relative;
    overflow: hidden;
}

.facilities-intro-modern::before {
    content: '';
    position: absolute;
    top: 50%;
    right: -10%;
    width: 40%;
    height: 60%;
    background: radial-gradient(circle, rgba(251, 191, 36, 0.08) 0%, transparent 70%);
    pointer-events: none;
    transform: translateY(-50%);
}

.facilities-hero-split {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.facilities-content-left {
    padding-right: 2rem;
}

.section-badge {
    display: inline-block;
    padding: 0.6rem 1.2rem;
    background: rgba(247, 215, 116, 0.15);
    border: 2px solid rgba(247, 215, 116, 0.3);
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.6s ease;
}

.facilities-main-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin: 0 0 1.5rem 0;
    color: var(--text-color);
    animation: fadeInUp 0.6s ease 0.1s backwards;
}

.gradient-text {
    background: linear-gradient(135deg, #e48900 0%, #f7d774 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.facilities-lead-text {
    font-size: 1.15rem;
    line-height: 1.7;
    color: var(--text-light);
    margin-bottom: 2.5rem;
    animation: fadeInUp 0.6s ease 0.2s backwards;
}

.facilities-lead-text strong {
    color: var(--accent-color);
    font-weight: 700;
}

/* Stats Row */
.facilities-stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin: 2.5rem 0;
    animation: fadeInUp 0.6s ease 0.3s backwards;
}

.stat-box {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: var(--shadow-card);
    border: 2px solid transparent;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.stat-box:hover {
    transform: translateY(-8px);
    border-color: var(--accent-color);
    box-shadow: var(--shadow-hover);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #2b4162 0%, #e48900 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-light);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Feature Cards Grid */
.facilities-features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.2rem;
    margin-top: 2.5rem;
    animation: fadeInUp 0.6s ease 0.4s backwards;
}

.feature-card-modern {
    background: var(--glass-bg);
    padding: 2rem;
    border-radius: 16px;
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    box-shadow: var(--shadow-card);
    border: 1px solid var(--glass-border);
    transition: all var(--transition-speed) cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-card-modern:hover {
    transform: translateX(8px);
    border-color: var(--accent-glow);
    box-shadow: var(--shadow-hover);
}

.feature-icon {
    font-size: 2.5rem;
    flex-shrink: 0;
    filter: grayscale(30%);
    transition: filter 0.3s ease;
}

.feature-card-modern:hover .feature-icon {
    filter: grayscale(0%);
}

.feature-text h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-color);
    margin: 0 0 0.4rem 0;
}

.feature-text p {
    font-size: 0.9rem;
    color: var(--text-light);
    margin: 0;
    line-height: 1.5;
}

/* Right Image Section */
.facilities-image-right {
    position: relative;
    animation: fadeInRight 0.8s ease 0.3s backwards;
}

.image-wrapper-modern {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-hover);
    transform: perspective(1000px) rotateY(-5deg);
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.image-wrapper-modern:hover {
    transform: perspective(1000px) rotateY(0deg) scale(1.02);
}

.image-wrapper-modern img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.image-overlay-gradient {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(43, 65, 98, 0.3) 0%, rgba(228, 137, 0, 0.2) 100%);
    pointer-events: none;
    opacity: 0.6;
    transition: opacity 0.4s ease;
}

.image-wrapper-modern:hover .image-overlay-gradient {
    opacity: 0.3;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Responsive */
@media (max-width: 968px) {
    .facilities-hero-split {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .facilities-content-left {
        padding-right: 0;
    }

    .facilities-main-title {
        font-size: 2.5rem;
    }

    .facilities-stats-row {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }

    .stat-box {
        padding: 1rem;
    }

    .stat-number {
        font-size: 2rem;
    }

    .image-wrapper-modern {
        transform: none;
    }
}

@media (max-width: 640px) {
    .facilities-features-grid {
        grid-template-columns: 1fr;
    }

    .facilities-stats-row {
        grid-template-columns: 1fr;
    }

    .facilities-main-title {
        font-size: 2rem;
    }
}

/* Old styles preserved for other sections */
.facilities-intro {
    padding: 4rem 0;
    background: var(--bg-color);
}

.intro-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 3rem;
    align-items: center;
}

.intro-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.intro-content p {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.feature-list {
    list-style: none;
    padding: 0;
}

.feature-list li {
    padding: 0.5rem 0;
    font-size: 1.05rem;
    color: var(--text-light);
}

.intro-image {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-card);
}

.intro-image img {
    width: 100%;
    height: auto;
}

.facilities-categories {
    padding: 4rem 0;
    background: var(--bg-color);
}

.category-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 2rem 0 3rem 0;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 0.8rem 1.5rem;
    border: 2px solid rgba(0, 0, 0, 0.1);
    background: var(--white);
    border-radius: 8px;
    font-weight: 600;
    color: var(--text-color);
    cursor: pointer;
    transition: all 0.3s;
}

.tab-btn:hover {
    border-color: var(--accent-color);
    background: rgba(247, 215, 116, 0.1);
}

.tab-btn.active {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: var(--text-color);
}

.equipment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

.equipment-card {
    background: var(--white);
    border-radius: 16px;
    padding: 0;
    box-shadow: var(--shadow-card);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.equipment-card:hover {
    transform: translateY(-12px);
    box-shadow: var(--shadow-hover);
}

.equipment-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    border-radius: 16px 16px 0 0;
}

.equipment-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease, filter 0.4s ease;
    filter: grayscale(20%);
}

.equipment-card:hover .equipment-image img {
    transform: scale(1.1);
    filter: grayscale(0%);
}

.equipment-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--accent-color);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-color);
    z-index: 2;
}

.equipment-icon {
    font-size: 3rem;
    margin: 0 0 1rem 0;
    padding: 1.5rem 2rem 0 2rem;
}

.equipment-card h3 {
    font-size: 1.4rem;
    margin: 0.5rem 0;
    color: var(--text-color);
    padding: 0 2rem;
}

.equipment-model {
    color: var(--accent-color);
    font-weight: 600;
    margin: 0.5rem 0 1rem 0;
    padding: 0 2rem;
}

.equipment-specs {
    list-style: none;
    padding: 0 2rem;
    margin: 1rem 0;
}

.equipment-specs li {
    padding: 0.4rem 0 0.4rem 1.5rem;
    position: relative;
    color: var(--text-light);
    font-size: 0.95rem;
}

.equipment-specs li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--accent-color);
}

.equipment-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1.5rem;
    padding: 1rem 2rem 1.5rem 2rem;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.year {
    font-size: 0.85rem;
    color: var(--text-light);
}

.book-btn {
    background: var(--accent-color);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    text-decoration: none;
    color: var(--text-color);
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.book-btn:hover {
    background: var(--accent-hover);
    transform: translateX(5px);
}

.facility-access {
    padding: 4rem 0;
    background: var(--bg-color);
}

.access-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.access-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-card);
    text-align: center;
    transition: all 0.3s;
}

.access-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.access-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.access-card p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.access-btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background: var(--accent-color);
    color: var(--text-color);
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.3s;
}

.access-btn:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 768px) {
    .intro-grid {
        grid-template-columns: 1fr;
    }

    .filter-bar {
        flex-direction: column;
    }

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

    .category-tabs {
        flex-direction: column;
    }
}

/* Dark Mode Specific Styles for Facilities */
[data-theme="dark"] .equipment-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .tab-btn {
    border: 2px solid rgba(255, 255, 255, 0.15);
}

[data-theme="dark"] .tab-btn:hover {
    background: rgba(247, 215, 116, 0.15);
}

[data-theme="dark"] .section-badge {
    background: rgba(247, 215, 116, 0.1);
    border-color: rgba(247, 215, 116, 0.25);
}

/* ==================== STUDENTS PAGE (REDESIGNED) ==================== */

.students-stats {
    background: var(--primary-gradient);
    padding: 3rem 0;
    color: white;
}

.students-section {
    padding: 4rem 0;
    background: var(--bg-color);
}

.intro-text {
    text-align: center;
    color: var(--text-light);
    font-size: 1.1rem;
    margin: 2rem auto;
    max-width: 800px;
}

/* New Grid Layout - Consistent Card Sizes */
.students-grid-new {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

/* New Card Design - Fixed Image Issues */
.student-card-new {
    background: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow-card);
    transition: all 0.3s;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.student-card-new:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

/* Card Header with Photo */
.student-header {
    position: relative;
    background: linear-gradient(135deg, #2b4162 0%, #12100e 100%);
    padding: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Circular Photo Container - NO STRETCHING */
.student-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid var(--accent-color);
    background: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.student-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Prevents stretching */
    object-position: center;
}

/* Badge Positioning */
.student-badge-new {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.student-badge-new.phd {
    background: var(--accent-color);
    color: var(--text-color);
}

.student-badge-new.ms {
    background: #3d5a80;
    color: white;
}

.student-badge-new.mtech {
    background: #98c1d9;
    color: var(--text-color);
}

.student-badge-new.postdoc {
    background: #ee6c4d;
    color: white;
}

/* Card Body */
.student-body {
    padding: 1.5rem;
    flex: 1;
    /* Takes available space */
    display: flex;
    flex-direction: column;
}

.student-name {
    font-size: 1.4rem;
    margin: 0 0 0.5rem 0;
    color: var(--text-color);
    font-weight: 700;
}

.student-year {
    color: var(--accent-color);
    font-size: 0.9rem;
    font-weight: 600;
    margin: 0.3rem 0;
}

.student-advisor {
    color: var(--text-light);
    font-size: 0.9rem;
    margin: 0.5rem 0;
}

.student-advisor strong {
    color: var(--text-color);
}

.student-research {
    color: var(--text-light);
    margin: 0.8rem 0 1rem 0;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Tags */
.student-tags-new {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: auto;
    /* Push to bottom */
}

.tag-new {
    background: rgba(247, 215, 116, 0.15);
    border: 1px solid rgba(247, 215, 116, 0.3);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-color);
}

/* Card Footer */
.student-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid #eee;
    background: rgba(247, 215, 116, 0.05);
}

.email-btn {
    display: inline-block;
    width: 100%;
    text-align: center;
    padding: 0.6rem 1rem;
    background: var(--accent-color);
    color: var(--text-color);
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.email-btn:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
}

/* Activities Section */
.student-activities {
    padding: 4rem 0;
    background: white;
}

.activities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.activity-card {
    background: var(--bg-color);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-card);
    text-align: center;
    transition: all 0.3s;
}

.activity-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.activity-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.activity-card h3 {
    font-size: 1.3rem;
    margin: 0.5rem 0 1rem 0;
    color: var(--text-color);
}

.activity-card p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Responsive */
@media (max-width: 768px) {
    .students-grid-new {
        grid-template-columns: 1fr;
    }

    .student-photo {
        width: 100px;
        height: 100px;
    }

    .student-name {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .student-header {
        padding: 1.5rem;
    }

    .student-photo {
        width: 90px;
        height: 90px;
    }
}


/* ==================== HEALTH & SAFETY PAGE ==================== */

.emergency-section {
    padding: 0;
    margin-top: -2px;
}

.emergency-banner {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: white;
    padding: 2rem;
    display: flex;
    align-items: center;
    gap: 2rem;
}

.emergency-icon {
    font-size: 4rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

.emergency-content h2 {
    margin: 0 0 1rem 0;
    font-size: 2rem;
}

.emergency-numbers {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.number-item {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.8rem;
    border-radius: 8px;
    font-size: 1.1rem;
}

.safety-guidelines {
    padding: 4rem 0;
    background: var(--bg-color);
}

.guidelines-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.guideline-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-card);
    transition: all 0.3s;
}

.guideline-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.guideline-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.guideline-card h3 {
    font-size: 1.4rem;
    margin: 0.5rem 0 1rem 0;
    color: var(--text-color);
}

.guideline-list {
    list-style: none;
    padding: 0;
}

.guideline-list li {
    padding: 0.5rem 0 0.5rem 1.5rem;
    position: relative;
    color: var(--text-light);
}

.guideline-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #27ae60;
    font-weight: 700;
}

.training-section {
    padding: 4rem 0;
    background: white;
}

.training-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.training-card {
    background: var(--bg-color);
    padding: 2rem;
    border-radius: 12px;
    border-left: 5px solid var(--accent-color);
}

.training-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.training-card ul {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
}

.training-card li {
    padding: 0.5rem 0 0.5rem 1.5rem;
    position: relative;
}

.training-card li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--accent-color);
}

.training-btn {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.8rem 1.5rem;
    background: var(--accent-color);
    color: var(--text-color);
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.3s;
}

.training-btn:hover {
    background: var(--accent-hover);
    transform: translateX(5px);
}

.documents-section {
    padding: 4rem 0;
    background: var(--bg-color);
}

.documents-grid {
    display: grid;
    gap: 1.5rem;
    margin-top: 2rem;
}

.document-item {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow-card);
    display: flex;
    align-items: center;
    gap: 1.5rem;
    transition: all 0.3s;
}

.document-item:hover {
    transform: translateX(10px);
    box-shadow: var(--shadow-hover);
}

.doc-icon {
    font-size: 2.5rem;
}

.doc-info {
    flex: 1;
}

.doc-info h4 {
    margin: 0 0 0.3rem 0;
    color: var(--text-color);
}

.doc-info p {
    margin: 0;
    color: var(--text-light);
    font-size: 0.9rem;
}

.doc-download {
    padding: 0.6rem 1.2rem;
    background: var(--accent-color);
    color: var(--text-color);
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    white-space: nowrap;
}

.committee-section {
    padding: 4rem 0;
    background: white;
}

.committee-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.committee-member {
    background: var(--bg-color);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
}

.committee-member h3 {
    margin: 0 0 0.5rem 0;
    color: var(--text-color);
}

.role {
    color: var(--accent-color);
    font-weight: 600;
    margin: 0.3rem 0;
}

/* Responsive */
@media (max-width: 768px) {
    .emergency-banner {
        flex-direction: column;
        text-align: center;
    }

    .guidelines-grid,
    .training-grid,
    .students-grid {
        grid-template-columns: 1fr;
    }
}

/* ==================== ALUMNI, RETIRED, STAFF PAGES ==================== */

.alumni-intro,
.retired-intro,
.staff-intro {
    padding: 3rem 0;
    background: var(--bg-color);
}

.intro-content-center {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.intro-content-center h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.intro-content-center p {
    font-size: 1.2rem;
    color: var(--text-light);
}

/* Alumni Cards */
.alumni-section {
    padding: 4rem 0;
    background: white;
}

.alumni-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.alumni-card {
    background: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow-card);
    overflow: hidden;
    transition: all 0.3s;
}

.alumni-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.alumni-photo {
    width: 100%;
    height: 280px;
    overflow: hidden;
}

.alumni-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.alumni-info {
    padding: 1.5rem;
}

.alumni-info h3 {
    font-size: 1.4rem;
    margin: 0 0 0.5rem 0;
    color: var(--text-color);
}

.alumni-position {
    color: var(--accent-color);
    font-weight: 600;
    font-size: 1.05rem;
    margin: 0.3rem 0;
}

.alumni-batch {
    color: var(--text-light);
    font-size: 0.9rem;
    margin: 0.3rem 0 1rem 0;
}

.alumni-description {
    color: var(--text-light);
    line-height: 1.6;
    margin: 1rem 0;
}

.alumni-achievements {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.achievement-badge {
    background: rgba(247, 215, 116, 0.2);
    border: 1px solid rgba(247, 215, 116, 0.4);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-color);
}

/* Alumni Stats */
.alumni-stats-section {
    padding: 4rem 0;
    background: var(--primary-gradient);
    color: white;
}

.impact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.impact-card {
    text-align: center;
}

.impact-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
}

.impact-card p {
    font-size: 1.1rem;
}

/* Alumni Engagement */
.alumni-engagement {
    padding: 4rem 0;
    background: var(--bg-color);
}

.engagement-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.engagement-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-card);
    text-align: center;
}

.engagement-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.engagement-card p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.engage-btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background: var(--accent-color);
    color: var(--text-color);
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.3s;
}

.engage-btn:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
}

/* Alumni Spotlight Section */
.alumni-spotlight-section {
    padding: 4rem 0;
    background: var(--bg-color);
}

.alumni-spotlight-section .alumni-carousel {
    max-width: 700px;
    margin: 0 auto;
    background: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow-card);
    padding: 2rem;
}

.alumni-spotlight-section .alumni-spotlight {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.alumni-spotlight-section .alumni-dots {
    text-align: center;
    margin-top: 1.5rem;
}

.alumni-dot {
    height: 10px;
    width: 10px;
    margin: 0 5px;
    background-color: #ccc;
    border-radius: 50%;
    display: inline-block;
    cursor: pointer;
    transition: all 0.3s;
}

.alumni-dot.active,
.alumni-dot:hover {
    background-color: var(--accent-color);
    transform: scale(1.2);
}

/* Alumni List / Table Section */
.alumni-list-section {
    padding: 4rem 0;
    background: var(--white);
}

.alumni-table-container {
    max-width: 900px;
    margin: 0 auto;
    overflow-x: auto;
    border-radius: 12px;
    box-shadow: var(--shadow-card);
}

.alumni-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.alumni-table thead {
    background: var(--primary-gradient);
    color: white;
}

.alumni-table thead th {
    padding: 1.2rem 1.5rem;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.alumni-table thead th:first-child {
    border-radius: 12px 0 0 0;
}

.alumni-table thead th:last-child {
    border-radius: 0 12px 0 0;
}

.alumni-table tbody tr {
    transition: all 0.3s ease;
    border-bottom: 1px solid #eee;
}

.alumni-table tbody tr:last-child {
    border-bottom: none;
}

.alumni-table tbody tr:nth-child(even) {
    background: #f8f9fa;
}

.alumni-table tbody tr:hover {
    background: rgba(247, 215, 116, 0.15);
    transform: scale(1.01);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.alumni-table tbody td {
    padding: 1rem 1.5rem;
    font-size: 0.95rem;
    color: var(--text-color);
    vertical-align: middle;
}

.alumni-table tbody td:first-child strong {
    color: var(--text-color);
    font-weight: 700;
}

.alumni-table tbody td:nth-child(2) {
    color: var(--accent-color);
    font-weight: 600;
}

.alumni-table tbody td:last-child {
    color: var(--text-light);
}

/* Dark mode for alumni table */
[data-theme="dark"] .alumni-list-section {
    background: var(--bg-color);
}

[data-theme="dark"] .alumni-table tbody tr:nth-child(even) {
    background: #2a2a2a;
}

[data-theme="dark"] .alumni-table tbody tr:hover {
    background: rgba(247, 215, 116, 0.1);
}

[data-theme="dark"] .alumni-table-container {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .alumni-table tbody tr {
    border-bottom-color: #3a3a3a;
}

/* Alumni Stats */
.alumni-stats-section {
    padding: 4rem 0;
    background: var(--primary-gradient);
    color: white;
}

.impact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.impact-card {
    text-align: center;
}

.impact-card .impact-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
}

.impact-card p {
    font-size: 1.1rem;
}

/* Retired Faculty - Card Grid */
.retired-faculty-section,
.distinguished-sub-section {
    padding: 3rem 0;
    background: var(--bg-color);
}

.sub-section-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--accent-color);
    margin: 2rem 0;
    text-align: left;
    position: relative;
    padding-left: 20px;
}

.sub-section-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 100%;
    background: var(--accent-color);
    border-radius: 3px;
}

.retired-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.retired-card {
    background: var(--white);
    border-radius: 20px;
    box-shadow: var(--shadow-card);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.retired-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
}

.retired-photo {
    width: 100%;
    height: 220px;
    overflow: hidden;
    background: #e2e8f0;
    flex-shrink: 0;
}

.retired-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.retired-card:hover .retired-photo img {
    transform: scale(1.05);
}

.retired-info {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    flex-grow: 1;
}

.retired-info h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0 0 0.2rem 0;
    color: var(--accent-color);
}

.retired-title {
    color: var(--text-light);
    font-weight: 500;
    font-size: 0.95rem;
    margin: 0 0 0.4rem 0;
}

.retired-years,
.retired-area {
    color: var(--text-light);
    margin: 0;
    font-size: 0.88rem;
}

.retired-achievements {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.retired-achievements p {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.retired-achievements ul {
    margin: 0;
    padding-left: 1.2rem;
    list-style: disc;
}

.retired-achievements li {
    color: var(--text-light);
    margin: 0.3rem 0;
    font-size: 0.88rem;
}

/* Dark mode overrides */
[data-theme="dark"] .retired-card {
    background: #1e1e1e;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .retired-photo {
    background: #2d3748;
}

[data-theme="dark"] .retired-achievements {
    border-top-color: rgba(255, 255, 255, 0.08);
}

/* Responsive */
@media (max-width: 768px) {
    .retired-grid {
        grid-template-columns: 1fr;
    }
}


/* Emeritus Message */
.emeritus-message {
    padding: 4rem 0;
    background: var(--bg-color);
}

.message-box {
    background: var(--white);
    padding: 3rem;
    border-radius: 12px;
    box-shadow: var(--shadow-card);
    border-left: 5px solid var(--accent-color);
    max-width: 900px;
    margin: 0 auto;
}

.message-box h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.message-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-light);
    font-style: italic;
    margin-bottom: 1rem;
}

.message-author {
    text-align: right;
    color: var(--accent-color);
    font-weight: 600;
}

/* Staff Cards */
.staff-section {
    padding: 4rem 0;
    background: white;
}

[data-theme="dark"] .staff-section {
    background: var(--bg-color);
}

.staff-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.staff-card {
    background: var(--bg-color);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-card);
    text-align: center;
    transition: all 0.3s;
}

.staff-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.staff-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.staff-card h3 {
    font-size: 1.3rem;
    margin: 0.5rem 0;
}

.staff-position {
    color: var(--accent-color);
    font-weight: 600;
    margin: 0.5rem 0;
}

.staff-responsibility {
    color: var(--text-light);
    margin: 0.5rem 0 1rem 0;
}

.staff-contact {
    font-size: 0.9rem;
    color: var(--text-light);
}

/* Responsive */
@media (max-width: 768px) {

    .alumni-grid,
    .staff-grid {
        grid-template-columns: 1fr;
    }

    .retired-card {
        grid-template-columns: 1fr;
    }

    .retired-photo {
        width: 100%;
        height: 250px;
        margin: 0 auto;
    }
}

/* ==================== ACADEMICS PAGES ==================== */

/* Academics Overview */
.academics-intro {
    padding: 4rem 0;
    background: var(--bg-color);
}

.intro-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 3rem;
    align-items: center;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin-top: 1.5rem;
}

.feature-list li {
    padding: 0.5rem 0;
    font-size: 1.05rem;
    color: var(--text-light);
}

.intro-image {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-card);
}

.intro-image img {
    width: 100%;
    height: auto;
}

/* Programs Section */
.programs-section {
    padding: 4rem 0;
    background: white;
}

[data-theme="dark"] .programs-section {
    background: var(--bg-color);
}

.programs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    margin-top: 2rem;
    align-items: stretch;
}

.program-card {
    background: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow-card);
    overflow: hidden;
    border-top: 5px solid var(--accent-color);
    display: flex;
    flex-direction: column;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.program-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.program-header {
    background: linear-gradient(135deg, #2b4162 0%, #12100e 100%);
    color: white;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.program-icon {
    font-size: 2.5rem;
}

.program-header h3 {
    font-size: 1.4rem;
    margin: 0;
    line-height: 1.3;
    color: white;
}

.program-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.program-detail {
    padding: 0.5rem 0;
    color: var(--text-light);
}

.program-detail strong {
    color: var(--text-color);
}

.program-description {
    margin: 1.5rem 0;
    line-height: 1.7;
    color: var(--text-light);
}

.program-features {
    margin: 2rem 0;
}

.program-features h4 {
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.program-features ul {
    list-style: none;
    padding: 0;
}

.program-features li {
    padding: 0.5rem 0 0.5rem 1.5rem;
    position: relative;
    color: var(--text-light);
}

.program-features li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--accent-color);
}

.program-funding {
    background: rgba(247, 215, 116, 0.1);
    padding: 1rem;
    border-radius: 8px;
    border-left: 4px solid var(--accent-color);
    margin-top: auto;
}

/* Curriculum Section */
.curriculum-section {
    padding: 4rem 0;
    background: var(--bg-color);
}

.curriculum-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.curriculum-tab-btn {
    padding: 0.8rem 2rem;
    border: 2px solid #ddd;
    background: white;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.curriculum-tab-btn:hover {
    border-color: var(--accent-color);
    background: rgba(247, 215, 116, 0.1);
}

.curriculum-tab-btn.active {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: var(--text-color);
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.course-card {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: var(--shadow-card);
    border-left: 4px solid var(--accent-color);
}

.course-card h4 {
    font-size: 1.2rem;
    margin: 0 0 0.5rem 0;
    color: var(--text-color);
}

.course-card p {
    color: var(--text-light);
    font-size: 0.95rem;
    margin: 0;
}

.research-areas-list {
    display: grid;
    gap: 1.5rem;
    margin-top: 2rem;
}

.research-area-item {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow-card);
}

.research-area-item h4 {
    font-size: 1.3rem;
    margin: 0 0 0.5rem 0;
}

.research-area-item p {
    color: var(--text-light);
    margin: 0;
}

/* Resources Section */
.resources-section {
    padding: 4rem 0;
    background: white;
}

[data-theme="dark"] .resources-section {
    background: var(--bg-color);
}

.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.resource-card {
    background: var(--bg-color);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s;
}

.resource-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.resource-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.resource-card h3 {
    font-size: 1.3rem;
    margin: 0.5rem 0;
}

.resource-card p {
    color: var(--text-light);
    margin: 0.5rem 0 1rem 0;
}

.resource-link {
    color: var(--accent-color);
    font-weight: 600;
    text-decoration: none;
}

/* Calendar Section */
.calendar-section {
    padding: 4rem 0;
    background: var(--bg-color);
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 2rem auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 100%;
    background: var(--accent-color);
}

.timeline-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
    position: relative;
}

.timeline-item:nth-child(even) .timeline-date {
    order: 2;
    text-align: left;
}

.timeline-item:nth-child(even) .timeline-content {
    order: 1;
    text-align: right;
}

.timeline-date {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--accent-color);
}

.timeline-content {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: var(--shadow-card);
}

.timeline-content h4 {
    margin: 0 0 0.5rem 0;
}

.timeline-content p {
    margin: 0;
    color: var(--text-light);
}

/* ==================== PROSPECTIVE STUDENTS PAGE ==================== */

.why-join-section {
    padding: 4rem 0;
    background: var(--bg-color);
}

.staff-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

.staff-card {
    background: var(--white);
    padding: 0;
    border-radius: 16px;
    text-align: center;
    box-shadow: var(--shadow-card);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    position: relative;
}

.staff-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

/* Staff Photo - Circular at top */
.staff-photo {
    width: 120px;
    height: 120px;
    margin: 2rem auto 1rem;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid var(--accent-color);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    transition: transform 0.4s ease;
}

.staff-card:hover .staff-photo {
    transform: scale(1.1);
}

.staff-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.staff-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.staff-card h3 {
    font-size: 1.3rem;
    margin: 0.5rem 0;
    padding: 0 1.5rem;
    color: var(--text-color);
}

.staff-position {
    color: var(--accent-color);
    font-weight: 600;
    margin: 0.5rem 0;
    padding: 0 1.5rem;
}

.staff-responsibility {
    color: var(--text-light);
    margin: 0.5rem 0 1rem 0;
    padding: 0 1.5rem;
}

.staff-contact {
    font-size: 0.9rem;
    color: var(--text-light);
    padding: 0 1.5rem 2rem 1.5rem;
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.why-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: var(--shadow-card);
    transition: all 0.3s;
}

.why-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.why-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.why-card h3 {
    font-size: 1.2rem;
    margin: 0.5rem 0;
}

.why-card p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* Admission Process */
.admission-process {
    padding: 4rem 0;
    background: white;
}

[data-theme="dark"] .admission-process {
    background: var(--bg-color);
}

.process-timeline {
    display: grid;
    gap: 2rem;
    max-width: 800px;
    margin: 2rem auto;
}

.process-step {
    display: flex;
    gap: 2rem;
    align-items: start;
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    flex-shrink: 0;
}

.step-content {
    flex: 1;
}

.step-content h3 {
    margin: 0 0 0.5rem 0;
    color: var(--text-color);
}

.step-content p {
    margin: 0;
    color: var(--text-light);
}

/* Important Dates */
.important-dates {
    padding: 4rem 0;
    background: var(--primary-gradient);
    color: white;
}

.dates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.date-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.date-label {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-bottom: 0.5rem;
}

.date-value {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--accent-color);
}

/* Eligibility */
.eligibility-section {
    padding: 4rem 0;
    background: var(--bg-color);
}

.eligibility-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.eligibility-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-card);
    border-top: 4px solid var(--accent-color);
}

.eligibility-card h3 {
    font-size: 1.5rem;
    margin: 0 0 1rem 0;
    color: var(--accent-color);
}

.eligibility-card ul {
    list-style: none;
    padding: 0;
}

.eligibility-card li {
    padding: 0.5rem 0;
    color: var(--text-light);
}

/* Apply Section */
.apply-section {
    padding: 4rem 0;
    background: white;
}

[data-theme="dark"] .apply-section {
    background: var(--bg-color);
}

.apply-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 2rem;
}

.apply-steps h3 {
    margin-bottom: 1.5rem;
}

.checklist-item {
    display: flex;
    gap: 1rem;
    padding: 0.8rem 0;
    border-bottom: 1px solid #eee;
}

[data-theme="dark"] .checklist-item {
    border-bottom-color: #333;
}

.checkbox {
    font-size: 1.5rem;
    color: var(--accent-color);
}

.apply-cta {
    background: linear-gradient(135deg, #2b4162 0%, #12100e 100%);
    padding: 3rem;
    border-radius: 12px;
    text-align: center;
    color: white;
}

.apply-cta h3 {
    font-size: 2rem;
    margin: 0 0 1rem 0;
}

.apply-cta p {
    margin-bottom: 2rem;
    opacity: 0.9;
}

.apply-btn-large {
    display: inline-block;
    padding: 1rem 3rem;
    background: var(--accent-color);
    color: var(--text-color);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1.2rem;
    transition: all 0.3s;
}

.apply-btn-large:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
}

.apply-links {
    margin-top: 2rem;
    font-size: 0.95rem;
}

.apply-links a {
    color: var(--accent-color);
    text-decoration: none;
}

/* Events Section */
.events-section {
    padding: 4rem 0;
    background: var(--bg-color);
}

.events-list {
    display: grid;
    gap: 1.5rem;
    margin-top: 2rem;
}

.event-item-prospect {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-card);
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 2rem;
    transition: all 0.3s;
}

.event-item-prospect:hover {
    transform: translateX(10px);
    box-shadow: var(--shadow-hover);
}

.event-date-badge-prospect {
    background: var(--accent-color);
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.event-details-prospect h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.3rem;
}

.event-details-prospect p {
    margin: 0.3rem 0;
    color: var(--text-light);
}

.no-events {
    text-align: center;
    padding: 2rem;
    color: var(--text-light);
}

/* Contact Admissions */
.contact-admission {
    padding: 4rem 0;
    background: white;
}

.contact-box {
    background: linear-gradient(135deg, #2b4162 0%, #12100e 100%);
    padding: 3rem;
    border-radius: 12px;
    text-align: center;
    color: white;
    max-width: 700px;
    margin: 0 auto;
}

.contact-box h2 {
    font-size: 2rem;
    margin: 0 0 1rem 0;
}

.contact-box p {
    margin-bottom: 2rem;
    opacity: 0.9;
}

.contact-details {
    background: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 8px;
    margin: 2rem 0;
}

.contact-item {
    padding: 0.8rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-item:last-child {
    border-bottom: none;
}

.contact-btn {
    display: inline-block;
    padding: 1rem 2rem;
    background: var(--accent-color);
    color: var(--text-color);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s;
}

.contact-btn:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 768px) {

    .intro-grid,
    .apply-content {
        grid-template-columns: 1fr;
    }

    .timeline::before {
        left: 20px;
    }

    .timeline-item {
        grid-template-columns: 1fr;
        padding-left: 3rem;
    }

    .timeline-item:nth-child(even) .timeline-date,
    .timeline-item:nth-child(even) .timeline-content {
        order: initial;
        text-align: left;
    }

    .event-item-prospect {
        grid-template-columns: 1fr;
    }
}

/* ==================== GALLERY PAGE ==================== */

.gallery-intro {
    padding: 3rem 0;
    background: var(--bg-color);
}

.gallery-section {
    padding: 4rem 0;
    background: white;
}

[data-theme="dark"] .gallery-section {
    background: var(--bg-color);
}

/* Gallery Filters */
.gallery-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 3rem;
}

.filter-btn {
    padding: 0.8rem 2rem;
    border: 2px solid #ddd;
    background: white;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.95rem;
    color: var(--text-color);
}

[data-theme="dark"] .filter-btn {
    background: var(--bg-color);
    border-color: #444;
}

.filter-btn:hover {
    border-color: var(--accent-color);
    background: rgba(247, 215, 116, 0.1);
    transform: translateY(-2px);
}

.filter-btn.active {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: var(--text-color);
    box-shadow: 0 4px 12px rgba(247, 215, 116, 0.3);
}

/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

.gallery-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: var(--shadow-card);
    transition: all 0.3s ease;
    aspect-ratio: 4/3;
}

.gallery-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.6) 60%, transparent 100%);
    color: white;
    padding: 2rem 1.5rem 1.5rem 1.5rem;
    transform: translateY(70%);
    transition: transform 0.3s ease;
}

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

.gallery-overlay h3 {
    font-size: 1.2rem;
    margin: 0 0 0.5rem 0;
    color: white;
}

.gallery-overlay p {
    margin: 0;
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Load More Button */
.load-more-container {
    text-align: center;
    margin-top: 3rem;
}

.load-more-btn {
    padding: 1rem 3rem;
    background: var(--accent-color);
    border: none;
    border-radius: 30px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(247, 215, 116, 0.3);
}

.load-more-btn:hover {
    background: var(--accent-hover);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(247, 215, 116, 0.4);
}

/* ==================== LIGHTBOX ==================== */

.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox.active {
    display: flex;
    opacity: 1;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90%;
    position: relative;
    animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.lightbox-content img {
    max-width: 100%;
    max-height: 80vh;
    border-radius: 8px;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.8);
}

.lightbox-caption {
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 1.5rem;
    border-radius: 0 0 8px 8px;
    margin-top: -4px;
}

.lightbox-caption h3 {
    margin: 0 0 0.5rem 0;
    color: var(--accent-color);
    font-size: 1.5rem;
}

.lightbox-caption p {
    margin: 0;
    opacity: 0.9;
}

.lightbox-close {
    position: absolute;
    top: 2rem;
    right: 3rem;
    font-size: 3rem;
    color: white;
    cursor: pointer;
    z-index: 10000;
    transition: all 0.3s;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.lightbox-close:hover {
    background: var(--accent-color);
    color: var(--text-color);
    transform: rotate(90deg);
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 3rem;
    color: white;
    cursor: pointer;
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    transition: all 0.3s;
    user-select: none;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: var(--accent-color);
    color: var(--text-color);
}

.lightbox-prev {
    left: 2rem;
}

.lightbox-next {
    right: 2rem;
}

/* ==================== VIDEO SECTION ==================== */

.video-section {
    padding: 4rem 0;
    background: var(--bg-color);
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    font-size: 1.1rem;
    margin-top: -1rem;
    margin-bottom: 2rem;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.video-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: all 0.3s;
}

.video-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.video-thumbnail {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
    cursor: pointer;
}

.video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.video-card:hover .video-thumbnail img {
    transform: scale(1.1);
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70px;
    height: 70px;
    background: var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--text-color);
    transition: all 0.3s;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.video-card:hover .play-button {
    transform: translate(-50%, -50%) scale(1.2);
    box-shadow: 0 6px 30px rgba(247, 215, 116, 0.6);
}

.video-card h3 {
    padding: 1.5rem 1.5rem 0.5rem 1.5rem;
    margin: 0;
    font-size: 1.3rem;
}

.video-card p {
    padding: 0 1.5rem 1.5rem 1.5rem;
    margin: 0;
    color: var(--text-light);
}

/* ================
/* ==================== FACULTY RESEARCH SHOWCASE (DYNAMIC SLIDER) ==================== */

.faculty-research-showcase {
    padding: 5rem 0;
    background: var(--bg-color);
    position: relative;
}

.showcase-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 3rem;
}

.showcase-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    min-height: 600px;
}

/* Left Side: Faculty Info */
.showcase-left {
    background: linear-gradient(135deg, #2b4162 0%, #12100e 100%);
    color: white;
    padding: 3rem;
    position: relative;
    overflow: hidden;
}

.showcase-left::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(247, 215, 116, 0.1) 0%, transparent 70%);
    animation: float 20s infinite ease-in-out;
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
    }

    50% {
        transform: translate(-30px, -30px) rotate(180deg);
    }
}

.faculty-showcase-container,
.research-showcase-container {
    opacity: 1;
    transition: opacity 0.3s ease;
}

.faculty-slide,
.research-slide {
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    z-index: 1;
}

/* Faculty Photo */
.faculty-photo-wrapper {
    position: relative;
    width: 180px;
    height: 180px;
    margin: 0 auto 2rem auto;
}

.faculty-photo-wrapper img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid var(--accent-color);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.faculty-badge {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent-color);
    color: var(--text-color);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    white-space: nowrap;
}

/* Faculty Info */
.faculty-info {
    text-align: center;
}

.faculty-name {
    font-size: 2rem;
    margin: 0 0 0.5rem 0;
    color: white !important;
    /* Changed to white for visibility */
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    /* Add shadow for depth */
}

.faculty-title {
    color: var(--accent-color);
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0.3rem 0;
}

.faculty-specialization {
    color: rgba(255, 255, 255, 0.9);
    /* Brighter white */
    font-size: 1rem;
    margin: 0.5rem 0 2rem 0;
    font-weight: 500;
}


/* Achievements */
.achievements-section {
    background: rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    border-radius: 12px;
    margin: 2rem 0;
    backdrop-filter: blur(10px);
}

.achievements-section h4 {
    margin: 0 0 1rem 0;
    font-size: 1.1rem;
    color: var(--accent-color);
}

.achievements-list {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}

.achievements-list li {
    padding: 0.5rem 0 0.5rem 1.5rem;
    position: relative;
    font-size: 0.95rem;
    line-height: 1.6;
}

.achievements-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: 700;
}

/* Faculty Contact */
.faculty-contact {
    margin-top: 2rem;
}

.contact-btn-showcase {
    display: inline-block;
    padding: 0.8rem 2rem;
    background: var(--accent-color);
    color: var(--text-color);
    text-decoration: none;
    border-radius: 30px;
    font-weight: 700;
    transition: all 0.3s;
}

.contact-btn-showcase:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(247, 215, 116, 0.4);
}

/* Right Side: Research Work */
.showcase-right {
    background: white;
    padding: 3rem;
    display: flex;
    flex-direction: column;
}

.research-image-wrapper {
    position: relative;
    width: 100%;
    height: 250px;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 2rem;
}



/* Research Content */
.research-title {
    font-size: 1.8rem;
    margin: 0 0 1rem 0;
    color: var(--text-color);
    line-height: 1.3;
}

.research-description {
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.research-highlights {
    background: var(--bg-color);
    padding: 1.5rem;
    border-radius: 12px;
    margin: 1.5rem 0;
}

.research-highlights h4 {
    margin: 0 0 1rem 0;
    color: var(--accent-color);
    font-size: 1.1rem;
}

.highlights-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.highlights-list li {
    padding: 0.5rem 0 0.5rem 1.5rem;
    position: relative;
    color: var(--text-light);
    font-size: 0.95rem;
}

.highlights-list li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: 700;
}

.research-meta {
    margin-top: auto;
    padding-top: 1rem;
}

.publication-badge {
    display: inline-block;
    background: rgba(247, 215, 116, 0.15);
    border: 1px solid rgba(247, 215, 116, 0.3);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-color);
}

/* Publication Badge */
.publication-badge {
    display: inline-block;
    background: rgba(247, 215, 116, 0.15);
    border: 1px solid rgba(247, 215, 116, 0.3);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-color);
}

/* Navigation Arrows */
.showcase-nav {
    background: var(--white);
    border: 2px solid var(--accent-color);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 1.5rem;
    color: var(--accent-color);
    flex-shrink: 0;
}

.showcase-nav:hover {
    background: var(--accent-color);
    color: var(--text-color);
    transform: scale(1.1);
}

.showcase-nav.prev {
    margin-right: auto;
}

.showcase-nav.next {
    margin-left: auto;
}

/* Indicators */
.showcase-indicators {
    display: flex;
    justify-content: center;
    gap: 0.8rem;
    margin-top: 2rem;
}

.indicator-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ddd;
    cursor: pointer;
    transition: all 0.3s;
}

.indicator-dot:hover {
    background: rgba(247, 215, 116, 0.5);
    transform: scale(1.2);
}

.indicator-dot.active {
    background: var(--accent-color);
    width: 30px;
    border-radius: 10px;
}

/* Autoplay Controls */
.showcase-controls {
    text-align: center;
    margin-top: 1rem;
}

.control-btn {
    background: none;
    border: 1px solid #ddd;
    padding: 0.6rem 1.5rem;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 600;
    color: var(--text-light);
    transition: all 0.3s;
}

.control-btn:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
}

/* ==================== RESPONSIVE ==================== */

@media (max-width: 1024px) {
    .showcase-card {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .showcase-left,
    .showcase-right {
        padding: 2rem;
    }

    .research-image-wrapper {
        height: 200px;
    }
}

@media (max-width: 768px) {
    .faculty-research-showcase {
        padding: 3rem 0;
    }

    .showcase-wrapper {
        flex-direction: column;
        gap: 1rem;
    }

    .showcase-nav {
        position: static;
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
    }

    .showcase-nav.prev,
    .showcase-nav.next {
        margin: 0;
    }

    .faculty-name {
        font-size: 1.5rem;
    }

    .research-title {
        font-size: 1.4rem;
    }

    .faculty-photo-wrapper {
        width: 150px;
        height: 150px;
    }
}

/* ==================== PUBLICATIONS PAGE ==================== */

.pub-stats-section {
    padding: 3rem 0;
    background: var(--primary-gradient);
    color: white;
}

.pub-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.pub-stat-card {
    text-align: center;
}

.pub-stat-card h3 {
    font-size: 3rem;
    margin: 0;
    color: var(--accent-color);
}

.pub-stat-card p {
    margin: 0.5rem 0 0 0;
    font-size: 1.1rem;
}

/* Filter Bar */
.publications-main {
    padding: 4rem 0;
    background: var(--bg-color);
}

.pub-filter-bar {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-card);
    margin-bottom: 3rem;
}

.search-box {
    margin-bottom: 1.5rem;
}

.search-box input {
    width: 100%;
    padding: 1rem 1.5rem;
    border: 2px solid #ddd;
    border-radius: 30px;
    font-size: 1rem;
    transition: all 0.3s;
}

.search-box input:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(247, 215, 116, 0.1);
}

.filter-controls {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.filter-select {
    flex: 1;
    min-width: 200px;
    padding: 0.8rem 1rem;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s;
}

.filter-select:focus {
    outline: none;
    border-color: var(--accent-color);
}

/* Faculty Publication Section */
.faculty-pub-section {
    background: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow-card);
    margin-bottom: 3rem;
    overflow: hidden;
}

.faculty-pub-header {
    background: linear-gradient(135deg, #2b4162 0%, #12100e 100%);
    color: white;
    padding: 2rem;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 2rem;
    align-items: center;
}

.faculty-pub-left {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.faculty-pub-photo {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 4px solid var(--accent-color);
    object-fit: cover;
}

.faculty-pub-info h2 {
    margin: 0 0 0.5rem 0;
    font-size: 1.8rem;
    color: white;
}

.faculty-pub-title {
    color: var(--accent-color);
    font-weight: 600;
    margin: 0.3rem 0;
}

.faculty-pub-specialization {
    color: rgba(255, 255, 255, 0.8);
    margin: 0.3rem 0;
}

.faculty-pub-stats {
    display: flex;
    gap: 2rem;
}

.faculty-pub-stats .stat-item {
    text-align: center;
}

.faculty-pub-stats strong {
    display: block;
    font-size: 2rem;
    color: var(--accent-color);
}

.faculty-pub-stats span {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Publications List */
.publications-list {
    padding: 2rem;
}

.publication-item {
    display: grid;
    grid-template-columns: 50px 1fr;
    gap: 1.5rem;
    padding: 2rem;
    border-bottom: 1px solid #eee;
    transition: all 0.3s;
}

.publication-item:last-child {
    border-bottom: none;
}

.publication-item:hover {
    background: var(--bg-color);
}

.pub-number {
    width: 50px;
    height: 50px;
    background: var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-color);
    flex-shrink: 0;
}

.pub-content {
    flex: 1;
}

.pub-badge-inline {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.pub-badge-inline.nature {
    background: #d32f2f;
    color: white;
}

.pub-badge-inline.advanced {
    background: #1976d2;
    color: white;
}

.pub-badge-inline.applied {
    background: #388e3c;
    color: white;
}

.pub-title {
    font-size: 1.3rem;
    margin: 0.5rem 0;
    color: var(--text-color);
    line-height: 1.4;
}

.pub-authors {
    color: var(--text-light);
    margin: 0.5rem 0;
    font-size: 0.95rem;
}

.pub-citation {
    color: var(--text-light);
    margin: 0.5rem 0;
    font-size: 0.9rem;
    font-style: italic;
}

.pub-meta-inline {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-top: 1rem;
}

.meta-item {
    font-size: 0.9rem;
    color: var(--text-light);
}

.meta-item a {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
}

.meta-item a:hover {
    text-decoration: underline;
}

/* Loading Spinner */
.loading-spinner {
    text-align: center;
    padding: 4rem;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid var(--accent-color);
    border-radius: 50%;
    margin: 0 auto 1rem auto;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Error/No Results */
.error-message,
.no-results {
    text-align: center;
    padding: 3rem;
    color: var(--text-light);
    font-size: 1.1rem;
}

/* Responsive */
@media (max-width: 768px) {
    .faculty-pub-header {
        grid-template-columns: 1fr;
    }

    .faculty-pub-left {
        flex-direction: column;
        text-align: center;
    }

    .faculty-pub-stats {
        justify-content: center;
    }

    .publication-item {
        grid-template-columns: 1fr;
    }

    .pub-number {
        margin: 0 auto;
    }

    .filter-controls {
        flex-direction: column;
    }

    .filter-select {
        width: 100%;
    }
}

/* ==================== RESEARCH SPOTLIGHT ==================== */

.research-spotlight-section {
    padding: 5rem 0;
    background: linear-gradient(180deg, var(--bg-color) 0%, #f0f4f8 100%);
    position: relative;
    overflow: hidden;
}

.spotlight-bg-blob {
    position: absolute;
    filter: blur(80px);
    z-index: 0;
    opacity: 0.4;
    border-radius: 50%;
}

.blob-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(234, 179, 8, 0.15), transparent 70%);
    top: -100px;
    left: -200px;
}

.blob-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.08), transparent 70%);
    bottom: -50px;
    right: -100px;
}

.spotlight-container {
    position: relative;
    margin-top: 3rem;
    z-index: 10;
}

.spotlight-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
}

.spotlight-card-research {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: var(--white);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-card);
    border: 1px solid var(--glass-border);
    height: 620px;
    width: 100%;
    transition: box-shadow 0.4s ease, transform 0.4s ease;
}

.spotlight-card-research:hover {
    box-shadow: 0 16px 50px rgba(0, 0, 0, 0.12);
    transform: translateY(-3px);
}

.spotlight-nav-arrow {
    background: #fff;
    border: 1px solid #e2e8f0;
    width: 52px;
    height: 52px;
    min-width: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #334155;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    flex-shrink: 0;
    z-index: 20;
}

.spotlight-nav-arrow:hover {
    background: var(--accent-color);
    color: #1a1a1a;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(234, 179, 8, 0.3);
    border-color: var(--accent-color);
}

.spotlight-nav-arrow:active {
    transform: scale(0.95);
}

.prev-arrow,
.next-arrow {
    position: relative;
    left: auto;
    right: auto;
    top: auto;
    transform: none;
}

.spotlight-image-side {
    position: relative;
    overflow: hidden;
    height: 100%;
    background: var(--bg-color);
}

#research-image-container {
    height: 100%;
    width: 100%;
}

.research-image-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.research-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}

.spotlight-card-research:hover .research-image-wrapper img {
    transform: scale(1.03);
}

.research-funding-badge {
    position: absolute;
    top: 1.2rem;
    left: 1.2rem;
    background: var(--accent-color);
    color: #1a1a1a;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
    z-index: 2;
}

.spotlight-content-side {
    display: flex;
    flex-direction: column;
    height: 620px;
    overflow: hidden;
    padding: 2rem 2.5rem;
}

#research-content-container {
    height: 100%;
    width: 100%;
}

.research-content-wrapper {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.research-meta-header {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    flex-shrink: 0;
}

.research-meta-item {
    font-size: 0.9rem;
    color: var(--text-light);
    font-weight: 600;
}

.research-spotlight-title {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    margin: 0 0 1rem 0;
    color: var(--text-color);
    line-height: 1.25;
    font-weight: 800;
    letter-spacing: -0.01em;
    flex-shrink: 0;
}

.research-description {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 0.8rem;
    margin-bottom: 1rem;
    min-height: 0;
}

.research-description p {
    margin: 0;
    text-align: justify;
    line-height: 1.75;
    color: var(--text-light);
    font-size: 0.95rem;
}

.research-description::-webkit-scrollbar {
    width: 5px;
}

.research-description::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 10px;
}

.research-description::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}

.research-description::-webkit-scrollbar-thumb:hover {
    background: var(--accent-color);
}

/* ========== Bottom Actions ========== */
.research-bottom-actions {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid #e2e8f0;
    flex-shrink: 0;
}

.know-more-btn {
    display: inline-block;
    padding: 0.7rem 1.8rem;
    background: var(--text-color);
    color: var(--bg-color);
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
    margin-bottom: 0.8rem;
}

.know-more-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.25);
    background: var(--accent-color);
    color: #0f172a;
}

.know-more-btn:active {
    transform: translateY(0);
}

.research-collab-tags {
    font-size: 0.85rem;
    line-height: 1.6;
}

.research-collab-tags strong {
    color: var(--text-color);
    margin-right: 0.5rem;
    font-weight: 700;
}

.collab-tag {
    display: inline-block;
    background: var(--bg-color);
    border: 1px solid var(--glass-border);
    padding: 0.25rem 0.7rem;
    border-radius: 6px;
    margin: 0.15rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-light);
    transition: all 0.2s;
}

.collab-tag:hover {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: #1a1a1a;
}

/* ===== Bottom Controls ===== */
.spotlight-bottom-controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    margin-top: 2rem;
}

.spotlight-indicators {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.6rem;
}

.indicator-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #cbd5e1;
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator-dot:hover {
    background: rgba(234, 179, 8, 0.4);
    transform: scale(1.2);
}

.indicator-dot.active {
    background: var(--accent-color);
    width: 28px;
    border-radius: 8px;
}

.spotlight-controls {
    text-align: center;
}

.control-btn {
    background: none;
    border: 1px solid #e2e8f0;
    padding: 0.5rem 1.2rem;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 600;
    color: #64748b;
    transition: all 0.3s ease;
    font-size: 0.85rem;
}

.control-btn:hover {
    border-color: var(--accent-color);
    color: #0f172a;
    background: rgba(234, 179, 8, 0.06);
}

/* ==================== RESPONSIVE ==================== */

@media (max-width: 1200px) {
    .spotlight-card-research {
        height: 560px;
    }

    .spotlight-content-side {
        height: 560px;
        padding: 1.8rem 2rem;
    }

    .research-spotlight-title {
        font-size: 1.6rem;
    }
}

@media (max-width: 1024px) {
    .spotlight-card-research {
        grid-template-columns: 1fr;
        height: auto;
    }

    .spotlight-image-side {
        height: 350px;
    }

    .spotlight-content-side {
        height: auto;
        max-height: 500px;
        padding: 2rem;
    }

    .research-description {
        max-height: 200px;
    }
}

@media (max-width: 768px) {
    .research-spotlight-section {
        padding: 3rem 0;
    }

    .spotlight-wrapper {
        gap: 0.8rem;
    }

    .spotlight-nav-arrow {
        width: 44px;
        height: 44px;
        min-width: 44px;
    }

    .spotlight-content-side {
        padding: 1.5rem;
    }

    .research-spotlight-title {
        font-size: 1.4rem;
    }

    .spotlight-image-side {
        height: 260px;
    }

    .research-funding-badge {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
}

/* Mobile Portrait */
@media (max-width: 480px) {
    .research-spotlight-section {
        padding: 2rem 0;
    }

    .spotlight-card-research {
        border-radius: 12px;
    }

    .spotlight-content-side {
        padding: 1.5rem;
    }

    .research-spotlight-title {
        font-size: 1.3rem;
    }

    .research-description {
        font-size: 0.9rem;
    }

    .spotlight-image-side {
        height: 220px;
    }

    .prev-arrow {
        left: 25%;
    }

    .next-arrow {
        right: 25%;
    }

    .spotlight-nav-arrow {
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
        border-width: 2px;
    }

    .know-more-btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.95rem;
    }

    .collab-tag {
        font-size: 0.75rem;
        padding: 0.2rem 0.6rem;
    }
}

/* Extra Small Mobile */
@media (max-width: 360px) {
    .spotlight-image-side {
        height: 180px;
    }

    .research-spotlight-title {
        font-size: 1.1rem;
    }

    .prev-arrow {
        left: 20%;
    }

    .next-arrow {
        right: 20%;
    }
}

/* ========== Faculty Detail Page ========== */

.faculty-detail-section {
    padding: 4rem 0;
    background: var(--bg-color);
}

.faculty-detail-card {
    background: var(--white);
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    padding: 2.5rem;
}

.faculty-detail-grid {
    display: grid;
    grid-template-columns: 1.1fr 1.9fr;
    gap: 2.5rem;
}

/* Left side */
.faculty-detail-left {
    border-right: 1px solid #eee;
    padding-right: 2rem;
}

.faculty-photo-wrapper-large {
    width: 220px;
    height: 220px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 1.5rem auto;
    border: 5px solid var(--accent-color);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.faculty-photo-wrapper-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.faculty-name-detail {
    text-align: center;
    font-size: 1.8rem;
    margin: 0.2rem 0;
}

.faculty-title-detail {
    text-align: center;
    color: var(--accent-color);
    font-weight: 700;
    margin: 0.2rem 0;
}

.faculty-dept-detail {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 1.2rem;
}

.faculty-contact-detail {
    text-align: center;
    font-size: 0.95rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.faculty-contact-detail a {
    color: var(--accent-color);
    text-decoration: none;
}

.faculty-contact-detail a:hover {
    text-decoration: underline;
}

.faculty-achievements-box,
.faculty-research-interests {
    background: var(--bg-color);
    border-radius: 12px;
    padding: 1.4rem;
    margin-bottom: 1.2rem;
}

.faculty-achievements-box h3,
.faculty-research-interests h3 {
    margin-top: 0;
    margin-bottom: 0.8rem;
    font-size: 1.05rem;
}

.faculty-achievements-box ul,
.faculty-research-interests ul {
    list-style: none;
    padding-left: 1.2rem;
    margin: 0;
}

.faculty-achievements-box li,
.faculty-research-interests li {
    margin-bottom: 0.4rem;
    font-size: 0.9rem;
    position: relative;
}

.faculty-achievements-box li::before {
    content: "✓";
    position: absolute;
    left: -1.1rem;
    color: var(--accent-color);
    font-weight: 700;
}

.faculty-research-interests li::before {
    content: "•";
    position: absolute;
    left: -1rem;
    color: var(--accent-color);
}

/* Right side: publications */
.faculty-detail-right {
    padding-left: 0.5rem;
}

.pub-section-title {
    margin-top: 0;
    margin-bottom: 1.2rem;
    font-size: 1.3rem;
}

.pub-list-detail {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.pub-item-detail {
    display: grid;
    grid-template-columns: 55px 1fr;
    gap: 1.2rem;
    padding: 1.5rem;
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    background: var(--white);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.pub-item-detail:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-color);
    background: var(--bg-color);
}

.pub-rank {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--accent-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--text-color);
    font-size: 1.1rem;
    margin-top: 0.2rem;
}

.pub-content-detail h4 {
    margin: 0 0 0.4rem 0;
    font-size: 1rem;
}

.pub-authors-detail {
    margin: 0;
    font-size: 0.85rem;
    color: var(--text-light);
}

.pub-journal-detail {
    margin: 0.25rem 0;
    font-size: 0.9rem;
    color: var(--text-light);
    font-style: italic;
}

.pub-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.85rem;
    margin-top: 0.4rem;
    color: var(--text-light);
}

.pub-meta-row a {
    color: var(--accent-color);
    font-weight: 600;
    text-decoration: none;
}

.pub-meta-row a:hover {
    text-decoration: underline;
}

.no-publications {
    color: var(--text-light);
}

/* Responsive */
@media (max-width: 992px) {
    .faculty-detail-grid {
        grid-template-columns: 1fr;
    }

    .faculty-detail-left {
        border-right: none;
        border-bottom: 1px solid #eee;
        padding-right: 0;
        padding-bottom: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .faculty-detail-right {
        padding-left: 0;
    }
}

/* ========== Activities Page ========== */

.events-section {
    padding: 4rem 0;
    background: var(--bg-color);
}

.events-block+.events-block {
    margin-top: 3rem;
}

.events-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}


/* ========== Activities Page Structural Baseline ========== */
.events-section {
    padding: 4rem 0;
    background: var(--bg-color);
}

.events-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 2.5rem;
    margin-top: 2rem;
}

.activity-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.8fr);
    margin-bottom: 2rem;
    transition: transform 0.3s ease;
    position: relative;
    /* Ensure stickers stay inside */
}

.activity-image {
    position: relative;
    min-height: 250px;
}

.activity-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.activity-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
}

.activity-title {
    margin: 0 0 0.8rem 0;
    font-size: 1.6rem;
    color: var(--primary-color);
}

.activity-description {
    margin: 0 0 1.2rem 0;
    line-height: 1.6;
    color: var(--text-light);
}

.activity-actions {
    margin-top: auto;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Past activities special grid */
.activity-card.past {
    grid-template-columns: 0.8fr 2.2fr;
}

.events-grid.past {
    gap: 1.5rem;
}

/* Past activities */
.events-grid.past .activity-card {
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.04);
}

.activity-tags {
    margin: 0.4rem 0;
}

.activity-tag {
    display: inline-block;
    margin: 0.1rem 0.3rem 0.1rem 0;
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.03);
    font-size: 0.75rem;
}

.activity-gallery-link {
    font-size: 0.9rem;
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
}

.activity-gallery-link:hover {
    text-decoration: underline;
}

/* No activities / errors */
.no-events,
.error-message {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* Responsive */
@media (max-width: 992px) {

    .activity-card,
    .activity-card.past {
        grid-template-columns: 1fr;
    }

    .activity-content {
        padding: 1.4rem 1.5rem;
    }
}

@media (max-width: 576px) {
    .activity-title {
        font-size: 1.2rem;
    }

    .activity-description {
        font-size: 0.9rem;
    }
}

/* ==================== PHD STUDENTS - BATCH BASED ==================== */

.intro-text {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem auto;
    color: var(--text-light);
    font-size: 1.1rem;
    line-height: 1.8;
}

/* Batch Cards Grid */
.batch-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.batch-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}

.batch-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.batch-card-img-wrapper {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.batch-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s;
}

.batch-card:hover .batch-card-img {
    transform: scale(1.05);
}

.batch-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.7) 100%);
    display: flex;
    align-items: flex-end;
    padding: 1.5rem;
}

.batch-year-overlay {
    color: white;
    font-size: 2.5rem;
    font-weight: 700;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
}

.batch-card-content {
    padding: 1.5rem;
}

.batch-year {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--accent-color);
    margin: 0 0 0.8rem 0;
}

.batch-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
}

.student-count {
    font-size: 1rem;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.student-count::before {
    content: "👥";
    font-size: 1.2rem;
}

.batch-duration {
    font-size: 0.9rem;
    color: var(--text-color);
    background: rgba(247, 215, 116, 0.2);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-weight: 600;
}

.batch-highlights {
    margin: 1rem 0;
}

.batch-highlights p {
    font-size: 0.95rem;
    color: var(--text-light);
    margin: 0.3rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.batch-highlights p::before {
    content: "•";
    color: var(--accent-color);
    font-weight: 700;
    font-size: 1.2rem;
}

.know-more-btn {
    display: block;
    width: 100%;
    padding: 0.9rem;
    background: var(--accent-color);
    color: var(--text-color);
    text-align: center;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 1rem;
}

.know-more-btn:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(247, 215, 116, 0.4);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.75);
    overflow-y: auto;
    animation: fadeIn 0.3s;
}

.modal.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.modal-content {
    background-color: var(--bg-color);
    margin: 3% auto;
    padding: 3rem;
    max-width: 1300px;
    border-radius: 12px;
    position: relative;
    animation: slideDown 0.3s;
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-close {
    position: absolute;
    right: 2rem;
    top: 2rem;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-light);
    cursor: pointer;
    transition: color 0.3s;
    line-height: 1;
}

.modal-close:hover {
    color: var(--accent-color);
}

#modal-batch-title {
    text-align: center;
    color: var(--text-color);
    margin-bottom: 2.5rem;
    font-size: 2rem;
    padding-bottom: 1rem;
    border-bottom: 3px solid var(--accent-color);
}

/* Individual Students Grid in Modal */
.students-grid-modal {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.student-card-modal {
    background: var(--white);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: var(--shadow-card);
    transition: transform 0.3s, box-shadow 0.3s;
}

.student-card-modal:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.student-photo-modal {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 1rem auto;
    display: block;
    border: 4px solid var(--accent-color);
}

.student-name-modal {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-color);
    margin: 0.5rem 0;
}

.student-research-modal {
    font-size: 0.9rem;
    color: var(--text-light);
    margin: 0.5rem 0;
    line-height: 1.4;
}

.student-advisor-modal {
    font-size: 0.85rem;
    color: var(--accent-color);
    margin: 0.5rem 0;
    font-weight: 600;
}

.student-email-modal {
    display: inline-block;
    margin-top: 0.8rem;
    padding: 0.5rem 1rem;
    background: rgba(247, 215, 116, 0.2);
    color: var(--text-color);
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.85rem;
    transition: background 0.3s;
}

.student-email-modal:hover {
    background: var(--accent-color);
}

/* Responsive Design */
@media (max-width: 768px) {
    .batch-grid {
        grid-template-columns: 1fr;
    }

    .students-grid-modal {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 1.5rem;
    }

    .modal-content {
        margin: 5% 1rem;
        padding: 2.5rem 1rem 1.5rem;
    }

    .modal-close {
        right: 1.25rem;
        top: 1.25rem;
        font-size: 2rem;
        z-index: 10;
    }

    #modal-batch-title {
        font-size: 1.25rem;
        padding-right: 2.5rem; /* Avoid overlap with close button */
        text-align: left;
        margin-bottom: 2rem;
    }

    .student-photo-modal {
        width: 100px;
        height: 100px;
    }

    .batch-card-img-wrapper {
        height: 200px;
    }

    .batch-year-overlay {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .students-grid-modal {
        grid-template-columns: 1fr;
    }
}

/* ==================== HEALTH & SAFETY PAGE - MATCHING SITE THEME ==================== */

/* Emergency Banner */
.emergency-section {
    padding: 3rem 0;
    background: var(--primary-gradient);
    /* Using your existing gradient */
}

.emergency-banner-new {
    display: flex;
    gap: 2rem;
    align-items: center;
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .emergency-banner-new {
    background: var(--bg-color);
}

.emergency-icon-new {
    font-size: 4rem;
    flex-shrink: 0;
}

.emergency-content-new h2 {
    font-size: 1.8rem;
    color: var(--text-color);
    margin-bottom: 1.5rem;
}

.emergency-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.emergency-item {
    text-align: center;
    padding: 1rem;
    background: var(--bg-color);
    border-radius: 8px;
    border-left: 4px solid var(--accent-color);
}

[data-theme="dark"] .emergency-item {
    background: #2a2a2a;
}

.emergency-label {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.emergency-number {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--accent-color);
    font-family: 'Courier New', monospace;
}

/* OLSEH Intro */
.olseh-intro {
    padding: 3rem 0;
    background: var(--bg-color);
}

.olseh-card {
    background: var(--primary-gradient);
    padding: 2.5rem;
    border-radius: 12px;
    color: white;
    display: flex;
    gap: 2rem;
    align-items: center;
    box-shadow: var(--shadow-card);
}

.safety-badge {
    background: rgba(247, 215, 116, 0.2);
    backdrop-filter: blur(10px);
    padding: 1.5rem 2rem;
    border-radius: 12px;
    font-size: 2rem;
    font-weight: 700;
    border: 2px solid var(--accent-color);
    color: var(--accent-color);
}

.olseh-text h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #ffffff; /* Force light color on dark card background */
}

.olseh-text p {
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    opacity: 0.95;
    color: rgba(255, 255, 255, 0.9); /* Force light color */
}

.olseh-link {
    display: inline-block;
    padding: 0.8rem 2rem;
    background: var(--accent-color);
    color: var(--text-color);
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.3s;
}

.olseh-link:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(247, 215, 116, 0.4);
}

/* Safety Guidelines - New Design with Dark Theme */
.safety-guidelines-new {
    padding: 4rem 0;
    background: white;
}

[data-theme="dark"] .safety-guidelines-new {
    background: var(--bg-color);
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    font-size: 1.1rem;
    margin-top: -1rem;
    margin-bottom: 3rem;
}

.guidelines-grid-new {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.guideline-card-new {
    background: var(--white);
    border-radius: 12px;
    padding: 0;
    box-shadow: var(--shadow-card);
    transition: all 0.3s;
    overflow: hidden;
    border-top: 4px solid var(--accent-color);
}

.guideline-card-new:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.guideline-header {
    background: var(--primary-gradient);
    color: white;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.guideline-icon-new {
    font-size: 2rem;
    background: rgba(247, 215, 116, 0.2);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    flex-shrink: 0;
    border: 2px solid rgba(247, 215, 116, 0.4);
}

.guideline-header h3 {
    margin: 0;
    font-size: 1.3rem;
    color: #ffffff !important;
    /* Force white for visibility on dark gradient */
}

.guideline-list-new {
    list-style: none;
    padding: 1.5rem;
    margin: 0;
}

.guideline-list-new li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-light);
    line-height: 1.6;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
}

[data-theme="dark"] .guideline-list-new li {
    border-bottom-color: #333;
}

.guideline-list-new li:last-child {
    border-bottom: none;
}

.guideline-list-new li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: 700;
    font-size: 1.2rem;
}

.highlight-text {
    color: #dc2626;
    font-weight: 700;
}

/* Training Section */
.training-section-new {
    padding: 4rem 0;
    background: var(--white);
}

[data-theme="dark"] .training-section-new {
    background: var(--bg-color);
}

.training-grid-new {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.training-card-new {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
}

.training-icon-new {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.training-card-new h3 {
    font-size: 1.4rem;
    color: var(--text-color);
    margin-bottom: 1rem;
    font-weight: 700;
}

.training-card-new p {
    color: var(--text-light);
    margin-bottom: 1rem;
}

.training-card-new ul {
    text-align: left;
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}

.training-card-new li {
    padding: 0.5rem 0 0.5rem 1.5rem;
    position: relative;
    color: var(--text-light);
}

.training-card-new li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: 700;
}

.training-note {
    background: rgba(247, 215, 116, 0.1);
    padding: 1rem;
    border-radius: 6px;
    border-left: 3px solid var(--accent-color);
    margin-top: 1.5rem;
    font-size: 0.9rem;
    text-align: left;
}

/* ==================== SAFETY RESOURCES SECTION - COMPLETE STYLING ==================== */

.resources-section-new {
    padding: 4rem 0;
    background: var(--bg-color);
}

.resources-grid-new {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 2rem;
    max-width: 1600px;
    margin-left: auto;
    margin-right: auto;
}

/* Resource Item - Horizontal Card */
.resource-item-compact {
    display: grid;
    grid-template-columns: 80px 1fr auto;
    gap: 2rem;
    align-items: center;
    padding: 2rem;
    background: var(--white);
    border-radius: 12px;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-card);
    border-left: 4px solid var(--accent-color);
}

.resource-item-compact:hover {
    box-shadow: var(--shadow-hover);
    transform: translateX(10px);
}

/* Icon Container */
.resource-icon-compact {
    font-size: 3rem;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(247, 215, 116, 0.15) 0%, rgba(247, 215, 116, 0.05) 100%);
    border-radius: 12px;
    flex-shrink: 0;
    border: 2px solid rgba(247, 215, 116, 0.3);
    transition: all 0.3s;
}

.resource-item-compact:hover .resource-icon-compact {
    transform: scale(1.1);
    background: linear-gradient(135deg, rgba(247, 215, 116, 0.25) 0%, rgba(247, 215, 116, 0.15) 100%);
    border-color: var(--accent-color);
}

/* Resource Info */
.resource-info-compact {
    flex: 1;
}

.resource-info-compact h4 {
    margin: 0 0 0.5rem 0;
    color: var(--text-color);
    font-size: 1.3rem;
    font-weight: 700;
    line-height: 1.3;
}

.resource-info-compact p {
    margin: 0;
    font-size: 1rem;
    color: var(--text-light);
    line-height: 1.5;
}

/* Button Styling */
.resource-btn-compact {
    padding: 0.9rem 2rem;
    background: var(--accent-color);
    color: var(--text-color);
    text-decoration: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    white-space: nowrap;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(247, 215, 116, 0.3);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.resource-btn-compact:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(247, 215, 116, 0.5);
}

/* Dark Theme Support */
[data-theme="dark"] .resource-item-compact {
    background: var(--white);
    border-left-color: var(--accent-color);
}

[data-theme="dark"] .resource-icon-compact {
    background: linear-gradient(135deg, rgba(247, 215, 116, 0.2) 0%, rgba(247, 215, 116, 0.1) 100%);
}

/* Responsive Design */
@media (max-width: 992px) {
    .resource-item-compact {
        grid-template-columns: 70px 1fr auto;
        gap: 1.5rem;
        padding: 1.5rem;
    }

    .resource-icon-compact {
        width: 70px;
        height: 70px;
        font-size: 2.5rem;
    }

    .resource-info-compact h4 {
        font-size: 1.2rem;
    }

    .resource-info-compact p {
        font-size: 0.95rem;
    }
}

@media (max-width: 768px) {
    .resource-item-compact {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 1.2rem;
        padding: 1.5rem;
    }

    .resource-icon-compact {
        margin: 0 auto;
        width: 70px;
        height: 70px;
    }

    .resource-btn-compact {
        width: 100%;
        padding: 1rem 1.5rem;
    }
}

@media (max-width: 480px) {
    .resources-section-new {
        padding: 3rem 0;
    }

    .resource-item-compact {
        padding: 1.2rem;
    }

    .resource-icon-compact {
        width: 60px;
        height: 60px;
        font-size: 2rem;
    }

    .resource-info-compact h4 {
        font-size: 1.1rem;
    }

    .resource-info-compact p {
        font-size: 0.9rem;
    }
}


/* OLSEH Contact */
.olseh-contact {
    padding: 4rem 0;
    background: var(--bg-color);
}

.olseh-contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0 3rem 0;
}

.contact-card-new {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-card);
    text-align: center;
    border-top: 4px solid var(--accent-color);
}

.contact-card-new h3 {
    color: var(--text-color);
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.contact-role {
    color: var(--accent-color);
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.contact-card-new p {
    margin: 0.5rem 0;
    color: var(--text-color);
}

.contact-desc {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: var(--text-light);
    font-style: italic;
}

.olseh-cta {
    text-align: center;
    margin-top: 3rem;
    padding: 2rem;
    background: white;
    border-radius: 12px;
}

.olseh-cta p {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.olseh-main-btn {
    display: inline-block;
    padding: 1rem 3rem;
    background: var(--primary-gradient);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(43, 65, 98, 0.3);
}

.olseh-main-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(43, 65, 98, 0.4);
}

/* Responsive */
@media (max-width: 768px) {
    .emergency-banner-new {
        flex-direction: column;
        text-align: center;
    }

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

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

    .guidelines-grid-new {
        grid-template-columns: 1fr;
    }

    .resource-item-compact {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 1rem;
    }

    .resource-icon-compact {
        margin: 0 auto;
    }

    .resource-btn-compact {
        width: 100%;
    }
}

/* Dark Mode Support */
[data-theme="dark"] .emergency-item {
    background: #2a2a2a;
}

[data-theme="dark"] .olseh-card {
    background: var(--primary-gradient);
}

[data-theme="dark"] .guideline-card-new {
    background: var(--white);
}

/* Dark Mode Overrides for Research Section Cards */
[data-theme="dark"] .research-spotlight-section {
    background: linear-gradient(180deg, var(--bg-color) 0%, #0a0a0a 100%);
}

[data-theme="dark"] .spotlight-card-research {
    background: rgba(30, 30, 30, 0.85);
    border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .research-description p {
    color: #cbd5e1;
}

[data-theme="dark"] .spotlight-image-side {
    background: #111;
}

[data-theme="dark"] .research-areas {
    background: var(--bg-color);
}

[data-theme="dark"] .area-card {
    background: #1e1e1e;
    border-color: rgba(255, 255, 255, 0.05);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .area-card:hover {
    box-shadow: 0 12px 30px rgba(251, 191, 36, 0.15);
    /* Soft gold glow in dark mode */
}

[data-theme="dark"] .area-card h3 {
    color: #e2e8f0;
}

[data-theme="dark"] .area-brief {
    color: #94a3b8;
}

[data-theme="dark"] .area-icon-container {
    background: #2d3748;
}

[data-theme="dark"] .area-card:hover .area-icon-container {
    background: rgba(251, 191, 36, 0.2);
}

/* ==================== JOIN US PAGE ==================== */

/* Nav highlight for Join Us */
.nav-join-us {
    background: var(--accent-color);
    color: var(--text-color) !important;
    border-radius: 6px;
    padding: 0.4rem 1rem !important;
    font-weight: 700 !important;
    transition: background 0.2s ease;
}

.nav-join-us:hover {
    background: var(--accent-hover) !important;
}

/* Hero Section */
.joinus-hero {
    padding: 5rem 0;
    background: var(--bg-color);
}

.joinus-hero-inner {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 4rem;
    align-items: center;
}

.joinus-badge {
    display: inline-block;
    background: rgba(251, 191, 36, 0.15);
    border: 1.5px solid var(--accent-color);
    color: var(--text-color);
    padding: 0.4rem 1.2rem;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    letter-spacing: 0.04em;
}

.joinus-hero-text h2 {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--text-color);
    line-height: 1.2;
    margin-bottom: 1.2rem;
}

.joinus-hero-text p {
    font-size: 1.1rem;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 2rem;
}

.joinus-hero-cta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-outline-dark {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    border: 2px solid var(--accent-color);
    border-radius: 8px;
    font-weight: 700;
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-outline-dark:hover {
    background: var(--accent-color);
    transform: translateY(-2px);
}

.joinus-hero-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem;
}

.hero-stat-card {
    background: var(--white);
    border-radius: 16px;
    padding: 1.8rem 1.5rem;
    text-align: center;
    box-shadow: var(--shadow-card);
    border: 1px solid rgba(0, 0, 0, 0.04);
    transition: transform 0.3s;
}

.hero-stat-card:hover {
    transform: translateY(-4px);
}

.hero-stat-number {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--accent-color);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.hero-stat-label {
    font-size: 0.9rem;
    color: var(--text-light);
    font-weight: 500;
}

/* Why Join Grid */
.why-join-mrc {
    padding: 5rem 0;
    background: white;
}

[data-theme="dark"] .why-join-mrc {
    background: var(--bg-color);
}

.why-join-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.why-card {
    background: var(--bg-color);
    border-radius: 16px;
    padding: 2rem;
    border: 1px solid rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
}

.why-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
}

[data-theme="dark"] .why-card {
    background: #1e1e1e;
    border-color: rgba(255, 255, 255, 0.05);
}

.why-icon {
    font-size: 2.4rem;
    margin-bottom: 1rem;
}

.why-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    color: var(--text-color);
}

.why-card p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* Open Positions */
.open-positions {
    padding: 5rem 0;
    background: var(--bg-color);
}

.positions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.position-card {
    background: var(--white);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--shadow-card);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    border-top: 4px solid var(--accent-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.position-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
}

[data-theme="dark"] .position-card {
    background: #1e1e1e;
    border-color: rgba(255, 255, 255, 0.05);
    border-top-color: var(--accent-color);
}

.position-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.position-badge {
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
}

.position-badge.open {
    background: rgba(34, 197, 94, 0.12);
    color: #16a34a;
}

.position-badge.rolling {
    background: rgba(59, 130, 246, 0.12);
    color: #2563eb;
}

[data-theme="dark"] .position-badge.open {
    color: #4ade80;
    background: rgba(74, 222, 128, 0.1);
}

[data-theme="dark"] .position-badge.rolling {
    color: #60a5fa;
    background: rgba(96, 165, 250, 0.1);
}

.position-level {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-light);
}

.position-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-color);
    margin: 0;
}

.position-desc {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.7;
    flex-grow: 1;
}

.position-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.pos-tag {
    display: inline-block;
    background: rgba(251, 191, 36, 0.12);
    color: var(--text-color);
    border: 1px solid rgba(251, 191, 36, 0.3);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.position-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    flex-wrap: wrap;
    gap: 0.8rem;
}

[data-theme="dark"] .position-footer {
    border-top-color: rgba(255, 255, 255, 0.08);
}

.pos-deadline {
    font-size: 0.85rem;
    color: var(--text-light);
}

.pos-apply-btn {
    background: var(--accent-color);
    color: var(--text-color);
    text-decoration: none;
    padding: 0.5rem 1.2rem;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.pos-apply-btn:hover {
    background: var(--accent-hover);
    transform: translateX(3px);
}

.positions-note {
    margin-top: 2.5rem;
    background: var(--white);
    border-left: 4px solid var(--accent-color);
    padding: 1.2rem 1.8rem;
    border-radius: 8px;
    font-size: 1rem;
    color: var(--text-light);
    box-shadow: var(--shadow-card);
}

.positions-note a {
    color: var(--accent-color);
    font-weight: 600;
    text-decoration: none;
}

.positions-note a:hover {
    text-decoration: underline;
}

[data-theme="dark"] .positions-note {
    background: #1e1e1e;
}

/* Eligibility Section */
.eligibility-section {
    padding: 5rem 0;
    background: white;
}

[data-theme="dark"] .eligibility-section {
    background: var(--bg-color);
}

.eligibility-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: start;
}

.eligibility-intro {
    color: var(--text-light);
    margin-bottom: 2rem;
    font-size: 1.05rem;
    line-height: 1.7;
}

.eligibility-level {
    background: var(--bg-color);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

[data-theme="dark"] .eligibility-level {
    background: #1e1e1e;
}

.eligibility-level h4 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    color: var(--text-color);
}

.eligibility-level ul {
    padding-left: 1.4rem;
    margin: 0;
}

.eligibility-level li {
    color: var(--text-light);
    margin: 0.4rem 0;
    font-size: 0.95rem;
    line-height: 1.6;
}

.eligibility-checklist {
    background: var(--white);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--shadow-card);
}

[data-theme="dark"] .eligibility-checklist {
    background: #1e1e1e;
}

.eligibility-checklist h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

.doc-checklist {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.doc-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.doc-icon {
    font-size: 1.8rem;
    flex-shrink: 0;
    padding-top: 0.2rem;
}

.doc-item strong {
    display: block;
    color: var(--text-color);
    margin-bottom: 0.2rem;
    font-size: 0.95rem;
}

.doc-item p {
    color: var(--text-light);
    font-size: 0.85rem;
    margin: 0;
    line-height: 1.5;
}

/* Benefits */
.benefits-section {
    padding: 5rem 0;
    background: var(--bg-color);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.benefit-item {
    background: var(--white);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: var(--shadow-card);
    text-align: center;
    transition: transform 0.3s ease;
}

.benefit-item:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
}

[data-theme="dark"] .benefit-item {
    background: #1e1e1e;
}

.benefit-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.benefit-item h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.6rem;
    color: var(--text-color);
}

.benefit-item p {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* Process Timeline */
.application-process {
    padding: 5rem 0;
    background: white;
}

[data-theme="dark"] .application-process {
    background: var(--bg-color);
}

.process-timeline {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-top: 3rem;
    max-width: 800px;
    margin: 3rem auto 0;
}

.process-step {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 2rem;
    padding-bottom: 2.5rem;
    position: relative;
}

.process-step:not(:last-child)::before {
    content: '';
    position: absolute;
    left: 38px;
    top: 64px;
    width: 3px;
    height: calc(100% - 40px);
    background: linear-gradient(to bottom, var(--accent-color), rgba(251, 191, 36, 0.2));
}

.step-number {
    width: 72px;
    height: 72px;
    background: var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text-color);
    flex-shrink: 0;
    box-shadow: 0 4px 16px rgba(251, 191, 36, 0.35);
}

.step-content {
    padding-top: 0.8rem;
}

.step-content h4 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 0.6rem;
}

.step-content p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.7;
}

.step-content a {
    color: var(--accent-color);
    font-weight: 600;
    text-decoration: none;
}

.step-content a:hover {
    text-decoration: underline;
}

/* FAQ */
.joinus-faq {
    padding: 5rem 0;
    background: var(--bg-color);
}

.faq-list {
    margin-top: 3rem;
    max-width: 900px;
    margin: 3rem auto 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    background: var(--white);
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.04);
    overflow: hidden;
    cursor: pointer;
    transition: box-shadow 0.3s;
}

.faq-item:hover {
    box-shadow: var(--shadow-card);
}

[data-theme="dark"] .faq-item {
    background: #1e1e1e;
    border-color: rgba(255, 255, 255, 0.06);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 1.5rem;
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-color);
    user-select: none;
}

.faq-arrow {
    font-size: 0.8rem;
    color: var(--accent-color);
    transition: transform 0.3s ease;
    flex-shrink: 0;
    margin-left: 1rem;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s ease;
    padding: 0 1.5rem;
}

.faq-answer p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.7;
    padding-bottom: 1.2rem;
}

.faq-answer a {
    color: var(--accent-color);
    font-weight: 600;
    text-decoration: none;
}

.faq-item.open .faq-answer {
    max-height: 600px;
    padding: 0 1.5rem;
}

.faq-item.open .faq-arrow {
    transform: rotate(180deg);
}

/* CTA Section */
.joinus-cta {
    padding: 5rem 0;
    background: white;
}

[data-theme="dark"] .joinus-cta {
    background: var(--bg-color);
}

.cta-box {
    background: var(--primary-gradient);
    border-radius: 24px;
    padding: 4rem;
    text-align: center;
    color: white;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.cta-box h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: white;
    margin-bottom: 1rem;
}

.cta-box p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.05rem;
    line-height: 1.7;
    max-width: 600px;
    margin: 0 auto 2.5rem;
}

.cta-contacts {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-bottom: 2.5rem;
}

.cta-contact-link {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    transition: color 0.2s;
}

.cta-contact-link:hover {
    color: var(--accent-color);
}

.cta-contact-link span:first-child {
    font-size: 1.3rem;
}

.cta-final-btn {
    display: inline-block;
    font-size: 1.05rem;
    padding: 0.9rem 2.5rem;
}

/* Responsive Adjustments */
@media (max-width: 1024px) {

    .joinus-hero-inner,
    .eligibility-grid {
        grid-template-columns: 1fr;
    }

    .joinus-hero-text h2 {
        font-size: 2.2rem;
    }
}

@media (max-width: 768px) {

    .why-join-grid,
    .positions-grid,
    .benefits-grid {
        grid-template-columns: 1fr;
    }

    .cta-box {
        padding: 2.5rem 1.5rem;
    }

    .cta-contacts {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .process-step {
        grid-template-columns: 56px 1fr;
    }

    .step-number {
        width: 52px;
        height: 52px;
        font-size: 1.1rem;
    }

    .process-step::before {
        left: 25px;
        top: 52px;
    }
}

/* ==================== ULTRA-WIDE MONITORS ==================== */
@media (min-width: 1800px) {
    html {
        font-size: 110%;
        /* Slightly scale up typography on huge screens */
    }

    .header-container,
    .nav-container,
    .top-grid-container,
    .footer-grid,
    .resources-grid-new,
    .container {
        max-width: 1800px !important;
        padding-left: 6rem;
        padding-right: 6rem;
    }

    #molecular-grid {
        opacity: 0.15;
        /* Make the grid a bit more visible on big screens */
    }
}
/* Admission Timeline Styles */
.section-desc-center {
    text-align: center;
    max-width: 700px;
    margin: -1.5rem auto 2.5rem;
    color: var(--text-secondary);
}

.date-sub {
    font-size: 0.85rem;
    margin-top: 0.5rem;
    color: var(--text-muted);
}

.featured-date {
    background: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
}

.featured-date .date-label,
.featured-date .date-value {
    color: white !important;
}

.date-link {
    display: inline-block;
    margin-top: 0.75rem;
    padding: 0.4rem 0.8rem;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    transition: all 0.2s;
}

.date-link:hover {
    background: white;
    color: var(--primary-color);
}
