/* =========================================
   1. CSS Variables (Dark Theme Default)
   ========================================= */
:root {
    /* Primary Colors - Football Field Green (Dark Mode Version) */
    --color-primary: #3da55d;
    --color-primary-light: #4eca72;
    --color-primary-dark: #2d8a48;

    /* Secondary Colors - Italian Accent (Dark Mode Version) */
    --color-accent: #e85a75;
    --color-accent-light: #f07a90;
    --color-accent-dark: #c41e3a;

    /* Neutral Colors (Dark Backgrounds) */
    --color-bg: #0d1117;
    --color-bg-alt: #161b22;
    --color-surface: #1c2128;
    
    /* Text Colors */
    --color-text: #e6edf3;
    --color-text-secondary: #a8b5c4;
    --color-text-muted: #768390;
    
    /* Borders & UI */
    --color-border: #30363d;

    /* Semantic Colors */
    --color-success: #22c55e;
    --color-warning: #f59e0b;
    --color-info: #3b82f6;

    /* Shadows (Dark Mode Optimized) */
    --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 24px rgba(0, 0, 0, 0.5);
    --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.6);

    /* Typography */
    --font-sans: 'Segoe UI', system-ui, -apple-system, sans-serif;
    --font-serif: 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 */
    --max-width: 75rem;
    --content-width: 48rem;
    --border-radius: 0.5rem;
    --border-radius-lg: 1rem;

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

/* =========================================
   2. Reset & Base Styles
   ========================================= */
*, *::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;
}

/* Focus Styles for Accessibility */
:focus-visible {
    outline: 3px solid var(--color-primary);
    outline-offset: 2px;
}

a:focus-visible {
    border-radius: var(--border-radius);
}

/* Skip Link */
.skip-link {
    position: absolute;
    top: -100%;
    left: var(--space-md);
    padding: var(--space-sm) var(--space-md);
    background: var(--color-primary);
    color: white;
    text-decoration: none;
    border-radius: var(--border-radius);
    z-index: 1000;
    transition: top var(--transition-fast);
}

.skip-link:focus {
    top: var(--space-md);
}

/* =========================================
   3. Layout & Typography
   ========================================= */

/* Header */
header {
    background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 100%);
    min-height: 4rem;
}

/* Main Content */
main {
    flex: 1;
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: var(--space-xl) var(--space-md);
}

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

/* Article Container */
article {
    max-width: var(--content-width);
    margin: 0 auto;
}

/* Headings */
h1 {
    font-size: clamp(2rem, 1.5rem + 2.5vw, 3.25rem);
    font-weight: 800;
    line-height: 1.15;
    color: var(--color-text);
    margin-bottom: var(--space-lg);
    letter-spacing: -0.02em;
}


h2 {
    font-size: clamp(1.5rem, 1.25rem + 1.25vw, 2.25rem);
    font-weight: 700;
    line-height: 1.25;
    color: var(--color-text);
    margin-top: var(--space-3xl);
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-sm);
    border-bottom: 2px solid var(--color-border);
    position: relative;
}

h2::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 4rem;
    height: 2px;
    background: var(--color-primary);
}

h3 {
    font-size: clamp(1.25rem, 1.1rem + 0.75vw, 1.625rem);
    font-weight: 600;
    line-height: 1.35;
    color: var(--color-text);
    margin-top: var(--space-2xl);
    margin-bottom: var(--space-md);
}

h4 {
    font-size: clamp(1.1rem, 1rem + 0.5vw, 1.375rem);
    font-weight: 600;
    line-height: 1.4;
    color: var(--color-text-secondary);
    margin-top: var(--space-xl);
    margin-bottom: var(--space-md);
}

/* Body Text */
p {
    margin-bottom: var(--space-lg);
    color: var(--color-text-secondary);
}

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

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

em {
    font-style: italic;
}

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

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

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

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

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

ul li {
    list-style-type: disc;
}

ol li {
    list-style-type: decimal;
}

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

/* Blockquote */
blockquote {
    position: relative;
    margin: var(--space-xl) 0;
    padding: var(--space-lg) var(--space-xl);
    background: var(--color-bg-alt);
    border-left: 4px solid var(--color-primary);
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
    font-style: italic;
    color: var(--color-text-secondary);
}

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

blockquote p {
    margin-bottom: var(--space-sm);
}

blockquote cite {
    display: block;
    margin-top: var(--space-md);
    font-size: 0.9em;
    font-style: normal;
    color: var(--color-text-muted);
}

blockquote cite::before {
    content: '\2014\00a0';
}

/* =========================================
   4. Media & UI Components
   ========================================= */

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

.hero-image {
    width: 100%;
    aspect-ratio: 21 / 9;
    object-fit: cover;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.hero-image:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

.article-image {
    width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    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-muted);
    text-align: center;
    font-style: italic;
}

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

thead {
    background: linear-gradient(135deg, var(--color-primary-dark), var(--color-primary));
    color: white;
}

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

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

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

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

tbody tr:last-child td {
    border-bottom: none;
}

/* Code */
code {
    font-family: 'SF Mono', 'Consolas', monospace;
    font-size: 0.875em;
    padding: 0.15em 0.4em;
    background: var(--color-bg-alt);
    border: 1px solid var(--color-border);
    border-radius: 4px;
    color: var(--color-accent);
}

pre {
    margin: var(--space-xl) 0;
    padding: var(--space-lg);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    overflow-x: auto;
    box-shadow: var(--shadow-sm);
}

pre code {
    padding: 0;
    background: none;
    border: none;
    color: var(--color-text);
}

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

/* Navigation / Table of Contents */
nav[aria-label="Indice dei contenuti"] {
    margin: var(--space-2xl) 0;
    padding: var(--space-xl);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
}

nav[aria-label="Indice dei contenuti"]::before {
    content: 'Indice';
    display: block;
    font-weight: 700;
    font-size: 1.1em;
    color: var(--color-text);
    margin-bottom: var(--space-md);
    padding-bottom: var(--space-sm);
    border-bottom: 2px solid var(--color-primary);
}

nav[aria-label="Indice dei contenuti"] ol {
    margin-bottom: 0;
    counter-reset: toc;
    list-style: none;
    padding-left: 0;
}

nav[aria-label="Indice dei contenuti"] li {
    counter-increment: toc;
    padding-left: 0;
    margin-bottom: var(--space-sm);
}

nav[aria-label="Indice dei contenuti"] li::before {
    content: counter(toc) '.';
    display: inline-block;
    width: 1.5em;
    font-weight: 600;
    color: var(--color-primary);
}

nav[aria-label="Indice dei contenuti"] a {
    text-decoration: none;
    color: var(--color-text-secondary);
    transition: color var(--transition-fast), padding-left var(--transition-fast);
}

nav[aria-label="Indice dei contenuti"] a:hover {
    color: var(--color-primary);
    padding-left: var(--space-sm);
}

/* FAQ Section */
section[itemtype="https://schema.org/FAQPage"] h3 {
    color: var(--color-primary-light);
    padding: var(--space-md);
    background: var(--color-bg-alt);
    border-radius: var(--border-radius);
    margin-top: var(--space-xl);
    cursor: default;
    transition: background-color var(--transition-fast);
}

section[itemtype="https://schema.org/FAQPage"] h3:hover {
    background: var(--color-surface);
    box-shadow: var(--shadow-sm);
}

/* Info Boxes / Callouts */
aside[role="note"] {
    margin: var(--space-xl) 0;
    padding: var(--space-lg);
    background: rgba(45, 138, 72, 0.1); /* Adjusted for Dark Mode */
    border: 1px solid rgba(45, 138, 72, 0.3);
    border-radius: var(--border-radius);
    border-left: 4px solid var(--color-primary);
}

aside[role="note"] p {
    color: var(--color-text);
    margin-bottom: 0;
}

/* Warning Box */
aside[role="alert"] {
    margin: var(--space-xl) 0;
    padding: var(--space-lg);
    background: rgba(232, 90, 117, 0.1); /* Adjusted for Dark Mode */
    border: 1px solid rgba(232, 90, 117, 0.3);
    border-radius: var(--border-radius);
    border-left: 4px solid var(--color-accent);
}

aside[role="alert"] p {
    color: var(--color-text);
    margin-bottom: 0;
}

/* Footer */
footer {
    background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 100%);
    min-height: 4rem;
    margin-top: auto;
}

.footer-content {
    max-width: var(--content-width);
    margin: 0 auto;
    padding: var(--space-xl) var(--space-md);
    text-align: center;
}

.footer-content .disclaimer {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.85rem;
    line-height: 1.6;
    margin-bottom: var(--space-md);
}

.footer-content .copyright {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.8rem;
    margin-bottom: 0;
}

/* =========================================
   5. Utility & Accessibility
   ========================================= */

/* Utility Classes */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

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

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

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

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

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

/* =========================================
   6. Media Queries (Print, Motion, Responsive)
   ========================================= */

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

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

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

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

    .hero-image, .article-image {
        max-width: 100%;
        box-shadow: none;
    }
}

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

/* Responsive Table */
@media (max-width: 640px) {
    table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }

    th, td {
        padding: var(--space-sm) var(--space-md);
    }
}

/* ==========================================================================
   HIDE MOBILE ELEMENTS ON DESKTOP
   ========================================================================== */

@media (min-width: 992px) {
    /* Hide the mobile menu container */
    .mobile-menu {
        display: none !important;
    }

    /* Hide the dark overlay */
    .mobile-menu-overlay {
        display: none !important;
    }

    /* Hide the burger button wrapper */
    .mobile-controls {
        display: none !important;
    }
}

body.home .menu-item-home,
body.home li.current-menu-item.menu-item-home {
  display: none !important;
}

/* ==========================================================================
   MOBILE VIEW: Hide Desktop Menu & Show Burger
   ========================================================================== */

@media (max-width: 991px) {
    /* 1. Hide the horizontal desktop menu */
    .site-nav--desktop {
        display: none !important;
    }

    /* 2. Make sure the burger button is visible */
    .mobile-controls {
        display: block !important;
    }
    
    /* 3. Make sure the burger itself is visible */
    .burger {
        display: block !important;
    }
}

/* =========================================
   3. FORCE CENTERED NAVIGATION (FIXED)
   ========================================= */

/* 1. Header Container - Force Flex Center */
header, 
header.site-header {
    background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 100%) !important;
    min-height: 4.5rem !important;
    display: flex !important;
    justify-content: center !important; 
    align-items: center !important;     
    position: sticky !important;
    top: 0 !important;
    z-index: 1000 !important;
    padding: 0 var(--space-md) !important;
    width: 100% !important;
}

/* 2. Navigation Wrapper - Force Full Width & Center */
nav, 
.site-nav, 
.main-navigation,
.site-nav--desktop {
    width: 100% !important;
    max-width: var(--max-width) !important;
    margin: 0 auto !important;
    display: flex !important;
    justify-content: center !important; 
    align-items: center !important;
    float: none !important;
}

/* 3. The List (ul) - Flex Row & Center */
nav ul, 
.site-nav ul,
.main-navigation ul {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important; 
    align-items: center !important;
    gap: var(--space-lg) !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
    width: auto !important; 
}

/* 4. List Items (li) */
nav li, 
.site-nav li {
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
    display: block !important;
}

/* 5. Links (a) Styling */
nav a, 
.site-nav a {
    position: relative !important;
    display: inline-block !important;
    font-family: var(--font-sans) !important;
    font-weight: 700 !important;
    font-size: 0.95rem !important;
    color: rgba(255, 255, 255, 0.9) !important;
    text-decoration: none !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    padding: 10px 5px !important;
    transition: all 0.2s ease !important;
}

/* Hover Effects */
nav a:hover,
nav a:focus {
    color: #ffffff !important;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5) !important;
    opacity: 1 !important;
}

/* Underline Animation */
nav a::after {
    content: '' !important;
    position: absolute !important;
    bottom: 5px !important;
    left: 0 !important;
    width: 100% !important;
    height: 3px !important;
    background-color: var(--color-accent) !important;
    transform: scaleX(0) !important;
    transform-origin: center !important;
    transition: transform 0.25s ease !important;
    border-radius: 2px !important;
}

nav a:hover::after,
nav li.current-menu-item a::after {
    transform: scaleX(1) !important;
}

/* Active State */
nav li.current-menu-item a {
    color: #ffffff !important;
}

nav li.current-menu-item a::after {
    background-color: var(--color-warning) !important;
    transform: scaleX(1) !important;
}

/* =========================================
   MOBILE MENU FIX & BURGER
   ========================================= */

/* -----------------------------------------
   1. SHOW/HIDE LOGIC (Desktop vs Mobile)
   ----------------------------------------- */

/* On Desktop (Screens larger than 991px): Hide mobile stuff */
@media (min-width: 992px) {
    #mobile-menu,
    .mobile-controls,
    .burger {
        display: none !important;
    }
}

/* On Mobile (Screens smaller than 991px): Switch modes */
@media (max-width: 991px) {
    
    /* HIDE the desktop links inside the header */
    header .site-nav, 
    header nav ul,
    .site-header .main-navigation {
        display: none !important; 
    }

    /* SHOW the mobile controls (burger wrapper) */
    .mobile-controls {
        display: block !important;
        position: absolute;
        top: 50%;
        right: 20px;
        transform: translateY(-50%);
        z-index: 2000;
    }
    
    /* Ensure header keeps its size */
    header.site-header {
        justify-content: space-between !important; /* Logo left, burger right */
        padding: 0 20px !important;
    }
}

/* -----------------------------------------
   2. BURGER BUTTON STYLE
   ----------------------------------------- */
.burger {
    display: block !important;
    width: 32px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    position: relative;
    padding: 0;
    z-index: 2001;
    box-shadow: none !important; /* Remove any default button shadow */
}

/* Create the 3 lines using pseudo-elements */
.burger span, 
.burger::before, 
.burger::after {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: #ffffff; /* White lines */
    border-radius: 2px;
    transition: all 0.3s ease;
}

.burger::before { top: 0; }
.burger span { top: 50%; transform: translateY(-50%); } /* Middle line */
.burger::after { bottom: 0; }

/* Active State (X shape) - assuming theme adds 'is-active' or 'open' class */
.burger.is-active::before,
.burger.open::before {
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
}

.burger.is-active span,
.burger.open span {
    opacity: 0; /* Hide middle line */
}

.burger.is-active::after,
.burger.open::after {
    bottom: 50%;
    transform: translateY(50%) rotate(-45deg);
}

/* -----------------------------------------
   3. MOBILE DRAWER (The Side Menu)
   ----------------------------------------- */
#mobile-menu {
    display: block !important;
    position: fixed;
    top: 0;
    right: 0; /* Slide from Right */
    width: 85%;
    max-width: 350px;
    height: 100vh;
    background-color: var(--color-bg, #1a1a1a); /* Dark background */
    padding: 80px 30px 40px; /* Top padding to avoid overlap with close button */
    box-shadow: -5px 0 20px rgba(0,0,0,0.5);
    z-index: 1999;
    
    /* Animation: Hidden by default */
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
    visibility: hidden;
    overflow-y: auto;
}

/* Class to open the menu (WordPress standard) */
#mobile-menu.is-open,
#mobile-menu.open,
#mobile-menu.active {
    transform: translateX(0);
    visibility: visible;
}

/* -----------------------------------------
   4. LINKS INSIDE MOBILE MENU
   ----------------------------------------- */
#mobile-menu ul {
    display: flex !important;
    flex-direction: column !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

#mobile-menu li {
    display: block !important;
    width: 100%;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    margin: 0 !important;
}

#mobile-menu a {
    display: block !important;
    font-family: var(--font-sans);
    font-size: 1.1rem !important;
    font-weight: 600;
    color: #e0e0e0 !important;
    padding: 15px 0 !important;
    text-transform: uppercase;
    text-decoration: none;
    text-align: left !important;
}

#mobile-menu a:hover {
    color: var(--color-primary, #3da55d) !important;
    padding-left: 10px !important; /* Slide effect on hover */
}

/* Highlight Active Page in Mobile Menu */
#mobile-menu li.current-menu-item a {
    color: var(--color-primary, #3da55d) !important;
    border-left: 3px solid var(--color-primary, #3da55d);
    padding-left: 15px !important;
}

/* Overlay (Dark background when menu is open) */
.mobile-menu-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.7);
    z-index: 1900;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s;
    pointer-events: none;
}

body.mobile-menu-open .mobile-menu-overlay,
.mobile-menu-overlay.is-active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}
/* =========================================
   HIDE DEFAULT CLOSE BUTTON
   ========================================= */
.mobile-menu__close {
    display: none !important;
}

/* =========================================
   FIX: REMOVE GREEN UNDERLINE IN MOBILE
   ========================================= */
#mobile-menu a::after,
#mobile-menu li.current-menu-item a::after {
    display: none !important;
    content: none !important;
    width: 0 !important;
    background: transparent !important;
}

/* =========================================
   FIX: RESTORE SITE HEADER vs CLEAN ARTICLE HEADER
   ========================================= */

header.site-header {
    position: sticky !important;
    top: 0 !important;
    z-index: 1000 !important;
    background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 100%) !important;
    min-height: 60px !important;
    padding: 0 20px !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
}

article header, 
.entry-header, 
.cl-header, 
.page-header {
    position: static !important; 
    background: transparent !important; 
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 20px 0 !important; 
    margin: 0 !important;
    min-height: auto !important;
    width: 100% !important;
}

article h1,
.cl-header h1,
.entry-title {
    color: #ffffff !important;
    margin-top: 0 !important;
}

/* =========================================
   FORCE CENTER DESKTOP MENU (FINAL)
   ========================================= */
@media (min-width: 992px) {
    
    header.site-header {
        display: flex !important;
        justify-content: center !important; 
        align-items: center !important;
    }

    .site-branding,
    .site-logo,
    .custom-logo-link {
        display: none !important; 
    }

    .site-nav,
    .site-nav--desktop, 
    .main-navigation {
        width: 100% !important;
        max-width: 100% !important;
        display: flex !important;
        justify-content: center !important; 
        margin: 0 !important;
        float: none !important;
    }

    .site-nav ul,
    .main-navigation ul {
        display: flex !important;
        justify-content: center !important; 
        align-items: center !important;
        width: auto !important; 
        margin: 0 auto !important;
        float: none !important;
    }
    
    .site-nav li,
    .main-navigation li {
        float: none !important;
        display: inline-block !important;
    }
}

/* =========================================
   PAGE 404 STYLES (FOOTBALL THEME)
   ========================================= */

.error-404-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 60vh; 
    text-align: center;
    padding: 40px 20px;
    background: radial-gradient(circle at center, rgba(61, 165, 93, 0.1) 0%, transparent 70%); 
}

.error-number {
    font-size: clamp(6rem, 15vw, 10rem); 
    font-weight: 900;
    line-height: 1;
    color: transparent;
    -webkit-text-stroke: 3px var(--color-primary); 
    opacity: 0.5;
    margin-bottom: -20px; 
    user-select: none;
    position: relative;
    z-index: 0;
}

.error-title {
    font-size: clamp(2rem, 5vw, 3.5rem) !important;
    color: #ffffff !important;
    text-transform: uppercase;
    margin-bottom: 20px !important;
    position: relative;
    z-index: 1;
    text-shadow: 0 4px 10px rgba(0,0,0,0.5);
}

.error-text p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    max-width: 500px;
    margin: 0 auto 10px;
    line-height: 1.6;
}

.btn-404 {
    display: inline-block;
    margin-top: 30px;
    padding: 15px 40px;
    background-color: var(--color-primary); 
    color: #ffffff !important;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none !important;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(61, 165, 93, 0.4);
}

.btn-404:hover {
    background-color: var(--color-accent); 
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.4);
    color: white !important;
}

@keyframes float404 {
    0% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0); }
}

.error-number {
    animation: float404 4s ease-in-out infinite;
}

/* Footer Container Styles */
.site-footer {
    background-color: #1a1a1a; /* Dark background like reference */
    color: #cccccc;
    padding: 60px 20px 30px;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    border-top: 4px solid #d4af37; /* Optional: Gold top border */
}

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

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

/* Headings (Golden/Yellow style) */
.footer-heading {
    color: #ffcc00; /* Gold color from reference */
    font-size: 20px;
    margin-bottom: 20px;
    font-weight: 700;
    font-family: Georgia, 'Times New Roman', serif; /* Serif font for headings */
}

/* Warning Heading specifically */
.warning-heading {
    color: #ffcc00;
}

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

.footer-list li {
    margin-bottom: 12px;
    font-size: 15px;
    line-height: 1.5;
    display: flex;
    align-items: flex-start;
}

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

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

/* Red Bullet Points */
.bullet-red {
    color: #e74c3c; /* Red bullet color */
    margin-right: 8px;
    font-weight: bold;
}

/* Bottom Copyright Section */
.footer-divider {
    height: 1px;
    background-color: #333;
    margin-bottom: 25px;
    width: 100%;
}

.copyright-text {
    text-align: center;
    font-size: 13px;
    color: rgb(255, 255, 255);
    line-height: 1.6;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .footer-widgets {
        grid-template-columns: 1fr; /* Stack columns on mobile */
        gap: 40px;
    }
    
    .footer-col {
        text-align: left; /* Keep left align or change to center */
    }
}


.content-body img {max-width: 100%;}


.articles-page {padding-top: 30px !important;}

/* Guide style */
.guides-list {margin: 40px 0;}
.guide-item {display: flex; gap: 30px; padding: 30px 0; border-bottom: 1px solid #eaeaea; margin: 0 0 30px;}
.guide-item:last-child {border-bottom: none;}
/* Thumbnail styles */
.guide-thumbnail {flex: 0 0 200px;}
.guide-thumbnail a {display: block; text-decoration: none;}
.guide-thumbnail img {width: 100%; height: auto; border-radius: 8px; box-shadow: 0 2px 8px rgba(0,0,0,0.1); transition: transform 0.3s ease;}
.guide-thumbnail a:hover img {transform: scale(1.03);}
/* Content styles */
.guide-content {flex: 1; min-width: 0;}
.guide-header {display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 15px; gap: 20px;}
.guide-title {margin: 0; font-size: 1.5em; line-height: 1.3;}
.guide-title a {text-decoration: none; color: #ffffff; transition: color 0.2s ease; font-size: 20px;}
.guide-title a:hover {color: var(--color-primary);}
.guide-meta {flex-shrink: 0; font-size: 0.9em; color: #666; white-space: nowrap;}
.guide-excerpt {color: #ffffff; line-height: 1.7; font-size: 1em; font-size: 16px;}
/* Pagination style */
.guides-pagination {margin: 60px 0 40px; text-align: center;}
.guides-pagination .page-numbers {display: inline-block; padding: 10px 18px; margin: 0 4px; border: 1px solid #ddd; border-radius: 6px; text-decoration: none; color: #333; transition: all 0.2s ease; font-size: 0.95em;}
.guides-pagination .page-numbers.current {background-color: #0073aa; color: white; border-color: #0073aa;}
.guides-pagination .page-numbers:hover:not(.current) {background-color: #f8f8f8; border-color: #0073aa; color: #0073aa;}
@media (max-width: 768px) {
    .guide-item {flex-direction: column; gap: 20px;}
    .guide-thumbnail {flex: 0 0 auto; max-width: 100%;}
    .guide-thumbnail img {max-width: 100%; border-radius: 6px;}
    .guide-header {flex-direction: column; gap: 10px;}
    .guide-meta {white-space: normal;}
    .guides-pagination .page-numbers {padding: 8px 14px; margin: 0 2px;}
}
@media (max-width: 480px) {
    .guide-item {padding: 25px 0;}
    .guide-title {font-size: 1.3em;}
}

#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);
}