/* ==========================================================================
   1. VARIABLES & CONFIGURATION
   ========================================================================== */
:root {
    /* --- Europa League Palette (Dark Mode Default) --- */
    --color-primary: #ff6b00;       /* Energy Orange */
    --color-primary-dark: #e55a00;
    --color-primary-light: #ff8533;
    --color-accent: #f5a623;
    --color-success: #2ecc71;

    /* --- Backgrounds (Dark) --- */
    --color-bg: #0d0d14;            /* Deepest Dark */
    --color-bg-alt: #151520;        /* Slightly lighter for sections */
    --color-bg-card: #1a1a28;       /* Card background */
    --color-surface: #1a1a28;

    /* --- Typography Colors --- */
    --color-text: #e8eaed;          /* Main white text */
    --color-text-secondary: #e8eaed; /* Headings */
    --color-text-muted: #a0a8b4;    /* Meta text */
    --color-text-light: #6b7280;    /* Footer text */
    --color-text-inverse: #0d0d14;  /* Text on orange buttons */

    /* --- Borders --- */
    --color-border: #2a2a3c;
    --color-border-light: #1f1f2e;

    /* --- Shadows (Optimized for Dark Mode) --- */
    --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-glow: 0 0 30px rgba(255, 107, 0, 0.2); /* Orange glow */

    /* --- Fonts --- */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-serif: 'Georgia', 'Times New Roman', serif;
    --font-mono: 'Monaco', 'Consolas', monospace;

    /* --- Spacing System --- */
    --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: 720px;
    --content-wide: 1080px;
    --header-height: 64px;

    /* --- UI Properties --- */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;

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

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-color: var(--color-bg);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* --- Accessibility --- */
.skip-link {
    position: absolute;
    top: -100%;
    left: var(--space-md);
    padding: var(--space-sm) var(--space-md);
    background: var(--color-primary);
    color: var(--color-text-inverse);
    border-radius: var(--radius-md);
    font-weight: 600;
    z-index: 1000;
    transition: top var(--transition-fast);
}

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

:focus-visible {
    outline: 3px solid var(--color-primary);
    outline-offset: 2px;
}

a:focus:not(:focus-visible) {
    outline: none;
}

/* Utility: Visually Hidden */
.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;
}

/* ==========================================================================
   3. LAYOUT (Header, Main, Footer)
   ========================================================================== */

/* Header */
header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(13, 13, 20, 0.9); /* Dark semi-transparent */
    border-bottom: 1px solid var(--color-border);
    padding: 10px 15px;
    backdrop-filter: blur(10px);
}

/* Main Content */
main {
    flex: 1;
    width: 100%;
    max-width: var(--content-wide);
    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;
}

/* Footer */
footer {
    margin-top: auto;
    background: var(--color-bg-alt);
    color: var(--color-text-light);
    border-top: 3px solid var(--color-primary);
    padding: var(--space-xl);
}

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

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

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

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-primary-light);
}

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

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

/* Links */
a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color var(--transition-fast), opacity var(--transition-fast);
    font-weight: 500;
}

a:hover {
    color: var(--color-primary-dark);
    text-decoration: underline;
    text-underline-offset: 3px;
}

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

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

/* Code Blocks */
code {
    font-family: var(--font-mono);
    font-size: 0.875em;
    padding: 0.2em 0.4em;
    background: var(--color-bg-alt);
    border-radius: var(--radius-sm);
    color: var(--color-primary);
}

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

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

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

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

blockquote p {
    margin-bottom: 0;
}

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

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

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

ul li::marker {
    content: '\25CF  ';
    font-size: 0.75em;
}

ol {
    counter-reset: list-counter;
}

ol li {
    counter-increment: list-counter;
}

ol li::marker {
    content: counter(list-counter) '.';
    font-weight: 700;
}

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

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

/* ==========================================================================
   5. IMAGES & FIGURES (Clean Look - No Shadows)
   ========================================================================== */
figure {
    margin: var(--space-2xl) 0;
    text-align: center;
    width: 100%;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    margin-left: auto;
    margin-right: auto;
    border-radius: var(--radius-lg);
}

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

/* Specific Image Classes */

.hero-image {
    width: 100%;
    margin-bottom: var(--space-2xl);
    border-radius: var(--radius-xl);
    background: transparent; 
    box-shadow: none !important; 
}

.hero-image img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    box-shadow: none !important; 
}

.article-image {
    width: 100%;
    margin: 2.5rem 0;
    text-align: center;
    border-radius: var(--radius-lg);
    background: transparent; 
    box-shadow: none !important; 
    transition: transform var(--transition-base);
}

.article-image:hover {
    transform: translateY(-2px);
    box-shadow: none !important; 
}

/* Dark mode overrides cleanup */
@media (prefers-color-scheme: dark) {
    .hero-image img,
    .article-image img {
        box-shadow: none !important;
        background: transparent !important;
    }
}

/* ==========================================================================
   6. 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;
    background: var(--color-bg-card); /* Ensure tables have card background */
}

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

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

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

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

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

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

/* ==========================================================================
   7. COMPONENTS (TOC, FAQ, ALERTS)
   ========================================================================== */

/* Table of Contents */
nav[aria-label="Indice"] {
    margin: var(--space-2xl) 0;
    padding: var(--space-xl);
    background: var(--color-bg-alt);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
}

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

nav[aria-label="Indice"] li {
    counter-increment: toc-counter;
    padding: var(--space-sm) 0;
    border-bottom: 1px solid var(--color-border-light);
}

nav[aria-label="Indice"] li:last-child {
    border-bottom: none;
}

nav[aria-label="Indice"] a {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-sm);
    border-radius: var(--radius-sm);
    transition: background var(--transition-fast), transform var(--transition-fast);
}

nav[aria-label="Indice"] a::before {
    content: counter(toc-counter);
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 28px;
    background: var(--color-primary);
    color: white;
    border-radius: 50%;
    font-size: 0.8rem;
    font-weight: 700;
}

nav[aria-label="Indice"] a:hover {
    background: var(--color-bg-card);
    text-decoration: none;
    transform: translateX(4px);
}

/* FAQ / Details */
section[aria-label="FAQ"] {
    margin-top: var(--space-3xl);
}

details {
    margin-bottom: var(--space-md);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: box-shadow var(--transition-base);
    background: var(--color-bg-card);
}

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

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

summary {
    padding: var(--space-lg);
    background: var(--color-bg-alt);
    cursor: pointer;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: var(--space-md);
    transition: background var(--transition-fast);
    list-style: none;
    color: var(--color-text);
}

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

summary::before {
    content: '+';
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: var(--color-primary);
    color: white;
    border-radius: 50%;
    font-size: 1.2rem;
    font-weight: 700;
    transition: transform var(--transition-base);
}

details[open] summary::before {
    content: '-';
    transform: rotate(180deg);
}

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

details > div {
    padding: var(--space-lg);
}

/* Alert / Note Boxes */
aside[role="note"] {
    margin: var(--space-2xl) 0;
    padding: var(--space-lg);
    background: linear-gradient(135deg, rgba(255, 107, 0, 0.08) 0%, rgba(255, 107, 0, 0.03) 100%);
    border: 1px solid rgba(255, 107, 0, 0.2);
    border-radius: var(--radius-lg);
    border-left: 4px solid var(--color-primary);
}

aside[role="note"] p:last-child {
    margin-bottom: 0;
}

aside[role="alert"] {
    margin: var(--space-2xl) 0;
    padding: var(--space-lg);
    background: linear-gradient(135deg, rgba(46, 204, 113, 0.08) 0%, rgba(46, 204, 113, 0.03) 100%);
    border: 1px solid rgba(46, 204, 113, 0.2);
    border-radius: var(--radius-lg);
    border-left: 4px solid var(--color-success);
}

/* ==========================================================================
   8. PRINT & UTILITIES
   ========================================================================== */
@media print {
    body {
        font-size: 12pt;
        color: black;
        background: white;
    }
    header, footer, nav, aside {
        display: none;
    }
    main {
        max-width: 100%;
        padding: 0;
    }
    a {
        color: black;
        text-decoration: underline;
    }
    h1, h2, h3 {
        page-break-after: avoid;
        color: black;
    }
    img {
        max-width: 100%;
    }
}

@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;
    }
}

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

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

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

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

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

/* ==========================================================================
   DESKTOP MENU - "EUROPA ENERGY" (Glass & Glow)
   ========================================================================== */

/* 1. Container Positioning */
.site-nav--desktop {
    width: 100%;
    display: flex;
    justify-content: center; 
    align-items: center;
    padding: 0 1rem;
    height: 100%; 
}

/* 2. Reset List Styles */
ul.menu-desktop {
    display: flex !important;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem; 
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

ul.menu-desktop li {
    margin: 0 !important;
    padding: 0 !important;
    display: flex;
    align-items: center;
}

/* 3. Link Styles - The "Capsule" Look */
ul.menu-desktop a {
    position: relative;
    display: block;
    text-decoration: none;
    
    /* Typography */
    font-family: var(--font-sans, sans-serif);
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-text-muted); 
    
    /* Shape & Spacing */
    padding: 0.6rem 1.2rem;
    border-radius: 50px; 
    border: 1px solid transparent; 
    
    /* Transition */
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
    overflow: hidden; 
}

/* 4. Hover Effect - "Orange Glass" */
ul.menu-desktop a:hover {
    color: #ffffff; 
    background-color: rgba(255, 107, 0, 0.15); 
    border-color: rgba(255, 107, 0, 0.3); 
    box-shadow: 0 0 15px rgba(255, 107, 0, 0.2); 
    transform: translateY(-1px); 
}

/* 5. Active Item (Current Page) */
ul.menu-desktop .current-menu-item > a {
    background-color: var(--color-primary); 
    color: #000000; 
    box-shadow: 0 4px 15px rgba(255, 107, 0, 0.4);
    font-weight: 800;
}

/* 6. Subtle "Energy Line" Animation inside */
ul.menu-desktop a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg, 
        transparent, 
        rgba(255, 255, 255, 0.1), 
        transparent
    );
    transition: left 0.5s;
    z-index: -1;
}

ul.menu-desktop a:hover::before {
    left: 100%; 
}

/* Mobile Hiding */
@media (max-width: 991px) {
    .site-nav--desktop {
        display: none !important;
    }
}

/* ==========================================================================
   MOBILE MENU - "EUROPA HUD" (Floating Center Stack)
   ========================================================================== */

/* 1. Backdrop (Blurry Dark) */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85); /* Deep dark overlay */
    backdrop-filter: blur(10px); /* Strong blur */
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

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

/* 2. The Menu Container (Centered Floating Card) */
.mobile-menu {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -40%) scale(0.9); /* Start slightly smaller and higher */
    width: 85%; /* Not full width */
    max-width: 350px;
    height: auto;
    max-height: 80vh;
    
    /* Transparent container - buttons float */
    background: transparent;
    
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1); /* Bouncy pop effect */
    
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Open State Animation */
.mobile-menu.is-open {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1); /* Center exactly */
    display: flex !important;
}

/* 3. Hide standard close button (click outside to close) */
.mobile-menu__header {
    display: none;
}

/* 4. Links List */
ul.menu-mobile {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem; /* Big space between items */
    width: 100%;
}

/* 5. Link Items - Floating Text */
ul.menu-mobile a {
    display: block;
    font-family: var(--font-sans, sans-serif);
    font-size: 1.5rem; /* Large font */
    font-weight: 700;
    color: #ffffff;
    text-decoration: none;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    transition: all 0.3s ease;
}

/* Orange Underline Effect on Hover/Active */
ul.menu-mobile a::after {
    content: '';
    display: block;
    width: 0;
    height: 3px;
    background: var(--color-primary); /* Orange */
    margin: 5px auto 0;
    transition: width 0.3s ease;
    border-radius: 2px;
}

/* Hover / Active States */
ul.menu-mobile a:hover,
ul.menu-mobile .current-menu-item > a {
    color: var(--color-primary);
    text-shadow: 0 0 20px rgba(255, 107, 0, 0.5); /* Glow */
    transform: scale(1.1); /* Slight grow */
}

ul.menu-mobile a:hover::after,
ul.menu-mobile .current-menu-item > a::after {
    width: 40px; /* Show the line */
}

/* ==========================================================================
   MOBILE CONTROLS - (Clean Burger)
   ========================================================================== */
@media (max-width: 991px) {
    .site-nav--desktop { display: none !important; }
    
    .mobile-controls {
        display: flex !important;
        align-items: center;
        z-index: 10000;
    }

    /* Burger Button */
    .burger {
        display: flex !important;
        flex-direction: column;
        justify-content: space-between;
        width: 32px;
        height: 20px;
        background: transparent !important;
        border: none !important;
        padding: 0 !important;
        cursor: pointer;
        margin-left: auto;
    }

    /* Lines */
    .burger span {
        display: block;
        width: 100%;
        height: 2px;
        background-color: #fff;
        border-radius: 4px;
        transition: 0.3s;
    }

    .burger:hover span {
        background-color: var(--color-primary);
        box-shadow: 0 0 10px rgba(255, 107, 0, 0.5);
    }
}

@media (min-width: 992px) {
    .mobile-menu, .mobile-menu-overlay, .mobile-controls {
        display: none !important;
    }
}

.mobile-menu__close {
    display: none !important;
}

@media (max-width: 991px) {
    .burger {
        display: block !important; 
        width: 50px !important;
        height: 50px !important;
        background: transparent !important;
        border: none !important;
        padding: 12px 10px !important; 
        box-sizing: border-box !important;
    }

    .burger span {
        display: block !important;     
        width: 28px !important;        
        height: 2px !important;        
        background-color: #ffffff !important;
        border-radius: 2px !important;
        
        margin-bottom: 7px !important; 
        
        margin-top: 0 !important;
        margin-left: auto !important; 
        margin-right: auto !important;
        position: static !important;   
        transform: none !important;
    }

    .burger span:last-child {
        margin-bottom: 0 !important;
    }
    
    .burger:hover span {
        background-color: var(--color-primary);
    }
}

.site-branding {
    display: flex;
    align-items: center;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 12px; 
    text-decoration: none !important;
    border: none !important;
}

.logo-icon {
    width: 42px;
    height: 42px;
    transition: transform 0.3s ease;
    filter: drop-shadow(0 0 10px rgba(255, 107, 0, 0.3)); 
}

.logo-link:hover .logo-icon {
    transform: scale(1.1) rotate(5deg); 
    filter: drop-shadow(0 0 20px rgba(255, 107, 0, 0.6));
}

.logo-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1;
}

.logo-main {
    font-family: var(--font-sans, sans-serif);
    font-size: 1.4rem;
    font-weight: 800; 
    color: #ffffff;
    letter-spacing: -0.5px;
    text-transform: uppercase;
}

.logo-sub {
    font-family: var(--font-sans, sans-serif);
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--color-primary); 
    letter-spacing: 3px; 
    text-transform: uppercase;
    margin-top: 2px;
}

@media (max-width: 480px) {
    .logo-icon {
        width: 36px;
        height: 36px;
    }
    
    .logo-main {
        font-size: 1.2rem;
    }
    
    .logo-sub {
        font-size: 0.55rem;
        letter-spacing: 2px;
    }
}

/* ==========================================================================
   FOOTER STYLES - "OFFICIAL LEAGUE"
   ========================================================================== */

.site-footer {
    background-color: #050508;      
    border-top: 2px solid var(--color-primary); 
    padding: 3rem 1rem;
    margin-top: auto;
    text-align: center;
    font-family: var(--font-sans, sans-serif);
}

.footer-content-wrapper {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.footer-logo-text {
    font-size: 1.2rem;
    font-weight: 800;
    color: #fff;
    opacity: 0.3; 
    letter-spacing: 1px;
    text-transform: uppercase;
}

.footer-logo-text .highlight {
    color: var(--color-primary);
}

.footer-navigation {
    width: 100%;
}

.footer-menu-list {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem 2.5rem; 
}

.footer-menu-list li {
    margin: 0 !important;
}

.footer-menu-list a {
    color: #a0a0a0 !important; 
    text-decoration: none !important;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.2s ease;
    border-bottom: 2px solid transparent; 
    padding-bottom: 2px;
}

.footer-menu-list a:hover {
    color: #ffffff !important;
    border-bottom-color: var(--color-primary); 
}

.footer-disclaimer {
    max-width: 700px;
    color: #555; 
    font-size: 0.75rem;
    line-height: 1.6;
    border-top: 1px solid #1a1a1a;
    padding-top: 2rem;
    margin-top: 1rem;
}

.disclaimer-title {
    color: #777;
    font-weight: 700;
    margin-bottom: 0.5rem;
    font-size: 0.7rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.copyright-text {
    margin-top: 1rem;
    opacity: 0.5;
}

@media (max-width: 600px) {
    .footer-menu-list {
        flex-direction: column;
        gap: 1rem;
    }
    
    .site-footer {
        padding: 2rem 1rem;
    }
}

.footer-logo-text {
    opacity: 1 !important;           
    color: #ffffff !important;       
    font-weight: 900 !important;     
    text-shadow: 0 2px 4px rgba(0,0,0,0.8); 
}

.footer-logo-text .highlight {
    color: #ff6b00 !important;       
    text-shadow: 0 0 20px rgba(255, 107, 0, 0.4); 
}

.site-footer ul,
.site-footer li,
.footer-menu-list,
.footer-menu-list li {
    list-style: none !important;
    list-style-type: none !important;
    padding-left: 0 !important;
    margin-left: 0 !important;
}

.site-footer li::marker,
.footer-menu-list li::marker {
    content: none !important;
    display: none !important;
    color: transparent !important;
}

/* ==========================================================================
   404 PAGE DESIGN - "VAR OFFSIDE"
   ========================================================================== */

.error-404-container {
    min-height: 60vh; 
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 4rem 1rem;
    background: #0d0d14; 
}

.error-code {
    font-size: clamp(6rem, 15vw, 12rem); 
    font-weight: 900;
    line-height: 1;
    margin: 0 !important;
    
    color: transparent;
    -webkit-text-stroke: 2px var(--color-primary); 
    opacity: 0.5;
}

.error-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: #ffffff;
    text-transform: uppercase;
    margin-top: -20px !important; 
    margin-bottom: 1.5rem !important;
    z-index: 2;
    text-shadow: 0 10px 20px #0d0d14; 
}

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

.btn-home {
    display: inline-block;
    padding: 1rem 2.5rem;
    background-color: var(--color-primary);
    color: #000000;
    font-weight: 700;
    text-decoration: none;
    border-radius: 50px; 
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 107, 0, 0.3);
}

.btn-home:hover {
    background-color: #ffffff;
    color: #000000;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.2);
}

/* --- Europa Footer Styles --- */

.site-footer {
    background-color: #0a0a0a; /* Almost black */
    color: #cccccc;
    padding: 60px 20px 30px;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    border-top: 4px solid #ff6600; /* Orange Top Border */
}

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

/* 4 Column Grid */
.footer-widgets {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 50px;
}

/* Headings (Orange) */
.footer-heading {
    color: #ff6600; /* Orange Brand Color */
    font-size: 18px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 25px;
    font-weight: 800;
}

/* List Items */
.footer-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* Fix for WP Menu Output */
.footer-list li {
    list-style: none;
    margin-bottom: 12px;
    font-size: 14px;
    line-height: 1.5;
    display: flex;
    align-items: center;
}

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

.footer-list a:hover {
    color: #ff6600; /* Orange hover */
    text-decoration: none;
    padding-left: 5px;
}

/* Orange Bullets */
.bullet-orange {
    color: #ff6600;
    margin-right: 10px;
    font-size: 14px;
    font-weight: bold;
}

/* Divider */
.footer-divider {
    height: 1px;
    background: #333;
    margin-bottom: 30px;
}

/* Bottom Area */
.footer-bottom {
    text-align: center;
}

.footer-logo-text {
    font-weight: 900;
    color: #fff;
    font-size: 18px;
    display: block;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.footer-logo-text .highlight {
    color: #ff6600;
}

.site-info p {
    font-size: 13px;
    color: #666;
    margin: 0;
}

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

@media (max-width: 600px) {
    .footer-widgets {
        grid-template-columns: 1fr; /* 1 col on mobile */
        text-align: left;
    }
}

/* Fix Footer Alignment */
.footer-widgets .footer-col {
    text-align: left !important; /* Force all text in columns to left */
    align-items: flex-start !important;
}

.footer-widgets .footer-heading {
    text-align: left !important; /* Force headings to left */
    width: 100%;
    display: block;
    margin-left: 0 !important;
    padding-left: 0 !important;
}

/* Optional: adjust list padding if bullets are too far left */
.footer-list {
    padding-left: 0 !important;
    margin-left: 0 !important;
}


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