:root {
            /* Core palette - inspired by football field and betting */
            --color-primary: #3d8b5a;
            --color-primary-light: #4ea86d;
            --color-primary-dark: #2d6b44;
            --color-accent: #f5a623;
            --color-accent-hover: #ffca5f;
            --color-secondary: #3a6a9f;
            --color-success: #22c55e;
            --color-danger: #ef4444;

            /* Neutrals (DARK by default) */
            --color-bg: #0d1117;
            --color-bg-alt: #161b22;
            --color-surface: #1c2128;
            --color-text: #e6edf3;
            --color-text-muted: #9aa5b1;
            --color-text-light: #6b7785;
            --color-border: #30363d;

            /* Shadows (dark) */
            --shadow-sm: 0 1px 2px 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);
            --shadow-accent: 0 4px 20px rgba(245, 166, 35, 0.3);

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

            /* 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;

            /* Layout */
            --content-width: 75ch;
            --header-height: 4rem;

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

            /* Border radius */
            --radius-sm: 4px;
            --radius-md: 8px;
            --radius-lg: 12px;
            --radius-xl: 20px;
        }

        

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

        html {
            scroll-behavior: smooth;
            font-size: 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;
            -webkit-font-smoothing: antialiased;
            -moz-osx-font-smoothing: grayscale;
        }

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

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

        /* Header */
        .site-header {
            position: sticky;
            top: 0;
            z-index: 100;
            height: var(--header-height);
            background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 100%);
            box-shadow: var(--shadow-md);
        }

        /* Main content */
        main {
            flex: 1;
            width: 100%;
            max-width: calc(var(--content-width) + var(--space-xl) * 2);
            margin: 0 auto;
            padding: var(--space-2xl) var(--space-lg);
        }

        @media (min-width: 768px) {
            main {
                padding: var(--space-3xl) var(--space-xl);
            }
        }

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

        h1 {
            font-size: clamp(2rem, 1.5rem + 2.5vw, 3rem);
            margin-bottom: var(--space-lg);
            color: var(--color-primary-dark);
            position: relative;
            padding-bottom: 30px;
           
            
        }

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

        h2 {
            font-size: clamp(1.5rem, 1.25rem + 1.25vw, 2rem);
            margin-top: var(--space-3xl);
            margin-bottom: var(--space-lg);
            padding-top: var(--space-lg);
            border-top: 1px solid var(--color-border);
            color: var(--color-primary);
        }

        h2:first-of-type {
            border-top: none;
            padding-top: 0;
            margin-top: var(--space-2xl);
        }

        h3 {
            font-size: clamp(1.25rem, 1.1rem + 0.75vw, 1.5rem);
            margin-top: var(--space-2xl);
            margin-bottom: var(--space-md);
            color: var(--color-secondary);
            display: flex;
            align-items: center;
            gap: var(--space-sm);
        }

        h3::before {
            content: '';
            display: inline-block;
            width: 4px;
            height: 1.2em;
            background: var(--color-accent);
            border-radius: var(--radius-sm);
            flex-shrink: 0;
        }

        @media (prefers-color-scheme: dark) {
            h2, h3 {
                color: var(--color-text);
            }
        }

        h4 {
            font-size: clamp(1.1rem, 1rem + 0.5vw, 1.25rem);
            margin-top: var(--space-xl);
            margin-bottom: var(--space-sm);
        }

        p {
            margin-bottom: var(--space-lg);
            color: var(--color-text);
        }

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

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

        /* Strong and emphasis */
        strong {
            font-weight: 600;
            color: var(--color-text);
        }

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

        /* Lists */
        ul, ol {
            margin-bottom: var(--space-lg);
            padding-left: var(--space-lg);
        }

        li {
            margin-bottom: var(--space-sm);
            padding-left: var(--space-sm);
        }

        ul li::marker {
            color: var(--color-accent);
        }

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

        li > ul, li > ol {
            margin-top: var(--space-sm);
            margin-bottom: var(--space-sm);
        }

        /* Blockquote */
        blockquote {
            margin: var(--space-xl) 0;
            padding: var(--space-lg) var(--space-xl);
            background: linear-gradient(135deg, var(--color-bg-alt) 0%, var(--color-surface) 100%);
            border-left: 4px solid var(--color-accent);
            border-radius: 0 var(--radius-md) var(--radius-md) 0;
            font-style: italic;
            color: var(--color-text-muted);
            position: relative;
            box-shadow: var(--shadow-sm);
        }

        blockquote::before {
            content: '"';
            position: absolute;
            top: -10px;
            left: 15px;
            font-size: 4rem;
            font-family: var(--font-heading);
            color: var(--color-accent);
            opacity: 0.3;
            line-height: 1;
        }

        blockquote p {
            margin-bottom: 0;
        }

        blockquote p:not(:last-child) {
            margin-bottom: var(--space-md);
        }

        /* Images */
        figure {
            margin: var(--space-2xl) 0;
        }

        img {
            max-width: 100%;
            height: auto;
            display: block;
        }

        .hero-image {
            width: 100%;
            aspect-ratio: 21 / 9;
            object-fit: cover;
            border-radius: var(--radius-lg);
            box-shadow: var(--shadow-lg);
            margin-bottom: var(--space-2xl);
        }

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

        .article-image:hover {
            transform: scale(1.01);
            box-shadow: var(--shadow-lg);
        }

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

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

        thead {
            background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
            color: white;
        }

        th {
            padding: var(--space-md) var(--space-lg);
            text-align: left;
            font-weight: 600;
            letter-spacing: 0.02em;
        }

        td {
            padding: var(--space-md) var(--space-lg);
            border-bottom: 1px solid var(--color-border);
            background: var(--color-surface);
        }

        tbody tr {
            transition: background-color var(--transition-fast);
        }

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

        tbody tr:hover td {
            background: transparent;
        }

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

        pre {
            margin: var(--space-xl) 0;
            padding: var(--space-lg);
            background: var(--color-primary-dark);
            border-radius: var(--radius-md);
            overflow-x: auto;
            box-shadow: var(--shadow-md);
        }

        pre code {
            padding: 0;
            background: none;
            border: none;
            color: #e6edf3;
            font-size: 0.875rem;
            line-height: 1.6;
        }

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

        /* Special callout boxes */
        aside {
            margin: var(--space-xl) 0;
            padding: var(--space-lg);
            background: linear-gradient(135deg, rgba(245, 166, 35, 0.1) 0%, rgba(245, 166, 35, 0.05) 100%);
            border: 1px solid rgba(245, 166, 35, 0.3);
            border-radius: var(--radius-md);
            position: relative;
        }

        aside::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 4px;
            height: 100%;
            background: var(--color-accent);
            border-radius: var(--radius-sm) 0 0 var(--radius-sm);
        }

        /* Navigation (Table of Contents style) */
        nav {
            margin: var(--space-xl) 0;
            padding: var(--space-lg);
            border-radius: var(--radius-md);
            box-shadow: var(--shadow-sm);
        }

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

        nav li {
            padding-left: 0;
            margin-bottom: var(--space-sm);
        }

        nav a {
            display: inline-flex;
            align-items: center;
            gap: var(--space-sm);
            text-decoration: none;
            color: var(--color-text);
            padding: var(--space-xs) 0;
            transition: color var(--transition-fast), transform var(--transition-fast);
        }

       

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

        nav a:hover::before {
            transform: scale(1.5);
        }

        /* Footer */
        footer {
            background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 100%);
            color: white;
            padding: var(--space-2xl) var(--space-lg);
            margin-top: auto;
        }

        /* Utility for warning/disclaimer text */
        .disclaimer {
            font-size: 0.875rem;
            color: var(--color-text-muted);
            padding: var(--space-md);
            background: var(--color-bg-alt);
            border-radius: var(--radius-md);
            border-left: 3px solid var(--color-danger);
        }

        /* FAQ styling */
        details {
            margin: var(--space-md) 0;
            padding: var(--space-md) var(--space-lg);
            background: var(--color-surface);
            border: 1px solid var(--color-border);
            border-radius: var(--radius-md);
            transition: box-shadow var(--transition-base);
        }

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

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

        summary {
            cursor: pointer;
            font-weight: 600;
            color: var(--color-primary);
            list-style: none;
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: var(--space-md);
        }

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

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

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

        details > *:not(summary) {
            margin-top: var(--space-md);
        }

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

            header, footer {
                display: none;
            }

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

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

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

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

        /* 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;
            }
        }

        /* Images Styles for Gratis Voetbal Wedden Article */

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

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

.article-image {
    margin: 2rem 0;
    text-align: center;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    border-radius: 8px;
    overflow: hidden;
}

.article-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(26, 71, 42, 0.08);
}

.article-image:hover {
    transform: scale(1.01);
    box-shadow: 0 8px 30px rgba(26, 71, 42, 0.12);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-image {
        margin: 0 0 1.5rem;
    }
    
    .hero-image img {
        border-radius: 8px;
    }
    
    .article-image {
        margin: 1.5rem 0;
    }
    
    .article-image img {
        border-radius: 6px;
    }
}

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

/* Print styles */
@media print {
    .hero-image,
    .article-image {
        page-break-inside: avoid;
    }
    
    .hero-image img,
    .article-image img {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}

/* =========================================
   DESKTOP: FIXED MENU & HEADER
   ========================================= */
@media (min-width: 768px) {
    
    #mobile-menu, .mobile-controls, .mobile-menu-overlay, .mobile-menu__close {
        display: none !important;
    }

    header.site-header {
        background: transparent !important; 
        background-image: none !important;  
        box-shadow: none !important;        
        
        position: absolute !important;      
        top: 0;
        left: 0;
        width: 100%;
        z-index: 999;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1); 
    }

    .site-header .top-navigation-bar {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        height: 100%; 
    }

    ul.menu-desktop {
        display: flex !important;
        flex-direction: row !important;
        justify-content: center;
        align-items: center;
        gap: 40px; 
        
        list-style: none !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    ul.menu-desktop li {
        margin: 0 !important;
        padding: 0 !important;
        border: none !important;
    }

    ul.menu-desktop li::marker {
        display: none !important;
    }

    ul.menu-desktop li a {
        position: relative;
        display: block;
        padding: 25px 0; 
        
        font-family: var(--font-sans);
        font-size: 15px;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 1px;
        color: #ffffff !important; 
        text-decoration: none !important;
        text-shadow: 0 1px 3px rgba(0,0,0,0.5); 
        transition: color 0.3s ease;
    }

    ul.menu-desktop li a::after {
        content: '';
        position: absolute;
        bottom: 15px;
        left: 0;
        width: 0%;
        height: 3px;
        background-color: var(--color-accent);
        transition: width 0.3s ease;
        box-shadow: 0 0 10px var(--color-accent); 
    }

    ul.menu-desktop li a:hover::after {
        width: 100%;
    }
}

/* =========================================
   MOBILE MENU STYLING (Up to 767px)
   ========================================= */
@media (max-width: 767px) {

    /* 1. HIDE Desktop Elements on Mobile */
    .site-nav--desktop {
        display: none !important;
    }

    /* 2. SHOW Mobile Controls */
    .mobile-controls {
        display: block !important;
        position: absolute;
        right: 20px;
        top: 50%;
        transform: translateY(-50%);
        z-index: 1001; /* Ensure it's clickable */
    }

    /* 3. BURGER BUTTON STYLING */
    .burger {
        width: 40px;
        height: 40px;
        background: transparent; /* No background */
        border: none;
        cursor: pointer;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 0;
        z-index: 2000; /* Above the menu panel */
    }

    /* Burger Lines */
    .burger span {
        display: block;
        width: 30px;
        height: 3px;
        background-color: #ffffff; /* White lines */
        margin: 3px 0;
        border-radius: 3px;
        transition: all 0.3s ease-in-out;
        transform-origin: center;
    }

    /* Burger Animation when Active (Turn into X) */
    .burger.is-active span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
        background-color: var(--color-accent); /* Orange when active */
    }
    .burger.is-active span:nth-child(2) {
        opacity: 0;
    }
    .burger.is-active span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
        background-color: var(--color-accent);
    }

    /* 4. SLIDE-OUT MENU PANEL */
    #mobile-menu {
        position: fixed;
        top: 0;
        right: -100%; /* Hide off-screen to the right */
        width: 85%;   /* Width of the panel */
        max-width: 350px;
        height: 100vh; /* Full viewport height */
        background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 100%); /* Green Theme */
        z-index: 1999;
        padding: 80px 30px 40px; /* Top padding clears space for close button */
        box-shadow: -5px 0 20px rgba(0,0,0,0.5);
        transition: right 0.4s cubic-bezier(0.77, 0, 0.175, 1); /* Smooth slide effect */
        overflow-y: auto; /* Scrollable if menu is long */
    }

    /* State: Menu is OPEN */
    #mobile-menu.is-open {
        right: 0; /* Slide in */
    }

    /* 5. MENU LINKS STYLING */
    .menu-mobile {
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .menu-mobile li {
        margin-bottom: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1); /* Subtle separator */
        opacity: 0; /* Prepare for fade-in animation */
        transform: translateX(20px);
        transition: opacity 0.4s ease, transform 0.4s ease;
    }

    /* Animate links entering (Staggered effect) */
    #mobile-menu.is-open .menu-mobile li {
        opacity: 1;
        transform: translateX(0);
        /* Delay each item slightly for a cool effect */
        transition-delay: 0.2s; 
    }

    .menu-mobile li a {
        display: block;
        padding: 20px 0;
        font-family: var(--font-heading); /* Or sans depending on preference */
        font-size: 1.25rem;
        color: #ffffff;
        text-decoration: none;
        font-weight: 600;
        transition: color 0.2s;
    }

    /* Hover/Active State */
    .menu-mobile li a:hover,
    .menu-mobile li.current-menu-item a {
        color: var(--color-accent); /* Orange */
        padding-left: 10px; /* Slight movement on hover */
    }

    /* 6. CLOSE BUTTON (Inside Menu) */
    .mobile-menu__close {
        position: absolute;
        top: 20px;
        right: 20px;
        background: none;
        border: none;
        color: #ffffff;
        font-size: 40px;
        cursor: pointer;
        display: block; /* Force button to be visible */
        z-index: 2005; /* Keep above the menu background and overlay */
        padding: 0;
        line-height: 1;
        transition: opacity 0.3s ease;
    }

    .mobile-menu__close:hover {
        opacity: 0.7; /* Hover effect */
    }

    /* 7. DARK OVERLAY (Backdrop) */
    .mobile-menu-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.7); /* Dark semi-transparent */
        z-index: 1000;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease-in-out;
        backdrop-filter: blur(3px); /* Blur background content */
    }

    /* State: Overlay Active */
    .mobile-menu-overlay.is-active {
        opacity: 1;
        visibility: visible;
    }
}

/* =========================================
   NEW FOOTER STYLING (Dark Theme)
   ========================================= */

/* 1. Footer Container */
.site-footer {
    background-color: #0f1115; /* Very dark background like reference */
    color: #a0a0a0;            /* Muted grey text */
    padding: 60px 20px 30px;
    margin-top: auto;          /* Pushes footer to bottom */
    border-top: 1px solid #1f2228;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
}

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

/* 3. Typography */
.footer-heading {
    font-family: 'Georgia', serif; /* Matching the serif font from reference */
    color: var(--color-accent);    /* Uses your orange/gold color (#f5a623) */
    font-size: 1.25rem;
    margin-bottom: 25px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

/* 4. Lists & Links */
.footer-list {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.footer-list li {
    margin-bottom: 12px;
    font-size: 0.95rem;
    line-height: 1.6;
    color: #ffffff;
    padding-left: 0 !important; /* Force reset padding */
}

/* Styling links inside footer */
.footer-list a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-list a:hover {
    color: #ffffff;
    text-decoration: underline;
}

/* Special styling for 18+ warning */
.warning-item strong {
    color: #ef4444; /* Red color for 18+ */
}

/* 5. Bottom Copyright Bar */
.footer-bottom {
    border-top: 1px solid #1f2228;
    padding-top: 30px;
    text-align: center;
    font-size: 0.85rem;
    color: #5a6872;
}

/* =========================================
   RESPONSIVE FOOTER (Mobile)
   ========================================= */
@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr; /* Stack into 1 column */
        gap: 40px;
        text-align: center; /* Center text on mobile */
    }

    .footer-heading {
        margin-bottom: 15px;
        font-size: 1.4rem;
    }
    
    .site-footer {
        padding: 40px 20px;
    }
}

/* =========================================
   404 PAGE STYLING
   ========================================= */

/* 1. Main Container - Full Height & Centered */
.error-404 {
    min-height: 80vh; /* Takes up most of the screen */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: radial-gradient(circle at center, #1a472a 0%, #0f1115 100%); /* Spotlight effect */
    padding: 120px 20px 60px; /* Top padding clears the fixed header */
    color: #ffffff;
}

.error-content {
    max-width: 600px;
    width: 100%;
}

/* 2. The Big "404" Number */
.error-code {
    font-family: var(--font-heading); /* Or Georgia/Serif */
    font-size: clamp(6rem, 15vw, 12rem); /* Responsive Huge Text */
    line-height: 1;
    font-weight: 800;
    margin: 0;
    color: transparent;
    -webkit-text-stroke: 2px var(--color-accent); /* Outline style text */
    position: relative;
    display: inline-block;
    opacity: 0.8;
}

/* Add a glowing effect behind the number */
.error-code::after {
    content: '404';
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    color: var(--color-accent);
    opacity: 0.1;
    filter: blur(10px);
    z-index: -1;
}

/* 3. Text Styling */
.error-title {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    color: #ffffff;
    margin-top: -20px; /* Pull closer to the number */
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.error-text {
    font-size: 1.1rem;
    color: #a0a0a0;
    margin-bottom: 40px;
    line-height: 1.6;
}

/* 4. Button Styling */
.btn-home {
    display: inline-block;
    padding: 15px 40px;
    background-color: var(--color-accent); /* Orange */
    color: #000000;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none !important; /* Force remove underline */
    border-radius: 50px; /* Pill shape */
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(245, 166, 35, 0.3);
}

.btn-home:hover {
    background-color: #ffffff;
    color: var(--color-primary);
    transform: translateY(-3px); /* Lift effect */
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.2);
}

/* 5. Custom Search Form Styling for 404 */
.error-search {
    margin-bottom: 30px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.error-search input[type="search"] {
    width: 100%;
    padding: 12px 20px;
    border-radius: 30px;
    border: 1px solid rgba(255,255,255,0.2);
    background: rgba(255,255,255,0.05);
    color: white;
}

/* Mobile Adjustment */
@media (max-width: 767px) {
    .error-404 {
        padding-top: 100px; /* Less padding on mobile */
    }
    
    .error-code {
        -webkit-text-stroke: 1px var(--color-accent);
    }
}

/* =========================================
   HIDE SEARCH BUTTON ON 404 PAGE
   ========================================= */
.error-search .search-submit {
    display: none !important;
}


/* articulos */
    .articulos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 32px;
    padding-top: 30px ;
    
    max-width: var(--max-width);
        margin: 0 auto;
}

.articulos-card {
    background: #ffffff;
    border-radius: 18px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: 1px solid rgba(0, 0, 0, 0.03);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    padding: 0;
}

.articulos-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.12);
}


.articulos-card__image-link img {
    width: 100%;
    height: 170px;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.articulos-card:hover .articulos-card__image-link img {
    transform: scale(1.08);
}

/* Контент */


.articulos-card__content {
    padding: 0 17px 16px;
    display: flex;
    flex-direction: column;
    flex-grow: 1; 

}
.articulos-card__title {
    margin-top: 10px;
    font-size: 1rem;
    line-height: 1.3;
    font-weight: 700;
 
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 1.6rem; 
}
.articulos-card__title a{
    text-decoration: none;
   
}
.articulos-card__excerpt {
    margin-top: auto; 
    
    margin-bottom: 0; 
    color: #6e6e73;
    font-size: 0.95rem;
    line-height: 1.5;
    
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}


.articulos-card__link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: #1d1d1f;
    font-weight: 600;
    font-size: 0.9rem;
    transition: gap 0.3s;
}

.articulos-card__link svg {
    transition: transform 0.3s;
}

.articulos-card__link:hover {
    color: #0073aa;
    gap: 12px;
}


.articulos-card__image-link {
    display: block;
    overflow: hidden;
    border-radius: 6px 6px 0 0;
    height: 170px; 
}


.articulos-card__image-link img {
    width: 100%;
    height: 100%; 
    object-fit: cover; 
    object-position: center; 
    display: block;
    transition: transform 0.6s ease;
}


.articulos-card:hover .articulos-card__image-link img {
    transform: scale(1.08);
}


.articulos-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}



.sitemap-content {
        margin: 30px 0;
    }

    .sitemap-grid{
    margin-top: 2rem;
    }

    .sitemap-section {
        margin-bottom: 40px;
        padding: 20px;
        border-radius: 8px;
    }

    .sitemap-section h2 {
        color: inherit;
        padding-bottom: 10px;
        margin-bottom: 15px;
    }

    .sitemap-section h3 {
        color: #555;
        margin: 15px 0 10px 0;
    }

    .sitemap-list {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
        list-style: none;
        padding: 0;
        margin: 0;
    }

        .breadcrumbs{
            display: flex;
            justify-content: center;
            align-items: center;
            margin: 3rem 0;
            gap: 0.8rem;
        }
    @media (max-width: 1024px) {
        .sitemap-list {
            grid-template-columns: repeat(2, 1fr);
            gap: 1.25rem;
        }
    }
    @media (max-width: 768px) {
        .sitemap-list {
            grid-template-columns: 1fr;
            gap: 1rem;
        }
    }

    .sitemap-list li {
        margin-bottom: 8px;
        padding-left: 15px;
        position: relative;
    }

    .sitemap-list li:before {
        content: "›";
        position: absolute;
        left: 0;
        color: #007cba;
    }

    .sitemap-list a {
        text-decoration: none;
        color: inherit;
        transition: color 0.3s;
    }

    .sitemap-list a:hover {
        color: #007cba;
    }

    .category-group {
        margin-bottom: 20px;
    }

    .tags-cloud {
        line-height: 2;
    }

    .tag {
        display: inline-block;
        background: #e9e9e9;
        padding: 5px 10px;
        margin: 3px;
        border-radius: 3px;
        text-decoration: none;
        color: #333;
        font-size: 14px;
        transition: all 0.3s;
    }

    .tag:hover {
        background: #007cba;
        color: white;
    }

      .toc {
            background: rgba(230, 57, 70, 0.1) !important;
            padding: var(--spacing-md) !important;
            border-radius: var(--radius-lg);
            margin-bottom: var(--spacing-sm);
            border: 1px solid var(--border-color);
        }

    @media (max-width: 768px) {
        .sitemap-section {
            padding: 15px;
        }
        
        .tag {
            font-size: 12px;
            padding: 3px 8px;
        }
    }

.cl-hero{
margin-top: 2rem;
}

/* Breadcrumbs positioning and styling */
.breadcrumbs-wrapper {
    width: 100%;
    max-width: calc(var(--content-width) + var(--space-xl) * 2);
    margin: 0 auto;
    padding: var(--space-xl) var(--space-lg) 0; 
    text-align: center;
}

/* Adjust top margin for desktop to clear the absolute header */
@media (min-width: 768px) {
    .breadcrumbs-wrapper {
        padding: var(--space-2xl) var(--space-xl) 0;
        margin-top: var(--header-height); 
    }
}

/* Inner links and text colors */
#crumbs {
    font-size: 0.95rem;
    color: var(--color-text-muted); /* Light grey for separators */
    margin-bottom: 0;
}

#crumbs a {
    color: var(--color-primary-light); /* Green for links */
    text-decoration: none;
    transition: color var(--transition-fast) ease;
}

#crumbs a:hover {
    color: var(--color-accent); /* Orange on hover */
}

#crumbs .current {
    color: #ffffff; /* White for the current page */
    font-weight: 600;
}