:root {
    --primary-color: #ffffff;
    --secondary-color: #e2e8f0;
    --accent-gold: #ffffff;
    /* Reverted gold to white for this theme */

    --bg-dark: #0b1531;
    /* Deep Navy from new image */
    --bg-card: #152042;

    --cta-color: #4f46e5;
    /* Vibrant Purple/Indigo */
    --cta-hover: #4338ca;

    --text-light: #ffffff;
    --text-muted: #cbd5e1;

    --gradient-hero: none;
    /* Flat background as per image */

    --font-heading: 'Inter', system-ui, -apple-system, sans-serif;
    /* Back to clean sans-serif */
    --font-body: 'Inter', system-ui, -apple-system, sans-serif;
}

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

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

html {
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

ul {
    list-style: none;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1rem;
    letter-spacing: -0.5px;
}

h1 {
    font-size: 2.5rem;
    color: var(--text-light);
    /* Solid white or gradient white-gray */
}

h2 {
    font-size: 2rem;
    color: var(--text-light);
}

p {
    margin-bottom: 1.5rem;
    color: var(--text-muted);
}

/* Container */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Header */
header {
    background-color: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-light);
    letter-spacing: -1px;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 32px;
    height: 22px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1200;
}

.mobile-menu-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: #ffffff;
    border-radius: 3px;
    transition: all 0.3s ease;
}

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

.cta-button {
    background-color: var(--cta-color);
    color: #ffffff;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    /* Petit arrondi */
    font-weight: 700;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    display: inline-block;
    border: 1px solid var(--cta-color);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 0, 0, 0.4);
    background-color: var(--cta-hover);
}

/* Hero Section */
.hero {
    padding: 8rem 0 2rem;
    text-align: center;
    background: var(--gradient-hero);
    min-height: 80vh;
    display: flex;
    justify-content: center;
    /* Robust centering */
    align-items: center;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 50% 50%, rgba(226, 27, 44, 0.1) 0%, rgba(15, 22, 35, 0) 60%);
    pointer-events: none;
    z-index: 0;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('hero-pattern.png');
    /* Placeholder for texture */
    opacity: 0.05;
    pointer-events: none;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero p {
    font-size: 1.25rem;
    max-width: 600px;
    margin: 0 auto 2rem;
}

.stats-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    margin-top: 4rem;
}

.stat-item {
    flex: 1 1 280px;
    max-width: 350px;
    background: rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}


.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--accent-gold);
    /* Gold for stats */
    font-family: var(--font-heading);
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Features Section */
.features {
    padding: 3rem 0 6rem;
    background-color: var(--bg-dark);
}

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

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

.feature-card {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--secondary-color);
}

.feature-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

/* Authority/Content Section */
.content-section {
    padding: 6rem 0;
    background-color: #162032;
    /* Slightly lighter than bg-dark */
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.content-text ul {
    margin: 1.5rem 0;
}

.content-text li {
    margin-bottom: 0.75rem;
    padding-left: 1.5rem;
    position: relative;
}

.content-text li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--cta-color);
}

/* CTA Section */
.cta-section {
    padding: 6rem 0;
    text-align: center;
    background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-dark) 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Footer */
footer {
    background-color: #0b1120;
    padding: 4rem 0 2rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-label {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    font-family: var(--font-heading);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.5px;
    font-size: 1rem;
}

.footer-col ul li {
    margin-bottom: 0.5rem;
}

.copyright {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    h1 {
        font-size: 1.8rem;
        text-align: center;
    }

    h2 {
        font-size: 1.5rem;
        text-align: center;
    }

    .nav-links {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        right: -100%;
        width: 85%;
        height: 100vh;
        background-color: var(--bg-dark);
        padding: 5rem 2rem;
        transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        z-index: 1000;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
        list-style: none;
        /* Crucial to avoid dots */
    }

    .nav-links.active {
        transform: translateX(-100%);
        right: -100%;
        /* Keep right at -100 but translate */
    }

    /* Simpler approach for active state */
    .nav-links.active {
        right: 0;
        transform: none;
    }

    .nav-links li {
        margin: 1rem 0;
        list-style: none;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    /* Hamburger Animation */
    .mobile-menu-toggle.active span:nth-child(1) {
        transform: translateY(8.5px) rotate(45deg);
    }

    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-toggle.active span:nth-child(3) {
        transform: translateY(-8.5px) rotate(-45deg);
    }

    .overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.7);
        backdrop-filter: blur(5px);
        z-index: 999;
    }

    .overlay.active {
        display: block;
    }

    .content-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        gap: 1.5rem;
        margin-top: 3rem;
    }

    .stat-item {
        flex: 1 1 100%;
        max-width: 320px;
        padding: 1.5rem;
    }

    .stat-number {
        font-size: 2.2rem;
        display: block;
    }

    .hero {
        padding-top: 5rem;
        min-height: 60vh;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .container {
        padding: 0 1.25rem;
    }

    .section-header {
        margin-bottom: 2.5rem;
    }

    .feature-card {
        text-align: center;
    }

    .feature-icon {
        margin-bottom: 1.5rem;
    }
}

/* World Cup Page Specific */
.hero-img-container {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto 1.5rem;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.6s ease;
}

.hero-img:hover {
    transform: scale(1.03);
}

@media (max-width: 768px) {
    .hero-img-container {
        margin-bottom: 2rem;
        border-radius: 8px;
    }
}

/* Article & Content Styling */
.blog-article {
    max-width: 900px;
    margin: 0 auto;
    background: var(--bg-card);
    padding: 2.5rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.main-content {
    padding-top: 10rem;
    padding-bottom: 4rem;
}

@media (max-width: 768px) {
    .blog-article {
        padding: 1.5rem;
        border-radius: 8px;
    }

    .blog-article h1,
    .blog-article h2 {
        text-align: left;
        /* Keep logical flow for article content */
    }

    .blog-article p,
    .blog-article ul {
        font-size: 1rem;
    }

    .main-content {
        padding-top: 6rem;
        padding-bottom: 3rem;
    }
}