/* ============================================================
   NSVAIR Alumni Portal - Page-Specific Styles
   Landing, Login, Dashboard, Library, Events
   ============================================================ */

/* ============================================================
   LANDING / SPLASH PAGE
   ============================================================ */
.landing-page {
    min-height: 100vh;
    position: relative;
    overflow: hidden;
}

/* ---- Landing Navbar ---- */
.landing-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: var(--space-4) var(--space-8);
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: var(--z-sticky);
    background: var(--bg-glass);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid var(--border-light);
    transition: all var(--transition-base);
}

.landing-nav.scrolled {
    background: var(--bg-glass-heavy);
    box-shadow: var(--shadow-md);
}

.landing-nav-brand {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.landing-nav-brand img {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
}

.landing-nav-brand span {
    font-family: var(--font-display);
    font-size: var(--text-xl);
    font-weight: 800;
    color: var(--text-primary);
}

.landing-nav-links {
    display: flex;
    align-items: center;
    gap: var(--space-6);
}

.landing-nav-links a {
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--text-secondary);
    transition: color var(--transition-fast);
}

.landing-nav-links a:hover {
    color: var(--blue-400);
}

.landing-nav-actions {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

/* ---- Hero Section ---- */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: var(--space-20) var(--space-8);
    overflow: hidden;
}

.hero-bg-effects {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.hero-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: float 8s ease-in-out infinite;
}

.hero-blob-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.4), transparent 70%);
    top: -10%;
    right: -5%;
    animation-delay: 0s;
}

.hero-blob-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.3), transparent 70%);
    bottom: -10%;
    left: 10%;
    animation-delay: 2s;
}

.hero-blob-3 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.3), transparent 70%);
    top: 40%;
    left: 50%;
    animation-delay: 4s;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
    animation: fadeInUp 0.8s ease forwards;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: 8px 18px;
    background: rgba(59, 130, 246, 0.12);
    border: 1px solid rgba(59, 130, 246, 0.25);
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    font-weight: 600;
    color: var(--blue-400);
    margin-bottom: var(--space-6);
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: var(--space-6);
}

.hero-title .highlight {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: var(--text-lg);
    color: var(--text-secondary);
    max-width: 560px;
    margin-bottom: var(--space-8);
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    margin-bottom: var(--space-12);
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-8);
    padding-top: var(--space-8);
    border-top: 1px solid var(--border-color);
}

.hero-stat-value {
    font-family: var(--font-display);
    font-size: var(--text-4xl);
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1;
}

.hero-stat-label {
    font-size: var(--text-sm);
    color: var(--text-tertiary);
    margin-top: var(--space-1);
}

/* ---- Hero Right Side (Visual) ---- */
.hero-visual {
    position: absolute;
    right: 0;
    top: 40%;
    transform: translateY(-50%);
    width: 650px;
    height: 700px;
    animation: slideInRight 1s ease forwards;
    opacity: 0;
    animation-delay: 0.3s;
    pointer-events: none;
}

.hero-card-stack {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero-float-card {
    position: absolute;
    background: var(--bg-glass);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: var(--space-4);
    animation: float 6s ease-in-out infinite;
    box-shadow: var(--shadow-md);
    z-index: 10;
}

.hero-float-card:nth-child(1) {
    top: -2%;
    right: 2%;
    width: 230px;
    animation-delay: 0s;
    z-index: 9;
}

.hero-float-card:nth-child(2) {
    top: 12%;
    left: 0%;
    width: 220px;
    animation-delay: 1.5s;
    z-index: 8;
}

.hero-float-card:nth-child(3) {
    top: 38%;
    right: -5%;
    width: 260px;
    animation-delay: 3s;
    z-index: 10;
    padding: var(--space-5);
    background: rgba(10, 15, 28, 0.9);
    border-color: rgba(59, 130, 246, 0.3);
}

.hero-float-card:nth-child(4) {
    top: 40%;
    left: 12%;
    width: 210px;
    animation-delay: 0.7s;
    z-index: 7;
}

.hero-float-card:nth-child(5) {
    top: 68%;
    right: 5%;
    width: 220px;
    animation-delay: 2.1s;
    z-index: 6;
}

.hero-float-card:nth-child(6) {
    top: 65%;
    left: 0%;
    width: 200px;
    animation-delay: 1.1s;
    z-index: 5;
}

.hero-float-card:nth-child(7) {
    top: -5%;
    left: 30%;
    width: 190px;
    animation-delay: 2.8s;
    z-index: 4;
    opacity: 0.8;
}

.hero-float-card:nth-child(8) {
    top: 85%;
    left: 35%;
    width: 200px;
    animation-delay: 0.4s;
    z-index: 3;
    opacity: 0.8;
}

.hero-float-card:nth-child(9) {
    top: 25%;
    left: 45%;
    width: 180px;
    animation-delay: 1.9s;
    z-index: 2;
    opacity: 0.6;
}

/* Shrink inner content for smaller cards to simulate scaling */
.hero-float-card:nth-child(n+4) .float-card-icon {
    width: 36px;
    height: 36px;
    font-size: 15px;
    margin-bottom: var(--space-2);
}

.hero-float-card:nth-child(n+4) .float-card-title {
    font-size: 14px;
}

.hero-float-card:nth-child(n+4) .float-card-desc {
    font-size: 12px;
}

.hero-float-card:nth-child(n+7) .float-card-icon {
    width: 30px;
    height: 30px;
    font-size: 13px;
    margin-bottom: var(--space-2);
}

.hero-float-card:nth-child(n+7) .float-card-title {
    font-size: 13px;
}

.hero-float-card:nth-child(n+7) .float-card-desc {
    font-size: 11px;
}

.float-card-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-lg);
    margin-bottom: var(--space-3);
}

.float-card-title {
    font-family: var(--font-display);
    font-size: var(--text-base);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-1);
}

.float-card-desc {
    font-size: var(--text-xs);
    color: var(--text-tertiary);
}

/* ---- Features Section ---- */
.features-section {
    padding: var(--space-24) var(--space-8);
    background: var(--bg-secondary);
    position: relative;
}

.features-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--blue-500), transparent);
}

.section-title {
    text-align: center;
    margin-bottom: var(--space-4);
}

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto var(--space-16);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-6);
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: var(--space-8);
    text-align: center;
    transition: all var(--transition-base);
}

.premium-feature-card {
    position: relative;
    background: var(--bg-glass);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: var(--space-6);
    text-align: left;
    transition: all var(--transition-base);
    box-shadow: var(--shadow-sm);
}

.premium-feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.1);
}

.feature-card:hover {
    transform: translateY(-6px);
    border-color: rgba(59, 130, 246, 0.3);
    box-shadow: var(--shadow-glow);
}

.feature-icon {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-2xl);
    margin: 0 auto var(--space-5);
    background: rgba(59, 130, 246, 0.12);
    color: var(--blue-400);
}

.feature-card h4 {
    font-size: var(--text-lg);
    margin-bottom: var(--space-3);
}

.feature-card p {
    font-size: var(--text-sm);
    color: var(--text-tertiary);
}

/* ---- Institutions Section ---- */
.institutions-section {
    padding: var(--space-24) var(--space-8);
    position: relative;
}

.institutions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-6);
    max-width: 1200px;
    margin: 0 auto;
}

.institution-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: var(--space-6);
    transition: all var(--transition-base);
    cursor: pointer;
}

.institution-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(59, 130, 246, 0.25);
}

.institution-card-header {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    margin-bottom: var(--space-4);
}

.institution-logo {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-md);
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: var(--text-xl);
    font-weight: 800;
    color: var(--text-inverse);
}

.institution-name {
    font-size: var(--text-lg);
    font-weight: 700;
    color: var(--text-primary);
}

.institution-code {
    font-size: var(--text-xs);
    color: var(--text-tertiary);
    margin-top: 2px;
}

.institution-stats {
    display: flex;
    gap: var(--space-6);
    padding-top: var(--space-4);
    border-top: 1px solid var(--border-light);
}

.institution-stat-value {
    font-family: var(--font-display);
    font-size: var(--text-xl);
    font-weight: 700;
    color: var(--blue-400);
}

.institution-stat-label {
    font-size: var(--text-xs);
    color: var(--text-tertiary);
}

/* ---- CTA Section ---- */
.cta-section {
    padding: var(--space-20) var(--space-8);
    background: var(--bg-secondary);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.15), transparent 70%);
    pointer-events: none;
}

.cta-content {
    position: relative;
    z-index: 1;
}

.cta-content h2 {
    margin-bottom: var(--space-4);
}

.cta-content p {
    max-width: 500px;
    margin: 0 auto var(--space-8);
}

/* ---- Landing Footer ---- */
.landing-footer {
    padding: var(--space-12) var(--space-8);
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.landing-footer p {
    font-size: var(--text-sm);
    color: var(--text-muted);
}

/* ============================================================
   AUTH PAGES (Login / Register)
/* ============================================================
   LOGIN PAGE - SPLIT LAYOUT
   Left = Form, Right = News/Articles Slider
   ============================================================ */
.login-split-page {
    height: 100vh;
    display: grid;
    grid-template-columns: 1fr minmax(400px, 580px);
    position: relative;
    overflow: hidden;
}

/* ---- App Launcher (9-dot menu) ---- */
.app-launcher-wrapper {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 100;
}

.app-launcher-btn {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    background: var(--bg-glass);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.app-launcher-btn:hover {
    background: var(--bg-surface);
    color: var(--text-primary);
    border-color: var(--blue-500);
    transform: scale(1.05);
}

.app-launcher-panel {
    display: none;
    position: absolute;
    top: 52px;
    right: 0;
    width: 300px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
    padding: var(--space-4);
    animation: scaleIn 0.2s ease;
}

[data-theme="dark"] .app-launcher-panel {
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.app-launcher-panel.show {
    display: block;
}

.app-launcher-header {
    font-size: var(--text-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    padding: var(--space-2) var(--space-2) var(--space-3);
    border-bottom: 1px solid var(--border-light);
    margin-bottom: var(--space-3);
}

.app-launcher-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
}

.app-launcher-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 12px 8px;
    border-radius: var(--radius-md);
    text-decoration: none;
    transition: all 0.15s ease;
    cursor: pointer;
}

.app-launcher-item:hover {
    background: var(--bg-tertiary);
}

.app-launcher-item.active {
    background: rgba(59, 130, 246, 0.1);
}

.app-launcher-item .app-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: #fff;
}

.app-launcher-item span {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-secondary);
    text-align: center;
}

.app-launcher-item:hover span {
    color: var(--text-primary);
}

/* ---- Theme Toggle Button ---- */
.login-theme-btn {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 100;
}

/* ---- Left Panel: Login Form ---- */
.login-left {
    display: flex;
    flex-direction: column;
    padding: var(--space-8);
    position: relative;
    z-index: 1;
    background: var(--bg-primary);
    order: 2;
    height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
}

.login-form-wrapper {
    width: 100%;
    max-width: 440px;
    margin: auto auto;
    animation: fadeInUp 0.6s ease forwards;
}

.auth-logo {
    text-align: center;
    margin-bottom: var(--space-8);
}

.auth-logo img {
    width: 64px;
    height: 64px;
    margin: 0 auto var(--space-4);
    border-radius: var(--radius-md);
}

.auth-logo h1 {
    font-size: var(--text-2xl);
    font-weight: 800;
}

.auth-logo p {
    font-size: var(--text-sm);
    color: var(--text-tertiary);
    margin-top: var(--space-1);
}

.auth-card {
    background: var(--bg-glass);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: var(--space-8);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
    /* Lighter shadow for light theme */
}

[data-theme="dark"] .auth-card {
    box-shadow: var(--shadow-xl);
    /* Restore heavy shadow for dark theme */
}

.auth-card h2 {
    font-size: var(--text-xl);
    margin-bottom: var(--space-2);
}

.auth-card .auth-subtitle {
    font-size: var(--text-sm);
    color: var(--text-tertiary);
    margin-bottom: var(--space-6);
}

.auth-footer {
    text-align: center;
    margin-top: var(--space-6);
    font-size: var(--text-sm);
    color: var(--text-tertiary);
}

.auth-footer a {
    color: var(--blue-400);
    font-weight: 600;
}

/* ---- Right Panel: Slider ---- */
.login-right {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    order: 1;
}

.login-slider {
    position: absolute;
    inset: 0;
}

.login-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.8s ease;
    display: flex;
    align-items: flex-end;
}

.login-slide.active {
    opacity: 1;
    z-index: 1;
}

.slide-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.slide-content {
    position: relative;
    z-index: 2;
    padding: var(--space-12) var(--space-10);
    max-width: 560px;
}

.slide-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: var(--radius-full);
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: var(--space-4);
}

.slide-title {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.3;
    margin-bottom: var(--space-3);
}

.slide-desc {
    font-size: var(--text-sm);
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.6;
    max-width: 440px;
}

/* Slider dots */
.slider-dots {
    position: absolute;
    bottom: 30px;
    right: 40px;
    z-index: 10;
    display: flex;
    gap: 8px;
}

.slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.4);
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.slider-dot:hover {
    border-color: rgba(255, 255, 255, 0.8);
}

.slider-dot.active {
    background: #fff;
    border-color: #fff;
    transform: scale(1.2);
}

.slider-watermark {
    position: absolute;
    top: 28px;
    right: 40px;
    z-index: 10;
    font-size: var(--text-xs);
    font-weight: 600;
    color: rgba(255, 255, 255, 0.35);
    letter-spacing: 0.04em;
}

/* ---- Role Toggle ---- */
.role-toggle {
    display: flex;
    background: var(--bg-tertiary);
    border-radius: var(--radius-lg);
    padding: 6px;
    margin-bottom: var(--space-8);
}

.role-toggle-btn {
    flex: 1;
    padding: 12px 10px;
    text-align: center;
    font-size: var(--text-base);
    font-weight: 600;
    color: var(--text-secondary);
    background: transparent;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.role-toggle-btn.active {
    background: var(--gradient-primary);
    color: var(--text-inverse);
    box-shadow: var(--shadow-sm);
}

/* ---- Mobile Responsive ---- */
@media (max-width: 868px) {
    .login-split-page {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto;
        height: auto;
        overflow-y: auto;
    }

    .login-right {
        display: flex;
        position: relative;
        height: 60vh;
        min-height: 400px;
        order: 2;
    }

    .login-left {
        height: auto;
        overflow-y: visible;
        padding: var(--space-12) var(--space-6) var(--space-8);
        order: 1;
    }

    .app-launcher-wrapper {
        top: 12px;
        right: 12px;
    }

    .login-theme-btn {
        top: 12px;
        left: 12px;
    }
}

@media (max-width: 480px) {
    .login-left {
        padding: var(--space-10) var(--space-4) var(--space-6);
    }

    .auth-card {
        padding: var(--space-5);
    }

    .app-launcher-panel {
        width: calc(100vw - 40px);
    }
}

/* ============================================================
   DASHBOARD PAGE
   ============================================================ */
.page-header {
    margin-bottom: var(--space-8);
}

.page-header h1 {
    font-size: var(--text-3xl);
    margin-bottom: var(--space-2);
}

.page-header p {
    font-size: var(--text-base);
    color: var(--text-secondary);
}

/* ---- Welcome Banner ---- */
.welcome-banner {
    background: var(--gradient-primary);
    border-radius: var(--radius-xl);
    padding: var(--space-8) var(--space-10);
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-8);
    position: relative;
    overflow: hidden;
}

.welcome-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1), transparent 70%);
    pointer-events: none;
}

.welcome-text h2 {
    font-size: var(--text-2xl);
    color: var(--text-inverse);
    margin-bottom: var(--space-2);
}

.welcome-text p {
    color: rgba(255, 255, 255, 0.8);
    font-size: var(--text-base);
}

.welcome-banner .btn {
    background: rgba(255, 255, 255, 0.2);
    color: var(--text-inverse);
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(8px);
}

.welcome-banner .btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* ---- Quick Actions ---- */
.quick-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: var(--space-4);
    margin-bottom: var(--space-8);
}

.quick-action-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: var(--space-5);
    display: flex;
    align-items: center;
    gap: var(--space-4);
    cursor: pointer;
    transition: all var(--transition-base);
}

.quick-action-card:hover {
    transform: translateY(-2px);
    border-color: var(--blue-500);
    box-shadow: var(--shadow-md);
}

.quick-action-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-lg);
    flex-shrink: 0;
}

.quick-action-label {
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--text-primary);
}

/* ============================================================
   DIGITAL LIBRARY
   ============================================================ */
.library-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: var(--space-6);
}

.book-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition-base);
    cursor: pointer;
}

.book-card:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: var(--shadow-lg);
    border-color: rgba(59, 130, 246, 0.3);
}

.book-cover {
    width: 100%;
    height: 260px;
    background: var(--gradient-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: rgba(255, 255, 255, 0.5);
    position: relative;
    overflow: hidden;
}

.book-cover::after {
    content: 'NSVAIR';
    position: absolute;
    font-family: var(--font-display);
    font-size: 6rem;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.05);
    transform: rotate(-30deg);
}

.book-info {
    padding: var(--space-4);
}

.book-title {
    font-size: var(--text-sm);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-1);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.book-author {
    font-size: var(--text-xs);
    color: var(--text-tertiary);
}

/* Full Screen Reader */
.book-reader {
    position: fixed;
    inset: 0;
    background: var(--bg-primary);
    z-index: var(--z-modal);
    display: flex;
    flex-direction: column;
    animation: fadeIn 0.3s ease;
}

.reader-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-4) var(--space-6);
    background: var(--bg-glass-heavy);
    backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid var(--border-color);
}

.reader-content {
    flex: 1;
    overflow-y: auto;
    padding: var(--space-8);
    display: flex;
    justify-content: center;
}

/* ============================================================
   EVENTS PAGE
   ============================================================ */
.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: var(--space-6);
}

.event-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition-base);
}

.event-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(59, 130, 246, 0.25);
}

.event-card-image {
    width: 100%;
    height: 180px;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.event-card-image i {
    font-size: 2.5rem;
    color: rgba(255, 255, 255, 0.3);
}

.event-type-badge {
    position: absolute;
    top: var(--space-3);
    left: var(--space-3);
}

.event-card-body {
    padding: var(--space-5);
}

.event-date-badge {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--text-xs);
    color: var(--blue-400);
    font-weight: 600;
    margin-bottom: var(--space-3);
}

.event-card-title {
    font-size: var(--text-lg);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-2);
}

.event-card-desc {
    font-size: var(--text-sm);
    color: var(--text-tertiary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: var(--space-4);
}

.event-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: var(--space-4);
    border-top: 1px solid var(--border-light);
}

.event-location {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--text-xs);
    color: var(--text-tertiary);
}

/* ============================================================
   PROFILE PAGE
   ============================================================ */
.profile-header {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: var(--space-8);
    display: flex;
    align-items: center;
    gap: var(--space-8);
    margin-bottom: var(--space-8);
    position: relative;
    overflow: hidden;
}

.profile-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: var(--gradient-primary);
    opacity: 0.15;
}

.profile-avatar {
    width: 100px;
    height: 100px;
    border-radius: var(--radius-full);
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: var(--text-4xl);
    font-weight: 800;
    color: var(--text-inverse);
    position: relative;
    z-index: 1;
    border: 4px solid var(--bg-surface);
    box-shadow: var(--shadow-lg);
}

.profile-info {
    position: relative;
    z-index: 1;
}

.profile-name {
    font-size: var(--text-2xl);
    font-weight: 800;
    margin-bottom: var(--space-1);
}

.profile-details {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-4);
    font-size: var(--text-sm);
    color: var(--text-secondary);
}

.profile-details span {
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.profile-form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-5);
}

/* ============================================================
   ALUMNI DIRECTORY
   ============================================================ */
.directory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--space-6);
}

.alumni-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: var(--space-6);
    text-align: center;
    transition: all var(--transition-base);
}

.alumni-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: rgba(59, 130, 246, 0.2);
}

.alumni-card .avatar {
    width: 64px;
    height: 64px;
    font-size: var(--text-2xl);
    margin: 0 auto var(--space-4);
}

.alumni-card-name {
    font-size: var(--text-base);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-1);
}

.alumni-card-info {
    font-size: var(--text-sm);
    color: var(--text-tertiary);
    margin-bottom: var(--space-3);
}

.alumni-card-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-2);
}

/* Custom Select Dropdown Utilities */
.custom-select-dropdown.show {
    display: block !important;
    animation: fadeIn 0.15s ease-out forwards;
}