/* style.css - US Academy Dark Theme */
:root {
    --bg-dark: #070B14; /* Extremely Deep Premium Navy */
    --bg-card: rgba(255, 255, 255, 0.03); /* Glassmorphism base */
    --border-subtle: rgba(255, 255, 255, 0.05);
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    
    /* Logo Colors */
    --brand-blue: #4285F4;
    --brand-gold: #FBBC05;
    --brand-green: #34A853;
    --brand-red: #EA4335;

    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
}

.text-gold { color: var(--brand-gold); }
.text-blue { color: var(--brand-blue); }
.text-green { color: var(--brand-green); }
.text-white { color: #fff; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    font-family: var(--font-heading);
    letter-spacing: 0.5px;
    white-space: nowrap;
    font-size: 0.95rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--brand-blue), #2563eb);
    color: #fff;
    border: none;
    box-shadow: 0 4px 15px rgba(66, 133, 244, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(66, 133, 244, 0.6);
}

.btn-outline {
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.1);
    color: var(--text-primary);
}

.btn-outline:hover {
    border-color: var(--brand-gold);
    color: var(--brand-gold);
    background: rgba(251, 188, 5, 0.05);
}

.btn-large {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: background 0.4s ease, padding 0.4s ease, transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: transparent;
}

.navbar.scrolled {
    background: rgba(7, 11, 20, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-subtle);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap; /* allow wrapping on mobile */
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.brand-logo {
    height: 90px;
    width: auto;
    object-fit: contain;
    mix-blend-mode: lighten; /* Works better than screen on some mobile browsers for black bg */
}

.footer-logo {
    height: 130px;
    margin-bottom: 1rem;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    margin: 0 0.5rem;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s;
    white-space: nowrap;
}

.nav-links a:hover {
    color: var(--text-primary);
}

.nav-links a i {
    margin-right: 6px;
    font-size: 0.9em;
    opacity: 0.8;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-links a:hover i {
    opacity: 1;
    transform: scale(1.15) translateY(-1px);
}

.nav-links a.nav-tab-home:hover { color: var(--brand-blue); text-shadow: 0 0 10px rgba(66, 133, 244, 0.4); }
.nav-links a.nav-tab-home:hover i { color: var(--brand-blue); }

.nav-links a.nav-tab-about:hover { color: var(--brand-green); text-shadow: 0 0 10px rgba(52, 168, 83, 0.4); }
.nav-links a.nav-tab-about:hover i { color: var(--brand-green); }

.nav-links a.nav-tab-programs:hover { color: var(--brand-gold); text-shadow: 0 0 10px rgba(251, 188, 5, 0.4); }
.nav-links a.nav-tab-programs:hover i { color: var(--brand-gold); }

.nav-links a.nav-tab-results:hover { color: var(--brand-red); text-shadow: 0 0 10px rgba(234, 67, 53, 0.4); }
.nav-links a.nav-tab-results:hover i { color: var(--brand-red); }

.nav-links a.nav-tab-reviews:hover { color: #A56EFF; text-shadow: 0 0 10px rgba(165, 110, 255, 0.4); }
.nav-links a.nav-tab-reviews:hover i { color: #A56EFF; }

.nav-links a.nav-tab-register:hover { color: #00E676; text-shadow: 0 0 10px rgba(0, 230, 118, 0.4); }
.nav-links a.nav-tab-register:hover i { color: #00E676; }

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 100px;
    overflow: hidden;
}

#particle-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    background: radial-gradient(circle at center, rgba(16, 25, 43, 1) 0%, var(--bg-dark) 100%);
    pointer-events: auto;
}

.hero-content {
    max-width: 800px;
    z-index: 1;
}

.hero-title {
    font-size: 5rem;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}

.hero-title .highlight {
    background: linear-gradient(135deg, var(--brand-gold), var(--brand-red));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 650px;
    line-height: 1.7;
}

.hero-cta {
    display: flex;
    gap: 1.25rem;
}

/* Sections General */
section {
    padding: 7rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 5rem;
}

.section-header h2 {
    font-size: 2.8rem;
    margin-bottom: 1rem;
}

.section-header p {
    color: var(--text-secondary);
    font-size: 1.15rem;
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.about-text h2 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.about-text p {
    color: var(--text-secondary);
    font-size: 1.15rem;
    margin-bottom: 2rem;
}

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

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    padding: 2.5rem 2rem;
    border-radius: 16px;
    text-align: center;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(251, 188, 5, 0.3);
}

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

.stat-icon.gold { color: var(--brand-gold); }
.stat-icon.blue { color: var(--brand-blue); }
.stat-icon.green { color: var(--brand-green); }

.stat-card h3 {
    font-size: 3rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    line-height: 1;
}

.stat-card p {
    color: var(--text-secondary);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 600;
}

/* Programs Section */
.programs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
}

.program-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    padding: 2.5rem 2rem;
    border-radius: 16px;
    transition: all 0.4s ease;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.program-card::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 3px;
    background: linear-gradient(90deg, var(--brand-blue), var(--brand-green));
    opacity: 0;
    transition: opacity 0.4s ease;
}

.program-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
    background: rgba(66, 133, 244, 0.04);
}

.program-card:hover::after {
    opacity: 1;
}

.card-icon {
    width: 65px;
    height: 65px;
    background: rgba(66, 133, 244, 0.1);
    color: var(--brand-blue);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 2rem;
    transition: all 0.4s ease;
}

.program-card:hover .card-icon {
    background: var(--brand-blue);
    color: #fff;
    transform: scale(1.1) rotate(5deg);
}

.program-card h3 {
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

.program-card p {
    color: var(--text-secondary);
    font-size: 1rem;
}

/* Photo Gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.gallery-item {
    position: relative;
    padding: 0;
    overflow: hidden;
    border-radius: 16px;
    height: 250px;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease, filter 0.5s ease;
    filter: brightness(0.85);
    image-orientation: from-image; /* Fix EXIF rotation issues */
}

.gallery-item:hover img {
    transform: scale(1.1);
    filter: brightness(1) drop-shadow(0 0 10px rgba(255, 255, 255, 0.2));
}

.gallery-caption {
    position: absolute;
    bottom: -50px;
    left: 0;
    width: 100%;
    background: linear-gradient(transparent, rgba(0,0,0,0.9));
    color: white;
    padding: 1.5rem 1rem 1rem;
    text-align: center;
    font-weight: 600;
    font-size: 1.1rem;
    transition: bottom 0.4s ease;
}

.gallery-item:hover .gallery-caption {
    bottom: 0;
}

/* Reviews */
.reviews-carousel {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 2rem;
    padding-bottom: 2rem;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
}
.reviews-carousel::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

/* We must force the review panels to have a fixed width in the carousel */
.reviews-carousel .review-card {
    min-width: 350px;
    max-width: 350px;
    scroll-snap-align: center;
    flex: 0 0 auto;
}

@media (max-width: 600px) {
    .reviews-carousel .review-card {
        min-width: 320px;
        max-width: 320px;
    }
}

.glass-panel {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    padding: 2.5rem;
    border-radius: 16px;
    backdrop-filter: blur(10px);
    transition: box-shadow 0.3s;
}

.glass-panel:hover {
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.review-header {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.avatar {
    font-size: 3.5rem;
    color: rgba(255,255,255,0.1);
    margin-right: 1.25rem;
    background: linear-gradient(135deg, var(--brand-blue), var(--brand-green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.review-header h4 {
    margin-bottom: 0.3rem;
    font-size: 1.1rem;
}

.stars {
    color: var(--brand-gold);
    font-size: 0.95rem;
    letter-spacing: 2px;
}

.review-card p {
    color: var(--text-secondary);
    font-style: italic;
    font-size: 1.05rem;
    line-height: 1.7;
}

/* Footer */
.footer {
    background: #03060a;
    padding: 6rem 0 2rem;
    border-top: 1px solid var(--border-subtle);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1.5fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-info p {
    color: var(--text-secondary);
    margin: 1.5rem 0;
    font-size: 1.05rem;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
    color: var(--text-primary);
    font-size: 1.2rem;
    margin-right: 0.8rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.social-links a:hover {
    background: var(--brand-blue);
    transform: translateY(-3px);
}

.footer-contact h4 {
    margin-bottom: 2rem;
    font-size: 1.3rem;
}

.footer-contact p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    font-size: 1.05rem;
}

.footer-contact p i {
    margin-right: 1rem;
    color: var(--brand-blue);
    font-size: 1.2rem;
}

.footer-map iframe {
    transition: opacity 0.3s;
}

.footer-map iframe:hover {
    opacity: 0.9;
}

.footer-bottom {
    text-align: center;
    padding-top: 2.5rem;
    border-top: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Gradients & Text Effects */
.text-gradient {
    background: linear-gradient(135deg, var(--brand-blue), var(--brand-green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
}
.text-gradient-gold {
    background: linear-gradient(135deg, var(--brand-gold), var(--brand-red));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
}

/* Founders Section */
.founders-layout {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 3rem;
    margin-top: 2rem;
    align-items: stretch;
}

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

.founder-photo-card {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-radius: 16px;
}

.founders-photo {
    width: 100%;
    height: 100%;
    max-height: 550px;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.photo-caption {
    text-align: center;
    margin-top: 1.5rem;
}

.photo-caption h4 {
    font-size: 1.25rem;
    color: var(--brand-gold);
    margin-bottom: 0.2rem;
}

.photo-caption p {
    color: var(--text-secondary);
    font-size: 1rem;
}

.founders-bios-col {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.founder-card {
    padding: 2.5rem;
    text-align: left;
    border-radius: 16px;
    flex: 1;
}

.founder-info h3 {
    font-size: 1.6rem;
    margin-bottom: 0.5rem;
}

.founder-title {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.badge {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    font-size: 0.8rem;
    margin-left: 0.5rem;
}

.founder-bio {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.8;
}

/* Results Section & Tabs */
.tabs-container {
    max-width: 1000px;
    margin: 0 auto;
}

.tabs-nav {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.tab-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    padding: 0.8rem 2rem;
    border-radius: 30px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.05rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

.tab-btn.active {
    background: var(--brand-blue);
    border-color: var(--brand-blue);
    color: #fff;
    box-shadow: 0 4px 15px rgba(66, 133, 244, 0.4);
}

.tab-pane {
    display: none;
    animation: fadeInTab 0.5s ease;
}

.tab-pane.active {
    display: block;
}

@keyframes fadeInTab {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

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

.result-card {
    text-align: center;
    padding: 2.5rem 2rem;
}

.result-score {
    font-size: 3rem;
    font-weight: 800;
    font-family: var(--font-heading);
    margin-bottom: 0.5rem;
    line-height: 1;
}

.result-card h4 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.result-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.student-photo-wrap {
    width: 160px;
    height: 160px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    overflow: hidden;
    position: relative;
    border: 3px solid rgba(66, 133, 244, 0.5); /* subtle blue border */
    background: rgba(255, 255, 255, 0.03);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

.student-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 2;
}

.fallback-avatar {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 4.5rem;
    color: rgba(255, 255, 255, 0.1);
    z-index: 1;
    display: none; /* Handled by inline JS onerror */
}

/* Scroll Animations */
.scroll-trigger {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.5, 0, 0, 1), transform 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.scroll-trigger.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Scroll To Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--brand-blue);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(66, 133, 244, 0.4);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    border: none;
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-to-top:hover {
    background: #2563eb;
    transform: translateY(-5px) scale(1.05);
}

/* Responsive */
@media (max-width: 900px) {
    .about-grid, .footer-grid {
        grid-template-columns: 1fr;
    }
    .hero-title { font-size: 3rem; }
    .brand-logo { height: 55px; } /* Shrink logo on mobile */
    .hero { padding-top: 150px; } /* Prevent overlap with expanded navbar */
    .nav-links {
        display: flex;
        overflow-x: auto;
        white-space: nowrap;
        width: 100%;
        margin-top: 1rem;
        padding-bottom: 0.5rem;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .nav-links::-webkit-scrollbar { display: none; }
    .nav-actions { display: none !important; }
    .mobile-menu-btn { display: none; }
    .mobile-nav-action { display: inline-block !important; }
    .stats-grid { margin-top: 2rem; }
}
@media (max-width: 600px) {
    .hero-title { font-size: 2.8rem; }
    .hero-cta { flex-direction: column; }
    .stats-grid { grid-template-columns: 1fr; }
}

@keyframes pop {
    0% { transform: scale(0.5); opacity: 0; }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes shake {
    0% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    50% { transform: translateX(5px); }
    75% { transform: translateX(-5px); }
    100% { transform: translateX(0); }
}

/* Gamification Portal Styles */
.games-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(7, 11, 20, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.games-overlay.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.close-btn {
    position: absolute;
    top: 2rem;
    right: 3rem;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s;
}

.close-btn:hover {
    background: rgba(255,255,255,0.1);
    color: white;
    transform: rotate(90deg);
}

.game-panel {
    display: none;
    width: 100%;
    padding: 2rem;
}

.game-panel.active {
    display: block;
}

.game-input:focus {
    outline: none;
    border-color: var(--brand-gold);
    box-shadow: 0 0 10px rgba(244, 180, 0, 0.2);
}

.subjects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    max-width: 1000px;
    margin: 0 auto;
}

.subject-card {
    text-align: center;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}

.subject-card:hover {
    transform: translateY(-10px);
    border-color: var(--brand-blue);
    box-shadow: 0 15px 30px rgba(66, 133, 244, 0.15);
}

.subject-card .class-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.subject-card h3 {
    margin-bottom: 0.5rem;
}

/* Quiz Interface */
.options-grid button {
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border-subtle);
    color: var(--text-primary);
    padding: 1.2rem;
    border-radius: 12px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.2s;
    text-align: left;
    display: flex;
    align-items: center;
}

.options-grid button span.opt-letter {
    background: rgba(255,255,255,0.1);
    width: 30px;
    height: 30px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    margin-right: 15px;
    font-weight: bold;
    color: var(--brand-gold);
}

.options-grid button:hover:not(:disabled) {
    background: rgba(66, 133, 244, 0.1);
    border-color: var(--brand-blue);
    transform: translateY(-2px);
}

.options-grid button.correct {
    background: rgba(15, 157, 88, 0.2);
    border-color: var(--brand-green);
}

.options-grid button.wrong {
    background: rgba(234, 67, 53, 0.2);
    border-color: var(--brand-red);
}

@media (max-width: 768px) {
    .options-grid {
        grid-template-columns: 1fr !important;
    }
    .close-btn {
        top: 1rem;
        right: 1rem;
    }
}

/* Lightbox Overlay */
.lightbox-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

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

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    text-align: center;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 80vh;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.1);
}

.lightbox-caption {
    margin-top: 1rem;
    color: #fff;
    font-size: 1.2rem;
    font-family: var(--font-heading);
}

.lightbox-close-btn {
    position: absolute;
    top: 2rem;
    right: 3rem;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #fff;
    font-size: 2rem;
    width: 50px; height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
    z-index: 10000;
}

.lightbox-close-btn:hover {
    background: var(--brand-red);
    transform: scale(1.1);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #fff;
    font-size: 2rem;
    width: 60px; height: 60px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
    z-index: 10000;
}

.lightbox-nav:hover {
    background: var(--brand-blue);
    transform: translateY(-50%) scale(1.1);
}

.lightbox-nav.prev { left: 2rem; }
.lightbox-nav.next { right: 2rem; }

@media (max-width: 768px) {
    .lightbox-nav {
        width: 45px; height: 45px; font-size: 1.5rem;
    }
    .lightbox-nav.prev { left: 0.5rem; }
    .lightbox-nav.next { right: 0.5rem; }
    .lightbox-close-btn { top: 1rem; right: 1rem; width: 40px; height: 40px; font-size: 1.5rem; }
}

/* Public Registration Form Inputs */
.form-input {
    width: 100%;
    padding: 1.1rem 1.3rem;
    background: rgba(0,0,0,0.4);
    border: 1px solid var(--border-subtle);
    color: var(--text-primary);
    border-radius: 12px;
    font-size: 1.05rem;
    font-family: var(--font-body);
    transition: all 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--brand-blue);
    background: rgba(66, 133, 244, 0.05);
    box-shadow: 0 0 0 4px rgba(66, 133, 244, 0.15);
}

.form-input::placeholder {
    color: var(--text-secondary);
}
