@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;0,800;1,400;1,600;1,700;1,800&family=Inter:wght@300;400;500;600;700&display=swap');

/* ═══════════════════════════════════════════════
   DESIGN SYSTEM — Wooden Chess Theme
   ═══════════════════════════════════════════════ */

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

:root {
    /* Core Wooden Palette */
    --wood-darkest: #0d0805;
    --wood-darker: #1a0e08;
    --wood-dark: #2a1a10;
    --wood-base: #3d2b1f;
    --wood-medium: #5c3d2e;
    --wood-light: #7a4f33;
    --wood-lighter: #9b6b4a;

    /* Gold/Amber Tones */
    --gold-dark: #8b6914;
    --gold-base: #c9a96e;
    --gold-light: #d4b896;
    --gold-lighter: #e8d5b5;
    --gold-lightest: #f5e6c8;

    /* Cream/Text Tones */
    --cream: #f5e6c8;
    --cream-muted: #bfa87a;
    --cream-dark: #9b8b6e;

    /* Background gradients */
    --bg-primary: linear-gradient(180deg, #1a0e08 0%, #2a1a10 50%, #1a0e08 100%);
    --bg-card: rgba(42, 26, 16, 0.7);
    --bg-card-hover: rgba(61, 43, 31, 0.85);
    --border-subtle: rgba(201, 169, 110, 0.15);
    --border-accent: rgba(201, 169, 110, 0.3);

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
    --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.6);
    --shadow-glow: 0 0 20px rgba(201, 169, 110, 0.15);

    /* Transitions */
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: 200ms var(--ease-out);
    --transition-base: 350ms var(--ease-out);
    --transition-slow: 500ms var(--ease-out);

    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    --space-4xl: 6rem;

    /* Border Radius */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-full: 9999px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: var(--cream);
    background: var(--wood-darkest);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Wood texture overlay on body */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(61, 43, 31, 0.4) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 30%, rgba(92, 61, 46, 0.3) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 80%, rgba(26, 14, 8, 0.6) 0%, transparent 60%),
        linear-gradient(180deg, #1a0e08 0%, #2a1a10 30%, #3d2b1f 50%, #2a1a10 70%, #1a0e08 100%);
    pointer-events: none;
    z-index: -1;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 700;
    line-height: 1.2;
    color: var(--cream);
}

a {
    text-decoration: none;
    color: var(--gold-base);
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--gold-lighter);
}

/* ═══════════════════════════════════════════════
   ANIMATIONS
   ═══════════════════════════════════════════════ */

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

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-12px); }
}

@keyframes glowPulse {
    0%, 100% { box-shadow: 0 0 20px rgba(201, 169, 110, 0.1); }
    50% { box-shadow: 0 0 30px rgba(201, 169, 110, 0.25); }
}

@keyframes shimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

@keyframes fmReveal {
    0% {
        transform: translateY(110%);
        opacity: 0;
    }
    1% {
        opacity: 1;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

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

@keyframes timelineLineGrow {
    from { transform: scaleY(0); }
    to   { transform: scaleY(1); }
}

@keyframes timelineDotPop {
    0%   { transform: translate(-50%, -50%) scale(0); opacity: 0; }
    70%  { transform: translate(-50%, -50%) scale(1.3); opacity: 1; }
    100% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
}

/* ═══════════════════════════════════════════════
   NAVIGATION
   ═══════════════════════════════════════════════ */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(13, 8, 5, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-subtle);
    transition: all var(--transition-base);
}

.navbar.scrolled {
    background: rgba(13, 8, 5, 0.95);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.nav-container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 var(--space-xl);
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 72px;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    cursor: pointer;
    transition: transform var(--transition-fast);
    position: relative;
    z-index: 1001;
}

.logo:hover {
    transform: scale(1.03);
}

.logo-icon-img {
    height: 40px;
    width: auto;
    object-fit: contain;
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.logo-top {
    font-family: 'Playfair Display', serif;
    font-weight: 800;
    font-size: 1rem;
    color: var(--cream);
    letter-spacing: 3px;
}

.logo-bottom {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    font-size: 0.65rem;
    color: var(--gold-base);
    letter-spacing: 5px;
}

/* Nav Menu */
.nav-menu {
    display: flex;
    list-style: none;
    gap: var(--space-xl);
    align-items: center;
}

.nav-menu a {
    text-decoration: none;
    color: var(--cream-muted);
    font-weight: 500;
    font-size: 0.85rem;
    letter-spacing: 1.5px;
    position: relative;
    padding: 0.5rem 0;
    transition: color var(--transition-fast);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gold-base);
    transition: width var(--transition-base);
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--cream);
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

/* Nav Actions */
.nav-actions {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.nav-bell {
    background: none;
    border: none;
    color: var(--cream-muted);
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-bell:hover {
    color: var(--cream);
    background: rgba(201, 169, 110, 0.1);
}

.btn-login {
    color: var(--cream);
    font-weight: 600;
    font-size: 0.8rem;
    letter-spacing: 1.5px;
    padding: 8px 20px;
    border: 1.5px solid var(--gold-base);
    border-radius: var(--radius-full);
    transition: all var(--transition-fast);
}

.btn-login:hover {
    background: rgba(201, 169, 110, 0.1);
    color: var(--gold-lighter);
}

.btn-signup {
    background: var(--gold-base);
    color: var(--wood-darkest);
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 1.5px;
    padding: 8px 20px;
    border-radius: var(--radius-full);
    transition: all var(--transition-fast);
}

.btn-signup:hover {
    background: var(--gold-lighter);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(201, 169, 110, 0.3);
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.hamburger span {
    width: 25px;
    height: 2px;
    background: var(--gold-base);
    border-radius: 2px;
    transition: all var(--transition-base);
}

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

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

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

/* ═══════════════════════════════════════════════
   HERO SECTION
   ═══════════════════════════════════════════════ */

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 120px var(--space-xl) var(--space-3xl);
    background:
        linear-gradient(to right, rgba(13, 8, 5, 0.95) 0%, rgba(13, 8, 5, 0.7) 45%, rgba(13, 8, 5, 0.1) 100%),
        url('images/hero_chess_board.png') no-repeat center right;
    background-size: cover;
}

/* Subtle wooden grain lines */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 60px,
            rgba(201, 169, 110, 0.02) 60px,
            rgba(201, 169, 110, 0.02) 61px
        ),
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 120px,
            rgba(201, 169, 110, 0.015) 120px,
            rgba(201, 169, 110, 0.015) 121px
        );
    pointer-events: none;
}

.hero-content {
    max-width: 650px;
    margin: 0;
    margin-top: -8vh;
    margin-left: 5vw;
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
    position: relative;
    z-index: 1;
    width: 100%;
}

.hero-text {
    /* base wrapper — no animation needed, children animate */
}

/* ── Hero headline word-by-word animation ── */
.hero-headline {
    font-family: 'Playfair Display', serif;
    font-size: 4.5rem;
    font-weight: 800;
    color: var(--cream);
    line-height: 1.1;
    margin-bottom: var(--space-md);
    display: block;
}

.fm-word-wrapper {
    display: inline-block;
    overflow: hidden;
    vertical-align: bottom;
    padding-bottom: 0.1em;
    margin-bottom: -0.1em;
}

.fm-word {
    display: inline-block;
    margin-right: 0.1em;
    transform: translateY(110%);
    opacity: 0;
    /* Simulating Framer Motion spring easing */
    animation: fmReveal 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: calc(var(--i) * 0.12s + 0.2s);
}

.fm-word em {
    font-style: italic;
    display: inline;
    color: var(--gold-lighter);
}

.hero-chess-icon {
    font-size: 2rem;
    color: var(--gold-base);
    margin-bottom: var(--space-lg);
    opacity: 0;
    animation: heroFadeUp 0.6s var(--ease-out) 0.95s forwards;
}

.hero-icon-animated {
    animation: heroFadeUp 0.6s var(--ease-out) 0.95s forwards;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--cream-muted);
    margin-bottom: var(--space-2xl);
    line-height: 1.8;
    opacity: 0;
    animation: heroFadeUp 0.6s var(--ease-out) 1.1s forwards;
}

.hero-buttons {
    display: flex;
    gap: var(--space-md);
    align-items: center;
}

.hero-buttons-animated {
    opacity: 0;
    animation: heroFadeUp 0.6s var(--ease-out) 1.3s forwards;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    background: var(--gold-base);
    color: var(--wood-darkest);
    padding: 14px 32px;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 1.5px;
    transition: all var(--transition-fast);
    box-shadow: 0 4px 20px rgba(201, 169, 110, 0.3);
}

.btn-primary:hover {
    background: var(--gold-lighter);
    color: var(--wood-darkest);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(201, 169, 110, 0.4);
}

.btn-icon {
    font-size: 1rem;
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    color: var(--cream);
    padding: 14px 32px;
    border: 1.5px solid rgba(201, 169, 110, 0.4);
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 1.5px;
    transition: all var(--transition-fast);
}

.btn-outline:hover {
    border-color: var(--gold-base);
    background: rgba(201, 169, 110, 0.08);
    color: var(--gold-lighter);
}

/* ═══════════════════════════════════════════════
   MARQUEE BANNER
   ═══════════════════════════════════════════════ */

.marquee-container {
    width: 100%;
    background: #0d0805;
    border-top: 1px solid rgba(201, 169, 110, 0.15);
    border-bottom: 1px solid rgba(201, 169, 110, 0.15);
    padding: 14px 0;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    z-index: 10;
}

.marquee-content {
    display: inline-block;
    animation: marquee-scroll 35s linear infinite;
}

/* Pause on hover */
.marquee-container:hover .marquee-content {
    animation-play-state: paused;
}

@keyframes marquee-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.marquee-item {
    display: inline-flex;
    align-items: center;
    color: var(--cream-muted);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    margin-right: 3rem;
    text-transform: uppercase;
}

.marquee-dot {
    width: 6px;
    height: 6px;
    background: var(--gold-base);
    border-radius: 50%;
    margin-right: 0.75rem;
}

/* ═══════════════════════════════════════════════
   Removed Old Features CSS
   ═══════════════════════════════════════════════ */

/* ═══════════════════════════════════════════════
   STUDENTS SECTION
   ═══════════════════════════════════════════════ */

.students-section {
    padding: var(--space-3xl) var(--space-xl);
    max-width: 1320px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-2xl);
}

.section-header h2 {
    font-size: 2.2rem;
    margin-bottom: var(--space-sm);
    color: var(--cream);
    font-family: 'Playfair Display', serif;
}

.section-header p {
    color: var(--cream-dark);
    font-size: 1rem;
}

.students-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-lg);
}

.student-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    text-align: center;
    transition: all var(--transition-base);
}

.student-card:hover {
    border-color: var(--border-accent);
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
    background: var(--bg-card-hover);
}

.student-emoji {
    font-size: 3rem;
    margin-bottom: var(--space-md);
    color: var(--gold-base);
}

.student-avatar-img-wrap {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto var(--space-md);
    border-radius: 50%;
}

.student-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid var(--gold-base);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5), 0 0 16px rgba(201, 169, 110, 0.3);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease;
    display: block;
}

.student-card:hover .student-photo {
    transform: scale(1.06);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.6), 0 0 24px rgba(201, 169, 110, 0.5);
}

.student-piece-badge {
    position: absolute;
    bottom: -2px;
    right: 2px;
    width: 36px;
    height: 36px;
    background: var(--bg-card);
    border: 2px solid var(--gold-base);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    color: var(--gold-lighter);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.6);
}

.fallback-emoji {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(201, 169, 110, 0.1);
    border: 2px dashed var(--gold-base);
}

.student-name {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: var(--cream);
    margin-bottom: var(--space-xs);
    font-weight: 700;
}

.student-rating {
    font-size: 1.1rem;
    color: var(--gold-lighter);
    font-weight: 700;
    margin-bottom: var(--space-sm);
}

.student-title {
    display: inline-block;
    background: rgba(201, 169, 110, 0.15);
    color: var(--gold-base);
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 1px;
}

.student-fide-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: var(--space-md);
    padding: 7px 16px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--cream);
    background: rgba(201, 169, 110, 0.12);
    border: 1px solid rgba(201, 169, 110, 0.3);
    border-radius: var(--radius-full);
    text-decoration: none;
    transition: all 0.25s ease;
}

.student-fide-btn:hover {
    background: var(--gold-base);
    color: #120e09;
    border-color: var(--gold-base);
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(201, 169, 110, 0.35);
}

.student-loading {
    text-align: center;
    color: var(--cream-dark);
    font-size: 1rem;
    grid-column: 1 / -1;
    padding: var(--space-2xl) 0;
}

/* ═══════════════════════════════════════════════
   TIMELINE SECTION — Chess Builds Champions
   ═══════════════════════════════════════════════ */

.timeline-section {
    padding: var(--space-4xl) var(--space-xl);
    position: relative;
}

.timeline-header {
    text-align: center;
    margin-bottom: var(--space-4xl);
}

.timeline-eyebrow {
    font-family: 'Inter', sans-serif;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 3px;
    color: var(--gold-base);
    margin-bottom: var(--space-md);
    text-transform: uppercase;
}

.timeline-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--cream);
    margin-bottom: var(--space-md);
}

.timeline-subtitle {
    font-size: 1rem;
    color: var(--cream-dark);
    max-width: 640px;
    margin: 0 auto;
    line-height: 1.8;
}

/* Container holds the vertical line + all items */
.timeline-container {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding-bottom: var(--space-2xl);
}

/* Vertical glowing line */
.timeline-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    transform: translateX(-50%);
    background: rgba(201, 169, 110, 0.12);
    overflow: hidden;
}

.timeline-line-fill {
    width: 100%;
    height: 100%;
    background: linear-gradient(
        180deg,
        var(--gold-base) 0%,
        #ffffff 50%,
        var(--gold-base) 100%
    );
    transform-origin: top center;
    transform: scaleY(0);
    /* Make transition quick so it follows scroll smoothly */
    transition: transform 0.1s ease-out;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.4);
}

/* Each timeline item row */
.timeline-item {
    position: relative;
    display: flex;
    width: 100%;
    margin-bottom: 3.5rem;
    align-items: flex-start;
}

/* Dot on the centre line */
.timeline-dot {
    position: absolute;
    left: 50%;
    top: 1.4rem;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #333;
    border: 2px solid #222;
    transform: translate(-50%, -50%);
    transition: all 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 2;
}

.timeline-dot.active {
    width: 18px;
    height: 18px;
    background: #fff;
    border: 3px solid var(--wood-darkest);
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.2), 0 0 20px rgba(255, 255, 255, 0.6);
}

.timeline-dot.done {
    width: 12px;
    height: 12px;
    background: #fff;
    border: 2px solid #fff;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.4);
}

/* Content card */
.timeline-content {
    width: 44%;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: var(--space-xl) var(--space-lg);
    transition: border-color var(--transition-base), box-shadow var(--transition-base);
    position: relative;
}

.timeline-content:hover {
    border-color: var(--border-accent);
    box-shadow: var(--shadow-md), 0 0 24px rgba(201, 169, 110, 0.08);
}

.timeline-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold-base), transparent);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    opacity: 0;
    transition: opacity var(--transition-base);
}

.timeline-content:hover::before {
    opacity: 1;
}

.timeline-content h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--cream);
    margin-bottom: var(--space-sm);
}

.timeline-content p {
    font-size: 0.88rem;
    color: var(--cream-dark);
    line-height: 1.75;
    margin-bottom: var(--space-md);
}

.timeline-tag {
    display: inline-block;
    font-family: 'Inter', sans-serif;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 2.5px;
    color: var(--gold-base);
    border: 1px solid rgba(201, 169, 110, 0.35);
    border-radius: var(--radius-full);
    padding: 3px 10px;
    text-transform: uppercase;
}

/* RIGHT item: content on the right half */
.timeline-item--right {
    justify-content: flex-end;
}

.timeline-item--right .timeline-content {
    margin-left: auto;
    opacity: 0.3;
    transform: translateX(30px);
    transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}

.timeline-item--right .timeline-content.active {
    opacity: 1;
    transform: translateX(0);
    box-shadow: var(--shadow-md), 0 0 24px rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
}

.timeline-item--right .timeline-content.done {
    opacity: 0.6;
    transform: translateX(0);
}

/* LEFT item: content on the left half */
.timeline-item--left {
    justify-content: flex-start;
}

.timeline-item--left .timeline-content {
    margin-right: auto;
    opacity: 0.3;
    transform: translateX(-30px);
    transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}

.timeline-item--left .timeline-content.active {
    opacity: 1;
    transform: translateX(0);
    box-shadow: var(--shadow-md), 0 0 24px rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
}

.timeline-item--left .timeline-content.done {
    opacity: 0.6;
    transform: translateX(0);
}

/* Spacer for puzzle/news styles — kept empty so nothing breaks */
.puzzle-news-section { display: none; }

.puzzle-news-grid {
    max-width: 1320px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: var(--space-lg);
}

/* Card Header Shared */
.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-lg);
}

.card-header h3 {
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 2.5px;
    color: var(--cream);
}

.card-badge {
    font-size: 1rem;
    color: var(--gold-base);
    margin-right: var(--space-sm);
}

.view-all-link {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--gold-base);
    letter-spacing: 0.5px;
}

/* Daily Puzzle Card */
.daily-puzzle-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    transition: all var(--transition-base);
}

.daily-puzzle-card:hover {
    border-color: var(--border-accent);
    box-shadow: var(--shadow-md);
}

.puzzle-content {
    display: flex;
    gap: var(--space-xl);
    align-items: center;
}

.puzzle-board {
    flex-shrink: 0;
    width: 180px;
    height: 180px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 2px solid var(--border-accent);
}

.mini-board {
    width: 100%;
    height: 100%;
}

.puzzle-info {
    flex: 1;
}

.puzzle-prompt {
    font-size: 1rem;
    color: var(--cream);
    margin-bottom: var(--space-xs);
}

.puzzle-desc {
    font-size: 0.85rem;
    color: var(--cream-dark);
    margin-bottom: var(--space-lg);
}

.btn-solve {
    background: var(--gold-base);
    color: var(--wood-darkest);
    border: none;
    padding: 10px 28px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 1.5px;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.btn-solve:hover {
    background: var(--gold-lighter);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(201, 169, 110, 0.3);
}

/* Latest News Card */
.latest-news-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    transition: all var(--transition-base);
}

.latest-news-card:hover {
    border-color: var(--border-accent);
    box-shadow: var(--shadow-md);
}

.news-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.news-item {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md) 0;
    border-bottom: 1px solid var(--border-subtle);
    transition: all var(--transition-fast);
}

.news-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.news-item:hover {
    padding-left: var(--space-sm);
}

.news-thumb {
    flex-shrink: 0;
    width: 60px;
    height: 40px;
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.news-thumb-svg {
    width: 100%;
    height: 100%;
}

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

.news-content h4 {
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--cream);
    margin-bottom: 2px;
}

.news-content p {
    font-size: 0.75rem;
    color: var(--cream-dark);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.news-date {
    font-size: 0.7rem;
    color: var(--cream-dark);
    white-space: nowrap;
    flex-shrink: 0;
}

/* ═══════════════════════════════════════════════
   PROGRAMS / GROUP BATCHES SECTION
   ═══════════════════════════════════════════════ */
.programs-section {
    padding: var(--space-3xl) var(--space-xl);
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}



.programs-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-lg);
}

.program-card {
    background: rgba(30, 30, 30, 0.4);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    position: relative;
    display: flex;
    flex-direction: column;
    transition: transform var(--transition-base);
}

.program-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.15);
}

.program-header h3 {
    font-size: 1.5rem;
    margin-bottom: 5px;
    font-family: 'Playfair Display', serif;
}

.program-header p {
    font-size: 0.9rem;
    color: var(--cream-dark);
    margin-bottom: var(--space-lg);
}

.program-pricing {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
    padding: var(--space-md);
    margin-bottom: var(--space-lg);
}

.price-row {
    text-align: center;
    margin-bottom: 10px;
}

.price-row span {
    font-size: 0.95rem;
    color: var(--cream);
    font-weight: 500;
}

.price-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 15px 0;
}

.price-footer {
    font-size: 0.7rem;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.4);
    text-align: center;
    letter-spacing: 1px;
}

.program-features p {
    font-size: 0.85rem;
    color: var(--cream-dark);
    text-align: center;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.program-features p:last-child {
    border-bottom: none;
}

.card-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 1px;
    white-space: nowrap;
}

.popular-badge {
    background: var(--cream);
    color: var(--wood-darkest);
}

.elite-badge {
    background: var(--wood-darkest);
    color: var(--cream);
    border: 1px solid var(--cream);
}

@media (max-width: 1024px) {
    .programs-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

/* ═══════════════════════════════════════════════
   WHATSAPP FLOATING BUTTON
   ═══════════════════════════════════════════════ */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 100;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.whatsapp-float:hover {
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        left: 20px;
    }
    
    .whatsapp-float svg {
        width: 25px;
        height: 25px;
    }
}

/* ═══════════════════════════════════════════════
   CTA BANNER
   ═══════════════════════════════════════════════ */

.cta-banner {
    padding: var(--space-xl) var(--space-xl);
}

.cta-banner-content {
    max-width: 1320px;
    margin: 0 auto;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: var(--space-2xl) var(--space-3xl);
    display: flex;
    align-items: center;
    gap: var(--space-xl);
    position: relative;
    overflow: hidden;
}

.cta-banner-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse at 10% 50%, rgba(201, 169, 110, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 90% 50%, rgba(201, 169, 110, 0.05) 0%, transparent 40%);
    pointer-events: none;
}

.cta-banner-icon {
    font-size: 2.5rem;
    color: var(--gold-base);
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.cta-banner-text {
    flex: 1;
    position: relative;
    z-index: 1;
}

.cta-banner-text h2 {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--cream);
    margin-bottom: var(--space-xs);
}

.cta-banner-text p {
    font-size: 0.9rem;
    color: var(--cream-dark);
}

.btn-signup-large {
    display: inline-flex;
    align-items: center;
    background: var(--gold-base);
    color: var(--wood-darkest);
    padding: 14px 36px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 1.5px;
    transition: all var(--transition-fast);
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.btn-signup-large:hover {
    background: var(--gold-lighter);
    color: var(--wood-darkest);
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(201, 169, 110, 0.35);
}

/* ═══════════════════════════════════════════════
   CONTACT SECTION
   ═══════════════════════════════════════════════ */

.contact-section {
    padding: var(--space-4xl) var(--space-xl);
}

.contact-container {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.contact-container h2 {
    font-size: 2.5rem;
    margin-bottom: var(--space-sm);
    position: relative;
    display: inline-block;
}

.contact-container h2::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--gold-base);
    border-radius: var(--radius-full);
}

.contact-subtitle {
    font-size: 1rem;
    color: var(--cream-dark);
    margin-bottom: var(--space-2xl);
    margin-top: var(--space-lg);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
}

.contact-form input,
.contact-form textarea {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    padding: 14px 18px;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    color: var(--cream);
    transition: all var(--transition-fast);
    outline: none;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: var(--cream-dark);
    opacity: 0.6;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--gold-base);
    box-shadow: 0 0 0 3px rgba(201, 169, 110, 0.1);
}

.contact-form textarea {
    resize: vertical;
    min-height: 120px;
}

.submit-btn {
    background: var(--gold-base);
    color: var(--wood-darkest);
    border: none;
    padding: 14px 36px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all var(--transition-fast);
    align-self: center;
}

.submit-btn:hover {
    background: var(--gold-lighter);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(201, 169, 110, 0.3);
}

.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* ═══════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════ */

.footer {
    background: rgba(13, 8, 5, 0.6);
    border-top: 1px solid var(--border-subtle);
    padding: var(--space-3xl) var(--space-xl) 0;
}

.footer-content {
    max-width: 1320px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 3fr;
    gap: var(--space-3xl);
    padding-bottom: var(--space-2xl);
}

.footer-brand {
    display: flex;
    flex-direction: column;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.footer-links-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-xl);
}

.footer-section h4 {
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--cream-muted);
    margin-bottom: var(--space-lg);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: var(--space-sm);
}

.footer-section ul a {
    font-size: 0.85rem;
    color: var(--cream-dark);
    transition: all var(--transition-fast);
}

.footer-section ul a:hover {
    color: var(--cream);
    padding-left: 4px;
}

/* Social Icons */
.social-icons {
    display: flex;
    gap: var(--space-md);
}

.social-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(201, 169, 110, 0.1);
    border: 1px solid var(--border-subtle);
    color: var(--gold-base);
    transition: all var(--transition-fast);
}

.social-icon:hover {
    background: var(--gold-base);
    color: var(--wood-darkest);
    border-color: var(--gold-base);
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(201, 169, 110, 0.3);
}

.footer-bottom {
    border-top: 1px solid var(--border-subtle);
    padding: var(--space-lg) 0;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.8rem;
    color: var(--cream-dark);
    opacity: 0.6;
}

/* ═══════════════════════════════════════════════
   RESPONSIVE DESIGN
   ═══════════════════════════════════════════════ */

@media (max-width: 1024px) {
    .hero-text h1 {
        font-size: 3.5rem;
    }

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

    .timeline-container {
        max-width: 100%;
    }

    .timeline-title {
        font-size: 2.2rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(13, 8, 5, 0.98);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: var(--space-2xl);
        z-index: 999;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-menu a {
        font-size: 1.2rem;
        letter-spacing: 3px;
    }

    .nav-actions {
        position: relative;
        z-index: 1001;
    }



    .hamburger {
        display: flex;
    }

    .hero {
        padding: 100px var(--space-md) var(--space-2xl);
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
        text-align: center;
        margin-left: 0;
    }

    .hero-headline {
        font-size: 2.8rem;
    }

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

    /* Timeline: stack to single column on mobile */
    .timeline-line {
        left: 20px;
        transform: none;
    }

    .timeline-item {
        flex-direction: column;
        padding-left: 48px;
        justify-content: flex-start !important;
    }

    .timeline-dot {
        left: 20px;
    }

    .timeline-item--right .timeline-content,
    .timeline-item--left .timeline-content {
        width: 100%;
        margin: 0;
        transform: translateX(0) translateY(20px);
        opacity: 0;
        transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
    }

    .timeline-item--right .timeline-content.active,
    .timeline-item--left .timeline-content.active {
        opacity: 1;
        transform: translateX(0) translateY(0);
    }

    .timeline-title {
        font-size: 1.9rem;
    }

    .hero-text p {
        font-size: 1rem;
    }

    .hero-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }

    .feature-cards-grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-md);
    }

    .feature-card {
        padding: var(--space-lg) var(--space-md);
    }

    .puzzle-content {
        flex-direction: column;
        align-items: flex-start;
    }

    .puzzle-board {
        width: 100%;
        height: auto;
        aspect-ratio: 1;
        max-width: 250px;
    }

    .cta-banner-content {
        flex-direction: column;
        text-align: center;
        padding: var(--space-2xl);
    }

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

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

@media (max-width: 480px) {
    .hero-text h1 {
        font-size: 2.2rem;
    }

    .feature-cards-grid {
        grid-template-columns: 1fr;
    }

    .footer-links-grid {
        grid-template-columns: 1fr;
    }

    .cta-banner-text h2 {
        font-size: 1.3rem;
    }
}

/* ═══════════════════════════════════════════════
   SCROLLBAR STYLING
   ═══════════════════════════════════════════════ */

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--wood-darkest);
}

::-webkit-scrollbar-thumb {
    background: var(--wood-medium);
    border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gold-base);
}

/* ═══════════════════════════════════════════════
   SELECTION STYLING
   ═══════════════════════════════════════════════ */

::selection {
    background: rgba(201, 169, 110, 0.3);
    color: var(--cream);
}

/* ═══════════════════════════════════════════════
   NOTIFICATION STYLES (injected via JS)
   ═══════════════════════════════════════════════ */

.notification {
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    border-left: 3px solid var(--gold-base);
}
