 :root {
            color-scheme: dark;

            --color-bg: #0d1410;
            --color-bg-alt: #141f18;
            --color-bg-card: #1a2b20;

            --color-text: #e8ede9;
            --color-text-muted: #a8b5ab;
            --color-text-light: #7d8a80;

            --color-primary: #2ecc71;
            --color-primary-dark: #27ae60;
            --color-primary-light: #58d68d;

            --color-accent: #f5c842;
            --color-accent-light: #f7dc6f;

            --color-border: #2d3e32;
            --color-border-light: #243528;

            --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
            --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
            --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.5);

            --radius-sm: 6px;
            --radius-md: 12px;
            --radius-lg: 20px;

            --font-sans: 'Segoe UI', system-ui, -apple-system, sans-serif;
            --font-serif: Georgia, 'Times New Roman', serif;

            --transition-fast: 150ms ease;
            --transition-base: 250ms ease;
            --transition-slow: 400ms ease;

            --max-width: 75rem;
            --content-width: 48rem;
        }

        

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

        html {
            scroll-behavior: smooth;
            -webkit-text-size-adjust: 100%;
        }

        body {
            font-family: var(--font-sans);
            font-size: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
            line-height: 1.7;
            color: var(--color-text);
            background: var(--color-bg);
            min-height: 100vh;
            display: flex;
            flex-direction: column;
        }

        .site-header {
            position: sticky;
            top: 0;
            z-index: 100;
            background: linear-gradient(to bottom, var(--color-bg) 0%, var(--color-bg) 70%, transparent 100%);
            padding: 1rem 0 2rem;
        }

        main {
            flex: 1;
            width: 100%;
            max-width: var(--content-width);
            margin: 0 auto;
            padding: 0 1.5rem 4rem;
        }

        footer {
            margin-top: auto;
            padding: 2rem 1.5rem;
            background: var(--color-bg-alt);
            border-top: 1px solid var(--color-border-light);
        }

        /* Typography */
        h1, h2, h3, h4, h5, h6 {
            font-family: var(--font-sans);
            font-weight: 700;
            line-height: 1.25;
            color: var(--color-text);
            letter-spacing: -0.02em;
        }

        h1 {
            font-size: clamp(2rem, 1.5rem + 2.5vw, 3.25rem);
            margin-bottom: 1rem;
            background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        h2 {
            font-size: clamp(1.5rem, 1.25rem + 1.25vw, 2.25rem);
            margin: 3rem 0 1.25rem;
            padding-top: 2rem;
            border-top: 1px solid var(--color-border-light);
            position: relative;
        }

        h2::before {
            content: '';
            position: absolute;
            top: -1px;
            left: 0;
            width: 4rem;
            height: 3px;
            background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
            border-radius: 2px;
        }

        h3 {
            font-size: clamp(1.25rem, 1.1rem + 0.75vw, 1.625rem);
            margin: 2.5rem 0 1rem;
            color: var(--color-primary-dark);
        }

        @media (prefers-color-scheme: dark) {
            h3 {
                color: var(--color-primary-light);
            }
        }

        h4 {
            font-size: clamp(1.1rem, 1rem + 0.5vw, 1.375rem);
            margin: 2rem 0 0.75rem;
        }

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

        p + p {
            margin-top: -0.25rem;
        }

        /* Lead paragraph */
        h1 + p, 
        main > p:first-of-type {
            font-size: clamp(1.1rem, 1rem + 0.5vw, 1.3rem);
            color: var(--color-text-muted);
            line-height: 1.8;
            font-style: italic;
        }

        /* Links */
        a {
            color: var(--color-primary);
            text-decoration: underline;
            text-decoration-thickness: 1px;
            text-underline-offset: 3px;
            transition: color var(--transition-fast), text-decoration-color var(--transition-fast);
        }

        a:hover {
            color: var(--color-primary-light);
            text-decoration-color: var(--color-accent);
        }

        a:focus {
            outline: 2px solid var(--color-accent);
            outline-offset: 3px;
            border-radius: var(--radius-sm);
        }

        /* Lists */
        ul, ol {
            margin: 1.5rem 0;
            padding-left: 1.5rem;
        }

        li {
            margin-bottom: 0.625rem;
            padding-left: 0.5rem;
        }

        li::marker {
            color: var(--color-primary);
            font-weight: 600;
        }

        ul li::marker {
            content: '\25B8\0020';
        }

        ol {
            counter-reset: list-counter;
            list-style: none;
            padding-left: 0;
        }

        ol li {
            counter-increment: list-counter;
            position: relative;
            padding-left: 2.5rem;
        }

        ol li::before {
            content: counter(list-counter);
            position: absolute;
            left: 0;
            top: 0;
            width: 1.75rem;
            height: 1.75rem;
            background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
            color: white;
            font-size: 0.85rem;
            font-weight: 700;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        /* Emphasis */
        strong {
            font-weight: 700;
            color: var(--color-text);
        }

        em {
            font-style: italic;
            color: var(--color-text-muted);
        }

        /* Blockquote */
        blockquote {
            margin: 2rem 0;
            padding: 1.5rem 2rem;
            background: linear-gradient(135deg, var(--color-bg-card) 0%, var(--color-bg-alt) 100%);
            border-left: 4px solid var(--color-accent);
            border-radius: 0 var(--radius-md) var(--radius-md) 0;
            box-shadow: var(--shadow-sm);
            position: relative;
        }

        blockquote::before {
            content: '\201C';
            position: absolute;
            top: -0.5rem;
            left: 1rem;
            font-size: 4rem;
            font-family: var(--font-serif);
            color: var(--color-accent);
            opacity: 0.3;
            line-height: 1;
        }

        blockquote p {
            font-size: 1.05rem;
            font-style: italic;
            color: var(--color-text-muted);
            margin: 0;
        }

        blockquote p:last-child {
            margin-bottom: 0;
        }

        img {
            border-radius: .5rem;
            height: auto;
            margin: 1rem auto;
            display: block;
            max-width: 100%;
        }

        /* Figures and Images */
        figure {
            margin: 2.5rem 0;
            position: relative;
        }

        figure img,
        .hero-image,
        .article-image {
            width: 100%;
            height: auto;
            border-radius: var(--radius-md);
            box-shadow: var(--shadow-md);
            transition: transform var(--transition-base), box-shadow var(--transition-base);
        }

        figure:hover img,
        .article-image:hover {
            transform: translateY(-2px);
            box-shadow: var(--shadow-lg);
        }

        .hero-image {
            width: calc(100% + 3rem);
            margin-left: -1.5rem;
            margin-bottom: 2rem;
            border-radius: 0;
            max-height: 50vh;
            object-fit: cover;
        }

        @media (min-width: 48rem) {
            .hero-image {
                width: calc(100% + 6rem);
                margin-left: -3rem;
                border-radius: var(--radius-lg);
            }
        }

        figcaption {
            margin-top: 0.75rem;
            font-size: 0.9rem;
            color: var(--color-text-light);
            text-align: center;
            font-style: italic;
        }

        /* Horizontal rule */
        hr {
            border: none;
            height: 1px;
            background: linear-gradient(90deg, transparent, var(--color-border), transparent);
            margin: 3rem 0;
        }

        /* Tables */
        table {
            width: 100%;
            margin: 2rem 0;
            border-collapse: collapse;
            font-size: 0.95rem;
            box-shadow: var(--shadow-sm);
            border-radius: var(--radius-md);
            overflow: hidden;
        }

        th, td {
            padding: 1rem;
            text-align: left;
            border-bottom: 1px solid var(--color-border-light);
        }

        th {
            background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
            color: white;
            font-weight: 600;
            text-transform: uppercase;
            font-size: 0.85rem;
            letter-spacing: 0.05em;
        }

        tr:nth-child(even) {
            background: var(--color-bg-alt);
        }

        tr:hover {
            background: var(--color-bg-card);
        }

        /* Code */
        code {
            font-family: 'Consolas', 'Monaco', monospace;
            font-size: 0.9em;
            background: var(--color-bg-alt);
            padding: 0.2em 0.4em;
            border-radius: var(--radius-sm);
            border: 1px solid var(--color-border-light);
        }

        pre {
            margin: 2rem 0;
            padding: 1.5rem;
            background: var(--color-bg-card);
            border-radius: var(--radius-md);
            overflow-x: auto;
            box-shadow: var(--shadow-sm);
            border: 1px solid var(--color-border);
        }

        pre code {
            background: none;
            padding: 0;
            border: none;
        }

        /* Navigation - Table of Contents style */
        nav {
            margin: 2rem 0;
            padding: 1.5rem;
            background: var(--color-bg-card);
            border-radius: var(--radius-md);
            box-shadow: var(--shadow-sm);
            border: 1px solid var(--color-border-light);
        }

        nav ul {
            list-style: none;
            padding: 0;
            margin: 0;
        }

        nav li {
            margin: 0;
            padding: 0;
        }

        nav a {
            display: block;
            padding: 0.625rem 1rem;
            text-decoration: none;
            color: var(--color-text-muted);
            border-radius: var(--radius-sm);
            transition: all var(--transition-fast);
            border-left: 2px solid transparent;
        }

        nav a:hover {
            background: var(--color-bg-alt);
            color: var(--color-primary);
            border-left-color: var(--color-primary);
            transform: translateX(4px);
        }

        nav a:focus {
            outline: none;
            background: var(--color-bg-alt);
            border-left-color: var(--color-accent);
        }

        /* Special callout boxes */
        aside {
            margin: 2rem 0;
            padding: 1.5rem;
            background: linear-gradient(135deg, rgba(27, 125, 70, 0.08) 0%, rgba(212, 160, 18, 0.05) 100%);
            border-radius: var(--radius-md);
            border: 1px solid var(--color-primary);
            position: relative;
        }

        aside::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 4px;
            background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
            border-radius: var(--radius-md) var(--radius-md) 0 0;
        }

        aside p:last-child {
            margin-bottom: 0;
        }

        /* FAQ styling */
        details {
            margin: 1rem 0;
            background: var(--color-bg-card);
            border-radius: var(--radius-md);
            box-shadow: var(--shadow-sm);
            border: 1px solid var(--color-border-light);
            overflow: hidden;
            transition: box-shadow var(--transition-base);
        }

        details:hover {
            box-shadow: var(--shadow-md);
        }

        details[open] {
            box-shadow: var(--shadow-md);
        }

        summary {
            padding: 1.25rem 1.5rem;
            cursor: pointer;
            font-weight: 600;
            color: var(--color-text);
            list-style: none;
            display: flex;
            align-items: center;
            justify-content: space-between;
            transition: background var(--transition-fast);
        }

        summary::-webkit-details-marker {
            display: none;
        }

        summary::after {
            content: '+';
            font-size: 1.5rem;
            font-weight: 300;
            color: var(--color-primary);
            transition: transform var(--transition-base);
        }

        details[open] summary::after {
            transform: rotate(45deg);
        }

        summary:hover {
            background: var(--color-bg-alt);
        }

        summary:focus {
            outline: 2px solid var(--color-accent);
            outline-offset: -2px;
        }

        details > *:not(summary) {
            padding: 0 1.5rem 1.25rem;
        }

        /* Selection */
        ::selection {
            background: var(--color-primary);
            color: white;
        }

        /* Scrollbar */
        ::-webkit-scrollbar {
            width: 10px;
            height: 10px;
        }

        ::-webkit-scrollbar-track {
            background: var(--color-bg);
        }

        ::-webkit-scrollbar-thumb {
            background: var(--color-border);
            border-radius: 5px;
        }

        ::-webkit-scrollbar-thumb:hover {
            background: var(--color-primary);
        }

        /* Skip link */
        .skip-link {
            position: absolute;
            top: -100%;
            left: 1rem;
            padding: 0.75rem 1.5rem;
            background: var(--color-primary);
            color: white;
            border-radius: var(--radius-sm);
            text-decoration: none;
            font-weight: 600;
            z-index: 1000;
            transition: top var(--transition-fast);
        }

        .skip-link:focus {
            top: 1rem;
            outline: 2px solid var(--color-accent);
            outline-offset: 2px;
        }

        /* Print styles */
        @media print {
            body {
                background: white;
                color: black;
                font-size: 12pt;
            }

            header, footer, nav, aside {
                display: none;
            }

            main {
                max-width: 100%;
                padding: 0;
            }

            h1, h2, h3 {
                page-break-after: avoid;
            }

            figure, blockquote {
                page-break-inside: avoid;
            }

            a {
                color: black;
                text-decoration: underline;
            }

            a[href]::after {
                content: ' (' attr(href) ')';
                font-size: 0.8em;
            }
        }

        /* Reduced motion */
        @media (prefers-reduced-motion: reduce) {
            *, *::before, *::after {
                animation-duration: 0.01ms !important;
                animation-iteration-count: 1 !important;
                transition-duration: 0.01ms !important;
            }

            html {
                scroll-behavior: auto;
            }
        }

        /* Focus visible for better keyboard navigation */
        :focus-visible {
            outline: 2px solid var(--color-accent);
            outline-offset: 3px;
        }

        /* Responsive adjustments */
        @media (max-width: 48rem) {
            main {
                padding: 0 1rem 3rem;
            }

            h2 {
                margin-top: 2.5rem;
                padding-top: 1.5rem;
            }

            blockquote {
                padding: 1.25rem 1.5rem;
                margin: 1.5rem -0.5rem;
            }

            nav {
                padding: 1rem;
            }

            nav a {
                padding: 0.5rem 0.75rem;
            }
        }

        /* Images Styles for Live Wedden op Voetbal */

.hero-image {
    width: 100%;
    margin: 0 0 2.5rem;
}

.hero-image img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(26, 46, 31, 0.15);
}

.article-image {
    margin: 2.5rem 0;
    text-align: center;
}

.article-image img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(26, 46, 31, 0.1);
    transition: transform 250ms ease, box-shadow 250ms ease;
}

.article-image img:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(26, 46, 31, 0.15);
}

/* Dark mode adjustments */
@media (prefers-color-scheme: dark) {
    .hero-image img {
        box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
    }
    
    .article-image img {
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    }
    
    .article-image img:hover {
        box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
    }
}

/* Responsive adjustments */
@media (max-width: 48rem) {
    .hero-image {
        margin: 0 -1rem 2rem;
        width: calc(100% + 2rem);
    }
    
    .hero-image img {
        border-radius: 0;
    }
    
    .article-image {
        margin: 2rem -0.5rem;
    }
    
    .article-image img {
        border-radius: 8px;
    }
}

/* Footer styling */
.footer-content {
    max-width: 48rem;
    margin: 0 auto;
    text-align: center;
}

.footer-content p {
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

.footer-content p:last-child {
    margin-bottom: 0;
    font-size: 0.85rem;
    color: var(--color-text-light);
}

.footer-content a {
    color: var(--color-primary);
}

/* =========================================
   CUSTOM DESKTOP MENU - "Floating Glass Dock"
   ========================================= */

/* 1. Reset specific styles for the desktop nav container 
   to override the generic 'nav' styles defined earlier */
.site-nav--desktop {
    background: transparent; /* Remove solid background */
    box-shadow: none;        /* Remove default shadow */
    border: none;            /* Remove default border */
    padding: 0;              /* Reset padding */
    margin: 0;               /* Reset margin */
    width: 100%;
    display: flex;
    justify-content: center; /* Center the menu on screen */
}

/* 2. The Menu Container (The actual list) */
.menu-desktop {
    display: flex;
    align-items: center;
    gap: 0.5rem; /* Space between items */
    
    /* The "Glass" Effect */
    background: rgba(20, 30, 24, 0.7); /* Semi-transparent dark green */
    backdrop-filter: blur(12px);       /* Blurs the content behind the menu */
    -webkit-backdrop-filter: blur(12px); /* Safari support */
    
    /* Shape and Border */
    padding: 0.5rem 0.75rem;
    border-radius: 50px; /* Makes it pill-shaped */
    border: 1px solid rgba(255, 255, 255, 0.1); /* Subtle border for definition */
    box-shadow: 
        0 10px 25px rgba(0, 0, 0, 0.2), /* Soft drop shadow */
        inset 0 1px 1px rgba(255, 255, 255, 0.1); /* Inner highlight */
        
    list-style: none; /* Remove bullets */
    margin: 0;
}

/* 3. Menu Items (Li) */
.menu-desktop li {
    margin: 0;
    padding: 0;
    position: relative;
}

/* Remove the "marker" arrow defined in your global styles */
.menu-desktop li::marker {
    content: none;
}

/* 4. The Links (The clickable text) */
.menu-desktop a {
    display: block;
    padding: 0.6rem 1.2rem;
    border-radius: 30px; /* Rounded pill shape for links */
    
    /* Typography */
    font-size: 0.95rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-decoration: none; /* Remove underline */
    
    /* Colors */
    color: #e8ede9; /* Light text */
    border: 1px solid transparent; /* Reserve space for border transition */
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1); /* Smooth springy animation */
}

/* 5. Hover Effects */

/* Hover state for the link */
.menu-desktop a:hover {
    background: rgba(255, 255, 255, 0.1); /* Light fade on hover */
    color: var(--color-accent); /* Turn text gold/yellow */
    transform: translateY(-2px); /* Slightly float up */
    border-color: rgba(212, 160, 18, 0.3); /* Subtle gold border */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Active Page State (if WordPress adds current-menu-item class) */
.menu-desktop .current-menu-item a {
    background: var(--color-primary); /* Green background for active page */
    color: white;
    box-shadow: 0 4px 15px rgba(27, 125, 70, 0.4); /* Green glow */
}

/* 6. Header adjustments */
/* Ensure the header allows the menu to be centered and visible */
.site-header .top-navigation-bar {
    display: flex;
    justify-content: center;
    position: relative;
    width: 100%;
}

/* Hide the old burger menu on desktop explicitly if needed */
@media (min-width: 769px) {
    .mobile-controls {
        display: none;
    }
}

/* =========================================
   MOBILE MENU STYLES
   ========================================= */

/* 1. Hiding Desktop Elements on Mobile */
@media (max-width: 48rem) {
    
    /* Hide the desktop nav pill container completely on mobile */
    .site-nav--desktop {
        display: none !important;
    }

    /* Show mobile controls (burger) */
    .mobile-controls {
        display: block;
        position: absolute;
        right: 0;
        top: 50%;
        transform: translateY(-50%);
        z-index: 1001;
    }
}

/* 2. Burger Button Styling (Animated) */
.burger {
    background: transparent;
    border: none;
    cursor: pointer;
    width: 3rem;
    height: 3rem;
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    z-index: 2000; /* Ensure it stays above everything */
}

/* Burger lines */
.burger span {
    display: block;
    width: 28px;
    height: 2px;
    background-color: var(--color-primary); /* Green brand color */
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.27, 1.55); /* Bouncy transition */
}

/* Hover effect for burger */
.burger:hover span {
    background-color: var(--color-accent);
}

/* Active State (Turn into X) */
.burger.is-active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
    background-color: var(--color-text); /* Change color on open */
}

.burger.is-active span:nth-child(2) {
    opacity: 0;
    transform: translateX(-20px); /* Fly out to left */
}

.burger.is-active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
    background-color: var(--color-text);
}

/* 3. The Mobile Menu Drawer (Slide-out panel) */
#mobile-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: 85%; /* Covers most of screen but leaves a strip visible */
    max-width: 400px;
    height: 100vh;
    background: var(--color-bg); /* Use site background or custom dark color */
    z-index: 1999;
    
    /* Animation initial state */
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.77, 0, 0.18, 1);
    
    /* Visual styling */
    box-shadow: -10px 0 30px rgba(0,0,0,0.5);
    display: flex;
    flex-direction: column;
    padding: 6rem 2rem 2rem; /* Top padding to clear the close button */
    border-left: 1px solid var(--color-border);
}

/* Dark mode specific override for the menu background if needed */
@media (prefers-color-scheme: dark) {
    #mobile-menu {
        background: #0d1410; /* Very dark green */
        border-left: 1px solid #1f2f24;
    }
}

/* Open state for the drawer */
#mobile-menu.is-open {
    display: flex; /* Override existing display none if present */
    transform: translateX(0);
}

/* 4. Inside the Menu */
.mobile-menu__inner {
    height: 100%;
    overflow-y: auto;
}

/* The Close Button (Big X inside menu) - Optional as we animate the burger */
.mobile-menu__close {
    display: none; /* We use the animated burger instead */
}

/* Menu List Styles */
.menu-mobile ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.menu-mobile li {
    opacity: 0; /* Hidden initially for animation */
    transform: translateX(20px);
    transition: all 0.4s ease;
    margin: 0;
    padding: 0;
}

/* Staggered animation when menu opens */
#mobile-menu.is-open .menu-mobile li {
    opacity: 1;
    transform: translateX(0);
}

/* Add delays for each item so they cascade in */
#mobile-menu.is-open li:nth-child(1) { transition-delay: 0.1s; }
#mobile-menu.is-open li:nth-child(2) { transition-delay: 0.15s; }
#mobile-menu.is-open li:nth-child(3) { transition-delay: 0.2s; }
#mobile-menu.is-open li:nth-child(4) { transition-delay: 0.25s; }
#mobile-menu.is-open li:nth-child(5) { transition-delay: 0.3s; }

/* Link Styles */
.menu-mobile a {
    display: block;
    font-size: 1.5rem; /* Big text for easy tapping */
    font-weight: 700;
    color: var(--color-text);
    text-decoration: none;
    position: relative;
    padding-bottom: 0.5rem;
}

/* Decorative line under links */
.menu-mobile a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
    transition: width 0.3s ease;
}

.menu-mobile a:hover {
    color: var(--color-primary-light);
}

.menu-mobile a:hover::after {
    width: 50px; /* Show a small underline on touch/hover */
}

/* 5. Overlay (Darkens the rest of the site) */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px); /* Blurs the content behind overlay */
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-menu-overlay.is-active {
    opacity: 1;
    visibility: visible;
}

/* =========================================
   FIX: Mobile Menu Layer Order
   ========================================= */

#mobile-menu {
    z-index: 99999 !important; 
}

.mobile-menu-overlay {
    z-index: 99990 !important; 
}

#mobile-menu, 
#mobile-menu .menu-mobile, 
#mobile-menu a {
    filter: none !important;
    backdrop-filter: none !important;
}

/* =========================================
   CLOSE BUTTON (X) STYLES
   ========================================= */

/* 1. Make the close button visible and position it */
.mobile-menu__close {
    display: block !important; /* Force show the button */
    position: absolute;
    top: 1.5rem;   /* Distance from top */
    right: 1.5rem; /* Distance from right */
    
    /* Reset default button styles */
    background: transparent;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    
    /* Typography for the "X" symbol */
    font-size: 3.5rem;
    line-height: 0.8;
    color: var(--color-text-muted); /* Start with a muted color */
    
    /* Animation */
    transition: all 0.3s ease;
    z-index: 100001; /* Ensure it is above the menu content */
}

/* 2. Hover/Focus effects */
.mobile-menu__close:hover,
.mobile-menu__close:focus {
    color: var(--color-accent); /* Turn gold/yellow on hover */
    transform: rotate(90deg);   /* Spin effect */
    outline: none;
}

/* 3. Adjust menu padding so text doesn't overlap the X */
#mobile-menu {
    padding-top: 6rem; /* Push the links down to make room for the X */
}

/* =========================================
   ADVANCED FOOTER STYLES (4-Column Layout)
   ========================================= */

/* 1. Footer Container */
.site-footer {
    background: #0d1410; /* Very dark background matching the reference */
    color: #a8b5ab;      /* Muted text color */
    padding: 4rem 1.5rem 2rem;
    margin-top: auto;
    font-size: 0.95rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-inner {
    max-width: var(--max-width);
    margin: 0 auto;
}

/* 2. Grid Layout */
.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 equal columns */
    gap: 2rem;
    margin-bottom: 3rem;
}

/* 3. Typography & Headings */
.footer-heading {
    color: var(--color-accent); /* Yellow/Gold color like reference */
    font-family: var(--font-serif); /* Serif font for headings */
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    position: relative;
    border: none; /* Reset default h3 borders */
    padding: 0;
}

/* Remove the decorative line we had on h2/h3 globally if it interferes */
.footer-heading::before {
    display: none;
}

/* 4. Lists & Links */
.footer-col ul,
.footer-links-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col li {
    margin-bottom: 0.8rem;
    padding: 0; /* Reset global padding */
}

/* Remove global list markers */
.footer-col li::marker {
    content: none;
}

.footer-col a {
    color: #a8b5ab;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-col a:hover {
    color: white;
    text-decoration: none;
}

/* 5. Special "Warning" Column Styles */
.footer-warning .danger-text {
    color: #e74c3c; /* Red color for warnings */
    font-weight: 600;
}

.footer-warning a[href*="agog"],
.footer-warning a[href*="kansspel"] {
    color: #e74c3c;
    text-decoration: underline;
}

/* 6. Footer Bottom & Copyright */
.footer-bottom {
    text-align: center;
    font-size: 0.85rem;
    color: #6b7c6f;
}

.footer-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.1); /* Subtle divider line */
    width: 100%;
    margin-bottom: 2rem;
}

/* 7. Responsive Design (Mobile) */
@media (max-width: 60rem) { /* Tablet and smaller */
    .footer-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 columns */
    }
}

@media (max-width: 36rem) { /* Mobile phones */
    .footer-grid {
        grid-template-columns: 1fr; /* 1 column stacked */
        gap: 2.5rem;
    }
    
    .footer-heading {
        margin-bottom: 1rem;
    }
}

/* =========================================
   404 ERROR PAGE STYLES
   ========================================= */

/* 1. Layout & Background */
.error-404-page {
    /* Center everything and take up remaining height */
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 4rem 1.5rem;
    
    /* Subtle spotlight effect on the dark green background */
    background: radial-gradient(circle at center, rgba(27, 125, 70, 0.15) 0%, transparent 70%);
}

.error-404-content {
    max-width: 600px;
    animation: fadeInUp 0.8s ease-out;
}

/* 2. The Big "404" with Ball */
.error-code {
    font-size: clamp(6rem, 15vw, 10rem); /* Huge responsive font */
    line-height: 1;
    font-weight: 800;
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.05); /* Very subtle transparent text */
    position: relative;
    font-family: var(--font-sans);
    
    /* Text outline effect for a sporty look */
    -webkit-text-stroke: 2px rgba(255, 255, 255, 0.1);
}

/* The Soccer Ball replacing the '0' */
.error-code .ball {
    display: inline-block;
    color: var(--color-text); /* Normal color, not outlined */
    text-shadow: 0 0 30px rgba(255, 255, 255, 0.2);
    -webkit-text-stroke: 0;
    
    /* Bouncing animation */
    animation: bounce 2s infinite ease-in-out;
}

/* 3. Typography */
.error-title {
    font-size: 2.5rem;
    color: var(--color-accent); /* Gold/Yellow */
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: none; /* Remove default border from global h2 */
}

.error-title::before {
    display: none; /* Remove decorative line from global h2 */
}

.error-text {
    font-size: 1.1rem;
    color: var(--color-text-muted);
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

/* 4. "Back to Home" Button */
.btn-back-home {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: var(--color-primary);
    color: white;
    font-weight: 700;
    text-decoration: none;
    border-radius: 50px; /* Pill shape */
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(27, 125, 70, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-back-home:hover {
    background: var(--color-primary-light);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(27, 125, 70, 0.5);
    color: white;
}

/* 5. Animations */
@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px) rotate(10deg); }
}

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

#crumbs {
    padding: 10px 0;
    margin-bottom: 20px;
    font-size: 14px;
    color: #666;
    text-align: center; 
}

#crumbs a {
    text-decoration: none;
    color: #0073aa; 
}

#crumbs a:hover {
    text-decoration: underline;
}

#crumbs .current {
    font-weight: bold;
    color: rgb(255, 255, 255);
}
