/* Theme Name: FF Kolbnitz Ultimate - Full Vision */
:root {
    --primary-red: #e63946;
    --dark-red: #9b2226;
    --bg-dark: #0a0e12;
    --bg-card: rgba(20, 24, 28, 0.85);
    --bg-input: rgba(255, 255, 255, 0.05);
    --text-main: #f1faee;
    --text-muted: #a8dadc;
    --glass-border: rgba(255, 255, 255, 0.12);
    --glass-highlight: rgba(255, 255, 255, 0.08);
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 20px rgba(230, 57, 70, 0.3);
    --font-heading: 'Oswald', sans-serif;
    --font-heading-alt: 'Inter', sans-serif;
    --font-body: 'Inter', sans-serif;
    --transition-fast: 0.2s ease;
    --transition-smooth: 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    --scrollbar-bg: #0a0e12;
    --radius-lg: 24px;
    --radius-md: 16px;
    --radius-sm: 8px;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    scrollbar-color: var(--primary-red) var(--scrollbar-bg);
    scrollbar-width: auto;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 16px;
}

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

::-webkit-scrollbar-thumb {
    background: var(--primary-red);
    border-radius: 8px;
    border: 4px solid var(--scrollbar-bg);
}

::-webkit-scrollbar-thumb:hover {
    background: #ff1f32;
}

/* 1. RESET & BASE */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

.text-center {
    text-align: center !important;
}


h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.1;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1px;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-fast);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--primary-red);
    outline-offset: 4px;
}

ul {
    list-style: none;
}

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

.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 40px;
}

@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
}

/* 2. HEADER & NAVIGATION */
/* Base header is transparent */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    background: transparent !important;
    border-bottom: 2px solid transparent !important;
    transition: all 0.3s ease;
}

/* Scrolled / Menu Open header: Solid with Red Border */
.site-header.scrolled,
.site-header.menu-open {
    padding: 15px 0;
    background: #000 !important;
    border-bottom: 4px solid var(--primary-red) !important;
}

/* Subpages (non-home): Always Solid with Red Border */
body:not(.home) .site-header {
    padding: 15px 0;
    background: #000 !important;
    border-bottom: 4px solid var(--primary-red) !important;
}

/* Base header text/icon color is white (homepage top) */
.site-header .site-branding a,
.site-header .main-navigation>ul>li>a,
.site-header .main-navigation>ul>li>a i,
.site-header .theme-toggle-btn,
.site-header .dropdown-toggle {
    color: #fff !important;
}

/* Ensure the hero section overlaps with the transparent header on homepage */
.home .hero {
    padding-top: 0 !important;
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

/* Theme Toggle Button (removed wrapper) */
.theme-toggle-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: none;
    /* Instant hover as requested */
}

.light-mode .theme-toggle-btn {
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.1);
    color: #000;
}

/* White only on home at the top */
.light-mode.home .site-header:not(.scrolled):not(.menu-open) .theme-toggle-btn {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.site-branding a {
    font-family: var(--font-heading);
    font-size: clamp(1.2rem, 4vw, 2rem);
    font-weight: 700;
    letter-spacing: 2px;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
}

.site-branding a::before {
    content: '';
    display: block;
    width: 4px;
    height: 32px;
    background: var(--primary-red);
    border-radius: 2px;
}

.site-branding {
    flex: 0 0 auto;
    order: 1;
}

.main-navigation {
    margin: 0;
    flex: 1;
    display: flex;
    justify-content: center;
    order: 2;
}

.theme-toggle-btn {
    order: 3;
    flex: 0 0 auto;
}

.header-cta-btn {
    order: 4;
    flex: 0 0 auto;
}

/* Header CTA Button Styles */
.header-cta-btn {
    display: inline-block;
    padding: 10px 22px;
    background: var(--primary-red);
    color: #fff;
    font-family: var(--font-heading);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    border-radius: 6px;
    transition: none;
    /* Instant hover as requested */
    white-space: nowrap;
    border: 1px solid transparent;
}



@media (max-width: 1200px) {
    .site-branding {
        order: 1;
        margin-right: auto;
    }

    .theme-toggle-btn {
        order: 2;
        margin-left: 0;
        margin-right: 15px;
    }

    .main-navigation {
        order: 4;
        /* Absolute anyway */
    }

    .header-cta-btn {
        display: inline-block;
        padding: 8px 14px;
        font-size: 0.85rem;
        order: 3;
        margin-right: 5px;
    }

    .menu-icon {
        order: 4;
    }
}

@media (max-width: 1200px) {
    .header-cta-btn {
        padding: 8px 16px;
        font-size: 0.85rem;
        border-radius: 4px;
    }
}

@media (max-width: 480px) {

    /* Hide on very small screens if text is too long, or change text */
    .header-cta-btn {
        padding: 6px 12px;
    }
}

/* Desktop Nav - IMPROVED HOVER */
.main-navigation ul {
    display: flex;
    gap: 10px;
}

.main-navigation li {
    position: relative;
}

/* Base Link Style (Mobile & Desktop) */
.main-navigation a {
    font-family: var(--font-heading);
    font-weight: 700;
    text-transform: uppercase;
    position: relative;
    letter-spacing: 0.05em;
    transition: none;
    /* Instant link interaction as requested */
    color: rgba(255, 255, 255, 0.95);
    text-decoration: none;
    display: flex;
    align-items: center;
}

.main-navigation a i {
    margin-right: 15px;
    /* Back to original right margin for left placement */
    font-size: 1.1em;
    color: #fff;
    width: 20px;
    text-align: center;
}

.main-navigation a::after {
    display: none;
}

/* Hide the JS toggle by default (desktop) */
.dropdown-toggle {
    display: none;
}

/* Dropdown Arrows (Shared Indicators - Pure CSS) */
.menu-item-has-children>a::after {
    content: '\f078';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    margin-left: 10px;
    font-size: 0.7em;
    opacity: 0.7;
    transition: transform 0.3s ease;
    display: inline-block;
}

.menu-item-has-children:hover>a::after {
    transform: rotate(180deg);
    color: inherit;
}

@media (max-width: 1200px) {

    /* Hide pure CSS arrows on mobile since we have the JS toggle */
    .menu-item-has-children>a::after {
        display: none !important;
    }

    .dropdown-toggle {
        display: flex;
        position: absolute;
        right: 0;
        top: 0;
        width: 60px;
        height: 75px;
        /* Matches mobile link exactly */
        align-items: center;
        justify-content: center;
        font-size: 1.1rem;
        cursor: pointer;
        z-index: 10;
        transition: transform 0.3s ease;
        color: #fff;
    }

    .open>.dropdown-toggle {
        transform: rotate(180deg);
        color: inherit;
        /* No red highlight */
    }
}

/* DESKTOP SPECIFIC STYLES (min-width: 1201px) */
@media (min-width: 1201px) {
    .main-navigation a {
        font-size: 1rem;
        padding: 8px 12px;
        border-radius: 8px;
        margin: 0 1px;
    }

    .main-navigation>ul>li>a {
        transition: background 0.3s ease;
    }

    .main-navigation>ul>li>a:hover {
        background: rgba(255, 255, 255, 0.08);
    }

    .current-menu-item>a {
        color: #fff;
        background: rgba(255, 255, 255, 0.08);
    }

    .menu-item-has-children>a {
        padding-right: 16px;
    }
}

/* Larger desktops: full padding */
@media (min-width: 1300px) {
    .main-navigation a {
        font-size: 1.15rem;
        padding: 8px 22px;
        margin: 0 4px;
    }

    .menu-item-has-children>a {
        padding-right: 20px;
    }
}

/* Re-use dropdown styles for all desktop widths */
@media (min-width: 1201px) {







    /* Dropdown Logic Desktop */
    .main-navigation ul ul {
        visibility: hidden;
        opacity: 0;
        position: absolute;
        top: 100%;
        left: 0;
        margin-top: 15px;
        background: #000;
        backdrop-filter: blur(20px);
        border: 1px solid rgba(255, 255, 255, 0.1);
        min-width: 260px;
        /* Wider dropdown */
        padding: 8px;
        display: flex;
        flex-direction: column;
        border-radius: 12px;
        transform: translateY(10px);
        transition: var(--transition-smooth);
    }

    .main-navigation ul li:hover>ul {
        visibility: visible;
        opacity: 1;
        transform: translateY(0);
    }

    .main-navigation ul ul a {
        padding: 14px 20px;
        /* Larger dropdown items */
        font-size: 1rem;
        margin: 2px 0;
        display: block;
        text-transform: none;
        width: 100%;
        text-align: left;
    }

    .main-navigation ul ul a:hover {
        background: rgba(255, 255, 255, 0.08);
        /* Minimal white background */
        color: #fff;
        transform: none;
        /* No lift in dropdown */
    }

    /* 3rd Level Submenu Fix - Position to the right */
    .main-navigation ul ul ul {
        top: 0 !important;
        left: 100% !important;
        margin-top: 0 !important;
        margin-left: 2px !important;
    }

    /* Caret for nested submenus on desktop - vertically centered */
    .main-navigation ul ul .menu-item-has-children>a::after {
        content: '\f054';
        /* Angle Right */
        position: absolute;
        right: 15px;
        top: 50%;
        transform: translateY(-50%);
        line-height: 1;
    }

    .main-navigation ul ul .menu-item-has-children:hover>a::after {
        transform: translateY(-50%) translateX(3px);
    }
}

/* 3. HERO SECTION - REFINED */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 100px;
    /* More breathing room */
    overflow: hidden;
}

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 100px;
    /* More breathing room */
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("assets/images/startseite/hero.jpg") center/cover no-repeat;    /* Increased brightness to see people better */
    filter: brightness(0.65) contrast(1.0) hue-rotate(0deg) saturate(1.1);
    z-index: -2;
    transform: scale(1.05);
}

/* Optional Overlay for color control - Reduced opacity */
.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(10, 15, 25, 0.2), rgba(10, 15, 20, 0.6));
    z-index: -1;
}

.hero-content {
    max-width: 1100px;
    position: relative;
    z-index: 2;
    padding: 0 30px;
    text-align: left;
}

.hero h1 {
    font-size: clamp(2.4rem, 7vw, 8rem);
    letter-spacing: -0.01em;
    margin-bottom: 20px;
    text-transform: uppercase;
    line-height: 0.95;
}

.hero p {
    font-size: clamp(1rem, 2.5vw, 1.6rem);
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 40px;
    max-width: 750px;
    line-height: 1.6;
    font-weight: 300;
}

/* NEW CTA BUTTON - SOLID IMPACT */
.hero-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: clamp(14px, 3vw, 20px) clamp(24px, 5vw, 45px);
    background: var(--primary-red);
    color: #fff;
    font-weight: 700;
    font-size: clamp(0.9rem, 2.5vw, 1.15rem);
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    border-radius: 4px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    z-index: 1;
}

.hero-btn:hover {
    background: #ff1f32;
    /* Brighter Red */
    transform: translateY(-2px);
}

.hero-btn:active {
    transform: translateY(-1px);
}

/* Removed ::after shine animation */

/* 4. WELCOME & NEWS SECTION */
.welcome-section {
    padding: 80px 0 40px;
    text-align: center;
}

.welcome-text {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.3rem;
    color: var(--text-muted);
    text-align: center;
}

.news {
    padding: 80px 0 160px;
    position: relative;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3.5rem);
    margin: 0 auto 60px;
    text-align: center;
    position: relative;
    display: block;
    width: fit-content;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--primary-red);
    margin: 20px auto 0;
    border-radius: 2px;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 350px), 1fr));
    gap: 30px;
    max-width: 1300px;
    margin: 0 auto;
}

.news-item {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: var(--radius-md);
    padding: 0;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: var(--transition-smooth);
}

.news-item:hover {
    transform: translateY(-10px);
    border-color: var(--primary-red);
    box-shadow: var(--shadow-soft), var(--shadow-glow);
}

.news-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
    position: relative;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.news-content {
    padding: 30px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;

}

.news-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-red), transparent);
    opacity: 0;
    transition: var(--transition-fast);
}

.news-item:hover::before {
    opacity: 0;
}

.news-item h3 {
    font-size: 1.5rem;
    margin-bottom: 16px;
    color: #fff;
}

.excerpt {
    color: var(--text-muted);
    margin-bottom: 30px;
}

.news-link {
    display: inline-block;
    padding: 10px 20px;
    background: var(--primary-red);
    color: #fff !important;
    font-weight: 600;
    text-transform: none;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    border-radius: 50px;
    transition: var(--transition-fast);
    text-align: center;
    margin-top: auto;
    border: 1px solid transparent;
    width: fit-content;
}

.news-link:hover {
    background: #ff1f32;
}

.light-mode .news-link {
    background: var(--primary-red);
    color: #fff !important;
    border: none;
}

.light-mode .news-link:hover {
    background: #d63031;
}

.btn-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 40px;
    background: transparent;
    color: #fff;
    border: 2px solid var(--primary-red);
    border-radius: 50px;
    font-family: var(--font-heading);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 1rem;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-more:hover {
    background: var(--primary-red);
    color: #fff;
    transform: translateY(-3px);
}

.light-mode .btn-more {
    color: #000;
    border-color: var(--primary-red);
}

.light-mode .btn-more:hover {
    color: #fff;
    background: var(--primary-red);
}

/* 5. STATS SECTION */
.stats {
    padding: clamp(60px, 10vw, 120px) 0;
    background: linear-gradient(180deg, var(--bg-dark), #12161c);
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
}

.stats-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    text-align: center;
}

@media (max-width: 1200px) {
    .stats-list {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }
}

.stats-list li {
    padding: 30px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 20px;
    border: 1px solid transparent;
    transition: var(--transition-smooth);
    cursor: pointer;
}

.stats-list li:hover {
    border-color: var(--glass-border);
    background: rgba(255, 255, 255, 0.04);
}

.stats-list span.counter {
    display: inline-block;
    font-size: 5rem;
    font-weight: 900;
    color: transparent;
    -webkit-text-stroke: 2px var(--primary-red);
    margin: 10px 0;
    line-height: 1;
}

.counter-plus {
    font-size: 3.5rem;
    font-weight: 900;
    color: var(--primary-red);
    vertical-align: super;
    margin-left: -5px;
}

.stats-list strong {
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.stats-list small {
    display: block;
    color: #666;
    font-size: 0.9rem;
    margin-top: 5px;
}

/* 6. MOBILE NAV - REBUILT (To Fix Background Issue) */
.menu-toggle {
    display: none;
}

/* Hamburger icon hidden on desktop by default */
.menu-icon {
    display: none;
}

@media (max-width: 1200px) {

    /* Mobile Link Styles - CLEAN, NO PILL */
    .main-navigation a {
        font-family: var(--font-heading);
        font-size: 2rem;
        /* Big mobile font */
        font-weight: 700;
        text-transform: uppercase;
        color: #fff;
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 10px;
        margin: 0;
        background: transparent !important;
        /* Force remove pill */
        border-radius: 0;
        text-align: center;
        /* Force center alignment */
        width: 100%;
        /* Ensure full width for centering */
    }



    .current-menu-item a {
        background: transparent !important;
    }

    .site-header {
        padding: 10px 0;
    }



    .stats-list {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    /* Hamburger Icon */
    .menu-icon {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        width: 50px;
        height: 50px;
        cursor: pointer;
        z-index: 2000;
        position: relative;
        gap: 6px;
    }

    .menu-icon span,
    .menu-icon span::before,
    .menu-icon span::after {
        display: block;
        background: #fff;
        height: 3px;
        width: 30px;
        border-radius: 3px;
        transition: all 0.4s cubic-bezier(0.68, -0.6, 0.32, 1.6);
    }

    .menu-icon span {
        position: relative;
    }

    .menu-icon span::before,
    .menu-icon span::after {
        content: '';
        position: absolute;
        left: 0;
    }

    .menu-icon span::before {
        transform: translateY(-9px);
    }

    .menu-icon span::after {
        transform: translateY(9px);
    }

    /* Animate Icon */
    .menu-toggle:checked~.menu-icon span {
        background: transparent !important;
    }

    .menu-toggle:checked~.menu-icon span::before {
        transform: rotate(45deg);
    }

    .menu-toggle:checked~.menu-icon span::after {
        transform: rotate(-45deg);
    }

    .site-header.menu-open {
        background: #000;
        border-bottom: 2px solid var(--primary-red) !important;
    }

    .main-navigation {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        height: auto;
        background: #000;
        display: block;
        opacity: 0;
        visibility: hidden;
        transition: all 0.4s ease;
        z-index: 1500;
        padding: 0;
        max-height: 0;
        overflow: hidden;
    }

    .menu-toggle:checked~.main-navigation {
        opacity: 1;
        visibility: visible;
        max-height: 90vh;
        overflow-y: auto;
        padding-bottom: 0px;
        transition: none;
        /* No animation as requested */
    }

    .main-navigation ul {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0;
        text-align: center;
        width: 100%;
        padding: 0;
    }

    .main-navigation li {
        width: 100%;
        opacity: 1;
        transform: none;
        transition: none;
        /* No animation as requested */
    }

    /* Kill Animation Delays */
    .menu-toggle:checked~.main-navigation li {
        transition-delay: 0s !important;
        opacity: 1 !important;
        transform: none !important;
    }

    .main-navigation a {
        font-family: var(--font-heading);
        font-size: 1.3rem;
        font-weight: 700;
        text-transform: none;
        color: #fff;
        display: flex;
        height: 75px;
        padding: 0 30px;
        position: relative;
        justify-content: flex-start;
        align-items: center;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .main-navigation a::after {
        display: none;
    }

    /* KILL ALL MOBILE HOVERS */


    .main-navigation a:hover::after {
        width: 0;
        /* No underline sliding */
    }

    /* Mobile Submenu Like Red Bull (Inset) */
    .main-navigation ul ul {
        display: none;
        position: static;
        background: rgba(0, 0, 0, 0.1);
        /* Darker red-tone overlaying */
        box-shadow: none;
        border: none;
        padding: 0;
        opacity: 1;
        visibility: visible;
        transform: none;
        min-width: unset;
        border-top: none;
        border-radius: 0;
    }

    .main-navigation li.open>ul {
        display: flex;
        flex-direction: column;
        gap: 10px;
        /* Much tighter than main menu */
        /* Show as flex column when open */
        animation: none;
        padding-top: 10px;
    }

    .main-navigation ul ul a {
        font-size: 1.1rem;
        font-family: var(--font-body);
        color: rgba(255, 255, 255, 0.9);
        text-transform: none;
        height: auto;
        /* Reset fixed height for submenus */
        padding: 18px 30px 18px 65px;
        /* Inset sub-links */
        justify-content: flex-start;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    /* 3rd Level Indentation (e.g. Neuigkeiten) */
    .main-navigation ul ul ul a {
        padding-left: 95px !important;
        font-size: 1rem;
    }

    .main-navigation ul ul li:last-child a {
        border-bottom: none;
    }

    .menu-item-has-children.open>a {
        opacity: 1;
        /* Purely static as requested */
    }



    .main-navigation ul ul a::after {
        display: none;
        /* No underline ever */
    }



}


/* ANIMATIONS */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 7. NEW SECTIONS STYLES */

/* Services/Membership Section */
.membership {
    padding: 120px 0;
    position: relative;
    overflow: hidden;
}

.membership-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
    gap: 30px;
}

.membership-card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 40px;
    border-radius: var(--radius-md);
    text-align: center;
    transition: var(--transition-smooth);
    position: relative;
    z-index: 1;
    cursor: pointer;
}

.membership-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary-red);
    background: rgba(255, 255, 255, 0.05);
}

.membership-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), transparent);
    z-index: -1;
    opacity: 0;
    transition: var(--transition-smooth);
}



.membership-card:hover::after {
    opacity: 1;
}

.membership-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    background: rgba(230, 57, 70, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-red);
    font-size: 2rem;
    transition: var(--transition-smooth);
    cursor: pointer;
}

.membership-card:hover .membership-icon {
    background: var(--primary-red);
    color: #fff;
}

.membership-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #fff;
}

.membership-card p {
    color: var(--text-muted);
    margin-bottom: 30px;
}

.join-btn {
    display: inline-block;
    padding: 10px 25px;
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    color: #fff;
    font-weight: 600;
    transition: var(--transition-fast);
}

.join-btn:hover {
    background: var(--primary-red);
    border-color: var(--primary-red);
    color: #fff !important;
}

/* ==========================================================================
   FOOTER – PREMIUM REDESIGN
   ========================================================================== */
.site-footer {
    background: #07090d;
    border-top: 1px solid rgba(230, 57, 70, 0.2);
    padding-top: 0;
    font-size: 0.95rem;
    color: #888;
    position: relative;
    overflow: hidden;
}

/* Subtle red glow line at top */
.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50%;
    height: 1px;
    background: radial-gradient(circle, var(--primary-red) 0%, transparent 80%);
    opacity: 0.7;
    box-shadow: 0 0 30px 4px rgba(230, 57, 70, 0.3);
}

/* Top area: brand stripe */
.footer-top {
    background: linear-gradient(135deg, #0e1015 0%, #111318 100%);
    padding: 70px 0 60px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.footer-top-inner {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
    align-items: start;
}

/* Brand column */
.footer-brand-title {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 900;
    letter-spacing: 3px;
    color: #fff;
    text-transform: uppercase;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 14px;
}

.footer-brand-title::before {
    content: '';
    display: block;
    width: 5px;
    height: 38px;
    background: var(--primary-red);
    border-radius: 3px;
    flex-shrink: 0;
}

.footer-tagline {
    color: #555;
    font-size: 0.85rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 22px;
    margin-left: 19px;
}

.footer-desc {
    color: #666;
    line-height: 1.8;
    max-width: 380px;
    margin-left: 19px;
    margin-bottom: 30px;
}

/* Social icons */
.footer-socials {
    display: flex;
    gap: 12px;
    margin-left: 19px;
}

.footer-socials a {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.07);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-size: 1rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.footer-socials a:hover,
.light-mode .footer-socials a:hover {
    color: #fff !important;
}

.footer-socials a[aria-label="Facebook"]:hover,
.light-mode .footer-socials a[aria-label="Facebook"]:hover {
    background: #1877F2 !important;
    border-color: #1877F2 !important;
}

.footer-socials a[aria-label="Instagram"]:hover,
.light-mode .footer-socials a[aria-label="Instagram"]:hover {
    background: #E1306C !important;
    border-color: #E1306C !important;
}

/* Column headings */
.footer-col-title {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--primary-red);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-col-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.05);
}

/* Link lists */
.footer-nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-nav-list li {
    margin-bottom: 13px;
}

.footer-nav-list a {
    color: #666;
    text-decoration: none;
    font-size: 0.95rem;
    transition: none;
    cursor: pointer;
}

/* Contact items */
.footer-contact-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 13px;
    margin-bottom: 18px;
    color: #666;
    font-size: 0.93rem;
    line-height: 1.5;
}

.footer-contact-list i {
    color: var(--primary-red);
    font-size: 1rem;
    margin-top: 2px;
    flex-shrink: 0;
    width: 16px;
    text-align: center;
}

.footer-contact-list a {
    color: inherit;
    text-decoration: none;
    transition: none;
}

.section-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent);
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

.section-divider::after {
    content: '';
    position: absolute;
    top: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 5px;
    background: var(--primary-red);
    border-radius: 3px;
    box-shadow: 0 0 15px rgba(230, 57, 70, 0.4);
}

.light-mode .section-divider {
    background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.05), transparent);
}

/* --- Homepage Map Section --- */
.location-map {
    padding: 100px 0;
    background: linear-gradient(180deg, var(--bg-dark), #0a0e12);
}

.map-wrapper-hp {
    width: 100%;
    height: 450px;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.map-wrapper-hp iframe {
    filter: invert(90%) hue-rotate(180deg) brightness(95%) contrast(90%);
}

.light-mode .map-wrapper-hp iframe {
    filter: none;
}

.light-mode .location-map {
    background: #fff;
}

/* Removed footer map styles */

.light-mode .footer-map-wrapper iframe {
    filter: none;
}

/* Removed old footer address info style */

.footer-address-info i {
    color: var(--primary-red);
    font-size: 1rem;
}

.light-mode .footer-address-info {
    color: #212529;
}

/* Emergency badge */
.footer-emergency {
    display: flex;
    align-items: center;
    gap: 14px;
    background: rgba(230, 57, 70, 0.08);
    border: 1px solid rgba(230, 57, 70, 0.2);
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 24px;
}

.footer-emergency i {
    font-size: 1.5rem;
    color: var(--primary-red);
    flex-shrink: 0;
}

.footer-emergency-number {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 900;
    color: var(--primary-red);
    line-height: 1;
}

.footer-emergency-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #555;
    margin-top: 2px;
}

/* Bottom bar */
.footer-bottom {
    background: #040508;
    padding: 22px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.03);
}

.footer-bottom-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 0.82rem;
    color: #444;
}

.creator-tag a {
    color: var(--primary-red);
    font-weight: 700;
    text-decoration: none;
    transition: none;
}

/* Light mode footer overrides */
.light-mode .site-footer {
    background: #f4f5f7;
    border-top: 1px solid rgba(230, 57, 70, 0.1);
    color: #6c757d;
}

.light-mode .footer-top {
    background: linear-gradient(135deg, #eef0f3 0%, #f4f5f7 100%);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.light-mode .footer-brand-title {
    color: #111;
}

.light-mode .footer-tagline,
.light-mode .footer-desc {
    color: #888;
}

.light-mode .footer-col-title {
    color: var(--primary-red);
}

.light-mode .footer-col-title::after {
    background: rgba(0, 0, 0, 0.07);
}

.light-mode .footer-nav-list a {
    color: #6c757d;
}

.light-mode .footer-contact-list li {
    color: #6c757d;
}

.light-mode .footer-contact-list a {
    color: inherit;
}

.light-mode .footer-socials a {
    background: rgba(0, 0, 0, 0.04);
    border-color: rgba(0, 0, 0, 0.07);
    color: #888;
}

.light-mode .footer-emergency {
    background: rgba(230, 57, 70, 0.05);
    border-color: rgba(230, 57, 70, 0.15);
}

.light-mode .footer-bottom {
    background: #e8eaed;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    color: #888;
}

.light-mode .footer-bottom-inner {
    color: #888;
}

/* --- Responsive Footer --- */
/* Tablet (≤900px): 2-column layout */
@media (max-width: 900px) {
    .footer-top-inner {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }

    .footer-brand-col {
        grid-column: 1 / -1;
    }

    .footer-desc,
    .footer-tagline,
    .footer-socials {
        margin-left: 0;
    }
}

/* Mobile (≤600px): single column, centered */
@media (max-width: 600px) {
    .footer-top {
        padding: 50px 0 40px;
    }

    .footer-top-inner {
        grid-template-columns: 1fr;
        gap: 35px;
        text-align: center;
    }

    .footer-brand-col {
        grid-column: auto;
    }

    .footer-brand-title {
        justify-content: center;
    }

    .footer-brand-title::before {
        display: none;
    }

    .footer-tagline,
    .footer-desc {
        margin-left: 0;
    }

    .footer-socials {
        justify-content: center;
        margin-left: 0;
    }

    .footer-col-title::after {
        display: none;
    }

    .footer-contact-list li {
        justify-content: center;
    }

    .footer-emergency {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }

    .footer-bottom-inner {
        flex-direction: column;
        text-align: center;
    }
}


/* 7. SERVICES SECTION */
.services {
    padding: clamp(60px, 10vw, 120px) 0;
    position: relative;
    background: linear-gradient(180deg, #12161c 0%, var(--bg-dark) 100%);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 60px;
}

.service-card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: var(--radius-md);
    padding: 40px 30px;
    text-align: center;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
    height: 100%;
    cursor: pointer;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0%, transparent 100%);
    pointer-events: none;
}

.service-card:hover {
    background: rgba(35, 40, 48, 0.6);
}

.icon-box {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(230, 57, 70, 0.1);
    border-radius: 50%;
    color: var(--primary-red);
    transition: var(--transition-smooth);
    position: relative;
    cursor: pointer;
}

.icon-box svg {
    width: 40px;
    height: 40px;
}

.service-card:hover .icon-box {
    background: var(--primary-red);
    color: #fff;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.service-card p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.6;
}


/* 8. VISUAL POLISH & GLOBAL LIFTS */
.section-title {
    margin-bottom: 80px;
    /* More breathing room */
}

/* Enhancing Stats */
.stats {
    background: linear-gradient(180deg, var(--bg-dark), #151a21);
}

.stats-list li {
    background: rgba(255, 255, 255, 0.03);
    /* Lighter default */
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.stats-list li:hover {
    background: rgba(255, 255, 255, 0.05);
}

/* Enhancing News */
.news-item {
    border-radius: 16px;
    /* Slightly tighter */
}



/* LIGHT MODE OVERRIDES */
.light-mode {
    --bg-dark: #ffffff;
    --bg-card: rgba(255, 255, 255, 0.9);
    --text-main: #212529;
    --text-muted: #495057;
    --glass-border: rgba(0, 0, 0, 0.1);
    --glass-highlight: rgba(0, 0, 0, 0.02);
    --scrollbar-bg: #ffffff;
}

/* Light Mode Header behavior */
.light-mode .site-header.scrolled,
.light-mode .site-header.menu-open,
.light-mode body:not(.home) .site-header {
    background: #fff !important;
}

.light-mode .home .site-header:not(.scrolled):not(.menu-open) {
    background: transparent !important;
    border-bottom-color: transparent !important;
}

/* Light Mode Subpage Header: Black text on white background */
.light-mode body:not(.home) .site-header .site-branding a,
.light-mode body:not(.home) .site-header .main-navigation a,
.light-mode body:not(.home) .site-header .main-navigation a i,
.light-mode body:not(.home) .site-header .theme-toggle-btn,
.light-mode body:not(.home) .site-header .dropdown-toggle,
.light-mode .site-header.scrolled .site-branding a,
.light-mode .site-header.scrolled .main-navigation a,
.light-mode .site-header.scrolled .main-navigation a i,
.light-mode .site-header.scrolled .theme-toggle-btn,
.light-mode .site-header.scrolled .dropdown-toggle,
.light-mode .site-header.menu-open .site-branding a,
.light-mode .site-header.menu-open .main-navigation a,
.light-mode .site-header.menu-open .theme-toggle-btn {
    color: #000 !important;
}

.light-mode body:not(.home) .site-header .menu-icon span,
.light-mode body:not(.home) .site-header .menu-icon span::before,
.light-mode body:not(.home) .site-header .menu-icon span::after,
.light-mode .site-header.scrolled .menu-icon span,
.light-mode .site-header.scrolled .menu-icon span::before,
.light-mode .site-header.scrolled .menu-icon span::after {
    background-color: #000 !important;
}

.light-mode h1,
.light-mode h2,
.light-mode h3,
.light-mode .section-title {
    color: #000;
    text-shadow: none;
}

/* Initial transparent white text in light mode (e.g., hero dark image) */
.light-mode .home .site-header:not(.scrolled):not(.menu-open) .site-branding a,
.light-mode .home .site-header:not(.scrolled):not(.menu-open) .main-navigation>ul>li>a,
.light-mode .home .site-header:not(.scrolled):not(.menu-open) .main-navigation>ul>li>a i,
.light-mode .home .site-header:not(.scrolled):not(.menu-open) .theme-toggle-btn,
.light-mode .home .site-header:not(.scrolled):not(.menu-open) .dropdown-toggle {
    color: #fff !important;
}

.light-mode .home .site-header:not(.scrolled):not(.menu-open) .menu-icon span,
.light-mode .home .site-header:not(.scrolled):not(.menu-open) .menu-icon span::before,
.light-mode .home .site-header:not(.scrolled):not(.menu-open) .menu-icon span::after {
    background-color: #fff !important;
}


.light-mode .menu-icon span,
.light-mode .menu-icon span::before,
.light-mode .menu-icon span::after {
    background-color: #fff;
}

/* Scrolled / Menu Open: Black Text on White Header in Light Mode */
.light-mode .site-header.scrolled .site-branding a,
.light-mode .site-header.menu-open .site-branding a,
.light-mode .site-header.scrolled .main-navigation a,
.light-mode .site-header.scrolled .main-navigation a i,
.light-mode .site-header.scrolled .theme-toggle-btn,
.light-mode .site-header.scrolled .dropdown-toggle,
.light-mode .site-header.menu-open .theme-toggle-btn {
    color: #000 !important;
}

.light-mode .site-header.scrolled .menu-icon span::before,
.light-mode .site-header.scrolled .menu-icon span::after,
.light-mode .site-header.menu-open .menu-icon span::before,
.light-mode .site-header.menu-open .menu-icon span::after {
    background-color: #000 !important;
}

.light-mode .site-header.scrolled:not(.menu-open) .menu-icon span {
    background-color: #000 !important;
}

.light-mode .site-header.menu-open .menu-icon span,
.light-mode input.menu-toggle:checked~.menu-icon span {
    background-color: transparent !important;
}

.light-mode .site-header.scrolled .theme-toggle-btn,
.light-mode .site-header.menu-open .theme-toggle-btn {
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.1);
}

.light-mode .site-header.scrolled .header-cta-btn,
.light-mode .site-header.menu-open .header-cta-btn {
    color: #fff !important;
}

/* Nav items hover in light mode */

.light-mode .home .site-header:not(.scrolled):not(.menu-open) .main-navigation>ul>li>a:hover {
    background: rgba(255, 255, 255, 0.08) !important;
    color: #fff !important;
}

/* Subpage / Scrolled / Menu-Open hover in Light Mode: Keep black text */
.light-mode body:not(.home) .site-header .main-navigation>ul>li>a:hover,
.light-mode .site-header.scrolled .main-navigation>ul>li>a:hover,
.light-mode .site-header.menu-open .main-navigation>ul>li>a:hover {
    background: rgba(0, 0, 0, 0.05) !important;
    color: #000 !important;
}



/* Light Mode Dropdown Fixes */
.light-mode .main-navigation ul ul {
    background: #fff;
    border-color: rgba(0, 0, 0, 0.1);
}

.light-mode .main-navigation ul ul a {
    color: #000 !important;
    border-bottom-color: rgba(0, 0, 0, 0.05);
}



.light-mode .dropdown-toggle {
    color: #000;
}

.light-mode .home .site-header:not(.scrolled):not(.menu-open) .dropdown-toggle {
    color: #fff !important;
}

.light-mode .main-navigation a i {
    color: #000;
}

.light-mode .home .site-header:not(.scrolled):not(.menu-open) .main-navigation a i {
    color: #fff !important;
}

/* Mobile Menu Overrides & Fixes - CLEAN B&W */
@media (max-width: 1200px) {

    /* 1. Hide icons on mobile as requested */
    .main-navigation a i {
        display: none !important;
    }

    /* 2. Theme-Specific Backgrounds */
    /* Dark Mode: Pure Black */
    .dark-mode .main-navigation,
    .dark-mode .site-header.menu-open {
        background: #000 !important;
        border-bottom-color: rgba(255, 255, 255, 0.1) !important;
    }

    /* Light Mode */
    .light-mode .main-navigation {
        background: #fff !important;
        backdrop-filter: blur(15px) !important;
        -webkit-backdrop-filter: blur(15px) !important;
    }

    /* Mobile Menu Items Black in Light Mode */
    .light-mode .site-header.menu-open .main-navigation a,
    .light-mode .site-header.menu-open .main-navigation ul ul a,
    .light-mode .site-header.menu-open .main-navigation ul ul ul a,
    .light-mode .site-header.menu-open .dropdown-toggle,
    .light-mode .site-header.menu-open .main-navigation a i {
        color: #000 !important;
        background-color: transparent !important;
    }

    /* Seperators for Light Mode White Menu */
    .light-mode .site-header.menu-open .main-navigation ul ul {
        background: transparent !important;
        border: none !important;
    }

    .light-mode .site-header.menu-open .main-navigation a {
        border-bottom: 1px solid rgba(0, 0, 0, 0.05) !important;
    }
}

.light-mode .home .site-header:not(.scrolled) .current-menu-item>a {
    background: rgba(255, 255, 255, 0.1) !important;
    color: #fff !important;
    /* White on black header bar (Homepage Transparent) */
}

.light-mode:not(.home) .current-menu-item>a,
.light-mode .site-header.scrolled .current-menu-item>a {
    background: rgba(0, 0, 0, 0.05) !important;
    color: #000 !important;
}

/* BUT: Black text for current item if inside white dropdown */
.light-mode .main-navigation ul ul .current-menu-item>a {
    background: rgba(0, 0, 0, 0.05) !important;
    color: #000 !important;
}


/* BUT: All nested items in dropdowns must be black regardless of home top state */
.light-mode .main-navigation ul ul a,
.light-mode .main-navigation ul ul a i,
.light-mode .main-navigation ul ul .dropdown-toggle,
.light-mode .main-navigation ul ul li a {
    color: #000 !important;
}


@media (min-width: 1201px) {

    .light-mode .main-navigation ul ul,
    .light-mode .main-navigation .sub-menu {
        background: #fff !important;
        border-color: rgba(0, 0, 0, 0.1) !important;
    }
}


.light-mode .header-cta-btn {
    color: #fff !important;
}

.light-mode .main-navigation ul ul a:hover {
    background: #f1f3f5 !important;
    color: #000 !important;
}

.light-mode .theme-toggle-btn {
    filter: brightness(0.9) contrast(1.0);
}

.light-mode .hero::after {
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.2));
}

.light-mode .hero h1,
.light-mode .hero p {
    color: #fff;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.light-mode .service-card,
.light-mode .news-item,
.light-mode .stats-list li,
.light-mode .membership-card {
    background: #ffffff;
    border: 2px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.light-mode .service-card:hover,
.light-mode .membership-card:hover,
.light-mode .stats-list li:hover {
    background: #fdfdfd;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.light-mode .news-item:hover {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

/* Archive page: 3 columns */
.news-archive-page .news-grid {
    grid-template-columns: repeat(3, 1fr);
    max-width: 100%;
}

@media (max-width: 900px) {
    .news-archive-page .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .news-archive-page .news-grid {
        grid-template-columns: 1fr;
    }
}

.news-category {
    display: inline-block;
    font-size: 0.75rem;
    color: #fff;
    background-color: var(--primary-red);
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: 0.5px;
    padding: 4px 12px;
    border-radius: 20px;
    align-self: flex-start;
    width: fit-content;
}

.news-category a {
    color: #fff;
    text-decoration: none;
}

.news-category a:hover {
    text-decoration: none;
    color: #fff;
}

.light-mode .stats,
.light-mode .services,
.light-mode .news,
.light-mode .membership {
    background: var(--bg-dark);
    /* Using the slightly darker #f0f2f5 */
    box-shadow: none;
    border-color: rgba(0, 0, 0, 0.03);
}

.light-mode .join-btn {
    background: var(--primary-red);
    color: #fff;
    border: none;
    box-shadow: 0 4px 15px rgba(230, 57, 70, 0.3);
}

.light-mode .join-btn:hover {
    background: #d63031;
    box-shadow: 0 6px 20px rgba(230, 57, 70, 0.4);
}


.light-mode .stats-list span.counter {
    -webkit-text-stroke: 2px var(--primary-red);
}



/* ==========================================================================
   NEW: ALTERNATING FEATURES SECTION
   ========================================================================== */
.alternating-features {
    padding: clamp(60px, 10vw, 120px) 0;
    background: var(--bg-dark);
    position: relative;
    overflow: hidden;
}

.feature-row {
    display: flex;
    align-items: center;
    gap: 80px;
    margin-bottom: 100px;
}

.feature-row:last-child {
    margin-bottom: 0;
}

/* Automatische Umkehrung entfernt, da wir die Reihenfolge manuell im HTML festlegen */
.feature-row {
    flex-direction: row;
}

.feature-content {
    flex: 1;
}

.feature-image {
    flex: 1;
}

.image-wrapper {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    transition: transform 0.5s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.feature-row:hover .image-wrapper {
    transform: translateY(-10px);
}

.image-wrapper img {
    width: 100%;
    height: 450px;
    object-fit: cover;
    display: block;
}

.feature-title {
    font-size: clamp(2rem, 3.5vw, 3rem);
    margin-bottom: 25px;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.feature-text {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 35px;
    line-height: 1.7;
}

.feature-link {
    display: inline-block;
    padding: 12px 30px;
    background: transparent;
    border: 2px solid var(--primary-red);
    color: #fff;
    border-radius: 4px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.feature-link:hover {
    background: var(--primary-red);
    box-shadow: 0 5px 15px rgba(230, 57, 70, 0.3);
    transform: translateY(-2px);
}

/* Light Mode Refinements */
.light-mode .alternating-features {
    background: #fff;
}

.light-mode .feature-title {
    color: #212529;
}

.light-mode .feature-text {
    color: #495057;
}

.light-mode .feature-link {
    color: var(--primary-red);
}

.light-mode .feature-link:hover {
    color: #fff;
}

.light-mode .image-wrapper {
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

/* Responsive Grid Adjustments (Tablet & Mobile) */
@media (max-width: 992px) {

    .feature-row,
    .feature-row:nth-child(even) {
        flex-direction: column !important;
        text-align: center;
        gap: 40px;
        margin-bottom: 90px;
    }

    .feature-row .feature-content {
        order: 2;
    }

    .feature-row .feature-image {
        order: 1;
        width: 100%;
    }

    .image-wrapper img {
        height: 400px;
    }
}

@media (max-width: 768px) {

    .feature-row,
    .feature-row:nth-child(even) {
        margin-bottom: 70px;
        gap: 30px;
    }

    .image-wrapper img {
        height: 280px;
    }
}

/* 9. SUB-PAGES (Single Post / Page) */
.single-post-page,
.news-archive-page {
    padding-top: 160px;
    /* Safe space for the fixed header */
    padding-bottom: 100px;
}

.post-hero {
    margin-bottom: 60px;
}

.post-title {
    margin-bottom: 40px;
    line-height: 1.1;
    color: #fff;
    font-size: clamp(2.5rem, 6vw, 5rem);
    text-transform: uppercase;
    font-family: var(--font-heading);
    font-weight: 700;
}

.light-mode .post-title {
    color: #000;
}

.post-featured-image {
    max-width: 800px;
    max-height: 450px;
    margin: 40px auto;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    background: #000;
}

.post-featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.container-narrow {
    max-width: 850px;
    margin: 0 auto;
    padding: 0 20px;
}

.post-content {
    font-size: 1.25rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
}

.light-mode .post-content {
    color: #212529;
}

.post-content p {
    margin-bottom: 1.8rem;
}

.post-content h2,
.post-content h3 {
    margin-top: 2.5rem;
    margin-bottom: 1.2rem;
    color: #fff;
}

.light-mode .post-content h2,
.light-mode .post-content h3 {
    color: #000;
}

.post-content blockquote {
    border-left: 4px solid var(--primary-red);
    padding: 10px 30px;
    font-style: italic;
    margin: 40px 0;
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
    font-size: 1.4rem;
}

.light-mode .post-content blockquote {
    color: #495057;
    background: rgba(0, 0, 0, 0.02);
}


/* ==========================================================================
   RESPONSIVE OVERRIDES  – Tablet (≤768px) & Mobile (≤480px)
   ========================================================================== */

/* --- General section padding --- */
@media (max-width: 768px) {

    .membership,
    .news,
    .alternating-features {
        padding: 60px 0;
    }

    .section-title {
        font-size: clamp(1.6rem, 5vw, 2.5rem);
        margin-bottom: 40px;
    }

    /* Hero */
    .hero {
        padding-top: 80px;
        min-height: 90vh;
        align-items: flex-end;
        padding-bottom: 60px;
    }

    .hero-content {
        padding: 0 16px;
        text-align: center;
    }

    .hero p {
        margin-left: auto;
        margin-right: auto;
    }

    /* Stats */
    .stats {
        padding: 60px 0;
    }

    .stats-list {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }

    .stats-list li {
        padding: 25px 15px;
    }

    .stats-list span.counter {
        font-size: 3.5rem;
    }

    /* News */
    .news-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    /* Services */
    .services-grid {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
        margin-top: 40px;
    }

    .service-card {
        padding: 25px 20px;
    }

    /* Features */
    .feature-row {
        gap: 30px;
        margin-bottom: 60px;
    }

    .image-wrapper img {
        height: 260px;
    }

    /* Single Post */
    .single-post-page {
        padding-top: 110px;
        padding-bottom: 60px;
    }

    .post-content {
        font-size: 1.1rem;
    }
}

/* --- Mobile (≤480px) --- */
@media (max-width: 480px) {

    /* Stats: stack all in one column */
    .stats-list {
        display: flex;
        flex-direction: column;
        gap: 15px;
    }

    /* Services: single column */
    .services-grid {
        grid-template-columns: 1fr;
    }

    /* Membership: single column */
    .membership-grid {
        grid-template-columns: 1fr;
    }

    /* News: single column (already 1fr but ensure) */
    .news-grid {
        grid-template-columns: 1fr;
    }

    /* Hero button full-width on very small screens */
    .hero-btn {
        width: 100%;
        justify-content: center;
    }

    /* Branding bar accent */
    .site-branding a::before {
        width: 3px;
        height: 22px;
    }

    /* Section Titles */
    .section-title {
        font-size: 1.5rem;
        margin-bottom: 30px;
    }

    /* Features */
    .feature-row {
        margin-bottom: 50px;
    }

    .image-wrapper img {
        height: 220px;
    }

    /* Stats counter font */
    .stats-list span.counter {
        font-size: 3rem;
    }

    .counter-plus {
        font-size: 2rem;
    }

    /* btn-more full width on mobile */
    .btn-more {
        width: 100%;
        text-align: center;
    }

    /* Single Post */
    .single-post-page {
        padding-top: 90px;
    }

    .post-title {
        font-size: clamp(1.8rem, 8vw, 3rem);
    }
}

/* --- Very small screens (≤375px) --- */
@media (max-width: 375px) {
    .site-branding a {
        font-size: 1rem;
        letter-spacing: 1px;
        gap: 8px;
    }

    .theme-toggle-btn {
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 0.95rem;
    }
}

/* --- FIRECHAT STYLES --- */
.firechat-toggle {
    position: fixed;
    bottom: 20px;
    right: 30px;
    width: 65px;
    height: 65px;
    background-color: var(--primary-red);
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.firechat-toggle:hover {
    transform: scale(1.1);
    background-color: #ff1f32;
}

.firechat-window {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 350px;
    max-width: calc(100vw - 40px);
    height: 450px;
    background-color: var(--bg-card);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.firechat-window.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.firechat-header {
    background-color: var(--primary-red);
    color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.firechat-header h3 {
    margin: 0;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 10px;
    text-transform: none;
    color: #fff;
}

.firechat-header button {
    background: transparent;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    transition: transform 0.2s;
}

.firechat-header button:hover {
    transform: scale(1.2);
}

.firechat-messages {
    flex-grow: 1;
    padding: 15px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.firechat-message {
    max-width: 80%;
    padding: 10px 15px;
    border-radius: 18px;
    font-size: 0.95rem;
    line-height: 1.4;
    word-wrap: break-word;
}

.firechat-message.bot {
    align-self: flex-start;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--text-main);
    border-bottom-left-radius: 4px;
}

.firechat-message.user {
    align-self: flex-end;
    background-color: var(--primary-red);
    color: white;
    border-bottom-right-radius: 4px;
}

.firechat-message.loading {
    opacity: 0.7;
    font-size: 0.85rem;
}

.firechat-input-area {
    display: flex;
    padding: 10px;
    background-color: rgba(0, 0, 0, 0.2);
    border-top: 1px solid var(--glass-border);
}

.firechat-input-area textarea {
    flex-grow: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: var(--text-main);
    padding: 10px 15px;
    border-radius: 20px;
    outline: none;
    font-family: var(--font-body);
    resize: none;
    line-height: 1.5;
    max-height: 120px;
}

.firechat-input-area textarea:focus {
    border-color: var(--primary-red);
}

.firechat-input-area button {
    background: var(--primary-red);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-left: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.firechat-input-area button:hover {
    background: #ff1f32;
}

.firechat-input-area button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.light-mode .firechat-window {
    background-color: #fff;
    border-color: #ddd;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.light-mode .firechat-header h3 {
    color: #fff;
}

.light-mode .firechat-header button {
    color: #fff;
}

.light-mode .firechat-message.bot {
    background-color: #f1f1f1;
    color: #333;
}

.light-mode .firechat-input-area {
    background-color: #f9f9f9;
    border-top-color: #ddd;
}

.light-mode .firechat-input-area textarea {
    background-color: #fff;
    border-color: #ccc;
    color: #333;
}

.light-mode .firechat-input-area textarea:focus {
    border-color: var(--primary-red);
}

/* --- FORM STYLES --- */
.registration-section {
    padding: clamp(100px, 15vw, 180px) 0;
    background: radial-gradient(circle at top right, rgba(230, 57, 70, 0.05), transparent 40%),
        radial-gradient(circle at bottom left, rgba(230, 57, 70, 0.03), transparent 30%);
}

.form-container {
    max-width: 800px;
    margin: 0 auto;
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: clamp(30px, 5vw, 60px);
    box-shadow: var(--shadow-soft);
    position: relative;
    overflow: hidden;
}

.form-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-red), var(--dark-red));
}

.form-header {
    text-align: center;
    margin-bottom: 50px;
}

.form-header h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 15px;
}

.form-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

@media (max-width: 600px) {
    .form-grid {
        grid-template-columns: 1fr;
    }
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    font-family: var(--font-heading);
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    color: var(--text-muted);
    font-weight: 600;
}

.form-group input,
.form-group textarea,
.form-group select {
    background: var(--bg-input);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    padding: 14px 18px;
    color: #fff;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-red);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 15px rgba(230, 57, 70, 0.2);
}

.form-group select option {
    background: #1a1e23;
    color: #fff;
}

.form-submit {
    margin-top: 40px;
    text-align: center;
}

.btn-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 18px 45px;
    background: var(--primary-red);
    color: #fff;
    border: none;
    border-radius: 50px;
    font-family: var(--font-heading);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 1.1rem;
    letter-spacing: 1.5px;
    cursor: pointer;
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-glow);
}

.btn-submit:hover {
    background: #ff1f32;
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(230, 57, 70, 0.4);
}

.btn-submit i {
    margin-left: 10px;
}

/* Light Mode Form */
.light-mode .form-container {
    background: #fff;
    border-color: rgba(0, 0, 0, 0.08);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

.light-mode .form-group input,
.light-mode .form-group textarea,
.light-mode .form-group select {
    background: #f8f9fa;
    border-color: #dee2e6;
    color: #212529;
}

.light-mode .form-group input:focus,
.light-mode .form-group textarea:focus,
.light-mode .form-group select:focus {
    background: #fff;
    border-color: var(--primary-red);
}

.light-mode .form-header p {
    color: #6c757d;
}

/* Success/Error Messages */
.form-message {
    padding: 20px;
    border-patch: var(--radius-sm);
    margin-bottom: 30px;
    font-weight: 600;
    text-align: center;
}

.form-message.success {
    background: rgba(46, 204, 113, 0.1);
    color: #2ecc71;
    border: 1px solid rgba(46, 204, 113, 0.3);
}

.form-message.error {
    background: rgba(231, 76, 60, 0.1);
    color: #e74c3c;
    border: 1px solid rgba(231, 76, 60, 0.3);
}