/* =====================================================
   main.css — Museum Academy Public Website
   Premium Dark Glassmorphism Design System v2.0
   Brand: Emerald Green #287D39 + Golden Amber #F7A100
   ===================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,400&family=Plus+Jakarta+Sans:wght@600;700;800&display=swap');
@import url('https://unpkg.com/aos@2.3.1/dist/aos.css');

/* ===== DESIGN TOKENS ===== */
:root {
    /* Brand */
    --green-900: #0d3318;
    --green-800: #14522a;
    --green-700: #1a6b36;
    --green-600: #207a3f;
    --primary:   #287D39;
    --green-400: #3da855;
    --green-300: #5cc475;
    --green-200: #8fdb9f;
    --green-100: #d1f5d9;

    --amber-600: #b87800;
    --accent:    #F7A100;
    --amber-400: #ffb833;
    --amber-200: #ffe08a;
    --amber-100: #fff3cc;

    /* Neutrals */
    --bg-950: #060a10;
    --bg-900: #0a0f1e;
    --bg-800: #0d1526;
    --bg-700: #111d30;
    --bg-600: #172338;
    --bg-500: #1e2d44;
    --bg-400: #253550;

    /* Text */
    --text-100: #f0f4f8;
    --text-200: #c8d5e4;
    --text-300: #94a8bf;
    --text-400: #6b7f94;
    --text-500: #4a5c6e;

    /* Glass */
    --glass-white:  rgba(255, 255, 255, 0.04);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-hover:  rgba(255, 255, 255, 0.07);
    --glass-green:  rgba(40, 125, 57, 0.12);
    --glass-amber:  rgba(247, 161, 0, 0.10);

    /* Glow */
    --glow-green: 0 0 40px rgba(40, 125, 57, 0.25);
    --glow-amber: 0 0 40px rgba(247, 161, 0, 0.15);
    --glow-card:  0 20px 60px rgba(0, 0, 0, 0.35);

    /* Layout */
    --nav-height: 74px;
    --sidebar-w:  260px;
    --radius-xs:  6px;
    --radius-sm:  10px;
    --radius:     16px;
    --radius-lg:  22px;
    --radius-xl:  30px;

    /* Typography */
    --font-body:    'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-display: 'Plus Jakarta Sans', 'Inter', sans-serif;

    /* Transitions */
    --ease:    cubic-bezier(0.4, 0, 0.2, 1);
    --ease-in: cubic-bezier(0.4, 0, 1, 1);
    --ease-out:cubic-bezier(0, 0, 0.2, 1);
    --t-fast:  all 0.18s var(--ease);
    --t:       all 0.28s var(--ease);
    --t-slow:  all 0.45s var(--ease);
}

/* ===== RESET ===== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--nav-height);
    -webkit-text-size-adjust: 100%;
}
body {
    font-family: var(--font-body);
    background: var(--bg-900);
    color: var(--text-200);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}
a { color: inherit; }
img, video { display: block; max-width: 100%; }
button { font-family: inherit; }
input, select, textarea { font-family: inherit; }

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-900); }
::-webkit-scrollbar-thumb { background: var(--bg-500); border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary); }

/* ===== SELECTION ===== */
::selection { background: rgba(40, 125, 57, 0.35); color: #fff; }

/* ===== PAGE LOADER ===== */
#loader-overlay {
    position: fixed;
    inset: 0;
    background: var(--bg-950);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    transition: opacity 0.6s var(--ease), visibility 0.6s;
}
#loader-overlay.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}
.loader-logo {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--text-300);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}
.loader {
    display: flex;
    align-items: flex-end;
    gap: 5px;
    height: 32px;
}
.loader-square {
    width: 8px;
    border-radius: 3px;
    background: var(--primary);
    animation: loaderBar 1.1s var(--ease) infinite;
}
.loader-square:nth-child(1) { animation-delay: 0.0s; }
.loader-square:nth-child(2) { animation-delay: 0.1s; }
.loader-square:nth-child(3) { animation-delay: 0.2s; }
.loader-square:nth-child(4) { animation-delay: 0.3s; background: var(--accent); }
.loader-square:nth-child(5) { animation-delay: 0.4s; }
.loader-square:nth-child(6) { animation-delay: 0.5s; }
.loader-square:nth-child(7) { animation-delay: 0.6s; }

@keyframes loaderBar {
    0%, 40%, 100% { height: 8px;  opacity: 0.5; }
    20%            { height: 32px; opacity: 1;   }
}

/* ===== CONTAINER ===== */
.container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 1.5rem;
}
@media (min-width: 1024px) { .container { padding: 0 2.5rem; } }

/* ===== NAVBAR ===== */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 900;
    height: var(--nav-height);
    display: flex;
    align-items: center;
    background: rgba(6, 10, 16, 0.5);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border-bottom: 1px solid var(--glass-border);
    transition: var(--t);
}
.navbar.scrolled {
    background: rgba(6, 10, 16, 0.92);
    box-shadow: 0 1px 0 var(--glass-border), 0 8px 32px rgba(0, 0, 0, 0.4);
}
.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

/* Logo */
.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    flex-shrink: 0;
}
.nav-logo img {
    height: 42px;
    width: auto;
    border-radius: 10px;
    filter: brightness(1.1) drop-shadow(0 0 8px rgba(40,125,57,0.4));
    transition: var(--t);
}
.nav-logo:hover img { filter: brightness(1.2) drop-shadow(0 0 14px rgba(40,125,57,0.6)); }
.nav-logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}
.nav-logo-text strong {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.01em;
}
.nav-logo-text span {
    font-size: 0.65rem;
    font-weight: 500;
    color: var(--accent);
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

/* Nav links */
.nav-links {
    display: none;
    align-items: center;
    gap: 0.25rem;
}
@media (min-width: 900px) { .nav-links { display: flex; } }
.nav-links a {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    color: var(--text-300);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    padding: 0.5rem 0.875rem;
    border-radius: var(--radius-sm);
    transition: var(--t-fast);
    white-space: nowrap;
}
.nav-links a:hover {
    color: #fff;
    background: var(--glass-hover);
}
.nav-links a svg { width: 15px; height: 15px; opacity: 0.7; }

/* Nav CTA */
.nav-actions { flex-shrink: 0; }
.nav-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--green-700) 100%);
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.875rem;
    padding: 0.6rem 1.35rem;
    border-radius: 50px;
    transition: var(--t);
    box-shadow: 0 2px 16px rgba(40, 125, 57, 0.4), inset 0 1px 0 rgba(255,255,255,0.15);
    letter-spacing: 0.01em;
}
.nav-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 24px rgba(40, 125, 57, 0.55), inset 0 1px 0 rgba(255,255,255,0.2);
    background: linear-gradient(135deg, var(--green-400) 0%, var(--primary) 100%);
}
.nav-cta svg { width: 15px; height: 15px; }

/* Hamburger */
.menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background: var(--glass-white);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    color: var(--text-200);
    transition: var(--t-fast);
    flex-shrink: 0;
}
.menu-toggle:hover { background: var(--glass-hover); color: #fff; }
.menu-toggle svg { width: 20px; height: 20px; }
@media (min-width: 900px) { .menu-toggle { display: none; } }

/* Mobile Nav Drawer */
.mobile-nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 950;
}
.mobile-nav-overlay.open { display: block; }

.mobile-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: min(340px, 88vw);
    height: 100%;
    background: linear-gradient(160deg, var(--bg-800) 0%, var(--bg-900) 100%);
    border-left: 1px solid var(--glass-border);
    z-index: 960;
    padding: 0;
    display: flex;
    flex-direction: column;
    transition: right 0.38s var(--ease);
    box-shadow: -20px 0 80px rgba(0, 0, 0, 0.5);
}
.mobile-nav.open { right: 0; }

.mobile-nav-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--glass-border);
}
.mobile-nav-header strong {
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 800;
    color: #fff;
}
.mobile-nav-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px; height: 34px;
    background: var(--glass-white);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xs);
    cursor: pointer;
    color: var(--text-300);
    transition: var(--t-fast);
}
.mobile-nav-close:hover { background: var(--glass-hover); color: #fff; }
.mobile-nav-close svg { width: 18px; height: 18px; }

.mobile-nav-links {
    flex: 1;
    padding: 1.25rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    overflow-y: auto;
}
.mobile-nav-links a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-300);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    padding: 0.875rem 1rem;
    border-radius: var(--radius-sm);
    transition: var(--t-fast);
}
.mobile-nav-links a:hover { background: var(--glass-hover); color: #fff; }
.mobile-nav-links a svg { width: 18px; height: 18px; opacity: 0.7; }

.mobile-nav-footer {
    padding: 1.25rem 1.5rem;
    border-top: 1px solid var(--glass-border);
}
.mobile-nav-footer a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--green-700) 100%);
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    padding: 0.875rem;
    border-radius: var(--radius);
    box-shadow: 0 4px 16px rgba(40, 125, 57, 0.4);
}

/* ===== HERO ===== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: calc(var(--nav-height) + 5rem) 1.5rem 8rem;
    overflow: hidden;
    isolation: isolate;
}

/* Multi-layer animated background */
.hero-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
    background: var(--bg-950);
}
.hero-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 90% 70% at 50% -15%, rgba(40, 125, 57, 0.40) 0%, transparent 65%),
        radial-gradient(ellipse 50% 40% at 90% 85%, rgba(247, 161, 0, 0.14) 0%, transparent 55%),
        radial-gradient(ellipse 45% 35% at 5%  70%, rgba(40, 125, 57, 0.14) 0%, transparent 55%);
    animation: bgPulse 8s ease-in-out infinite alternate;
}
@keyframes bgPulse {
    0%   { opacity: 0.8; }
    100% { opacity: 1.0; }
}
.hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(1px 1px at 20% 30%, rgba(255,255,255,0.06) 0%, transparent 100%),
        radial-gradient(1px 1px at 80% 20%, rgba(255,255,255,0.04) 0%, transparent 100%),
        radial-gradient(1px 1px at 60% 70%, rgba(255,255,255,0.04) 0%, transparent 100%),
        radial-gradient(1px 1px at 40% 85%, rgba(255,255,255,0.03) 0%, transparent 100%);
    background-size: 200px 200px, 300px 300px, 250px 250px, 150px 150px;
}

/* Decorative orbs */
.hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
    opacity: 0.5;
    animation: orbFloat 10s ease-in-out infinite alternate;
}
.hero-orb-1 {
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(40,125,57,0.5) 0%, transparent 70%);
    top: -150px; left: -100px;
    animation-delay: 0s;
}
.hero-orb-2 {
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(247,161,0,0.35) 0%, transparent 70%);
    bottom: -100px; right: -80px;
    animation-delay: -4s;
}
@keyframes orbFloat {
    0%   { transform: translate(0, 0) scale(1); }
    100% { transform: translate(30px, -30px) scale(1.08); }
}

/* Hero grid line overlay */
.hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.018) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.018) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
    mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 80%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 860px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(40, 125, 57, 0.12);
    border: 1px solid rgba(40, 125, 57, 0.30);
    color: var(--green-200);
    padding: 0.45rem 1.1rem;
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 1.75rem;
}
.hero-badge-dot {
    width: 6px; height: 6px;
    background: var(--green-300);
    border-radius: 50%;
    animation: dotPulse 2s ease-in-out infinite;
    flex-shrink: 0;
}
@keyframes dotPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(92, 196, 117, 0.5); }
    50%       { box-shadow: 0 0 0 6px rgba(92, 196, 117, 0); }
}

.hero h1 {
    font-family: var(--font-display);
    font-size: clamp(2.8rem, 8vw, 6rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.04em;
    color: #fff;
    margin-bottom: 1.75rem;
}
.hero h1 .gradient-text {
    background: linear-gradient(135deg, var(--green-300) 0%, var(--accent) 60%, var(--amber-400) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

.hero-desc {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    color: var(--text-300);
    max-width: 580px;
    margin: 0 auto 2.75rem;
    line-height: 1.75;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--green-700) 100%);
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.975rem;
    padding: 0.9rem 2.1rem;
    border-radius: 50px;
    transition: var(--t);
    box-shadow: 0 4px 20px rgba(40, 125, 57, 0.45), inset 0 1px 0 rgba(255,255,255,0.15);
    border: none;
    cursor: pointer;
    letter-spacing: 0.01em;
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(40, 125, 57, 0.6), inset 0 1px 0 rgba(255,255,255,0.2);
    background: linear-gradient(135deg, var(--green-400) 0%, var(--primary) 100%);
}
.btn-primary svg { width: 17px; height: 17px; }

.btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: transparent;
    color: var(--text-200);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.975rem;
    padding: 0.9rem 2.1rem;
    border-radius: 50px;
    border: 1px solid var(--glass-border);
    transition: var(--t);
    letter-spacing: 0.01em;
}
.btn-ghost:hover {
    background: var(--glass-hover);
    color: #fff;
    border-color: rgba(255,255,255,0.2);
    transform: translateY(-1px);
}
.btn-ghost svg { width: 17px; height: 17px; opacity: 0.7; }

/* Scroll indicator */
.scroll-hint {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-400);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    animation: fadeInUp 1s 1.5s both;
}
.scroll-line {
    width: 1.5px;
    height: 48px;
    background: linear-gradient(to bottom, var(--primary), transparent);
    animation: scrollDrop 1.8s var(--ease) infinite;
}
@keyframes scrollDrop {
    0%   { transform: scaleY(0); transform-origin: top; opacity: 1; }
    50%  { transform: scaleY(1); transform-origin: top; opacity: 1; }
    51%  { transform-origin: bottom; }
    100% { transform: scaleY(0); transform-origin: bottom; opacity: 0; }
}
@keyframes fadeInUp {
    from { opacity: 0; transform: translateX(-50%) translateY(16px); }
    to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* ===== STATS BAR ===== */
.stats-bar {
    position: relative;
    background: linear-gradient(90deg, rgba(40,125,57,0.06) 0%, rgba(247,161,0,0.04) 100%);
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
    backdrop-filter: blur(20px);
    padding: 2.5rem 0;
    overflow: hidden;
}
.stats-bar::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 60% 100% at 50% 50%, rgba(40,125,57,0.05) 0%, transparent 70%);
    pointer-events: none;
}
.stats-bar .container {
    display: flex;
    justify-content: center;
    gap: clamp(2rem, 6vw, 5rem);
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
    position: relative;
}
.stat-item::after {
    content: '';
    position: absolute;
    right: calc(-1 * clamp(1rem, 3vw, 2.5rem));
    top: 15%;
    height: 70%;
    width: 1px;
    background: var(--glass-border);
}
.stat-item:last-child::after { display: none; }

.stat-num {
    display: block;
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 2.8rem);
    font-weight: 800;
    color: #fff;
    line-height: 1.1;
    letter-spacing: -0.04em;
    background: linear-gradient(135deg, #fff 0%, var(--green-200) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.stat-label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-400);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: 0.25rem;
}
.stat-icon {
    display: block;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

/* ===== SECTIONS ===== */
.section {
    padding: clamp(5rem, 10vw, 9rem) 0;
    position: relative;
}
.section-alt {
    background: linear-gradient(180deg, transparent 0%, rgba(255,255,255,0.018) 50%, transparent 100%);
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
}

.section-label {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--primary);
    background: rgba(40, 125, 57, 0.10);
    border: 1px solid rgba(40, 125, 57, 0.22);
    padding: 0.3rem 0.9rem 0.3rem 0.75rem;
    border-radius: 50px;
    margin-bottom: 1rem;
}
.section-label svg { width: 12px; height: 12px; }

.section-header {
    text-align: center;
    margin-bottom: clamp(3rem, 6vw, 5rem);
}
.section-header h2 {
    font-family: var(--font-display);
    font-size: clamp(1.9rem, 4.5vw, 3.2rem);
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.035em;
    line-height: 1.15;
    margin-bottom: 1rem;
}
.section-header h2 .gradient-text {
    background: linear-gradient(135deg, var(--green-300) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}
.section-header p {
    font-size: clamp(1rem, 2vw, 1.1rem);
    color: var(--text-300);
    max-width: 540px;
    margin: 0 auto;
    line-height: 1.75;
}

/* ===== TUTORS CAROUSEL ===== */
.swiper { width: 100%; padding: 1.5rem 0 4rem !important; }

.swiper-slide {
    width: 300px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: linear-gradient(160deg, var(--bg-700) 0%, var(--bg-800) 100%);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glow-card);
    transition: var(--t);
}
.swiper-slide:hover {
    transform: translateY(-6px);
    box-shadow: 0 30px 80px rgba(0,0,0,0.45), var(--glow-green);
    border-color: rgba(40, 125, 57, 0.3);
}

.tutor-img-wrap {
    position: relative;
    overflow: hidden;
}
.swiper-slide img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s var(--ease);
}
.swiper-slide:hover img { transform: scale(1.05); }

.tutor-img-overlay {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 50%;
    background: linear-gradient(to top, rgba(10,15,30,0.9) 0%, transparent 100%);
}

.lecturer-info {
    padding: 1.4rem 1.5rem 1.6rem;
}
.lecturer-info h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.3rem;
    letter-spacing: -0.01em;
}
.lecturer-info p {
    font-size: 0.825rem;
    color: var(--text-400);
    line-height: 1.5;
}
.lecturer-badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--accent);
    background: rgba(247, 161, 0, 0.1);
    border: 1px solid rgba(247, 161, 0, 0.2);
    padding: 0.2rem 0.6rem;
    border-radius: 50px;
    margin-top: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Swiper controls */
.swiper-button-next, .swiper-button-prev {
    color: var(--primary) !important;
    background: rgba(255,255,255,0.05) !important;
    border: 1px solid var(--glass-border) !important;
    width: 46px !important; height: 46px !important;
    border-radius: 50% !important;
    transition: var(--t) !important;
    backdrop-filter: blur(10px);
}
.swiper-button-next:hover, .swiper-button-prev:hover {
    background: rgba(40, 125, 57, 0.2) !important;
    border-color: rgba(40, 125, 57, 0.4) !important;
    box-shadow: 0 4px 20px rgba(40, 125, 57, 0.25) !important;
}
.swiper-button-next::after, .swiper-button-prev::after {
    font-size: 13px !important;
    font-weight: 900 !important;
}

/* ===== CLASSES ACCORDION ===== */
.accordion-wrap {
    max-width: 820px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}
.accordion-item {
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--glass-white);
    backdrop-filter: blur(12px);
    transition: var(--t);
}
.accordion-item:hover { border-color: rgba(40, 125, 57, 0.3); }
.accordion-item.is-open { border-color: rgba(40, 125, 57, 0.4); background: rgba(40,125,57,0.05); }

.accordion-header {
    width: 100%;
    background: transparent;
    border: none;
    text-align: left;
    padding: 1.2rem 1.5rem;
    font-family: inherit;
    font-size: 0.975rem;
    font-weight: 600;
    color: var(--text-200);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    transition: var(--t-fast);
}
.accordion-header:hover { color: #fff; }
.accordion-item.is-open .accordion-header { color: var(--green-200); }

.accordion-icon {
    width: 28px; height: 28px;
    border-radius: 50%;
    background: var(--glass-white);
    border: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: var(--t);
}
.accordion-icon svg { width: 14px; height: 14px; color: var(--primary); transition: transform 0.3s var(--ease); }
.accordion-item.is-open .accordion-icon { background: rgba(40,125,57,0.15); border-color: rgba(40,125,57,0.3); }
.accordion-item.is-open .accordion-icon svg { transform: rotate(45deg); }

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s var(--ease), padding 0.3s var(--ease);
    padding: 0 1.5rem;
}
.accordion-content-inner {
    padding-bottom: 1.25rem;
    border-top: 1px solid var(--glass-border);
    padding-top: 0.75rem;
}
.accordion-content ul { list-style: none; }
.accordion-content li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    gap: 1rem;
    flex-wrap: wrap;
}
.accordion-content li:last-child { border-bottom: none; }
.class-name { font-weight: 600; color: #fff; font-size: 0.9rem; }
.teacher-tag {
    font-size: 0.775rem;
    color: var(--green-300);
    background: rgba(40, 125, 57, 0.1);
    border: 1px solid rgba(40, 125, 57, 0.2);
    padding: 0.2rem 0.65rem;
    border-radius: 50px;
    white-space: nowrap;
    font-weight: 500;
}

/* ===== TIMETABLE ===== */
.timetable-filters {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
    background: var(--glass-white);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(12px);
    padding: 1.25rem 1.5rem;
    border-radius: var(--radius);
    align-items: flex-end;
}
.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    flex: 1;
    min-width: 150px;
}
.filter-group label {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--text-400);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}
.filter-group select {
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--glass-border);
    color: var(--text-200);
    padding: 0.65rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-family: inherit;
    transition: var(--t-fast);
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2394a8bf' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.875rem center;
    padding-right: 2.5rem;
}
.filter-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(40, 125, 57, 0.15);
    background-color: rgba(40, 125, 57, 0.06);
}
.filter-group select option { background: #1a2333; color: var(--text-200); }

.timetable-wrap {
    overflow-x: auto;
    border-radius: var(--radius);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glow-card);
}
.timetable-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 700px;
    background: rgba(13, 21, 38, 0.6);
    backdrop-filter: blur(12px);
}
.timetable-table th {
    background: rgba(40, 125, 57, 0.12);
    color: var(--green-200);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 1.1rem 1rem;
    text-align: center;
    border-bottom: 1px solid var(--glass-border);
    white-space: nowrap;
}
.timetable-table td {
    padding: 0.75rem;
    border-bottom: 1px solid rgba(255,255,255,0.035);
    vertical-align: top;
    min-width: 130px;
}
.timetable-table tr:last-child td { border-bottom: none; }

.timetable-entry {
    background: rgba(40, 125, 57, 0.08);
    border: 1px solid rgba(40, 125, 57, 0.2);
    border-left: 3px solid var(--primary);
    border-radius: var(--radius-sm);
    padding: 0.6rem 0.8rem;
    margin-bottom: 0.4rem;
    transition: var(--t-fast);
    cursor: default;
}
.timetable-entry:hover {
    background: rgba(40, 125, 57, 0.15);
    transform: translateX(3px);
    box-shadow: 0 4px 16px rgba(40, 125, 57, 0.15);
}
.timetable-entry strong {
    display: block;
    font-size: 0.82rem;
    color: #fff;
    font-weight: 600;
    margin-bottom: 2px;
}
.timetable-entry span {
    display: block;
    font-size: 0.72rem;
    color: var(--text-400);
}
.timetable-entry em {
    display: block;
    font-size: 0.72rem;
    color: var(--green-300);
    font-style: normal;
    margin-top: 3px;
    font-weight: 500;
}
.timetable-entry.hidden { display: none; }
.no-classes-msg {
    text-align: center;
    color: var(--text-500);
    font-size: 0.75rem;
    padding: 1rem 0.5rem;
    display: none;
}

/* ===== ANNOUNCEMENTS ===== */
.announcements-grid {
    display: grid;
    gap: 1.25rem;
    grid-template-columns: 1fr;
    max-width: 880px;
    margin: 0 auto;
}
@media (min-width: 600px) {
    .announcements-grid { grid-template-columns: repeat(auto-fit, minmax(380px, 1fr)); }
}

.ann-card {
    background: var(--glass-white);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(12px);
    border-radius: var(--radius);
    padding: 1.75rem;
    border-left: 4px solid var(--accent);
    transition: var(--t);
    position: relative;
    overflow: hidden;
}
.ann-card::before {
    content: '';
    position: absolute;
    top: 0; right: 0;
    width: 120px; height: 120px;
    background: radial-gradient(circle, rgba(247,161,0,0.08) 0%, transparent 70%);
    pointer-events: none;
}
.ann-card:hover {
    transform: translateY(-4px);
    border-left-color: var(--amber-400);
    box-shadow: 0 12px 40px rgba(0,0,0,0.25), var(--glow-amber);
    border-color: rgba(247, 161, 0, 0.3);
}
.ann-card-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.875rem;
}
.ann-card-date {
    font-size: 0.72rem;
    color: var(--accent);
    font-weight: 600;
    letter-spacing: 0.04em;
}
.ann-card h3 {
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.625rem;
    line-height: 1.4;
    letter-spacing: -0.01em;
}
.ann-card p {
    font-size: 0.875rem;
    color: var(--text-300);
    line-height: 1.65;
}

/* ===== FOOTER ===== */
.footer {
    background: var(--bg-950);
    border-top: 1px solid var(--glass-border);
    padding: 3.5rem 0 2.5rem;
    text-align: center;
}
.footer-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}
.footer-brand img {
    height: 38px;
    border-radius: 9px;
    filter: brightness(0.9);
}
.footer-brand strong {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.01em;
}
.footer-divider {
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 2px;
    margin: 1.25rem auto;
}
.footer-copy {
    font-size: 0.825rem;
    color: var(--text-500);
    margin-bottom: 0.375rem;
}
.footer-credit {
    font-size: 0.775rem;
    color: var(--text-500);
}
.footer-credit strong {
    color: var(--accent);
    font-weight: 700;
}

/* ===== AUTH PAGES (login/register) ===== */
body.auth-page {
    background: var(--bg-950);
    min-height: 100vh;
    display: flex;
    align-items: stretch;
}

.auth-layout {
    display: flex;
    width: 100%;
    min-height: 100vh;
}

/* Left panel — branding */
.auth-panel-left {
    display: none;
    flex-direction: column;
    justify-content: center;
    padding: 3rem 3.5rem;
    background: linear-gradient(145deg, var(--bg-800) 0%, var(--bg-900) 100%);
    border-right: 1px solid var(--glass-border);
    position: relative;
    overflow: hidden;
    flex: 1;
}
@media (min-width: 900px) { .auth-panel-left { display: flex; } }

.auth-panel-left::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 30% 20%, rgba(40,125,57,0.22) 0%, transparent 60%),
        radial-gradient(ellipse 60% 50% at 80% 80%, rgba(247,161,0,0.10) 0%, transparent 60%);
    pointer-events: none;
}

.auth-brand { position: relative; z-index: 1; }
.auth-brand-logo {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    margin-bottom: 3rem;
}
.auth-brand-logo img { height: 52px; border-radius: 12px; filter: drop-shadow(0 0 16px rgba(40,125,57,0.4)); }
.auth-brand-logo-text strong {
    display: block;
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.02em;
}
.auth-brand-logo-text span {
    display: block;
    font-size: 0.7rem;
    color: var(--accent);
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.auth-brand h2 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 3.5vw, 2.8rem);
    font-weight: 800;
    color: #fff;
    line-height: 1.15;
    letter-spacing: -0.03em;
    margin-bottom: 1rem;
}
.auth-brand h2 span {
    background: linear-gradient(135deg, var(--green-300), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.auth-brand p {
    color: var(--text-300);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 2.5rem;
    max-width: 400px;
}

.auth-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
}
.auth-features li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9rem;
    color: var(--text-300);
    font-weight: 500;
}
.auth-features li svg {
    width: 18px; height: 18px;
    color: var(--green-300);
    flex-shrink: 0;
    background: rgba(40,125,57,0.15);
    border-radius: 50%;
    padding: 3px;
}

/* Right panel — form */
.auth-panel-right {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem 1.5rem;
    background: var(--bg-950);
    width: 100%;
    min-height: 100vh;
}
@media (min-width: 900px) {
    .auth-panel-right {
        width: 480px;
        min-width: 460px;
        flex-shrink: 0;
        padding: 2.5rem;
        min-height: auto;
        overflow-y: auto;
    }
}
@media (min-width: 1100px) {
    .auth-panel-right { width: 520px; min-width: 520px; }
}

.auth-form-wrap {
    width: 100%;
    max-width: 420px;
}

.auth-logo-mobile {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 2rem;
}
.auth-logo-mobile img { height: 44px; border-radius: 10px; }
.auth-logo-mobile strong {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 800;
    color: #fff;
}
@media (min-width: 900px) { .auth-logo-mobile { display: none; } }

.auth-title {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.03em;
    margin-bottom: 0.4rem;
}
.auth-subtitle {
    font-size: 0.9rem;
    color: var(--text-400);
    margin-bottom: 2rem;
}
.auth-subtitle a { color: var(--green-300); text-decoration: none; font-weight: 600; }
.auth-subtitle a:hover { text-decoration: underline; }

/* Auth form inputs */
.form-group {
    margin-bottom: 1.1rem;
    position: relative;
}
.form-group label {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-300);
    margin-bottom: 0.4rem;
    letter-spacing: 0.02em;
}
.form-group label span { color: var(--accent); }

.input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}
.input-icon {
    position: absolute;
    left: 0.875rem;
    color: var(--text-500);
    display: flex;
    align-items: center;
    pointer-events: none;
    z-index: 1;
    transition: var(--t-fast);
}
.input-icon svg { width: 16px; height: 16px; }

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    background: rgba(255,255,255,0.04);
    border: 1.5px solid var(--glass-border);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-family: inherit;
    color: var(--text-100);
    transition: var(--t-fast);
}
.form-group input.has-icon,
.form-group select.has-icon { padding-left: 2.75rem; }

.form-group input::placeholder { color: var(--text-500); }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(40, 125, 57, 0.06);
    box-shadow: 0 0 0 3px rgba(40, 125, 57, 0.14);
    color: #fff;
}
.form-group input:focus + .input-icon,
.input-wrap:focus-within .input-icon { color: var(--green-300); }

.form-group select option { background: #111d30; color: var(--text-200); }
.form-group textarea { resize: vertical; min-height: 100px; padding-left: 1rem !important; }

.password-toggle {
    position: absolute;
    right: 0.875rem;
    cursor: pointer;
    color: var(--text-500);
    display: flex;
    align-items: center;
    z-index: 1;
    transition: var(--t-fast);
}
.password-toggle:hover { color: var(--text-200); }
.password-toggle svg { width: 17px; height: 17px; }

.form-row {
    display: grid;
    gap: 0.875rem;
    grid-template-columns: 1fr;
}
@media (min-width: 480px) { .form-row { grid-template-columns: 1fr 1fr; } }

/* Password strength bar */
.strength-bar-wrap {
    height: 3px;
    background: var(--glass-border);
    border-radius: 2px;
    margin-top: 0.4rem;
    overflow: hidden;
}
.strength-bar {
    height: 100%;
    width: 0;
    border-radius: 2px;
    transition: width 0.3s var(--ease), background-color 0.3s;
}

/* Form checklist */
.checklist {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin-top: 0.25rem;
}
.checklist li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: var(--text-400);
    transition: var(--t-fast);
}
.checklist li::before {
    content: '';
    width: 16px; height: 16px;
    border: 1.5px solid var(--glass-border);
    border-radius: 50%;
    flex-shrink: 0;
    transition: var(--t-fast);
}
.checklist li.valid { color: var(--green-300); }
.checklist li.valid::before {
    background: var(--primary);
    border-color: var(--primary);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 10px;
}

/* Tab switcher */
.tab-switcher {
    display: flex;
    gap: 0;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    padding: 3px;
    margin-bottom: 1.75rem;
}
.tab-btn {
    flex: 1;
    padding: 0.6rem 1rem;
    border: none;
    border-radius: var(--radius-xs);
    font-family: inherit;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-400);
    background: transparent;
    cursor: pointer;
    transition: var(--t-fast);
}
.tab-btn.active {
    background: linear-gradient(135deg, var(--primary) 0%, var(--green-700) 100%);
    color: #fff;
    box-shadow: 0 2px 10px rgba(40, 125, 57, 0.35);
}

/* Auth submit button */
.btn-auth {
    width: 100%;
    padding: 0.9rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--green-700) 100%);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 0.975rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--t);
    box-shadow: 0 4px 20px rgba(40, 125, 57, 0.4), inset 0 1px 0 rgba(255,255,255,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
    letter-spacing: 0.01em;
}
.btn-auth:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 28px rgba(40, 125, 57, 0.55);
    background: linear-gradient(135deg, var(--green-400) 0%, var(--primary) 100%);
}
.btn-auth:active { transform: translateY(0); }
.btn-auth svg { width: 17px; height: 17px; }

/* Links below form */
.auth-links {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.85rem;
    color: var(--text-400);
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    flex-wrap: wrap;
}
.auth-links a {
    color: var(--green-300);
    text-decoration: none;
    font-weight: 600;
}
.auth-links a:hover { text-decoration: underline; }
.auth-links-sep { opacity: 0.4; }

/* Form messages */
.form-message {
    padding: 0.875rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 1.25rem;
    line-height: 1.5;
}
.form-message svg { width: 18px; height: 18px; flex-shrink: 0; }
.form-message.error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.25);
    color: #fca5a5;
}
.form-message.success {
    background: rgba(40, 125, 57, 0.1);
    border: 1px solid rgba(40, 125, 57, 0.25);
    color: var(--green-200);
}
.form-message.warning {
    background: rgba(247, 161, 0, 0.08);
    border: 1px solid rgba(247, 161, 0, 0.2);
    color: var(--amber-200);
}

/* Section subtitle in register form */
.form-section-title {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent);
    margin: 1.5rem 0 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.form-section-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--glass-border);
}

/* ===== RESPONSIVE UTILITIES ===== */
@media (max-width: 600px) {
    .stats-bar .container { gap: 2rem; }
    .stat-item::after { display: none; }
    .accordion-wrap { max-width: 100%; }
}
