/* 
========================================================================
   NMUN 2026 - Premium High-End Stylesheet
======================================================================== 
*/

:root {
    /* Color Palette */
    --primary: #031926;
    --secondary: #4F759B;
    --accent: #6FA0C9;
    --alert: #B23A48;
    --bg-color: #BFD7EA;
    
    /* Text Colors */
    --text-main: #1f2937;
    --text-light: #6b7280;
    --text-white: #ffffff;
    --text-dark: #111827;

    /* Theme Gradation */
    --gradient-primary: linear-gradient(135deg, #4F759B 0%, #6FA0C9 100%);
    --gradient-soft: linear-gradient(135deg, rgba(79, 117, 155, 0.1) 0%, rgba(111, 160, 201, 0.1) 100%);
    --gradient-overlay: linear-gradient(180deg, rgba(3, 25, 38, 0.7) 0%, rgba(3, 25, 38, 0.95) 100%);

    /* Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
    
    --glass-light-bg: rgba(255, 255, 255, 0.6);
    --glass-light-border: rgba(255, 255, 255, 0.3);
    --glass-light-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);

    /* Fonts */
    --font-ui: 'Plus Jakarta Sans', sans-serif;
    --font-heading: 'Playfair Display', serif;

    /* Spacing & Utilities */
    --section-pad: 100px;
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* ================== Resets & Base ================== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-ui);
    color: var(--text-main);
    background-color: var(--bg-color);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--text-dark);
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 90%;
    max-width: 1400px;
    margin: 0 auto;
}

.section-padding {
    padding: var(--section-pad) 0;
}

.text-center { text-align: center; }
.text-white { color: var(--text-white) !important; }
.text-muted { color: var(--text-light); }
.text-accent { color: var(--accent); }
.text-secondary { color: var(--secondary); }
.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.relative { position: relative; }
.z-10 { z-index: 10; }
.overflow-hidden { overflow: hidden; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mb-5 { margin-bottom: 3rem; }
.mt-4 { margin-top: 1.5rem; }
.mt-5 { margin-top: 3rem; }
.pt-0 { padding-top: 0 !important; }
.pt-5 { padding-top: 5rem !important; }
.py-0 { padding-top: 0 !important; padding-bottom: 0 !important; }
.p-5 { padding: 3rem !important; }

/* ================== Preloader ================== */
#preloader {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: var(--primary);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease;
}
.spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(255,255,255,0.1);
    border-radius: 50%;
    border-top-color: var(--accent);
    animation: spin 1s ease-in-out infinite;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ================== Navigation ================== */
.navbar {
    position: fixed;
    top: 0; left: 0; width: 100%;
    padding: 20px 0;
    z-index: 1000;
    transition: all 0.3s ease;
    background: transparent;
}
.navbar.scrolled {
    padding: 15px 0;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
}
.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-white);
}
.navbar.scrolled .logo {
    color: var(--primary);
}
.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
}
.nav-link {
    font-weight: 500;
    font-size: 15px;
    color: rgba(255,255,255,0.8);
    position: relative;
}
.navbar.scrolled .nav-link {
    color: var(--text-main);
}
.nav-link:hover, .nav-link.active {
    color: var(--text-white);
}
.navbar.scrolled .nav-link:hover, .navbar.scrolled .nav-link.active {
    color: var(--secondary);
}
.mobile-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--text-white);
    cursor: pointer;
}
.navbar.scrolled .mobile-toggle {
    color: var(--primary);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    font-family: var(--font-ui);
    cursor: pointer;
    transition: var(--transition);
    border: none;
    gap: 10px;
}
.btn-primary {
    background: var(--gradient-primary);
    color: white;
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(79, 117, 155, 0.3);
}
.btn-glow {
    box-shadow: 0 0 15px rgba(111, 160, 201, 0.5);
}
.btn-glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
}
.btn-glass:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}
.btn-outline {
    background: transparent;
    border: 1px solid var(--glass-border);
    color: white;
}
.btn-outline:hover {
    background: white;
    color: var(--primary);
}
.btn-large {
    padding: 16px 36px;
    font-size: 1.1rem;
}
.btn-sm {
    padding: 8px 20px;
    font-size: 0.9rem;
}
.btn-nav {
    background: var(--gradient-primary);
    color: white !important;
    padding: 10px 24px;
    border-radius: 50px;
    font-weight: 600;
}
.btn-nav:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(79, 117, 155, 0.4);
}

/* ================== Hero Section ================== */
.hero {
    height: 100vh;
    min-height: 800px;
    position: relative;
    display: flex;
    align-items: center;
    background-color: var(--primary);
    overflow: hidden;
}
#particles-js {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0; left: 0;
    z-index: 1;
}
.hero-bg-parallax {
    position: absolute;
    width: 100%;
    height: 100%;
    background: url('https://images.unsplash.com/photo-1574169208507-84376144848b?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80') center/cover no-repeat;
    opacity: 0.4;
    z-index: 0;
    transform: scale(1.1);
    will-change: transform;
}
.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: var(--gradient-overlay);
    z-index: 2;
}
.hero-content {
    position: relative;
    z-index: 5;
    text-align: center;
    max-width: 900px;
}
.premium-tag {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    color: var(--text-white);
    font-size: 14px;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 20px;
    backdrop-filter: blur(4px);
}
.hero-title {
    font-size: clamp(3rem, 6vw, 6rem);
    color: white;
    margin-bottom: 20px;
    line-height: 1.1;
}
.hero-tagline {
    font-size: clamp(1.1rem, 2vw, 1.5rem);
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 40px;
    font-weight: 300;
}
.hero-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
}
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.mouse {
    width: 26px;
    height: 42px;
    border: 2px solid rgba(255, 255, 255, 0.6);
    border-radius: 20px;
    position: relative;
}
.wheel {
    width: 4px;
    height: 8px;
    background: rgba(255,255,255,0.8);
    border-radius: 2px;
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll 1.5s infinite;
}
@keyframes scroll {
    0% { top: 6px; opacity: 1; }
    100% { top: 20px; opacity: 0; }
}

/* ================== Stats Section ================== */
.part-bg {
    background-color: var(--primary);
    position: relative;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    position: relative;
    z-index: 10;
    margin-top: -80px; 
}
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 30px;
    text-align: center;
    box-shadow: var(--glass-shadow);
    transition: var(--transition);
}
.glass-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.08);
}
.stat-icon {
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 15px;
}
.stat-number {
    font-size: 3rem;
    font-weight: 800;
    color: white;
    font-family: var(--font-ui);
    margin-bottom: 5px;
    white-space: nowrap;
}
.stat-label {
    color: rgba(255,255,255,0.7);
    font-size: 1.1rem;
    font-weight: 500;
}

.stat-prefix {
    font-size: 0.65em;
    margin-right: 4px;
    vertical-align: middle;
}

.stat-suffix {
    font-size: 0.55em;
    margin-left: 6px;
    font-weight: 600;
    opacity: 0.85;
    vertical-align: middle;
}

/* ================== General Sections ================== */
.section-dark {
    background-color: var(--primary);
    color: white;
}
.section-light {
    background-color: white;
}
.bg-pattern {
    background-image: radial-gradient(var(--bg-color) 1px, transparent 1px);
    background-size: 30px 30px;
}

.section-badge {
    display: inline-block;
    padding: 5px 12px;
    background: var(--gradient-soft);
    color: var(--secondary);
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
}
.section-dark .section-badge {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}
.section-title {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    margin-bottom: 20px;
}
.section-subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto 40px;
}

/* Flowing Orbs Background */
.glow-orb {
    position: absolute;
    width: 400px;
    height: 400px;
    background: var(--accent);
    border-radius: 50%;
    filter: blur(150px);
    opacity: 0.4;
    z-index: 0;
    pointer-events: none;
}
.top-right { top: -100px; right: -100px; }
.bottom-left { bottom: -100px; left: -100px; background: var(--secondary); }
.top-left { top: -100px; left: -100px; }
.center { top: 50%; left: 50%; transform: translate(-50%, -50%); opacity: 0.3; }

/* ================== About Section ================== */
.about-flex {
    display: flex;
    align-items: center;
    gap: 80px;
}
.about-text {
    flex: 1.2;
    font-size: 1.1rem;
    line-height: 1.8;
}

.story-lead {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1.4;
}

.story-highlight {
    color: var(--accent);
    font-weight: 700;
}

.story-conclusion {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
}

.story-punchline {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.2;
    margin-top: 30px;
    display: inline-block;
    padding-bottom: 5px;
    border-bottom: 3px solid var(--accent);
}

.story-card {
    padding: 50px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(111, 160, 201, 0.15);
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

@keyframes floatQuote {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.story-card::before {
    content: '"';
    position: absolute;
    top: -20px;
    left: 30px;
    font-size: 10rem;
    font-family: var(--font-heading);
    color: var(--accent);
    opacity: 0.1;
    line-height: 1;
    animation: floatQuote 5s ease-in-out infinite;
}

.about-section {
    position: relative;
}

.about-section::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 600px;
    height: 600px;
    background: var(--gradient-primary);
    filter: blur(150px);
    opacity: 0.05;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 1;
}
.lead-text {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 15px;
}
.feature-list {
    margin-top: 25px;
}
.feature-list li {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 1.1rem;
    font-weight: 500;
}
.feature-list i {
    color: var(--secondary);
    font-size: 1.2rem;
}
.about-image {
    flex: 0.8;
    position: relative;
    perspective: 1000px;
}

.image-wrapper {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transform: rotateY(-5deg) rotateX(5deg);
    transition: transform 0.5s ease;
}

.image-wrapper:hover {
    transform: rotateY(0) rotateX(0);
}
.glass-border {
    padding: 15px;
    background: var(--glass-light-bg);
    border: 1px solid var(--glass-light-border);
    box-shadow: var(--glass-light-shadow);
    backdrop-filter: blur(10px);
}
.image-wrapper img {
    border-radius: var(--radius-md);
    width: 100%;
}
.floating-badge {
    position: absolute;
    bottom: -20px;
    left: -20px;
    background: white;
    padding: 20px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    animation: float 4s ease-in-out infinite;
}
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}
.badge-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent);
    line-height: 1;
}
.badge-text {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-main);
    line-height: 1.2;
}

/* About Highlights Grid */
.about-highlights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.highlight-premium-card {
    background: var(--glass-light-bg);
    border: 1px solid var(--glass-light-border);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-md);
    padding: 30px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: var(--glass-light-shadow);
    transition: var(--transition);
}

.highlight-premium-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(79, 117, 155, 0.15);
    border-color: var(--accent);
}

.highlight-icon-wrap {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    flex-shrink: 0;
}



.highlight-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 5px;
    color: var(--text-dark);
}

.highlight-desc {
    font-size: 0.95rem;
    color: var(--text-light);
    margin: 0;
}

.glass-panel {
    background: var(--glass-light-bg);
    border: 1px solid var(--glass-light-border);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--glass-light-shadow);
}
.secretary-message {
    display: flex;
    gap: 40px;
    align-items: center;
}
.msg-image .img-inner {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    overflow: hidden;
    border: 5px solid white;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}
.msg-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.quote-icon {
    font-size: 2rem;
    margin-bottom: 15px;
    opacity: 0.5;
}
.msg-text {
    font-size: 1.2rem;
    font-style: italic;
    color: var(--text-dark);
    line-height: 1.8;
    margin-bottom: 20px;
}

/* ================== Committees ================== */
.committee-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}
.modern-card {
    position: relative;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 30px;
    overflow: hidden;
    transition: var(--transition);
}
.card-glow {
    position: absolute;
    width: 100px;
    height: 100px;
    background: var(--secondary);
    filter: blur(60px);
    opacity: 0;
    transition: var(--transition);
    top: -50px;
    right: -50px;
    border-radius: 50%;
}
.modern-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}
.modern-card:hover .card-glow {
    opacity: 0.6;
}
.card-inner {
    position: relative;
    z-index: 2;
}
.committee-abbr {
    font-size: 2.5rem;
    font-weight: 700;
    font-family: var(--font-heading);
    margin-bottom: 10px;
}
.committee-name {
    font-size: 1.2rem;
    color: white;
    margin-bottom: 20px;
}
.agenda-box {
    background: rgba(0,0,0,0.2);
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
    border-left: 3px solid var(--accent);
}
.agenda-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255,255,255,0.5);
    display: block;
    margin-bottom: 5px;
}
.agenda-box p {
    font-size: 0.95rem;
    font-weight: 500;
}
.modern-card .desc {
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
    margin-bottom: 25px;
}
.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.level-badge {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}
.advanced { background: rgba(239, 68, 68, 0.2); color: #fca5a5; }
.intermediate { background: rgba(59, 130, 246, 0.2); color: #93c5fd; }
.beginner { background: rgba(16, 185, 129, 0.2); color: #6ee7b7; }

/* ================== Highlights (Infinite Scroll) ================== */
.scrolling-gallery-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    display: flex;
}
.scrolling-gallery-track {
    display: flex;
    gap: 20px;
    padding: 20px 0;
    width: fit-content;
    animation: scrollGallery 100s linear infinite;
}
.scrolling-gallery-track:hover {
    animation-play-state: paused;
}
@keyframes scrollGallery {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-50% - 10px)); } /* Half length minus half gap to loop perfectly assuming duplicate */
}
.gallery-item {
    width: 400px;
    height: 280px;
    border-radius: var(--radius-md);
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.gallery-item:hover img {
    transform: scale(1.05);
}
.fade-left, .fade-right {
    position: absolute;
    top: 0;
    width: 15%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}
.fade-left {
    left: 0;
    background: linear-gradient(to right, white, transparent);
}
.fade-right {
    right: 0;
    background: linear-gradient(to left, white, transparent);
}
.section-dark .fade-left {
    background: linear-gradient(to right, var(--primary), transparent);
}
.section-dark .fade-right {
    background: linear-gradient(to left, var(--primary), transparent);
}

/* ================== Secretariat ================== */
.sec-department-block {
    margin-bottom: 80px;
    padding: 20px 0;
    border-radius: 30px;
    position: relative;
    z-index: 1;
}
.dept-bg-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60%;
    height: 60%;
    background: radial-gradient(circle, rgba(111, 160, 201, 0.08) 0%, transparent 70%);
    z-index: -1;
    border-radius: 50%;
    filter: blur(60px);
}
.dept-header {
    text-align: center;
    margin-bottom: 50px;
}
.dept-title {
    font-size: 2.2rem;
    color: var(--text-dark);
    display: inline-block;
    position: relative;
    padding-bottom: 15px;
    font-weight: 700;
}
.dept-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 20px;
}
.sec-card-glass {
    position: relative;
    background: rgba(255, 255, 255, 0.5); /* Glassmorphism on light */
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 20px;
    padding: 25px 20px;
    text-align: center;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transition: all 0.4s ease;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.04);
}
.sec-card-glass::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(135deg, rgba(255,255,255,0.4), transparent);
    z-index: 0;
    pointer-events: none;
}
.card-inner {
    position: relative;
    z-index: 2;
}
.sec-card-glass:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(111, 160, 201, 0.1);
    border-color: rgba(111, 160, 201, 0.2);
}
.tilt-card:hover {
    transform: translateY(-8px) rotate(1deg) scale(1.02);
}
.sg-dg-card {
    width: 320px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(111, 160, 201, 0.3);
    box-shadow: 0 20px 50px rgba(111, 160, 201, 0.15);
}
.sg-dg-card:hover {
    background: #ffffff;
    transform: translateY(-10px) scale(1.03);
}

/* Layout Options */
.leadership-spotlight {
    display: flex;
    justify-content: center;
    gap: 50px;
    flex-wrap: wrap;
}
.grid-layout {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 30px;
}
.staggered-layout {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}
.staggered-layout .sec-card-glass {
    flex: 1 1 240px;
    max-width: 280px;
}
.staggered-layout .sec-card-glass:nth-child(even) {
    transform: translateY(25px);
}
.staggered-layout .sec-card-glass:nth-child(even):hover {
    transform: translateY(15px) scale(1.02);
}

.scroll-layout {
    display: flex;
    overflow-x: auto;
    gap: 30px;
    padding: 20px 10px 40px 10px;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
    scrollbar-color: var(--primary) transparent;
}
.scroll-layout::-webkit-scrollbar {
    height: 8px;
}
.scroll-layout::-webkit-scrollbar-thumb {
    background-color: var(--primary);
    border-radius: 10px;
}
.scroll-layout .sec-card-glass {
    min-width: 250px;
    scroll-snap-align: center;
}

/* Image Wrapper */
.sec-img-wrapper {
    position: relative;
    border-radius: 50%;
    width: 130px;
    height: 130px;
    margin: 0 auto 20px auto;
    overflow: hidden;
    border: 4px solid white;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    transition: var(--transition);
}
.sg-dg-card .sec-img-wrapper {
    width: 160px;
    height: 160px;
    border-color: rgba(111, 160, 201, 0.1);
}
.sec-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.sec-card-glass:hover .sec-img-wrapper img {
    transform: scale(1.15);
}
.sec-overlay {
    position: absolute;
    inset: 0;
    background: rgba(3, 25, 38, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: var(--transition);
}
.sec-card-glass:hover .sec-overlay {
    opacity: 1;
}
.sec-overlay a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: white;
    color: var(--primary);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 18px;
    transform: translateY(20px) scale(0.8);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.sec-card-glass:hover .sec-overlay a {
    transform: translateY(0) scale(1);
}
.sec-overlay a:hover {
    background: var(--accent);
    color: white;
}

/* Info Section */
.sec-info h4 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 5px;
    color: var(--text-dark);
}
.sg-dg-card .sec-info h4 {
    font-size: 1.4rem;
}
.sec-info .role {
    font-weight: 600;
    font-size: 0.95rem;
    margin: 0;
}
.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}
.delay-0 { transition-delay: 0s; }
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }

/* ================== Testimonials ================== */
.testimonials {
    padding-bottom: 120px;
}
.testimonial-swiper {
    padding-bottom: 50px;
}
.testimonial-card {
    text-align: left;
    position: relative;
    padding: 40px;
    margin: 10px;
}
.quote-bg {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 5rem;
    color: rgba(255,255,255,0.05);
    z-index: 0;
}
.t-text {
    font-size: 1.2rem;
    color: white;
    font-style: italic;
    margin-bottom: 30px;
    position: relative;
    z-index: 1;
    line-height: 1.8;
}
.t-author {
    display: flex;
    align-items: center;
    gap: 15px;
    position: relative;
    z-index: 1;
}
.t-author img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--accent);
}
.t-author h5 {
    color: white;
    font-size: 1.1rem;
    margin-bottom: 0;
}
.t-author span {
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
}
.swiper-pagination-bullet {
    background: white;
}
.swiper-pagination-bullet-active {
    background: var(--accent);
}

/* ================== Masonry Gallery ================== */
.masonry-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    grid-auto-rows: 250px;
    gap: 20px;
    grid-auto-flow: dense;
}
.masonry-item {
    border-radius: var(--radius-md);
    overflow: hidden;
    position: relative;
    cursor: pointer;
}
.masonry-item.tall { grid-row: span 2; }
.masonry-item.wide { grid-column: span 2; }
.masonry-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}
.masonry-item::after {
    content: '\f00e';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(79, 117, 155, 0.4);
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 2rem;
    opacity: 0;
    transition: var(--transition);
}
.masonry-item:hover .masonry-img {
    transform: scale(1.1);
}
.masonry-item:hover::after {
    opacity: 1;
}
/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    padding-top: 100px;
    left: 0; top: 0; width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.9);
}
.lightbox-content {
    margin: auto;
    display: block;
    max-width: 80%;
    max-height: 80%;
    border-radius: var(--radius-sm);
    animation: zoomIn 0.3s ease;
}
@keyframes zoomIn {
    from {transform:scale(0.8)} 
    to {transform:scale(1)}
}
.close-lightbox {
    position: absolute;
    top: 30px; right: 40px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

/* ================== Matrix & Schedule ================== */
.split-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}
.matrix-icon i {
    opacity: 0.8;
}
.timeline-modern {
    position: relative;
    padding-left: 30px;
}
.timeline-modern::before {
    content: '';
    position: absolute;
    left: 0; top: 0;
    height: 100%; width: 2px;
    background: var(--gradient-soft);
}
.tl-item {
    position: relative;
    margin-bottom: 30px;
}
.tl-dot {
    position: absolute;
    left: -35px; top: 5px;
    width: 12px; height: 12px;
    background: var(--accent);
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 0 10px rgba(111, 160, 201, 0.4);
}
.tl-time {
    font-size: 0.9rem;
    margin-bottom: 10px;
}
.glass-card-sm {
    background: white;
    padding: 20px;
    border-radius: var(--radius-md);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border: 1px solid rgba(0,0,0,0.05);
}

/* ================== Registration ================== */
.form-wrapper {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
    background: rgba(255,255,255,0.05);
}
.iframe-container {
    width: 100%;
    border-radius: var(--radius-sm);
    overflow: hidden;
}

/* ================== Footer ================== */
.modern-footer {
    background-color: var(--primary);
    color: white;
}
.gradient-top-border::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 4px;
    background: var(--gradient-primary);
}
.footer-top {
    padding: 80px 0 50px;
}
.footer-grid-wrap {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr 1.5fr;
    gap: 40px;
}
.social-pills a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 40px; height: 40px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
    margin-right: 10px;
    color: white;
}
.social-pills a:hover {
    background: var(--accent);
}
.footer-links ul li {
    margin-bottom: 15px;
}
.footer-links a {
    color: rgba(255,255,255,0.6);
}
.footer-links a:hover {
    color: white;
    padding-left: 5px;
}
.contact-list li {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    color: rgba(255,255,255,0.6);
}
.icon-wrap {
    color: var(--accent);
}
.newsletter-form {
    display: flex;
}
.newsletter-form input {
    flex: 1;
    padding: 12px 15px;
    border: none;
    background: rgba(255,255,255,0.05);
    color: white;
    border-radius: 4px 0 0 4px;
}
.newsletter-form .btn {
    border-radius: 0 4px 4px 0;
}
.footer-bottom {
    background: rgba(0,0,0,0.2);
    padding: 20px 0;
    color: rgba(255,255,255,0.5);
    font-size: 0.9rem;
}
.footer-credit {
    font-size: 0.75rem;
    opacity: 0.4;
    margin-top: 10px;
    font-weight: 300;
    letter-spacing: 0.02em;
}

/* ================== Animations (Intersection Observer Classes) ================== */
.reveal-up { opacity: 0; transform: translateY(40px); transition: all 0.8s ease; }
.reveal-up.active { opacity: 1; transform: translateY(0); }

.reveal-left { opacity: 0; transform: translateX(-40px); transition: all 0.8s ease; }
.reveal-left.active { opacity: 1; transform: translateX(0); }

.reveal-right { opacity: 0; transform: translateX(40px); transition: all 0.8s ease; }
.reveal-right.active { opacity: 1; transform: translateX(0); }

.fade-up { opacity: 0; transform: translateY(20px); animation: fadeUpAnim 1s forwards cubic-bezier(0.2, 0.8, 0.2, 1); }
@keyframes fadeUpAnim { to { opacity: 1; transform: translateY(0); } }

.delay-1 { animation-delay: 0.2s; transition-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; transition-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; transition-delay: 0.6s; }
.delay-4 { animation-delay: 0.8s; transition-delay: 0.8s; }

/* Responsive Adjustments */
@media (max-width: 1024px) {
    .split-layout { grid-template-columns: 1fr; }
    .footer-grid-wrap { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 70px; right: -100%;
        width: 250px; height: 100vh;
        background: var(--primary);
        flex-direction: column;
        padding: 40px 20px;
        transition: 0.4s;
    }
    .nav-links.active { right: 0; }
    .mobile-toggle { display: block; }
    .about-flex { flex-direction: column; }
    .secretary-message { flex-direction: column; text-align: center; }
    .footer-grid-wrap { grid-template-columns: 1fr; }
    .hero-title { font-size: 2.5rem; }
}


/* ================== Jr MUN Section ================== */
.jrmun-section {
    padding-top: 100px;
    padding-bottom: 100px;
}
.badge-playful {
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.9rem;
    display: inline-block;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4);
}
.jrmun-timeline-container {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}
.jrmun-timeline {
    position: relative;
    padding-left: 30px;
    margin-top: 40px;
}
.jrmun-timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 8px;
    height: 100%;
    width: 2px;
    background: rgba(111, 160, 201, 0.3);
}

/* ================== Registration Role Selectors ================== */
.role-selector-grid {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 30px;
}
.role-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 25px 20px;
    text-align: center;
    width: 280px;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}
.role-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(111, 160, 201, 0.5);
}
.role-card.active {
    background: rgba(111, 160, 201, 0.15);
    border-color: var(--primary);
    box-shadow: 0 10px 30px rgba(111, 160, 201, 0.2);
    transform: translateY(-5px);
}
.role-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 15px;
}
.role-card.active .role-icon {
    color: var(--accent);
}
.role-card h3 {
    color: white;
    font-size: 1.3rem;
    margin-bottom: 10px;
}
.role-card p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    margin: 0;
}


/* ================== From the Desk Section ================== */
.desk-section {
    background: var(--dark-bg, #0a0a1a);
}
.desk-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 50px;
}
.desk-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 35px;
    backdrop-filter: blur(16px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.desk-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(111, 160, 201, 0.15);
    border-color: rgba(111, 160, 201, 0.4);
}
.desk-card-top {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 28px;
    padding-bottom: 22px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
.desk-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid rgba(111, 160, 201, 0.6);
    flex-shrink: 0;
    box-shadow: 0 0 18px rgba(111, 160, 201, 0.3);
}
.desk-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.desk-identity h4 {
    font-size: 1.15rem;
    font-weight: 700;
    margin: 0 0 4px 0;
}
.desk-role {
    font-size: 0.9rem;
    margin: 0;
    opacity: 0.9;
}
.desk-letter {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.desk-salutation {
    font-size: 1rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}
.desk-body {
    font-size: 1.0rem;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.85;
    font-style: italic;
    margin: 0;
}
.desk-closing {


/* ================== Jr MUN Section ================== */
.jrmun-section {
    padding-top: 100px;
    padding-bottom: 100px;
}
.badge-playful {
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.9rem;
    display: inline-block;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4);
}
.jrmun-timeline-container {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}
.jrmun-timeline {
    position: relative;
    padding-left: 30px;
    margin-top: 40px;
}
.jrmun-timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 8px;
    height: 100%;
    width: 2px;
    background: rgba(111, 160, 201, 0.3);
}

/* ================== Registration Role Selectors ================== */
.role-selector-grid {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 30px;
}
.role-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 25px 20px;
    text-align: center;
    width: 280px;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}
.role-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(111, 160, 201, 0.5);
}
.role-card.active {
    background: rgba(178, 58, 72, 0.15); /* Firebrick tint */
    border-color: var(--alert);
    box-shadow: 0 10px 30px rgba(178, 58, 72, 0.2);
    transform: translateY(-5px);
}
.role-icon {
    font-size: 2.5rem;
    color: var(--secondary);
    margin-bottom: 15px;
}
.role-card.active .role-icon {
    color: var(--alert);
}
.role-card h3 {
    color: white;
    font-size: 1.3rem;
    margin-bottom: 10px;
}
.role-card p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    margin: 0;
}


/* ================== From the Desk Section ================== */
.desk-section {
    background: var(--dark-bg, #0a0a1a);
}
.desk-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 50px;
}
.desk-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 35px;
    backdrop-filter: blur(16px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.desk-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(111, 160, 201, 0.15);
    border-color: rgba(111, 160, 201, 0.4);
}
.desk-card-top {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 28px;
    padding-bottom: 22px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
.desk-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid rgba(111, 160, 201, 0.6);
    flex-shrink: 0;
    box-shadow: 0 0 18px rgba(111, 160, 201, 0.3);
}
.desk-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.desk-identity h4 {
    font-size: 1.15rem;
    font-weight: 700;
    margin: 0 0 4px 0;
}
.desk-role {
    font-size: 0.9rem;
    margin: 0;
    opacity: 0.9;
}
.desk-letter {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.desk-salutation {
    font-size: 1rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}
.desk-body {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
    margin: 0;
    white-space: pre-line;
}

.desk-card--primary {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    grid-column: 1 / -1;
    max-width: 900px;
    margin: 0 auto;
}

.desk-card--primary .desk-body {
    font-size: 1.15rem;
    font-family: var(--font-ui);
    color: rgba(255, 255, 255, 0.9);
}

.desk-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
}

.sec-card-glass:hover .sec-img-zoom {
    transform: scale(1.1);
}
.desk-closing {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.5);
    margin: 0;
}
.desk-sig {
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0;
}

/* ================== Dynamic Committees & Modal ================== */
.senior-mun {
    background: linear-gradient(135deg, rgba(3, 25, 38, 0.4) 0%, rgba(3, 25, 38, 0.9) 100%);
    padding: 40px;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.senior-mun .modern-card {
    background: rgba(3, 25, 38, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.senior-mun .modern-card:hover {
    background: rgba(3, 25, 38, 0.8);
    border-color: rgba(111, 160, 201, 0.4);
    box-shadow: 0 10px 30px rgba(111, 160, 201, 0.2);
}

.beginner-mun {
    background: linear-gradient(135deg, rgba(79, 117, 155, 0.1) 0%, rgba(16, 185, 129, 0.1) 100%);
    padding: 40px;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.beginner-mun .modern-card {
    background: rgba(255, 255, 255, 0.03);
}

.beginner-mun .modern-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(16, 185, 129, 0.3);
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.1);
}

/* Modal Styling */
.agenda-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(3, 25, 38, 0.85);
    backdrop-filter: blur(8px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.agenda-modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

.agenda-modal-content {
    position: relative;
    width: 90%;
    max-width: 600px;
    margin: auto;
    transform: translateY(-50px);
    transition: transform 0.3s ease;
    background: var(--primary);
    border: 1px solid rgba(111, 160, 201, 0.3);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    border-radius: var(--radius-lg);
    padding: 40px;
    max-height: 90vh;
    overflow-y: auto;
}

.agenda-modal.show .agenda-modal-content {
    transform: translateY(0);
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 25px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s;
}

.close-modal:hover {
    color: white;
}

.agenda-item {
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-sm);
}

/* Staggered Bento Grid Layout for Committees */
.committee-bento {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 30px;
}
.committee-bento > .modern-card {
    grid-column: span 12;
    display: flex;
    flex-direction: column;
}
@media (min-width: 768px) {
    .committee-bento > .modern-card:nth-child(2n+1) { grid-column: span 7; }
    .committee-bento > .modern-card:nth-child(2n) { grid-column: span 5; }
    .committee-bento > .modern-card:nth-child(3n) { grid-column: span 12; }
}
@media (min-width: 1024px) {
    .senior-mun .committee-bento > .modern-card:nth-child(1) { grid-column: span 6; }
    .senior-mun .committee-bento > .modern-card:nth-child(2) { grid-column: span 6; }
    .senior-mun .committee-bento > .modern-card:nth-child(3) { grid-column: span 4; }
    .senior-mun .committee-bento > .modern-card:nth-child(4) { grid-column: span 4; }
    .senior-mun .committee-bento > .modern-card:nth-child(5) { grid-column: span 4; }

    .beginner-mun .committee-bento > .modern-card { grid-column: span 6; }
}

.sec-card-glass:hover .sec-img-zoom {
    transform: scale(1.08) !important;
}

/* Schedule Disclaimer */
.schedule-disclaimer {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 18px 25px;
    background: rgba(178, 58, 72, 0.05); /* Firebrick very light */
    border-left: 4px solid var(--alert); /* Firebrick accent */
    border-radius: var(--radius-sm);
    color: var(--text-dark);
    font-size: 1.05rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
}
.section-dark .schedule-disclaimer,
.section-dark .schedule-disclaimer span {
    color: var(--text-white);
}
.schedule-disclaimer i {
    font-size: 1.5rem;
    color: var(--alert);
}

/* ================== Lightbox ================== */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(3, 25, 38, 0.93);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(8px);
    animation: fadeIn 0.3s ease;
}
.lightbox.show {
    display: flex;
}
.lightbox-img {
    max-width: 92vw;
    max-height: 88vh;
    border-radius: var(--radius-md);
    box-shadow: 0 20px 60px rgba(0,0,0,0.6);
    object-fit: contain;
    animation: scaleIn 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.lightbox-close {
    position: fixed;
    top: 22px;
    right: 30px;
    color: rgba(255,255,255,0.8);
    font-size: 2.5rem;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s ease, transform 0.2s ease;
    z-index: 10000;
}
.lightbox-close:hover {
    color: var(--accent);
    transform: scale(1.15);
}
@keyframes scaleIn {
    from { transform: scale(0.9); opacity: 0; }
    to   { transform: scale(1);   opacity: 1; }
}

/* ================== Premium Toast ================== */
.premium-toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 24px;
    background: rgba(3, 25, 38, 0.92);
    border-left: 4px solid var(--accent);
    border-radius: var(--radius-sm);
    color: white;
    font-size: 1rem;
    box-shadow: 0 10px 35px rgba(0,0,0,0.25);
    backdrop-filter: blur(12px);
    transform: translateX(110%);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.68,-0.55,0.265,1.55), opacity 0.4s ease;
}
.premium-toast.show {
    transform: translateX(0);
    opacity: 1;
}

/* ================== Agenda Accordion Labels ================== */
.agenda-label {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 4px;
}
.agenda-text {
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 12px;
}

/* ================================================================
   RESPONSIVE BREAKPOINTS — NMUN 2026
   Tablet: max-width 1024px
   Mobile: max-width 768px
   Small Mobile: max-width 480px
================================================================ */

/* ---- Tablet ---- */
@media (max-width: 1024px) {
    :root {
        --section-pad: 70px;
    }
    .container { width: 92%; }

    /* Bento grid */
    .committee-bento { grid-template-columns: repeat(6, 1fr); gap: 20px; }
    .senior-mun .committee-bento > .modern-card:nth-child(1),
    .senior-mun .committee-bento > .modern-card:nth-child(2) { grid-column: span 3; }
    .senior-mun .committee-bento > .modern-card:nth-child(3),
    .senior-mun .committee-bento > .modern-card:nth-child(4),
    .senior-mun .committee-bento > .modern-card:nth-child(5) { grid-column: span 2; }
    .beginner-mun .committee-bento > .modern-card { grid-column: span 3; }

    /* Secretariat grid */
    .sec-grid { grid-template-columns: repeat(3, 1fr) !important; }

    /* About flex */
    .about-flex { flex-direction: column; gap: 40px; }
    .about-image { width: 100%; max-width: 500px; margin: 0 auto; }

    /* Stats grid */
    .stats-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 20px; }
}

/* ---- Mobile ---- */
@media (max-width: 768px) {
    :root {
        --section-pad: 55px;
    }
    html { font-size: 15px; }
    .container { width: 94%; }

    /* ---- Navbar ---- */
    .mobile-toggle { display: block !important; }
    .nav-links {
        display: none;
        position: fixed;
        top: 0; right: 0;
        width: 78%;
        max-width: 320px;
        height: 100vh;
        background: rgba(3, 25, 38, 0.97);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: flex-start;
        gap: 0;
        padding: 80px 32px 40px;
        z-index: 999;
        transform: translateX(100%);
        transition: transform 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
        box-shadow: -10px 0 40px rgba(0,0,0,0.3);
    }
    .nav-links.active {
        display: flex;
        transform: translateX(0);
    }
    .nav-links li { width: 100%; border-bottom: 1px solid rgba(255,255,255,0.08); }
    .nav-link {
        display: block;
        padding: 16px 0;
        font-size: 1.1rem;
        color: rgba(255,255,255,0.85) !important;
    }
    .nav-link:hover { color: var(--accent) !important; padding-left: 6px; }
    .btn-nav {
        display: block;
        margin-top: 16px;
        text-align: center;
        padding: 14px 0;
    }
    .mobile-toggle { z-index: 1001; }

    /* ---- Hero ---- */
    .hero { min-height: 100svh; }
    .hero-content { padding: 0 8px; }
    .hero-title { font-size: 2.4rem !important; line-height: 1.15; }
    .hero-tagline { font-size: 1rem !important; max-width: 90%; margin: 0 auto; }
    .hero-actions {
        flex-direction: column;
        gap: 12px;
        align-items: center;
    }
    .hero-actions .btn { width: 100%; max-width: 320px; justify-content: center; }
    .btn-large { padding: 14px 24px; font-size: 1rem; }

    /* ---- Stats ---- */
    .stats-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 16px; }
    .stat-card { padding: 24px 16px; }
    .stat-number { font-size: 2.4rem !important; }

    /* ---- About ---- */
    .about-flex { flex-direction: column; gap: 30px; }
    .about-text, .about-image { width: 100%; }
    .about-image { max-width: 400px; margin: 0 auto; }

    /* ---- Section headings ---- */
    .section-title { font-size: 2rem !important; }
    .section-subtitle { font-size: 1rem !important; }

    /* ---- Committees ---- */
    .committee-bento {
        grid-template-columns: 1fr !important;
        gap: 18px;
    }
    .committee-bento > .modern-card,
    .senior-mun .committee-bento > .modern-card,
    .beginner-mun .committee-bento > .modern-card {
        grid-column: span 1 !important;
    }
    .committee-category { padding: 30px 0; }
    .category-title { font-size: 1.5rem !important; }

    /* ---- Secretariat ---- */
    .sec-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 16px !important; }
    .sec-card-glass { padding: 16px !important; }
    .sec-img-wrapper { margin-bottom: 12px !important; }

    /* ---- Gallery masonry ---- */
    .masonry-grid {
        columns: 2 !important;
        column-gap: 12px !important;
    }
    .masonry-item { margin-bottom: 12px; break-inside: avoid; }
    .masonry-item.tall, .masonry-item.wide { grid-column: span 1 !important; }

    /* ---- Highlights auto-scroll ---- */
    .gallery-item { width: 220px !important; }
    .gallery-item img { height: 160px !important; }

    /* ---- Timeline ---- */
    .timeline-modern { padding-left: 16px !important; }
    .tl-item { padding: 16px !important; }
    .tl-time { font-size: 0.85rem !important; }

    /* ---- Schedule disclaimer ---- */
    .schedule-disclaimer { font-size: 0.92rem; padding: 14px 16px; }
    .schedule-disclaimer i { font-size: 1.2rem; }

    /* ---- Matrix download ---- */
    .matrix-download { padding: 30px 20px !important; margin: 40px auto !important; }
    .matrix-download h3 { font-size: 1.4rem !important; }

    /* ---- Registration ---- */
    .roles-flex {
        flex-direction: column !important;
        align-items: center;
        gap: 16px;
    }
    .role-card { width: 100% !important; max-width: 400px; }
    .form-wrapper { padding: 20px 0 !important; }
    #registration-iframe { height: 600px !important; }

    /* ---- Jr MUN ---- */
    .jrmun-grid, .jrmun-cards { grid-template-columns: 1fr !important; }

    /* ---- Footer ---- */
    .footer-grid { grid-template-columns: 1fr !important; gap: 30px; }
    .footer-logo { font-size: 1.5rem !important; }

    /* ---- Modals ---- */
    .agenda-modal .modal-content { width: 94% !important; padding: 24px 16px !important; }

    /* ---- Toast ---- */
    .premium-toast { right: 12px; bottom: 16px; left: 12px; font-size: 0.92rem; }
    .premium-toast.show { transform: translateX(0); }

    /* Reduce heavy animations on mobile */
    .reveal-up, .reveal-left, .reveal-right { transform: none !important; opacity: 1 !important; transition: opacity 0.4s ease !important; }
    .reveal-up.active, .reveal-left.active, .reveal-right.active { opacity: 1 !important; }

    /* Story styles mobile */
    .story-lead { font-size: 1.2rem; }
    .story-punchline { font-size: 1.6rem; }
    .about-flex { gap: 40px; }
    .story-card { padding: 30px; }
    .story-card::before { font-size: 6rem; top: -10px; left: 15px; }
}

/* ---- Small Mobile ---- */
@media (max-width: 480px) {
    html { font-size: 14px; }
    .hero-title { font-size: 1.9rem !important; }
    .hero-tagline { font-size: 0.95rem !important; }
    .stats-grid { grid-template-columns: 1fr !important; }
    .sec-grid { grid-template-columns: 1fr !important; }
    .masonry-grid { columns: 1 !important; }
    .gallery-item { width: 85vw !important; }
    .gallery-item img { height: 200px !important; object-fit: cover; }
    .btn-large { padding: 12px 20px; font-size: 0.95rem; }
    .section-title { font-size: 1.7rem !important; }
    .category-title { font-size: 1.3rem !important; }
    .lightbox-img { max-width: 98vw; max-height: 80vh; }

    /* touch hover fix */
    @media (hover: none) {
        .btn:hover, .modern-card:hover, .sec-card-glass:hover { transform: none; }
        .sec-img-zoom:hover { transform: none !important; }
        .gallery-item img:hover { transform: none; }
    }
}

/* Lazy loading fade-in */
img[loading="lazy"] {
    opacity: 0;
    transition: opacity 0.5s ease;
}
img[loading="lazy"].loaded {
    opacity: 1;
}

/* ================== Junior Level Badge ================== */
.level-badge.junior {
    background: linear-gradient(135deg, #FF6B6B, #FF8E53);
    color: #fff;
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    box-shadow: 0 4px 14px rgba(255, 107, 107, 0.35);
}

/* ================== Jr MUN Committee Bento Layout ================== */
.jr-mun {
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.08) 0%, rgba(255, 142, 83, 0.08) 100%);
    padding: 40px;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 107, 107, 0.15);
}
.jr-mun .modern-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 107, 107, 0.12);
}
.jr-mun .modern-card:hover {
    background: rgba(255, 107, 107, 0.07);
    border-color: rgba(255, 107, 107, 0.35);
    box-shadow: 0 10px 30px rgba(255, 107, 107, 0.12);
}
@media (min-width: 768px) {
    .jr-mun .committee-bento > .modern-card { grid-column: span 6; }
}
@media (max-width: 768px) {
    .jr-mun .committee-bento > .modern-card { grid-column: span 1 !important; }
}

/* ================== Dual Country Matrix Grid ================== */
.matrix-dual-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    max-width: 900px;
    margin: 0 auto 40px auto;
}
@media (max-width: 700px) {
    .matrix-dual-grid { grid-template-columns: 1fr; }
}

.matrix-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 44px 32px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(111, 160, 201, 0.2);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.06);
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
    position: relative;
    overflow: hidden;
}
.matrix-card::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.35s ease;
    border-radius: inherit;
}
.matrix-card--senior::before {
    background: linear-gradient(135deg, rgba(79, 117, 155, 0.06), rgba(111, 160, 201, 0.04));
}
.matrix-card--jr::before {
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.06), rgba(255, 142, 83, 0.04));
}
.matrix-card:hover { transform: translateY(-8px); box-shadow: 0 28px 60px rgba(0, 0, 0, 0.1); }
.matrix-card--senior:hover { border-color: rgba(111, 160, 201, 0.5); }
.matrix-card--jr:hover     { border-color: rgba(255, 107, 107, 0.4); }
.matrix-card:hover::before { opacity: 1; }

.matrix-card__icon {
    width: 72px; height: 72px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 22px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff;
    box-shadow: 0 10px 28px rgba(79, 117, 155, 0.28);
    flex-shrink: 0;
}
.matrix-card__icon--jr {
    background: linear-gradient(135deg, #FF6B6B, #FF8E53);
    box-shadow: 0 10px 28px rgba(255, 107, 107, 0.28);
}

.matrix-card__title {
    font-size: 1.45rem;
    font-weight: 700;
    color: var(--primary);
    margin: 0 0 8px 0;
}
.matrix-card__subtitle {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--accent);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin: 0 0 16px 0;
}
.matrix-card__desc {
    font-size: 0.97rem;
    color: var(--text-muted, #6b7280);
    line-height: 1.65;
    margin: 0 0 28px 0;
    flex: 1;
}

.matrix-btn {
    padding: 13px 28px;
    font-size: 0.97rem;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    text-decoration: none;
}
.matrix-btn:hover  { transform: translateY(-2px); }
.matrix-btn--jr {
    background: linear-gradient(135deg, #FF6B6B, #FF8E53) !important;
    box-shadow: 0 8px 24px rgba(255, 107, 107, 0.35) !important;
}
.matrix-btn--jr:hover {
    box-shadow: 0 14px 32px rgba(255, 107, 107, 0.45) !important;
}

/* ================== Senior Matrix Modal ================== */
.senior-matrix-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9998;
    background: rgba(3, 25, 38, 0.88);
    backdrop-filter: blur(10px);
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.35s ease;
}
.senior-matrix-modal.show {
    display: flex;
    opacity: 1;
}

.senior-matrix-modal__content {
    position: relative;
    width: 90%;
    max-width: 480px;
    padding: 56px 44px 48px;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(111, 160, 201, 0.25);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.18);
    text-align: center;
    animation: modalSlideIn 0.38s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
}
@keyframes modalSlideIn {
    from { transform: translateY(40px) scale(0.96); opacity: 0; }
    to   { transform: translateY(0)    scale(1);    opacity: 1; }
}

.senior-matrix-modal__close {
    position: absolute;
    top: 18px; right: 22px;
    background: none;
    border: none;
    font-size: 1.8rem;
    color: rgba(0, 0, 0, 0.35);
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s ease, transform 0.2s ease;
    padding: 0;
}
.senior-matrix-modal__close:hover { color: var(--primary); transform: scale(1.15); }

.senior-matrix-modal__icon {
    width: 80px; height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    display: flex; align-items: center; justify-content: center;
    font-size: 2rem;
    color: #fff;
    margin: 0 auto 24px;
    box-shadow: 0 12px 32px rgba(79, 117, 155, 0.3);
}

.senior-matrix-modal__title {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--primary);
    margin: 0 0 8px 0;
}
.senior-matrix-modal__subtitle {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin: 0 0 24px 0;
}
.senior-matrix-modal__message {
    font-size: 1.05rem;
    color: #555;
    line-height: 1.7;
    margin: 0 0 30px 0;
}

/* Animated pulse dots */
.senior-matrix-modal__pulse {
    display: flex;
    justify-content: center;
    gap: 10px;
}
.senior-matrix-modal__pulse span {
    width: 10px; height: 10px;
    border-radius: 50%;
    background: var(--primary);
    animation: pulseDot 1.4s ease-in-out infinite;
    opacity: 0.6;
}
.senior-matrix-modal__pulse span:nth-child(2) { animation-delay: 0.2s; background: var(--accent); }
.senior-matrix-modal__pulse span:nth-child(3) { animation-delay: 0.4s; background: var(--primary); }
@keyframes pulseDot {
    0%, 80%, 100% { transform: scale(0.8); opacity: 0.4; }
    40%           { transform: scale(1.3); opacity: 1; }
}

/* ================== Mobile: matrix + modal tweaks ================== */
@media (max-width: 768px) {
    .matrix-dual-grid { gap: 18px; }
    .matrix-card { padding: 32px 20px; }
    .matrix-card__title { font-size: 1.2rem; }
    .senior-matrix-modal__content { padding: 44px 24px 36px; }
    .senior-matrix-modal__title { font-size: 1.35rem; }
}
@media (max-width: 480px) {
    .matrix-card__icon { width: 60px; height: 60px; font-size: 1.5rem; }
}
