:root {
            /* Tennis Court Inspired Palette */
            --color-primary: #3da556;       /* Bright Green for Dark Mode */
            --color-primary-dark: #2d8a42;
            --color-primary-light: #4fc06a;
            --color-secondary: #d4b76a;     /* Gold */
            --color-secondary-light: #e4c77a;
            --color-accent: #ff7b33;        /* Bright Clay Orange */
            --color-accent-hover: #ff9655;
            
            /* Neutrals (Dark Backgrounds) */
            --color-bg: #121210;            /* Almost Black */
            --color-bg-alt: #1a1a18;        /* Slightly lighter dark */
            --color-surface: #222220;       /* Surface color */
            
            /* Text Colors (Light text for dark bg) */
            --color-text: #f0efe9;          /* Off-white text */
            --color-text-muted: #a5a5a0;
            --color-text-light: #858580;
            
            /* Borders */
            --color-border: #333330;
            --color-border-light: #2a2a28;
            
            /* Shadows (Adjusted for dark mode visibility) */
            --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);
            --shadow-accent: 0 4px 20px rgba(255, 123, 51, 0.15); /* Orange glow */
            
            /* =========================================
            TYPOGRAPHY & LAYOUT (Unchanged)
            ========================================= */
            
            /* Typography */
            --font-heading: 'Georgia', 'Times New Roman', serif;
            --font-body: 'Segoe UI', system-ui, -apple-system, sans-serif;
            --line-height-tight: 1.25;
            --line-height-normal: 1.7;
            --line-height-relaxed: 1.85;
            
            /* Spacing */
            --space-xs: 0.5rem;
            --space-sm: 1rem;
            --space-md: 1.5rem;
            --space-lg: 2.5rem;
            --space-xl: 4rem;
            --space-2xl: 6rem;
            
            /* Layout */
            --content-width: 72ch;
            --wide-width: 90ch;
            
            /* Transitions */
            --transition-fast: 150ms ease;
            --transition-normal: 250ms ease;
            --transition-slow: 400ms ease;
        }

        

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

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

        body {
            font-family: var(--font-body);
            font-size: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
            line-height: var(--line-height-normal);
            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(135deg, var(--color-primary-dark), var(--color-primary));
            box-shadow: var(--shadow-md);
        }

        nav {
            max-width: var(--wide-width);
            margin: 0 auto;
            padding: var(--space-sm) var(--space-md);
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: var(--space-md);
        }

        nav a {
            color: rgba(255, 255, 255, 0.9);
            text-decoration: none;
            font-weight: 500;
            padding: var(--space-xs) var(--space-sm);
            border-radius: 4px;
            transition: background var(--transition-fast), color var(--transition-fast);
        }

        nav a:hover,
        nav a:focus {
            background: rgba(255, 255, 255, 0.15);
            color: #ffffff;
        }

        nav a:focus {
            outline: 2px solid var(--color-secondary);
            outline-offset: 2px;
        }

        main {
            flex: 1;
            width: 100%;
            max-width: var(--wide-width);
            margin: 0 auto;
            padding: var(--space-lg) var(--space-md) var(--space-2xl);
        }

        article {
            background: var(--color-surface);
            border-radius: 12px;
            box-shadow: var(--shadow-md);
            overflow: hidden;
            padding: 0px 24px;
        }

        /* Hero Image Styles */
        .hero-image {
            width: 100%;
            aspect-ratio: 21 / 9;
            object-fit: cover;
            display: block;
            background: linear-gradient(135deg, var(--color-primary-light), var(--color-primary-dark));
        }

        .article-content {
            padding: var(--space-lg) var(--space-md);
            max-width: var(--content-width);
            margin: 0 auto;
        }

        @media (min-width: 768px) {
            .article-content {
                padding: var(--space-xl) var(--space-lg);
            }
        }

        /* Typography Hierarchy */
        h1 {
            font-family: var(--font-heading);
            font-size: clamp(2rem, 1.5rem + 2.5vw, 3.25rem);
            font-weight: 700;
            line-height: var(--line-height-tight);
            color: var(--color-primary-dark);
            margin-bottom: var(--space-md);
            letter-spacing: -0.02em;
        }

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

        h2 {
            font-family: var(--font-heading);
            font-size: clamp(1.5rem, 1.25rem + 1.25vw, 2.25rem);
            font-weight: 600;
            line-height: var(--line-height-tight);
            color: var(--color-primary);
            margin-top: var(--space-xl);
            margin-bottom: var(--space-md);
            padding-bottom: var(--space-sm);
            border-bottom: 3px solid var(--color-secondary);
            letter-spacing: -0.01em;
        }

        h3 {
            font-family: var(--font-heading);
            font-size: clamp(1.25rem, 1.1rem + 0.75vw, 1.625rem);
            font-weight: 600;
            line-height: var(--line-height-tight);
            color: var(--color-text);
            margin-top: var(--space-lg);
            margin-bottom: var(--space-sm);
        }

        h4 {
            font-family: var(--font-body);
            font-size: clamp(1.1rem, 1rem + 0.5vw, 1.35rem);
            font-weight: 600;
            color: var(--color-primary);
            margin-top: var(--space-md);
            margin-bottom: var(--space-xs);
        }

        p {
            margin-bottom: var(--space-md);
            line-height: var(--line-height-relaxed);
        }

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

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

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

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

        li {
            margin-bottom: var(--space-xs);
            line-height: var(--line-height-normal);
        }

        

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

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

        /* Blockquotes */
        blockquote {
            margin: var(--space-lg) 0;
            padding: var(--space-md) var(--space-lg);
            background: linear-gradient(135deg, var(--color-bg-alt), var(--color-surface));
            border-left: 4px solid var(--color-secondary);
            border-radius: 0 8px 8px 0;
            font-style: italic;
            color: var(--color-text-muted);
        }

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

        /* Figures and Images */
        figure {
            margin: var(--space-lg) 0;
        }

        .article-image {
            width: 100%;
            height: auto;
            border-radius: 8px;
            box-shadow: var(--shadow-sm);
            display: block;
        }

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

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

        thead {
            background: var(--color-primary);
            color: #ffffff;
        }

        th {
            font-weight: 600;
            text-align: left;
            padding: var(--space-sm);
        }

        td {
            padding: var(--space-sm);
            border-bottom: 1px solid var(--color-border-light);
        }

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

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

        tbody tr:hover {
            background: rgba(196, 163, 90, 0.1);
        }

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

        /* Table of Contents Styling */
        article > ul:first-of-type {
            background: var(--color-bg-alt);
            padding: var(--space-md) var(--space-lg);
            border-radius: 8px;
            border: 1px solid var(--color-border-light);
        }

        /* Call to Action Boxes */
        aside {
            background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
            color: #ffffff;
            padding: var(--space-lg);
            border-radius: 8px;
            margin: var(--space-lg) 0;
            box-shadow: var(--shadow-md);
        }

        aside h3 {
            color: var(--color-secondary-light);
            margin-top: 0;
        }

        aside p {
            color: rgba(255, 255, 255, 0.9);
        }

        /* Footer */
        footer {
            background: var(--color-primary-dark);
            color: rgba(255, 255, 255, 0.8);
            padding: var(--space-lg) var(--space-md);
            margin-top: auto;
        }

        footer nav {
            flex-wrap: wrap;
            justify-content: center;
        }

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

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

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

        /* Skip link for accessibility */
        .skip-link {
            position: absolute;
            top: -100%;
            left: var(--space-md);
            background: var(--color-accent);
            color: #ffffff;
            padding: var(--space-sm) var(--space-md);
            border-radius: 0 0 4px 4px;
            z-index: 1000;
            transition: top var(--transition-fast);
        }

        .skip-link:focus {
            top: 0;
        }

        /* Smooth animations for interactive elements */
        @media (prefers-reduced-motion: no-preference) {
            h2 {
                position: relative;
            }

            h2::after {
                content: '';
                position: absolute;
                bottom: -3px;
                left: 0;
                width: 0;
                height: 3px;
                background: var(--color-accent);
                transition: width var(--transition-slow);
            }

            h2:hover::after {
                width: 100%;
            }

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

            tbody tr:hover {
                transform: translateX(4px);
            }
        }

        /* Print styles */
        @media print {
            header, footer, nav {
                display: none;
            }

            main {
                padding: 0;
            }

            article {
                box-shadow: none;
            }

            h2 {
                break-after: avoid;
            }

            p, li {
                orphans: 3;
                widows: 3;
            }
        }

        /* Estilos para imágenes del artículo de apuestas de tenis */

.hero-image {
    width: 100%;
    aspect-ratio: 21 / 9;
    object-fit: cover;
    display: block;
    margin: 0 0 2rem;
    border-radius: 0;
}

.article-image {
    width: 100%;
    max-width: 100%;
    height: auto;
    margin: 1.5rem 0 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(26, 95, 42, 0.1);
    display: block;
}

@media (min-width: 768px) {
    .hero-image {
        border-radius: 12px 12px 0 0;
    }
    
    .article-image {
        margin: 2rem 0 2.5rem;
        border-radius: 12px;
    }
}

@media (prefers-color-scheme: dark) {
    .article-image {
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    }
}

/* Animación suave de carga para imágenes lazy */
img[loading="lazy"] {
    opacity: 1;
    transition: opacity 0.3s ease-in-out;
}

img[loading="lazy"].loaded,
img:not([loading="lazy"]) {
    opacity: 1;
}

/* Disclaimer del footer */
.disclaimer {
    font-size: 0.85rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.75);
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    padding: 0.5rem 1rem;
}

/* Print styles */
@media print {
    .hero-image,
    .article-image {
        box-shadow: none;
        break-inside: avoid;
    }
    
    .disclaimer {
        color: #333;
        border-top: 1px solid #ccc;
        padding-top: 1rem;
    }
}
/* =========================================
   Desktop Menu: "Grand Slam" Style
   ========================================= */

/* 1. Header Container Styling 
   Making the header float slightly and adding a modern blur effect.
*/
.site-header {
    background: rgba(26, 95, 42, 0.85); /* Semi-transparent green */
    backdrop-filter: blur(12px); /* Frosted glass effect */
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.5rem 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.top-navigation-bar {
    display: flex;
    align-items: center;
    justify-content: center; /* Center the menu */
    max-width: var(--wide-width);
    margin: 0 auto;
    padding: 0 var(--space-md);
}

/* 2. Menu List Container 
   Resetting list styles and setting up the flex layout.
*/
.site-nav--desktop .menu-desktop {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 8px; /* Space between items */
    background: rgba(0, 0, 0, 0.2); /* Darker pill background behind links */
    padding: 6px;
    border-radius: 50px; /* Full rounded pill shape */
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.site-nav--desktop .menu-desktop li {
    margin: 0; /* Reset margins */
}

/* 3. Menu Links Styling 
   The interactive button look.
*/
.site-nav--desktop .menu-desktop a {
    position: relative;
    display: block;
    padding: 10px 24px;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    border-radius: 40px; /* Rounded buttons */
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden; /* Keeps the animation inside the button */
    z-index: 1;
}

/* 4. The "Clay Court" Hover Effect 
   Creating a pseudo-element that slides in from the bottom.
*/
.site-nav--desktop .menu-desktop a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--color-accent); /* The orange/clay color */
    z-index: -1; /* Behind the text */
    
    /* Start hidden below */
    transform: translateY(100%) skewY(10deg);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
}

/* Hover State */
.site-nav--desktop .menu-desktop a:hover {
    color: #fff;
    transform: translateY(-2px); /* Slight lift */
    box-shadow: 0 4px 15px rgba(232, 93, 4, 0.4); /* Glow effect */
}

.site-nav--desktop .menu-desktop a:hover::before {
    /* Slide up to fill the button */
    transform: translateY(0) skewY(0deg);
    opacity: 1;
}

/* Active State (Optional - if WordPress adds 'current-menu-item' class) */
.current-menu-item > a {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff !important;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
}

/* Focus State for Accessibility */
.site-nav--desktop .menu-desktop a:focus-visible {
    outline: 2px solid var(--color-secondary);
    outline-offset: 2px;
}

/* =========================================
   Mobile Menu: "Grand Slam" Slide-out
   ========================================= */

/* 1. The 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); /* Blur the content behind */
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

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

/* 2. The Menu Container (The Drawer) */
#mobile-menu {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 85%; /* Cover most but not all of the screen */
    max-width: 400px;
    background: linear-gradient(170deg, var(--color-primary-dark) 0%, #0a2e12 100%);
    z-index: 999;
    
    /* Animation setup: start off-screen to the right */
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1); /* Smooth "ease-out" feel */
    box-shadow: -10px 0 30px rgba(0,0,0,0.5);
    
    /* Flex layout for internal structure */
    display: flex;
    flex-direction: column;
    padding: var(--space-xl) var(--space-lg);
    overflow-y: auto; /* Scroll if menu is too long */
}

/* 3. State: OPEN */
#mobile-menu.is-open {
    transform: translateX(0); /* Slide in */
}

/* 4. The Close Button (X) Styling */
.mobile-menu__close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: transparent;
    border: none;
    font-size: 2.5rem;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    line-height: 1;
    transition: color 0.3s ease, transform 0.3s ease;
}

.mobile-menu__close:hover {
    color: var(--color-secondary);
    transform: rotate(90deg);
}

/* 5. Menu List & Links Styling */
.mobile-menu__inner ul {
    list-style: none;
    padding: 0;
    margin: 40px 0 0 0; /* Push down from the top */
}

.mobile-menu__inner li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin: 0;
    opacity: 0; /* Hidden by default for animation */
    transform: translateY(20px); /* Pushed down */
    transition: opacity 0.4s ease, transform 0.4s ease;
}

/* Staggered Animation for Items when Menu Opens */
#mobile-menu.is-open li {
    opacity: 1;
    transform: translateY(0);
}

/* Delay each item slightly (supporting up to 6 items manually) */
#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; }
#mobile-menu.is-open li:nth-child(6) { transition-delay: 0.35s; }

.mobile-menu__inner a {
    display: block;
    padding: 20px 0;
    font-family: var(--font-heading); /* Serif font gives premium feel */
    font-size: 1.5rem;
    font-weight: 600;
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s ease, padding-left 0.3s ease;
}

/* Active / Focus State */
.mobile-menu__inner a:hover,
.mobile-menu__inner a:focus {
    color: var(--color-secondary); /* Gold color */
    padding-left: 10px; /* Slight movement on touch/hover */
}

/* Add a visual "Tennis Ball" indicator on active items */
.mobile-menu__inner .current-menu-item a {
    color: var(--color-secondary);
}

.mobile-menu__inner .current-menu-item a::after {
    content: ' \2022'; /* Bullet point */
    color: var(--color-accent); /* Orange/Tennis Ball color */
    margin-left: 8px;
    font-size: 1.5em;
    vertical-align: sub;
}

/* 6. Burger Button Animation (The three lines) */
.burger {
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    position: relative;
    width: 44px;
    height: 44px;
    z-index: 1001; /* Ensure it stays above if needed */
}

.burger span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: #ffffff; /* White lines */
    margin: 5px auto;
    transition: all 0.3s ease-in-out;
    border-radius: 2px;
}

/* Transform Burger to X when active */
.burger.is-active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

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

.burger.is-active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* =========================================
   FOOTER REDESIGN (4-Column Layout)
   ========================================= */

/* 1. Footer Container */
.site-footer {
    /* Deep dark background like the reference */
    background-color: #111111; 
    color: #b0b0b0; /* Soft gray text */
    padding: var(--space-xl) 0 var(--space-md);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: auto; /* Pushes footer to bottom if page is short */
    font-size: 0.95rem;
}

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

/* 2. Grid System */
.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 equal columns */
    gap: var(--space-lg);
    margin-bottom: var(--space-xl);
}

/* 3. Typography & Headings */
.footer-heading {
    /* Gold/Yellow color like the reference */
    color: var(--color-secondary, #c4a35a); 
    font-family: var(--font-heading);
    font-size: 1.25rem;
    margin-bottom: var(--space-md);
    font-weight: 700;
    border-bottom: none; /* Remove default theme borders if any */
    padding-bottom: 0;
}

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

.footer-list li {
    margin-bottom: 12px;
    line-height: 1.5;
    color: #b0b0b0;
}

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

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

/* 5. Special Styling for "Important Notices" (Column 1) */
.footer-col--warning .warning-text {
    color: #ff6b6b; /* Reddish color for warnings */
}

.footer-col--warning a {
    color: #ff6b6b;
    font-weight: bold;
}

/* 6. Footer Bottom / Copyright */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: var(--space-md);
    text-align: center;
    font-size: 0.85rem;
    color: #666;
}

/* 7. Responsive Design (Mobile) */
@media (max-width: 900px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 columns on tablet */
    }
}

@media (max-width: 600px) {
    .footer-grid {
        grid-template-columns: 1fr; /* 1 column on mobile */
        gap: var(--space-xl);
        text-align: center; /* Center align text on mobile looks better for footers */
    }
    
    .footer-heading {
        font-size: 1.4rem;
        margin-bottom: var(--space-sm);
    }
}

/* =========================================
   COMPACT FOOTER UPDATE
   ========================================= */

/* 1. Reduce overall vertical padding of the footer container */
.site-footer {
    /* Was var(--space-xl) which is too big. 
       Changed to smaller fixed values: Top 3rem, Bottom 1.5rem */
    padding: 3rem 0 1.5rem; 
}

/* 2. Move headings closer to the list */
.footer-heading {
    /* Was var(--space-md). Reduced to 1rem (approx 16px) */
    margin-bottom: 1rem;
    font-size: 1.15rem; /* Slightly smaller header looks sharper */
}

/* 3. Tighten the list items (bring links closer together) */
.footer-list li {
    /* Was 12px. Reduced to 6px for a tighter pack */
    margin-bottom: 6px; 
    font-size: 0.9rem; /* Make text slightly more compact */
}

/* 4. Ensure links inside the list don't have extra padding 
   (Resetting potential global nav styles) */
.footer-list a {
    display: inline-block;
    padding: 0; /* Remove any button-like padding */
    line-height: 1.4;
}

/* 5. Mobile Adjustments for compactness */
@media (max-width: 600px) {
    .site-footer {
        padding: 2rem 0 1.5rem; /* Even tighter on mobile */
    }
    
    .footer-grid {
        gap: 2rem; /* Less space between columns on mobile */
    }
    
    .footer-heading {
        margin-bottom: 0.5rem;
    }
}

/* =========================================
   404 ERROR PAGE DESIGN
   ========================================= */

.error-404-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60vh; /* Takes up mostly the screen */
    text-align: center;
    padding: var(--space-xl) var(--space-md);
    background: var(--color-bg);
}

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

/* 1. The CSS Tennis Ball Animation */
.tennis-scene {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 2rem;
}

.tennis-ball {
    width: 100px;
    height: 100px;
    background: #ccff00; /* Standard Tennis Ball Yellow */
    border-radius: 50%;
    position: absolute;
    top: 0;
    left: 10px;
    box-shadow: inset -10px -10px 20px rgba(0,0,0,0.3);
    animation: bounceBall 2s infinite ease-in-out;
    z-index: 2;
    overflow: hidden;
}

/* The curved white lines on the ball */
.ball-line-1, .ball-line-2 {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 3px solid #ffffff;
    background: transparent;
}

.ball-line-1 {
    top: -35%;
    left: -35%;
}

.ball-line-2 {
    bottom: -35%;
    right: -35%;
}

/* Shadow under the ball */
.ball-shadow {
    width: 80px;
    height: 10px;
    background: rgba(0,0,0,0.3);
    border-radius: 50%;
    position: absolute;
    bottom: 0;
    left: 20px;
    animation: shadowScale 2s infinite ease-in-out;
    filter: blur(4px);
}

/* 2. Typography */
.error-code {
    font-family: var(--font-heading);
    font-size: clamp(4rem, 10vw, 8rem);
    font-weight: 700;
    color: var(--color-primary-light);
    line-height: 1;
    margin: 0;
    opacity: 0.2; /* Subtle background effect */
}

.error-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--color-secondary); /* Gold */
    margin-top: -30px; /* Pull it up over the big number */
    margin-bottom: 1rem;
    position: relative;
    z-index: 3;
    border-bottom: none !important; /* Override global h2 style */
}

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

/* 3. "Back to Home" Button */
.btn-404 {
    display: inline-block;
    padding: 15px 40px;
    background: var(--color-accent); /* Orange */
    color: #ffffff !important;
    text-decoration: none !important;
    font-weight: 700;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-accent);
}

.btn-404:hover {
    background: var(--color-accent-hover);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(232, 93, 4, 0.4);
}

/* 4. Animations */
@keyframes bounceBall {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

@keyframes shadowScale {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(0.8); opacity: 0.6; }
}

/* Breadcrumbs container styling */
/* Breadcrumbs container styling */
#crumbs {
    padding: 10px 0;
    margin-bottom: 20px;
    font-size: 14px;
    color: #666;
    text-align: center; /* <--- ВОТ ЭТА СТРОКА ВЫРАВНИВАЕТ ИХ ПО ЦЕНТРУ */
}

/* Link styling within breadcrumbs */
#crumbs a {
    text-decoration: none;
    color: #0073aa; 
}

/* Hover effect for links */
#crumbs a:hover {
    text-decoration: underline;
}

/* Current page styling */
#crumbs .current {
    font-weight: bold;
    color: rgb(255, 255, 255);
}

.cl-main {
    padding-left: 20px;     
    padding-right: 20px;    
    max-width: 1200px;      
    margin-left: auto;      
    margin-right: auto;     
    box-sizing: border-box; 
}

@media (max-width: 768px) {
    .cl-main {
        padding-left: 15px;
        padding-right: 15px;
    }
}