:root {
    color-scheme: light;

    /* Color Palette - Authentic Community Fire Station (Wix Template Style) */
    --fire-red: #9b1b24;
    --fire-red-dark: #7a151d;
    --fire-red-light: #b3212b;
    --navy-blue: #16253d;
    --navy-dark: #0f192b;
    --gold: #d97706;
    --gold-light: #fef3c7;
    
    /* Backgrounds (Clean Wix light strip architecture - Default Light) */
    --bg-page: #f4f6f9;
    --bg-surface: #ffffff;
    --bg-surface-alt: #e9ecef;
    --bg-dark: #f4f6f9;
    --bg-darker: #e9ecef;
    --bg-card: #ffffff;
    --bg-card-alt: #f8fafc;
    --bg-card-hover: #ffffff;
    --bg-navbar: #ffffff;
    --bg-input: #ffffff;
    --bg-modal: #ffffff;
    
    /* Text Colors - High Contrast for Accessibility & Readability */
    --text-primary: #0a0f1d;
    --text-secondary: #1e293b;
    --text-muted: #475569;
    --text-heading: #16253d;
    --border-light: #cbd5e1;
    --border-subtle: #94a3b8;
    --border-divider: #e2e8f0;
    
    /* Typography */
    --font-heading: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #9b1b24 0%, #7a151d 100%);
    --gradient-glow: none;
    --bg-gradient: #f4f6f9;
    
    /* Transitions - Subdued & Subtle */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.2s ease;
    --transition-slow: 0.3s ease;
    
    /* Brand Compatibility */
    --fire-red-glow: transparent;
    --gold-glow: transparent;
    
    /* Layout */
    --top-bar-height: 38px;
    --nav-height: 80px;
    --container-width: 1200px;
    --nav-container-width: 1400px;
    --card-shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.04);
    --card-shadow-hover: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --nav-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    --nav-scrolled-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

/* ==========================================================================
   Dark Theme (Automatic Device Preference & Manual Data Attribute)
   ========================================================================== */
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        color-scheme: dark;
        /* Brand Colors - High Contrast for Dark Mode */
        --fire-red: #9b1b24;
        --fire-red-dark: #7a151d;
        --fire-red-light: #b3212b;
        --navy-blue: #f8fafc;
        --navy-dark: #060a12;
        --gold: #f59e0b;
        --gold-light: #fef3c7;
        
        /* Backgrounds - Sleek Deep Midnight Slate & Obsidian */
        --bg-page: #080c14;
        --bg-surface: #0e1626;
        --bg-surface-alt: #141f36;
        --bg-dark: #080c14;
        --bg-darker: #05080f;
        --bg-card: #101a2e;
        --bg-card-alt: #16243d;
        --bg-card-hover: #1c2d4c;
        --bg-navbar: rgba(8, 12, 20, 0.96);
        --bg-input: #121d33;
        --bg-modal: #101a2e;
        
        /* Text Colors - High Contrast */
        --text-primary: #f8fafc;
        --text-secondary: #cbd5e1;
        --text-muted: #94a3b8;
        --text-heading: #ffffff;
        --border-light: rgba(255, 255, 255, 0.12);
        --border-subtle: rgba(255, 255, 255, 0.2);
        --border-divider: rgba(255, 255, 255, 0.08);
        
        /* Shadows - Rich Depth with Subtle Flame Aura */
        --card-shadow: 0 4px 20px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.06);
        --card-shadow-hover: 0 10px 32px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(220, 58, 69, 0.35);
        --nav-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
        --nav-scrolled-shadow: 0 8px 30px rgba(0, 0, 0, 0.85);
    }
}

:root[data-theme="light"] {
    color-scheme: light;
}

:root[data-theme="dark"] {
    color-scheme: dark;
    /* Brand Colors - High Contrast for Dark Mode */
    --fire-red: #9b1b24;
    --fire-red-dark: #7a151d;
    --fire-red-light: #b3212b;
    --navy-blue: #f8fafc;
    --navy-dark: #060a12;
    --gold: #f59e0b;
    --gold-light: #fef3c7;
    
    /* Backgrounds - Sleek Deep Midnight Slate & Obsidian */
    --bg-page: #080c14;
    --bg-surface: #0e1626;
    --bg-surface-alt: #141f36;
    --bg-dark: #080c14;
    --bg-darker: #05080f;
    --bg-card: #101a2e;
    --bg-card-alt: #16243d;
    --bg-card-hover: #1c2d4c;
    --bg-navbar: rgba(8, 12, 20, 0.96);
    --bg-input: #121d33;
    --bg-modal: #101a2e;
    
    /* Text Colors - High Contrast */
    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    --text-heading: #ffffff;
    --border-light: rgba(255, 255, 255, 0.12);
    --border-subtle: rgba(255, 255, 255, 0.2);
    --border-divider: rgba(255, 255, 255, 0.08);
    
    /* Shadows - Rich Depth with Subtle Flame Aura */
    --card-shadow: 0 4px 20px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.06);
    --card-shadow-hover: 0 10px 32px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(220, 58, 69, 0.35);
    --nav-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
    --nav-scrolled-shadow: 0 8px 30px rgba(0, 0, 0, 0.85);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-page);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 1rem;
    color: var(--text-heading);
    letter-spacing: -0.3px;
}

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

/* Top Utility & Emergency Bar (Classic Wix Civic Header) */
.top-bar {
    background: var(--navy-dark);
    color: #cbd5e1;
    font-size: 0.82rem;
    line-height: 1;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
    z-index: 1001;
}

.top-bar-container {
    max-width: var(--nav-container-width);
    margin: 0 auto;
    padding: 9px 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.top-bar-emergency, .top-bar-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.emergency-badge, .top-bar-badge {
    background: var(--fire-red);
    color: #ffffff;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.74rem;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
}

.top-bar-phone, .top-bar-item {
    font-weight: 600;
    color: #e2e8f0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.top-bar-location, .top-bar-right {
    display: flex;
    align-items: center;
    gap: 16px;
    color: #94a3b8;
    flex-wrap: wrap;
}

.top-bar-socials {
    display: flex;
    align-items: center;
    gap: 10px;
}

.top-bar-socials a, .top-bar-social {
    color: #cbd5e1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: color var(--transition-fast);
}

.top-bar-socials a:hover, .top-bar-social:hover {
    color: #ffffff;
}

.top-bar-link {
    color: #cbd5e1;
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 600;
    transition: color var(--transition-fast);
}

.top-bar-link:hover {
    color: #fbbf24;
    text-decoration: underline;
}

/* Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }
.mw-800 { max-width: 800px; }
.w-100 { width: 100%; }

/* Buttons (Wix Solid Civic Button Styling) */
.btn, .btn-primary, .btn-secondary, .btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 13px 26px;
    border-radius: 4px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all var(--transition-normal);
    border: 2px solid transparent;
    text-align: center;
    text-decoration: none;
}

.btn-primary {
    background: var(--fire-red);
    color: #ffffff !important;
    box-shadow: 0 2px 6px rgba(155, 27, 36, 0.25);
}

.btn-primary:hover {
    background: var(--fire-red-dark);
    box-shadow: 0 3px 8px rgba(155, 27, 36, 0.3);
    color: #ffffff !important;
}

.btn-secondary {
    background: #16253d;
    color: #ffffff !important;
    border-color: #16253d;
    box-shadow: 0 1px 3px rgba(22, 37, 61, 0.2);
}

.btn-secondary:hover {
    background: #0f192b;
    border-color: #0f192b;
    box-shadow: 0 3px 8px rgba(22, 37, 61, 0.25);
    color: #ffffff !important;
}

.btn-outline {
    background: transparent;
    color: #ffffff !important;
    border-color: #ffffff;
}

.btn-outline:hover {
    background: #ffffff;
    color: #0a0f1d !important;
}

/* Suppress browser focus rings on mouse/touch clicks while preserving keyboard accessibility */
.btn:focus:not(:focus-visible),
.btn-primary:focus:not(:focus-visible),
.btn-secondary:focus:not(:focus-visible),
.btn-outline:focus:not(:focus-visible),
.hero-upcoming-btn:focus:not(:focus-visible) {
    outline: none;
}

/* Hero Upcoming Apparatus Button & Live Status Beacon */
.hero-upcoming-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    transition: background-color var(--transition-fast), border-color var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
}

.hero-upcoming-btn .hero-live-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #4ade80;
    flex-shrink: 0;
    box-shadow: 0 0 6px rgba(74, 222, 128, 0.7);
    margin-right: 2px;
}

.hero-upcoming-btn .hero-btn-arrow {
    flex-shrink: 0;
    margin-left: 2px;
    transition: transform var(--transition-fast);
}

.hero-upcoming-btn:hover .hero-btn-arrow {
    transform: translateY(2px);
}

:root[data-theme="dark"] .btn-secondary,
:root[data-theme="dark"] .btn-secondary {
    background: #18243c;
    border-color: #2b3d63;
    color: #f8fafc !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}
:root[data-theme="dark"] .btn-secondary:hover,
:root[data-theme="dark"] .btn-secondary:hover {
    background: #223254;
    border-color: #3b5284;
    color: #ffffff !important;
}

/* Wix-style Card Panels - Stable & Flat */
.glass-panel, .glass-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-light);
    border-radius: 4px;
    box-shadow: var(--card-shadow);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.glass-card:hover {
    box-shadow: var(--card-shadow-hover);
    border-color: #94a3b8;
}

/* Form Submitting State */
button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* ==========================================================================
   Modern Redesigned Roster Section
   ========================================================================== */

#roster-container {
    opacity: 1 !important;
    transform: none !important;
}

/* Category Sections */
.roster-category-section {
    margin-bottom: 3.5rem;
    transition: all 0.3s ease;
}

.roster-category-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    text-align: left;
}

.roster-category-title {
    font-size: 1.35rem;
    color: var(--text-heading);
    font-family: var(--font-heading);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0;
    white-space: nowrap;
}

.roster-category-badge {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.roster-category-line {
    flex: 1;
    height: 2px;
    background: var(--border-divider);
}

/* Roster Grids */
.roster-grid-modern {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
}

.roster-grid-officers {
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 1.25rem;
}

/* Roster Cards (Clean Wix Civic Style - Flat & Solid, No Pop Out) */
.roster-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 4px;
    padding: 1.1rem 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.9rem;
    text-align: left;
    position: relative;
    overflow: hidden;
    box-shadow: var(--card-shadow);
}

.roster-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-subtle);
    transform: none !important;
    box-shadow: var(--card-shadow-hover);
}

/* Officer Card Special Styling */
.roster-card.tier-line-officer {
    background: var(--bg-card);
    border-color: #f0a3a8;
    border-left: 4px solid var(--fire-red);
}

.roster-card.tier-line-officer:hover {
    border-color: #e8656e;
    border-left: 4px solid var(--fire-red);
    transform: none !important;
    box-shadow: var(--card-shadow-hover);
}

.roster-card.tier-company-officer {
    background: var(--bg-card);
    border-color: #fde68a;
    border-left: 4px solid var(--gold);
}

.roster-card.tier-company-officer:hover {
    border-color: #fbbf24;
    border-left: 4px solid var(--gold);
    transform: none !important;
    box-shadow: var(--card-shadow-hover);
}

/* Card Avatar / Monogram */
.roster-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 0.95rem;
    flex-shrink: 0;
    letter-spacing: -0.5px;
}

.avatar-line {
    background: #fae5e7;
    color: #7a151d;
    border: 1.5px solid #f0a3a8;
}

.avatar-company {
    background: #fef3c7;
    color: #92400e;
    border: 1.5px solid #fde68a;
}

.avatar-firefighter {
    background: #f1f5f9;
    color: #334155;
    border: 1.5px solid #cbd5e1;
}

.avatar-junior {
    background: #e0e7ff;
    color: #3730a3;
    border: 1.5px solid #c7d2fe;
}

.avatar-police {
    background: #e0f2fe;
    color: #0369a1;
    border: 1.5px solid #bae6fd;
}

.avatar-associate {
    background: #f3e8ff;
    color: #6b21a8;
    border: 1.5px solid #e9d5ff;
}

/* Card Info */
.roster-info {
    flex: 1;
    min-width: 0;
}

.roster-name {
    color: var(--text-heading);
    font-size: 1.05rem;
    font-weight: 700;
    font-family: var(--font-heading);
    margin: 0 0 4px 0;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    line-height: 1.25;
}

.tag-new {
    position: absolute;
    top: 9px;
    right: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.6rem;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 4px;
    background: #10b981;
    color: #ffffff;
    letter-spacing: 0.5px;
    box-shadow: 0 1px 3px rgba(16, 185, 129, 0.3);
    text-transform: uppercase;
    line-height: 1.2;
    z-index: 2;
}

.roster-card.tier-line-officer .roster-name,
.roster-card.tier-company-officer .roster-name {
    font-size: 1.15rem;
}

/* Rank Badge Pills */
.rank-badge {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-chief, .badge-line {
    background: #fae5e7;
    color: #7a151d;
    border: 1px solid #f5cdd0;
}

.badge-president, .badge-company {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fde68a;
}

.badge-firefighter {
    background: #f1f5f9;
    color: #334155;
    border: 1px solid #e2e8f0;
}

.badge-junior {
    background: #e0e7ff;
    color: #3730a3;
    border: 1px solid #c7d2fe;
}

.badge-probationary {
    background: #fef9c3;
    color: #854d0e;
    border: 1px solid #fef08a;
}

.badge-police {
    background: #e0f2fe;
    color: #0369a1;
    border: 1px solid #bae6fd;
}

.badge-associate {
    background: #f3e8ff;
    color: #6b21a8;
    border: 1px solid #e9d5ff;
}

@media (max-width: 768px) {
    .roster-grid-modern,
    .roster-grid-officers {
        grid-template-columns: 1fr;
    }
}

.fade-in {
    opacity: 1 !important;
    transform: none !important;
}

.fade-in.visible {
    opacity: 1 !important;
    transform: none !important;
}

.delay-1 { transition-delay: 0s !important; }
.delay-2 { transition-delay: 0s !important; }
.delay-3 { transition-delay: 0s !important; }

.hover-lift {
    transition: box-shadow var(--transition-fast);
}
.hover-lift:hover {
    transform: none !important;
    box-shadow: var(--card-shadow-hover);
    border-color: #94a3b8;
}

/* Navbar */
.navbar {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    z-index: 1000;
    transition: all var(--transition-normal);
    background: var(--bg-navbar);
    border-bottom: 2px solid var(--border-light);
    box-shadow: var(--nav-shadow);
}

.navbar.scrolled {
    background: var(--bg-navbar);
    box-shadow: var(--nav-scrolled-shadow);
    border-bottom: 2px solid var(--border-light);
}

.nav-container {
    max-width: var(--nav-container-width, 1400px);
    margin: 0 auto;
    padding: 0 2rem;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.station-badge {
    background: var(--fire-red);
    color: white;
    font-size: 1.5rem;
    font-weight: 800;
    padding: 10px 15px;
    border-radius: 4px;
    box-shadow: 0 2px 6px rgba(155, 27, 36, 0.3);
}

.nav-badge-img {
    height: 70px;
    width: auto;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.15));
    transition: transform var(--transition-fast);
}

.nav-logo:hover .nav-badge-img {
    transform: scale(1.04);
}

.footer-badge-img {
    height: 65px;
    width: auto;
    margin-right: 10px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.4));
}

.station-badge.small {
    width: 35px;
    height: 35px;
    font-size: 1.2rem;
}

.logo-text {
    display: flex;
    flex-direction: column;
    white-space: nowrap;
}

.logo-text .mtvfc {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.18rem;
    letter-spacing: 0.5px;
    color: var(--text-heading);
}

.logo-text .subtitle {
    font-size: 0.8rem;
    color: var(--fire-red);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.4rem;
}

.nav-links a:not(.btn-primary) {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.92rem;
    color: var(--text-heading);
    position: relative;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nav-links a:not(.btn-primary):hover,
.nav-links a:not(.btn-primary).active {
    color: var(--fire-red);
}

.nav-links a:not(.btn-primary)::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--fire-red);
    transition: width var(--transition-fast);
}

.nav-links a:not(.btn-primary):hover::after,
.nav-links a:not(.btn-primary).active::after {
    width: 100%;
}

.nav-links a.nav-btn-donate {
    background: var(--fire-red);
    color: #ffffff !important;
    padding: 8px 18px;
    border-radius: 4px;
    font-weight: 800;
    box-shadow: 0 2px 6px rgba(155, 27, 36, 0.25);
    transition: all var(--transition-fast);
}

.nav-links a.nav-btn-donate:hover {
    background: var(--fire-red-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(155, 27, 36, 0.35);
}

.nav-links a.nav-btn-donate::after {
    display: none;
}

.mobile-menu-btn {
    display: none;
    background: var(--bg-card-alt);
    border: 1px solid var(--border-light);
    border-radius: 4px;
    cursor: pointer;
    width: 44px;
    height: 44px;
    padding: 0;
    position: relative;
    z-index: 1001;
    flex-shrink: 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all var(--transition-fast);
}

.mobile-menu-btn:hover,
.mobile-menu-btn:focus-visible {
    background: var(--bg-surface-alt);
    border-color: var(--border-subtle);
    outline: none;
}

.mobile-menu-btn span {
    position: absolute;
    width: 22px;
    height: 2.5px;
    background: var(--text-heading);
    left: 10px;
    border-radius: 2px;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.2s ease, top 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu-btn span:nth-child(1) { top: 13px; }
.mobile-menu-btn span:nth-child(2) { top: 20.5px; }
.mobile-menu-btn span:nth-child(3) { top: 28px; }

.mobile-menu-btn.active {
    background: #fae5e7;
    border-color: #f0a3a8;
}

.mobile-menu-btn.active span {
    background: var(--fire-red);
}

.mobile-menu-btn.active span:nth-child(1) { 
    transform: rotate(45deg); 
    top: 20.5px; 
}
.mobile-menu-btn.active span:nth-child(2) { 
    opacity: 0; 
    transform: scaleX(0); 
}
.mobile-menu-btn.active span:nth-child(3) { 
    transform: rotate(-45deg); 
    top: 20.5px; 
}

body.menu-open {
    overflow: hidden !important;
}

.nav-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.nav-backdrop.active {
    opacity: 1;
    visibility: visible;
}

/* Hero Section (Wix Civic Banner Style) */
.hero {
    height: 75vh;
    min-height: 560px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    background-color: var(--navy-blue);
    color: #ffffff;
}

.hero-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: linear-gradient(rgba(15, 25, 43, 0.25), rgba(15, 25, 43, 0.48)), url('hero-bg.jpg?v=2');
    background-size: cover;
    background-position: center;
    z-index: 0;
}

:root[data-theme="dark"] .hero-bg {
    background-image: linear-gradient(rgba(10, 15, 25, 0.55), rgba(10, 15, 25, 0.72)), url('hero-bg.jpg?v=2');
}

.hero-content {
    max-width: 900px;
    padding: 0 2rem;
    position: relative;
    z-index: 1;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

.hero-subtitle {
    font-size: 1.15rem;
    color: #fbbf24;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
    margin-bottom: 0.75rem;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
}

.hero-title {
    font-size: clamp(3.2rem, 7vw, 5.8rem);
    font-weight: 900;
    margin-bottom: 1.25rem;
    line-height: 1.1;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #ffffff;
    text-shadow: 0 3px 12px rgba(0, 0, 0, 0.7);
}

.hero-title span {
    color: var(--fire-red);
    display: inline-block;
    position: relative;
    white-space: nowrap;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.85);
}

.hero-title span::before {
    display: none;
}

.hero-desc {
    font-size: 1.15rem;
    color: #f1f5f9;
    max-width: 650px;
    margin: 0 auto 2rem;
    line-height: 1.6;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.hero-actions .btn-secondary {
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1.5px solid rgba(255, 255, 255, 0.35) !important;
    color: #ffffff !important;
    backdrop-filter: blur(8px);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}

.hero-actions .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.22) !important;
    border-color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
}

/* Civic Hero Badge Pill */
.hero-badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(10, 16, 28, 0.85);
    color: #f1f5f9;
    padding: 7px 20px;
    border-radius: 30px;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
    text-shadow: none;
}

.hero-badge-pill span {
    text-shadow: none;
}

.hero-badge-pill svg {
    color: var(--fire-red);
    stroke: var(--fire-red);
    flex-shrink: 0;
    filter: drop-shadow(0 0 6px rgba(155, 27, 36, 0.6));
}

/* Civic Trust Highlights Strip */
.hero-trust-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-top: 2.25rem;
    padding: 12px 24px;
    background: rgba(8, 14, 25, 0.82);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 6px;
    backdrop-filter: blur(12px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.45);
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #f1f5f9;
}

.trust-item svg {
    color: #fbbf24;
    stroke: #fbbf24;
    flex-shrink: 0;
    filter: drop-shadow(0 0 5px rgba(251, 191, 36, 0.4));
}

.hero-short {
    height: 55vh;
    min-height: 420px;
}
.hero-membership {
    background: linear-gradient(rgba(15, 25, 43, 0.14), rgba(15, 25, 43, 0.24)),
                url('family.jpg?v=2') center 49%/cover !important;
}
.hero-apparatus {
    background: linear-gradient(rgba(10, 15, 25, 0.22), rgba(10, 15, 25, 0.45)),
                url('drill-2.jpeg?v=2') center/cover !important;
}
.hero-santa {
    background: linear-gradient(rgba(15, 25, 43, 0.25), rgba(15, 25, 43, 0.45)),
                url('santatitle.jpg') center/cover !important;
}
.small-hero.hero-news,
.hero-news {
    background: linear-gradient(rgba(10, 15, 25, 0.32), rgba(10, 15, 25, 0.58)),
                url('news-bg.jpg?v=120') center 32%/cover no-repeat !important;
    background-position: center 32% !important;
    text-shadow: 0 3px 14px rgba(0, 0, 0, 0.9);
}

:root[data-theme="dark"] .hero-membership {
    background: linear-gradient(rgba(10, 15, 25, 0.28), rgba(10, 15, 25, 0.36)),
                url('family.jpg?v=2') center 49%/cover !important;
}
:root[data-theme="dark"] .hero-apparatus {
    background: linear-gradient(rgba(10, 15, 25, 0.52), rgba(10, 15, 25, 0.70)),
                url('drill-2.jpeg?v=2') center/cover !important;
}
:root[data-theme="dark"] .hero-santa {
    background: linear-gradient(rgba(10, 15, 25, 0.52), rgba(10, 15, 25, 0.70)),
                url('santatitle.jpg') center/cover !important;
}
:root[data-theme="dark"] .small-hero.hero-news,
:root[data-theme="dark"] .hero-news {
    background: linear-gradient(rgba(10, 15, 25, 0.45), rgba(10, 15, 25, 0.72)),
                url('news-bg.jpg?v=120') center 32%/cover no-repeat !important;
    background-position: center 32% !important;
}
.small-hero {
    height: 50vh !important;
    min-height: 380px !important;
    background-size: cover !important;
    background-position: center !important;
}
.small-hero .hero-title {
    font-size: clamp(1.5rem, 5.5vw, 3.2rem) !important;
    line-height: 1.15;
    margin-bottom: 0.65rem;
    word-break: normal;
    overflow-wrap: break-word;
}
.small-hero .hero-subtitle {
    font-size: clamp(0.82rem, 3vw, 1.15rem) !important;
    line-height: 1.45;
    letter-spacing: 1.2px !important;
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
}

.scroll-indicator {
    display: none !important;
}

/* Sections (Alternating Wix Strips) */
.section {
    padding: 85px 0;
    position: relative;
    background-color: var(--bg-surface);
}

.section.dark-alt {
    background-color: var(--bg-surface-alt);
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
}

.section-title {
    font-size: 2.35rem;
    font-weight: 800;
    color: var(--text-heading);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
    text-align: center;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--fire-red);
    margin: 12px auto 16px;
    border-radius: 2px;
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.6;
}

#dates .section-title {
    color: #ffffff !important;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.85);
}

#dates .section-subtitle {
    color: rgba(255, 255, 255, 0.92) !important;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.75);
}

.text-huge {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    color: var(--text-heading);
}

/* About Grid */
.section-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3.5rem;
    align-items: center;
}

.section-text p {
    font-size: 1.05rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.65;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-light);
}

.stat-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.75rem 1.25rem;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-top: 4px solid var(--fire-red);
    border-radius: 6px;
    box-shadow: var(--card-shadow);
    text-align: center;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    font-weight: 900;
    color: var(--fire-red);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.95rem;
    color: var(--text-heading);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.image-placeholder {
    height: 480px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(rgba(15, 25, 43, 0.1), rgba(15, 25, 43, 0.45)),
                url('drill-1.jpg') center/cover;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border-light);
    box-shadow: var(--card-shadow);
}

.image-placeholder::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to top, rgba(15, 25, 43, 0.7), transparent);
}

.placeholder-text {
    position: absolute;
    bottom: 25px;
    left: 25px;
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 800;
    color: #ffffff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
    z-index: 1;
}

/* Apparatus Cards */
.cards-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    margin-top: 3rem;
}

.card {
    flex: 1 1 300px;
    max-width: 350px;
    width: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.card-img-wrapper {
    height: 250px;
    position: relative;
    overflow: hidden;
}

.card-img-placeholder {
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.02);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--text-secondary);
    transition: transform var(--transition-normal);
    filter: none !important;
    -webkit-filter: none !important;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: high-quality;
}

/* Specific placeholder backgrounds based on text */
#active-fleet .card:nth-child(1) .card-img-placeholder {
    background: linear-gradient(rgba(0,0,0,0.0), rgba(0,0,0,0.45)), url('truck46.jpg?v=11') center/cover;
    color: white; font-weight: 800; text-shadow: 0 2px 8px rgba(0,0,0,0.9);
}
#active-fleet .card:nth-child(2) .card-img-placeholder {
    background: linear-gradient(rgba(0,0,0,0.0), rgba(0,0,0,0.45)), url('engine46-8.jpg?v=11') center/cover;
    color: white; font-weight: 800; text-shadow: 0 2px 8px rgba(0,0,0,0.9);
}
#active-fleet .card:nth-child(3) .card-img-placeholder {
    background: linear-gradient(rgba(0,0,0,0.0), rgba(0,0,0,0.45)), url('engine46-7.jpg?v=11') center/cover;
    color: white; font-weight: 800; text-shadow: 0 2px 8px rgba(0,0,0,0.9);
}
#active-fleet .card:nth-child(4) .card-img-placeholder {
    background: linear-gradient(rgba(0,0,0,0.0), rgba(0,0,0,0.45)), url('rescue46.jpg?v=11') center/cover;
    color: white; font-weight: 800; text-shadow: 0 2px 8px rgba(0,0,0,0.9);
}
#active-fleet .card:nth-child(5) .card-img-placeholder {
    background: linear-gradient(rgba(0,0,0,0.0), rgba(0,0,0,0.45)), url('brush46.jpg?v=11') center/cover;
    color: white; font-weight: 800; text-shadow: 0 2px 8px rgba(0,0,0,0.9);
}
#active-fleet .card:nth-child(6) .card-img-placeholder {
    background: linear-gradient(rgba(0,0,0,0.0), rgba(0,0,0,0.45)), url('marine46.jpg?v=11') center/cover;
    color: white; font-weight: 800; text-shadow: 0 2px 8px rgba(0,0,0,0.9);
}
#active-fleet .card:nth-child(7) .card-img-placeholder {
    background: linear-gradient(rgba(0,0,0,0.0), rgba(0,0,0,0.45)), url('car46.jpg?v=11') center/cover;
    color: white; font-weight: 800; text-shadow: 0 2px 8px rgba(0,0,0,0.9);
}
.card-img-placeholder.img-car462,
#active-fleet .card:nth-child(8) .card-img-placeholder {
    background: linear-gradient(rgba(0,0,0,0.0), rgba(0,0,0,0.45)), url('car462.jpg?v=11') center 65% / 140% no-repeat;
    color: white; font-weight: 800; text-shadow: 0 2px 8px rgba(0,0,0,0.9);
}
.card-img-placeholder.img-retired108 {
    background: linear-gradient(rgba(0,0,0,0.0), rgba(0,0,0,0.45)), url('retired108.jpg?v=11') center/cover;
    color: white; font-weight: 800; text-shadow: 0 2px 8px rgba(0,0,0,0.9);
}
.card-img-placeholder.img-retiredtower {
    background: linear-gradient(rgba(0,0,0,0.0), rgba(0,0,0,0.45)), url('retiredtower.jpg?v=11') center/cover;
    color: white; font-weight: 800; text-shadow: 0 2px 8px rgba(0,0,0,0.9);
}
.card-img-placeholder.img-retiredbrush {
    background: linear-gradient(rgba(0,0,0,0.0), rgba(0,0,0,0.45)), url('retiredbrush.jpg?v=11') center/cover;
    color: white; font-weight: 800; text-shadow: 0 2px 8px rgba(0,0,0,0.9);
}

.card:hover .card-img-placeholder {
    transform: scale(1.05);
}

.card-content {
    padding: 2rem;
    flex-grow: 1;
}

.card-content h3,
.card h3,
.cards-grid h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.card-content p {
    color: var(--text-secondary);
    font-size: 1rem;
}

.tech-specs {
    list-style-type: none;
    padding: 0;
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.tech-specs li {
    padding-bottom: 0.4rem;
    margin-bottom: 0.4rem;
    border-bottom: 1px solid var(--border-light);
}

.tech-specs li:last-child {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
}

/* Volunteer Form */
.hero-like {
    background: linear-gradient(to bottom, transparent, rgba(179, 33, 43, 0.05));
}

.cta-wrapper {
    max-width: 100%;
    width: 100%;
    margin: 4rem auto 0;
}

/* Form Inputs & Elements (Contact, Recruitment & Admin) */
.contact-form,
.membership-application-form,
.admin-form-container,
.admin-form,
#admin-login-form,
#admin-publish-form {
    width: 100%;
}

/* Standalone Application & Contact Form Panels */
.contact-form.glass-panel,
#membership-application-form {
    padding: 3rem;
    background: #ffffff;
    border-radius: 6px;
    border: 1px solid var(--border-light);
    box-shadow: var(--card-shadow);
    box-sizing: border-box;
}

.recruit-form-card .contact-form {
    padding: 0 !important;
}

.contact-form .form-group,
.membership-application-form .form-group,
.recruit-form-card .form-group,
.admin-form-container .form-group,
.admin-form .form-group,
#admin-login-form .form-group,
#admin-publish-form .form-group {
    width: 100%;
    margin-bottom: 1.25rem;
}

.contact-form input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
.contact-form textarea,
.contact-form select,
.recruit-form-card input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
.recruit-form-card textarea,
.recruit-form-card select,
.membership-application-form input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
.membership-application-form textarea,
.membership-application-form select,
.admin-form-container input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
.admin-form-container textarea,
.admin-form-container select,
.admin-form input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
.admin-form textarea,
.admin-form select,
#admin-login-form input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
#admin-publish-form input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
#admin-publish-form select {
    width: 100%;
    padding: 13px 16px;
    background: var(--bg-input);
    border: 1.5px solid var(--border-subtle);
    border-radius: 4px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1rem;
    box-sizing: border-box;
    transition: all var(--transition-fast);
    display: block;
}

/* Fix browser autofill / autocomplete background & text color contrast */
input:-webkit-autofill,
input:-webkit-autofill:hover, 
input:-webkit-autofill:focus, 
input:-webkit-autofill:active,
textarea:-webkit-autofill,
textarea:-webkit-autofill:hover,
textarea:-webkit-autofill:focus,
select:-webkit-autofill,
select:-webkit-autofill:hover,
select:-webkit-autofill:focus {
    -webkit-text-fill-color: var(--text-primary) !important;
    -webkit-box-shadow: 0 0 0 1000px var(--bg-input) inset !important;
    box-shadow: 0 0 0 1000px var(--bg-input) inset !important;
    color: var(--text-primary) !important;
    caret-color: var(--text-primary) !important;
    transition: background-color 5000s ease-in-out 0s, color 5000s ease-in-out 0s;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder,
.recruit-form-card input::placeholder,
.recruit-form-card textarea::placeholder,
.membership-application-form input::placeholder,
.membership-application-form textarea::placeholder,
.admin-form-container input::placeholder,
.admin-form-container textarea::placeholder,
.admin-form input::placeholder,
.admin-form textarea::placeholder,
#admin-login-form input::placeholder,
#admin-publish-form input::placeholder {
    color: #94a3b8;
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus,
.recruit-form-card input:focus,
.recruit-form-card textarea:focus,
.recruit-form-card select:focus,
.membership-application-form input:focus,
.membership-application-form textarea:focus,
.membership-application-form select:focus,
.admin-form-container input:focus,
.admin-form-container textarea:focus,
.admin-form-container select:focus,
.admin-form input:focus,
.admin-form textarea:focus,
.admin-form select:focus,
#admin-login-form input:focus,
#admin-publish-form input:focus,
#admin-publish-form select:focus {
    outline: none;
    border-color: var(--fire-red);
    box-shadow: 0 0 0 3px rgba(155, 27, 36, 0.15);
    background: var(--bg-input);
}

.contact-form select,
.recruit-form-card select,
.membership-application-form select,
.admin-form-container select,
.admin-form select,
#admin-publish-form select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23475569' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 42px;
    cursor: pointer;
}

.contact-form select option,
.recruit-form-card select option,
.membership-application-form select option,
.admin-form-container select option,
.admin-form select option,
#admin-publish-form select option {
    background: var(--bg-input);
    color: var(--text-primary);
    padding: 10px;
}

.contact-form textarea,
.recruit-form-card textarea,
.membership-application-form textarea,
.admin-form-container textarea,
.admin-form textarea {
    height: 120px;
    resize: vertical;
}

.form-note {
    font-size: 0.88rem;
    color: var(--text-secondary);
    margin-top: 1rem;
    text-align: center;
}

/* Footer (Wix Civic Navy Footer) */
footer {
    background: var(--navy-dark);
    border-top: 4px solid var(--fire-red);
    padding: 4.5rem 2rem 2.5rem;
    color: #cbd5e1;
    position: relative;
    z-index: 5;
    clear: both;
}

.footer-container {
    max-width: var(--container-width);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.75rem;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.35rem;
    color: #ffffff;
    letter-spacing: 0.3px;
}

.footer-info {
    color: #94a3b8;
    font-size: 0.95rem;
    line-height: 1.6;
}

.footer-info p {
    margin-bottom: 0.5rem;
}

.footer-info strong {
    color: #ffffff;
}

/* Footer Social Links */
.footer-social {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.85rem;
    flex-wrap: wrap;
    margin-top: 0.25rem;
}

.footer-social-link {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 8px 18px;
    border-radius: 4px;
    font-size: 0.88rem;
    font-weight: 700;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    text-decoration: none;
    transition: all var(--transition-fast);
}

.footer-social-link svg {
    flex-shrink: 0;
    transition: transform var(--transition-fast);
}

.footer-social-link:focus,
.footer-social-link:focus-visible {
    outline: none;
    border-color: var(--fire-red);
    box-shadow: 0 0 0 3px rgba(155, 27, 36, 0.3);
}

.footer-social-link:hover {
    transform: translateY(-2px);
    background: var(--fire-red);
    border-color: var(--fire-red);
    color: #ffffff;
}

.footer-social-link.facebook:hover {
    background: #1877f2;
    border-color: #1877f2;
}

.footer-social-link.instagram:hover {
    background: #e1306c;
    border-color: #e1306c;
}

.footer-social-link.twitter:hover {
    background: #0f172a;
    border-color: #334155;
}

.footer-copy {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
    color: #94a3b8;
    font-size: 0.88rem;
}

.footer-copy a {
    color: #cbd5e1;
    text-decoration: underline;
    transition: color var(--transition-fast);
}

.footer-copy a:hover,
.footer-copy a:focus {
    color: #ffffff;
    text-decoration: underline;
}

/* Responsive Layouts */
@media (max-width: 992px) {
    .section-grid {
        grid-template-columns: 1fr;
    }
    .image-placeholder {
        height: 400px;
    }
    .hero-bg {
        background-attachment: scroll;
    }
}

/* Responsive Navigation (Clean Wix Mobile Header & Menu) */
@media (max-width: 1280px) {
    :root {
        --nav-height: 72px;
    }

    .navbar {
        height: var(--nav-height);
        background: var(--bg-navbar);
        border-bottom: 2px solid var(--border-light);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    }

    .nav-container {
        padding: 0 1.25rem;
    }

    .nav-logo {
        min-width: 0;
        flex: 1;
        margin-right: 0.75rem;
    }

    .nav-badge-img {
        height: 48px;
        width: auto;
        flex-shrink: 0;
    }

    .logo-text {
        white-space: normal;
        min-width: 0;
    }

    .logo-text .mtvfc {
        font-size: 0.95rem;
        line-height: 1.2;
        letter-spacing: 0.3px;
        white-space: normal;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        color: var(--text-heading);
    }

    .logo-text .subtitle {
        font-size: 0.72rem;
        letter-spacing: 1px;
        color: var(--fire-red);
    }

    .mobile-menu-btn {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: var(--nav-height);
        left: 0;
        width: 100%;
        max-height: calc(100vh - var(--nav-height));
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        background: var(--bg-navbar);
        flex-direction: column;
        align-items: stretch;
        padding: 1.25rem 1.25rem 2rem;
        gap: 0.4rem;
        transform: translateY(-120%);
        opacity: 0;
        visibility: hidden;
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.25s ease, visibility 0.25s ease;
        border-bottom: 2px solid var(--border-light);
        box-shadow: 0 15px 30px rgba(0,0,0,0.18);
        z-index: 999;
    }
    
    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-links a {
        display: block;
        width: 100%;
        padding: 12px 14px;
        border-radius: 4px;
        font-size: 1rem;
        font-family: var(--font-heading);
        font-weight: 700;
        color: var(--text-heading) !important;
        background: transparent;
        border: none;
        border-bottom: 1px solid var(--border-divider);
        text-align: left;
        transition: background 0.15s ease, color 0.15s ease;
    }

    .nav-links a:hover,
    .nav-links a.active {
        background: rgba(155, 27, 36, 0.12);
        color: var(--fire-red) !important;
    }

    .nav-links a.nav-btn-donate {
        background: var(--fire-red) !important;
        color: #ffffff !important;
        margin-top: 0.5rem;
        text-align: center;
    }

    .nav-links a::after {
        display: none !important;
    }
}

/* Intermediate Desktop Scaling to Prevent Collision */
@media (min-width: 1281px) and (max-width: 1400px) {
    .nav-links {
        gap: 0.85rem;
    }
    .nav-links a:not(.btn-primary) {
        font-size: 0.9rem;
    }
    .logo-text .mtvfc {
        font-size: 1.1rem;
        letter-spacing: 0.5px;
    }
    .logo-text .subtitle {
        font-size: 0.75rem;
        letter-spacing: 1.5px;
    }
    .nav-badge-img {
        height: 65px;
    }
}

@media (max-width: 768px) {
    /* Eliminates laggy blank delays on single-column mobile view */
    .delay-1, .delay-2, .delay-3 {
        transition-delay: 0s !important;
    }

    #roster-container {
        opacity: 1 !important;
        transform: none !important;
    }

    /* Sections & Spacing */
    .section {
        padding: 55px 0;
    }

    .container {
        padding: 0 1.25rem;
    }

    .section-title {
        font-size: clamp(1.85rem, 6.5vw, 2.5rem);
        line-height: 1.15;
    }

    .section-subtitle {
        font-size: 0.98rem;
        margin-bottom: 2rem;
    }

    /* Hero Section - Eliminate All Collisions & Overlaps */
    .hero {
        height: auto;
        min-height: 100vh;
        min-height: 100svh;
        padding: calc(var(--nav-height, 72px) + 2rem) 1rem 3rem;
        overflow: visible;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .hero-short,
    .small-hero {
        height: auto !important;
        min-height: 300px !important;
        padding: calc(var(--nav-height, 72px) + 2.5rem) 1rem 3rem !important;
    }

    .hero-content {
        padding: 0 0.5rem;
        margin-top: 0 !important;
        width: 100%;
        max-width: 100%;
    }

    .hero-title {
        font-size: clamp(2.3rem, 8.5vw, 3.8rem);
        margin-bottom: 1.2rem;
        line-height: 1.12;
        letter-spacing: -1px;
    }

    .hero-title span::before {
        left: -3px;
        top: -3px;
        text-shadow: 2px 2px 0 #000, 2.5px 2.5px 0 #000;
    }

    .hero-subtitle {
        font-size: 0.95rem;
        letter-spacing: 2px;
        margin-bottom: 0.8rem;
    }

    .hero-desc {
        font-size: 0.98rem;
        line-height: 1.6;
        margin-bottom: 1.5rem;
    }

    .hero-badge-pill {
        font-size: 0.82rem;
        padding: 6px 14px;
        margin-bottom: 1.25rem;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
        max-width: 320px;
        margin: 0 auto;
        gap: 0.75rem;
    }

    .hero-actions .btn,
    .hero-actions .btn-primary,
    .hero-actions .btn-secondary {
        width: 100%;
        padding: 14px 20px;
        font-size: 1rem;
        text-align: center;
    }

    /* Hero Quick Trust Ribbon - Stack Cleanly */
    .hero-trust-bar {
        margin-top: 2rem;
        padding: 1.2rem 1.25rem;
        border-radius: 16px;
        gap: 0.85rem;
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
        max-width: 360px;
        margin-left: auto;
        margin-right: auto;
    }

    .trust-item {
        font-size: 0.88rem;
        gap: 8px;
    }

    /* Hide scroll indicator to prevent collision with trust bar and buttons */
    .scroll-indicator {
        display: none !important;
    }

    /* Stats Grid */
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding-top: 1.5rem;
        margin-top: 2rem;
    }

    .stat-card {
        padding: 1.25rem;
    }

    /* Roles Grid */
    .roles-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-top: 1.5rem;
    }

    .role-card {
        padding: 1.5rem;
    }

    /* Forms */
    .contact-form {
        padding: 1.5rem 1.25rem;
    }

    .recruit-form-card,
    #membership-application-form,
    .contact-form.glass-panel {
        padding: 1.75rem 1.25rem !important;
    }

    .recruit-form-card .contact-form {
        padding: 0 !important;
    }

    .recruit-form-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    /* Cards & Apparatus Grid */
    .cards-grid {
        gap: 1.25rem;
        margin-top: 1.5rem;
    }

    .card {
        max-width: 100%;
    }

    /* Membership Grid */
    .membership-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .membership-card {
        padding: 1.5rem 1.25rem;
    }

    /* Donation Grid */
    .donation-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .donation-info,
    .donation-cta {
        padding: 1.5rem 1.25rem;
    }

    /* News Grid */
    .news-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    /* Station Info Grid */
    .station-info-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .station-panel {
        padding: 1.5rem 1.25rem;
    }

    /* Admin Login Screen & Form */
    .admin-form-container {
        padding: 2rem 1.5rem;
        margin-top: 2rem;
    }

    .admin-dashboard-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .admin-form,
    .admin-posts-list {
        padding: 1.5rem 1.25rem;
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }

    /* Footer */
    .footer {
        padding: 3.5rem 0 2rem;
    }

    .footer-brand {
        font-size: 1.2rem;
        flex-direction: column;
        gap: 8px;
    }

    .footer-badge-img {
        height: 50px;
        margin-right: 0;
    }
}

/* Station Info & Recent Posts Section */
.station-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
    align-items: stretch;
}

.station-panel {
    border-radius: 6px;
    padding: 1.75rem 2rem;
    display: flex;
    flex-direction: column;
    text-align: left;
    height: 100%;
    box-sizing: border-box;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    box-shadow: var(--card-shadow);
}

.station-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
    padding-bottom: 0.85rem;
    border-bottom: 1px solid var(--border-divider);
}

.station-panel-heading {
    display: flex;
    align-items: center;
    gap: 10px;
}

.station-panel-heading svg {
    color: var(--fire-red);
    stroke: var(--fire-red);
    flex-shrink: 0;
}

.station-panel-heading h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-heading);
    font-family: var(--font-heading);
    letter-spacing: -0.3px;
}

.station-panel-header .view-all-link {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--fire-red);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: all var(--transition-fast);
}

.station-panel-header .view-all-link:hover {
    color: var(--fire-red-dark);
    transform: translateX(3px);
}

.station-panel-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    justify-content: space-between;
}

.station-detail-item {
    display: flex;
    align-items: flex-start;
    gap: 1.15rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-divider);
}

.station-detail-item:first-child {
    padding-top: 0.25rem;
}

.station-detail-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.station-detail-icon {
    width: 36px;
    height: 36px;
    border-radius: 6px;
    background: #fae5e7;
    border: 1px solid #f5cdd0;
    color: var(--fire-red);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
}

.station-detail-icon svg {
    stroke: var(--fire-red);
}

.station-detail-text h4 {
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0 0 4px 0;
    color: var(--text-heading);
    font-family: var(--font-heading);
}

.station-detail-text p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.45;
    margin: 0;
}

.station-detail-text .detail-link {
    color: var(--fire-red);
    font-size: 0.85rem;
    font-weight: 700;
    display: inline-block;
    margin-top: 6px;
    transition: color var(--transition-fast);
}

.station-detail-text .detail-link:hover {
    color: var(--fire-red-dark);
}

.station-social-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.social-bar-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: var(--bg-card-alt);
    border: 1px solid var(--border-light);
    border-radius: 4px;
    color: var(--text-heading);
    font-size: 0.8rem;
    font-weight: 700;
    transition: all var(--transition-fast);
}

.social-bar-btn:hover {
    background: var(--fire-red);
    color: #ffffff;
    border-color: var(--fire-red);
}

/* Recent Posts List (Crisp & Clean) */
.recent-posts-list {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    flex: 1;
    justify-content: space-between;
}

.recent-post-item {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding: 0.9rem 1.1rem;
    background: var(--bg-card-alt);
    border: 1px solid var(--border-light);
    border-left: 3px solid var(--fire-red);
    border-radius: 4px;
    transition: all var(--transition-fast);
    text-decoration: none;
    color: inherit;
}

.recent-post-item.category-news {
    border-left-color: var(--gold);
}

.recent-post-item:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-subtle);
    border-left-width: 3px;
    transform: translateX(3px);
    box-shadow: var(--card-shadow);
}

.recent-post-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.recent-post-tag {
    font-size: 0.68rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 3px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.recent-post-tag.tag-news {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fde68a;
}

.recent-post-tag.tag-calls {
    background: #fae5e7;
    color: #7a151d;
    border: 1px solid #f5cdd0;
}

.recent-post-date {
    font-size: 0.78rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.recent-post-title {
    font-size: 0.98rem;
    font-weight: 700;
    color: var(--text-heading);
    margin: 0;
    line-height: 1.35;
    font-family: var(--font-heading);
    transition: color var(--transition-fast);
}

.recent-post-item:hover .recent-post-title {
    color: var(--fire-red);
}

.recent-post-snippet {
    font-size: 0.84rem;
    color: var(--text-secondary);
    line-height: 1.45;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.recent-posts-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 3rem 1.5rem;
    color: var(--text-secondary);
    gap: 0.75rem;
    flex: 1;
}

/* Call Stats Bar Chart */
.stats-chart-wrapper {
    padding: 2.5rem;
    text-align: left;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 6px;
    box-shadow: var(--card-shadow);
}

.stats-chart-wrapper h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    text-align: center;
    color: var(--text-heading);
    font-weight: 800;
}

.chart-bars {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.chart-bar-row {
    display: grid;
    grid-template-columns: 50px 1fr 50px;
    align-items: center;
    gap: 1.2rem;
}

.chart-bar-year {
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.chart-bar-track {
    height: 12px;
    background: var(--border-divider);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
    border: none;
}

.chart-bar-fill {
    height: 100%;
    background: var(--fire-red);
    border-radius: 4px;
    width: 0;
    transition: width 1.5s cubic-bezier(0.1, 0.8, 0.2, 1);
}

.visible .chart-bar-fill {
    width: var(--percent);
}

.chart-bar-row:hover .chart-bar-fill {
    filter: brightness(1.1);
}

.chart-bar-value {
    font-weight: 700;
    color: var(--text-heading);
    text-align: right;
    font-size: 0.95rem;
}

@media (max-width: 992px) {
    .station-info-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
}

/* Donations Section (Wix Civic Style) */
.donation-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 2.5rem;
    margin-top: 2rem;
}

.donation-info {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 6px;
    box-shadow: var(--card-shadow);
    padding: 2.5rem;
    text-align: left;
}

.donation-info h3 {
    color: var(--text-heading);
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.donation-cta {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-top: 4px solid var(--fire-red);
    border-radius: 6px;
    box-shadow: var(--card-shadow);
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.donation-cta h3 {
    color: var(--text-heading);
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.donation-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.donation-list li {
    display: flex;
    gap: 1.2rem;
    align-items: flex-start;
    line-height: 1.6;
    font-size: 1rem;
    color: var(--text-primary);
}

.donation-list-icon {
    background: #fae5e7;
    border: 1px solid #f5cdd0;
    border-radius: 6px;
    padding: 10px;
    color: var(--fire-red);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.paypal-logo-wrapper {
    margin-bottom: 1rem;
}

.paypal-badge {
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    border-radius: 50%;
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    margin: 0 auto;
}

.paypal-badge svg {
    stroke: #003087;
}

.donation-desc {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    max-width: 320px;
}

.btn-donate {
    width: 100%;
    max-width: 280px;
    margin-bottom: 1.5rem;
}

.alternative-donation {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-light);
    text-align: center;
    width: 100%;
}

.alternative-donation h4 {
    font-size: 1.1rem;
    color: var(--text-heading);
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.alternative-donation p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.5;
}

.mailing-box {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    padding: 0.75rem;
    font-family: monospace;
    font-size: 0.9rem;
    margin-top: 0.5rem !important;
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: white;
    display: inline-block;
    text-align: center;
    line-height: 1.4;
}

@media (max-width: 992px) {
    .donation-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
}

/* Social Links inside Follow Us Card */
.social-links-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin-top: 1.25rem;
    width: 100%;
}

.social-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    color: white;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all var(--transition-fast);
}

.social-btn:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
}

.facebook-btn:hover {
    background: rgba(24, 119, 242, 0.15);
    border-color: rgba(24, 119, 242, 0.3);
    color: #1877f2;
}

.instagram-btn:hover {
    background: rgba(225, 48, 108, 0.15);
    border-color: rgba(225, 48, 108, 0.3);
    color: #e1306c;
}

.x-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.25);
    color: white;
}

.flickr-btn:hover {
    background: rgba(255, 0, 132, 0.15);
    border-color: rgba(255, 0, 132, 0.3);
    color: #ff0084;
}

@media (max-width: 480px) {
    .social-links-grid {
        grid-template-columns: 1fr;
    }
}

/* FAQ Section */
.faq-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1rem 0;
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--card-shadow);
    overflow: hidden;
}

.faq-item:hover {
    border-color: var(--border-subtle);
    background: var(--bg-card-alt);
    box-shadow: var(--card-shadow-hover);
}

.faq-item[open] {
    border-color: var(--border-subtle);
    background: var(--bg-card-alt);
    box-shadow: var(--card-shadow);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
    list-style: none;
    user-select: none;
}

.faq-question::-webkit-details-marker {
    display: none;
}

.faq-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    color: var(--fire-red);
    transition: transform 0.3s ease, background-color 0.3s ease, color 0.3s ease;
    flex-shrink: 0;
    margin-left: 1rem;
}

.faq-item:hover .faq-icon {
    background: rgba(179, 33, 43, 0.15);
    color: var(--fire-red);
}

.faq-item[open] .faq-icon {
    transform: rotate(180deg);
    background: rgba(179, 33, 43, 0.25);
    color: var(--fire-red);
}

.faq-answer {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-divider);
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 0.98rem;
}

.faq-answer p {
    margin-bottom: 0.5rem;
}

.faq-answer p:last-child {
    margin-bottom: 0;
}

.faq-answer a {
    color: var(--fire-red);
    text-decoration: underline;
    font-weight: 500;
    transition: color 0.2s ease;
}

.faq-answer a:hover {
    color: var(--gold);
}

/* News & Fire Calls Feed Layout */
.news-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1rem;
}

.news-filter-bar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    margin: 0 auto 3rem auto;
    padding: 5px;
    background: var(--bg-card);
    border: 1.5px solid var(--border-light);
    border-radius: 999px;
    box-shadow: var(--card-shadow);
    max-width: 100%;
}

.filter-btn {
    position: relative;
    padding: 9px 22px;
    border-radius: 999px;
    font-family: var(--font-heading);
    font-size: 0.92rem;
    font-weight: 700;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    white-space: nowrap;
}

.filter-btn:hover {
    color: var(--text-heading);
    background: rgba(125, 125, 125, 0.12);
}

.filter-btn.active {
    background: var(--fire-red);
    color: #ffffff !important;
    border-color: var(--fire-red);
    box-shadow: 0 2px 10px rgba(155, 27, 36, 0.35);
    transform: none;
}

.news-empty-state {
    padding: 4rem 2rem;
    text-align: center;
    border-radius: 6px;
    border: 1.5px dashed var(--border-subtle);
    background: var(--bg-card);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    box-shadow: var(--card-shadow);
    transition: all var(--transition-normal);
}

.news-empty-state:hover {
    border-color: var(--fire-red);
    box-shadow: var(--card-shadow-hover);
}

.empty-state-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(179, 33, 43, 0.1);
    border: 1px solid rgba(179, 33, 43, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--fire-red);
    margin-bottom: 0.5rem;
    box-shadow: 0 4px 15px rgba(179, 33, 43, 0.15);
    transition: transform var(--transition-normal);
}

.news-empty-state:hover .empty-state-icon {
    transform: scale(1.05) rotate(3deg);
}

.empty-state-title {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-heading);
    margin-bottom: 0.5rem;
    letter-spacing: -0.5px;
}

.empty-state-desc {
    font-size: 1.05rem;
    color: var(--text-secondary);
    max-width: 520px;
    margin: 0 auto 1rem;
    line-height: 1.6;
}

.empty-state-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    width: 100%;
}

.admin-link {
    transition: color var(--transition-fast);
}

.admin-link:hover {
    color: white !important;
}

/* News & Fire Calls Grid Layout */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
    width: 100%;
    text-align: left;
}

.news-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-bottom: 3px solid var(--fire-red);
    box-shadow: var(--card-shadow);
    transition: box-shadow var(--transition-fast), border-color var(--transition-fast);
}

.news-card:hover {
    transform: none !important;
    box-shadow: var(--card-shadow-hover);
    border-color: var(--border-subtle);
    border-bottom: 3px solid var(--fire-red);
}

.news-card-img {
    height: 220px;
    background-size: cover;
    background-position: center;
    border-bottom: 1px solid var(--border-divider);
    background-color: var(--bg-darker);
    position: relative;
}

.news-card-body {
    padding: 1.75rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.news-card-tag {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.85rem;
    align-self: flex-start;
}

.tag-news {
    background: rgba(251, 192, 45, 0.15);
    color: var(--gold);
    border: 1px solid rgba(251, 192, 45, 0.25);
}

.tag-calls {
    background: rgba(179, 33, 43, 0.15);
    color: var(--fire-red);
    border: 1px solid rgba(179, 33, 43, 0.25);
}

.news-card-date {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.news-card-title {
    font-size: 1.35rem;
    color: var(--text-heading);
    margin-bottom: 0.85rem;
    line-height: 1.3;
    font-weight: 700;
}

.news-card-text {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 1;
    word-break: break-word;
}

.news-card-text p {
    margin: 0 0 0.85rem 0;
    line-height: 1.6;
    color: inherit;
}

.news-card-text p:last-child {
    margin-bottom: 0;
}

.news-card-text p:has(> br:only-child) {
    margin-bottom: 0.35rem;
}

.news-card-text ul,
.news-card-text ol {
    margin: 0.5rem 0 0.85rem 1.25rem;
    padding: 0;
}

.news-card-text li {
    margin-bottom: 0.25rem;
    line-height: 1.5;
}

.news-card-text a {
    color: var(--fire-red);
    text-decoration: underline;
    word-break: break-all;
}

.news-card-text strong,
.news-card-text b {
    color: var(--text-heading);
    font-weight: 600;
}

:root[data-theme="dark"] .news-card-text a {
    color: #f87171;
}

/* Floating Admin Access Badge */
.floating-admin-btn {
    position: fixed;
    bottom: 5.2rem;
    right: 24px;
    background: var(--gradient-primary);
    color: white;
    padding: 12px 20px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: 0 4px 20px rgba(179, 33, 43, 0.4);
    z-index: 999;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.floating-admin-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(179, 33, 43, 0.6);
    color: white;
}

/* Admin Dashboard & Forms Styling */
.admin-form-container {
    max-width: 440px;
    margin: 3rem auto;
    padding: 2.5rem 2rem;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 6px;
    box-shadow: var(--card-shadow);
}

.admin-form-container h2 {
    font-size: 1.85rem;
    margin-bottom: 0.5rem;
    text-align: center;
    color: var(--text-heading);
    font-weight: 800;
}

.admin-form-container p {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

.admin-dashboard {
    width: 100%;
    margin-top: 1rem;
}

.admin-dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid var(--border-light);
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.admin-dashboard-header h2 {
    margin-bottom: 0;
    font-size: 1.85rem;
    color: var(--text-heading);
    font-weight: 800;
}

.admin-welcome-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
}

#admin-welcome-heading {
    margin-bottom: 0;
    font-size: 1.85rem;
    color: var(--text-heading);
    font-weight: 800;
    border-radius: 4px;
    padding: 3px 8px;
    margin-left: -8px;
    cursor: text;
    transition: all var(--transition-fast);
    outline: none;
    border: 1.5px solid transparent;
}

#admin-welcome-heading:hover {
    border-color: rgba(22, 37, 61, 0.35);
    background: rgba(22, 37, 61, 0.04);
}

#admin-welcome-heading:focus {
    border-color: var(--fire-red);
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(155, 27, 36, 0.15);
}

.admin-welcome-edit-btn {
    background: transparent;
    border: none;
    font-size: 1.1rem;
    cursor: pointer;
    opacity: 0.45;
    padding: 4px;
    border-radius: 4px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: opacity var(--transition-fast), transform var(--transition-fast);
}

.admin-welcome-wrap:hover .admin-welcome-edit-btn {
    opacity: 0.9;
}

.admin-welcome-edit-btn:hover {
    opacity: 1;
    transform: scale(1.15);
}

:root[data-theme="dark"] #admin-welcome-heading:hover {
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.06);
}

:root[data-theme="dark"] #admin-welcome-heading:focus {
    border-color: var(--fire-red);
    background: var(--bg-card);
    box-shadow: 0 0 0 3px rgba(220, 58, 69, 0.25);
}

.admin-header-actions {
    display: flex;
    gap: 0.65rem;
    flex-wrap: wrap;
    align-items: center;
}

.admin-header-actions .btn,
.btn-admin-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    height: 42px;
    padding: 0 16px;
    font-size: 0.88rem;
    font-weight: 600;
    line-height: 1;
    border-radius: 4px;
    border: 1.5px solid #cbd5e1;
    background: #ffffff;
    color: #16253d;
    text-transform: none;
    letter-spacing: normal;
    cursor: pointer;
    white-space: nowrap;
    box-sizing: border-box;
    vertical-align: middle;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    transition: all var(--transition-fast);
    text-decoration: none;
}

.admin-header-actions .btn:hover,
.btn-admin-action:hover {
    background: #f1f5f9;
    border-color: #94a3b8;
    color: #0f172a;
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08);
}

/* Standby / subtle admin button */
.btn-admin-standby {
    background: #f8fafc;
    color: #475569;
    border: 1.5px solid #cbd5e1;
}

.btn-admin-standby:hover {
    background: #f1f5f9;
    color: #1e293b;
    border-color: #94a3b8;
}

/* Push to Git - Admin Header Button */
.admin-header-actions .btn-admin-git,
#admin-force-git-push-btn {
    background: #16253d !important;
    color: #ffffff !important;
    border: 1.5px solid #16253d !important;
}

.admin-header-actions .btn-admin-git:hover,
#admin-force-git-push-btn:hover {
    background: #0d1726 !important;
    border-color: #0d1726 !important;
    color: #ffffff !important;
}

/* Log Out - Admin Header Button */
.admin-header-actions .btn-admin-logout,
#admin-logout-btn {
    background: var(--fire-red) !important;
    color: #ffffff !important;
    border: 1.5px solid var(--fire-red) !important;
}

.admin-header-actions .btn-admin-logout:hover,
#admin-logout-btn:hover {
    background: var(--fire-red-dark) !important;
    border-color: var(--fire-red-dark) !important;
    color: #ffffff !important;
}

/* Dark Mode support for Admin Header & Action Buttons */
[data-theme="dark"] .admin-header-actions .btn,
[data-theme="dark"] .btn-admin-action,
:root[data-theme="dark"] .admin-header-actions .btn,
:root[data-theme="dark"] .btn-admin-action {
    background: #1e293b !important;
    color: #f8fafc !important;
    border-color: #334155 !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3) !important;
}

[data-theme="dark"] .admin-header-actions .btn:hover,
[data-theme="dark"] .btn-admin-action:hover,
:root[data-theme="dark"] .admin-header-actions .btn:hover,
:root[data-theme="dark"] .btn-admin-action:hover {
    background: #27354a !important;
    border-color: #475569 !important;
    color: #ffffff !important;
}

[data-theme="dark"] .btn-admin-standby,
:root[data-theme="dark"] .btn-admin-standby {
    background: #0f172a !important;
    color: #94a3b8 !important;
    border-color: #334155 !important;
}

[data-theme="dark"] .btn-admin-standby:hover,
:root[data-theme="dark"] .btn-admin-standby:hover {
    background: #1e293b !important;
    color: #f1f5f9 !important;
    border-color: #475569 !important;
}

[data-theme="dark"] .admin-header-actions .btn-admin-git,
[data-theme="dark"] #admin-force-git-push-btn,
:root[data-theme="dark"] .admin-header-actions .btn-admin-git,
:root[data-theme="dark"] #admin-force-git-push-btn {
    background: #1e293b !important;
    border-color: #334155 !important;
    color: #ffffff !important;
}

[data-theme="dark"] .admin-header-actions .btn-admin-git:hover,
[data-theme="dark"] #admin-force-git-push-btn:hover,
:root[data-theme="dark"] .admin-header-actions .btn-admin-git:hover,
:root[data-theme="dark"] #admin-force-git-push-btn:hover {
    background: #0f172a !important;
    border-color: #475569 !important;
}

/* System Dark Mode fallbacks */
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .admin-header-actions .btn,
    :root:not([data-theme="light"]) .btn-admin-action {
        background: #1e293b !important;
        color: #f8fafc !important;
        border-color: #334155 !important;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3) !important;
    }
    :root:not([data-theme="light"]) .admin-header-actions .btn:hover,
    :root:not([data-theme="light"]) .btn-admin-action:hover {
        background: #27354a !important;
        border-color: #475569 !important;
        color: #ffffff !important;
    }
    :root:not([data-theme="light"]) .btn-admin-standby {
        background: #0f172a !important;
        color: #94a3b8 !important;
        border-color: #334155 !important;
    }
    :root:not([data-theme="light"]) .btn-admin-standby:hover {
        background: #1e293b !important;
        color: #f1f5f9 !important;
        border-color: #475569 !important;
    }
    :root:not([data-theme="light"]) .admin-header-actions .btn-admin-git,
    :root:not([data-theme="light"]) #admin-force-git-push-btn {
        background: #1e293b !important;
        border-color: #334155 !important;
        color: #ffffff !important;
    }
    :root:not([data-theme="light"]) .admin-header-actions .btn-admin-git:hover,
    :root:not([data-theme="light"]) #admin-force-git-push-btn:hover {
        background: #0f172a !important;
        border-color: #475569 !important;
    }
}

/* Weather Status Banners on Admin Dashboard */
.admin-weather-status-auto {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.35);
    color: #065f46;
    padding: 10px 16px;
    border-radius: 6px;
    margin-bottom: 1.5rem;
    font-size: 0.88rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.admin-weather-status-inactive {
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    color: #334155;
    padding: 10px 16px;
    border-radius: 6px;
    margin-bottom: 1.5rem;
    font-size: 0.88rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

[data-theme="dark"] .admin-weather-status-auto,
:root[data-theme="dark"] .admin-weather-status-auto {
    background: rgba(16, 185, 129, 0.15);
    border-color: rgba(52, 211, 153, 0.4);
    color: #6ee7b7;
}

[data-theme="dark"] .admin-weather-status-inactive,
:root[data-theme="dark"] .admin-weather-status-inactive {
    background: #1e293b;
    border-color: #334155;
    color: #cbd5e1;
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .admin-weather-status-auto {
        background: rgba(16, 185, 129, 0.15);
        border-color: rgba(52, 211, 153, 0.4);
        color: #6ee7b7;
    }
    :root:not([data-theme="light"]) .admin-weather-status-inactive {
        background: #1e293b;
        border-color: #334155;
        color: #cbd5e1;
    }
}

/* Ensure select dropdown options render clearly in dark mode */
[data-theme="dark"] select option,
:root[data-theme="dark"] select option {
    background-color: #1e293b;
    color: #f8fafc;
}
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) select option {
        background-color: #1e293b;
        color: #f8fafc;
    }
}


.admin-dashboard-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 2rem;
    align-items: start;
}

@media (max-width: 992px) {
    .admin-dashboard-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

.admin-form {
    padding: 2rem;
    text-align: left;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 6px;
    box-shadow: var(--card-shadow);
}

.admin-form h3 {
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    color: var(--text-heading);
    font-weight: 800;
}

.form-row {
    display: flex;
    gap: 1rem;
}

.form-row .form-group {
    flex: 1;
}

.file-upload-wrapper {
    position: relative;
    margin-bottom: 1.5rem;
}

.file-upload-input {
    width: 100%;
    padding: 14px 18px;
    background: var(--bg-card-alt);
    border: 1.5px dashed var(--border-subtle);
    border-radius: 4px;
    color: var(--text-secondary);
    font-family: var(--font-body);
    font-size: 0.95rem;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.file-upload-input:hover {
    border-color: var(--fire-red);
    background: var(--bg-card);
}

.image-preview {
    margin-top: 1rem;
    max-height: 180px;
    width: 100%;
    border-radius: 4px;
    object-fit: cover;
    display: none;
    border: 1px solid var(--border-light);
}

.textarea-input {
    min-height: 150px;
    resize: vertical;
}

.btn-danger {
    background: #9b1b24;
    color: white;
}
.btn-danger:hover {
    background: #7a151d;
    transform: translateY(-2px);
}

.error-message {
    background: #fcf1f2;
    border: 1px solid #f5cdd0;
    color: #7a151d;
    padding: 12px 16px;
    border-radius: 4px;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    display: none;
    font-weight: 600;
}

.success-message {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #166534;
    padding: 12px 16px;
    border-radius: 4px;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    display: none;
    font-weight: 600;
}

.admin-posts-list {
    padding: 2rem 1.75rem;
    text-align: left;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 6px;
    box-shadow: var(--card-shadow);
    min-width: 0;
}

.admin-posts-list h3 {
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    color: var(--text-heading);
    font-weight: 800;
}

.admin-posts-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-height: 540px;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 0.35rem;
}

.admin-posts-container::-webkit-scrollbar {
    width: 6px;
    height: 0px;
}
.admin-posts-container::-webkit-scrollbar-track {
    background: var(--border-divider);
    border-radius: 3px;
}
.admin-posts-container::-webkit-scrollbar-thumb {
    background: var(--border-subtle);
    border-radius: 3px;
}

.admin-post-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    padding: 1.1rem 1.25rem;
    background: var(--bg-card-alt);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    gap: 0.85rem 1rem;
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.admin-post-item:hover {
    border-color: var(--border-medium);
}

.admin-post-info {
    flex: 1 1 200px;
    min-width: 0;
}

.admin-post-info h4 {
    font-size: 1.05rem;
    margin: 0 0 0.35rem 0;
    color: var(--text-heading);
    font-weight: 700;
    line-height: 1.35;
    word-break: break-word;
    overflow-wrap: break-word;
}

.admin-post-meta {
    font-size: 0.82rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px 8px;
    line-height: 1.4;
}

.admin-post-meta .meta-label {
    font-weight: 700;
    color: var(--text-heading);
}

.admin-post-meta .meta-sep {
    color: var(--border-medium);
    opacity: 0.7;
    user-select: none;
}

.admin-post-actions {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-shrink: 0;
    margin-left: auto;
}

.edit-tag-btn {
    padding: 6px 12px;
    font-size: 0.78rem;
    font-family: var(--font-heading);
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.edit-tag-btn.has-tag {
    border: 1px solid rgba(59, 130, 246, 0.4);
    background: rgba(59, 130, 246, 0.12);
    color: #2563eb;
}

.edit-tag-btn.no-tag {
    border: 1px dashed rgba(16, 185, 129, 0.5);
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
}

.edit-tag-btn:hover {
    transform: translateY(-1px);
}

:root[data-theme="dark"] .edit-tag-btn.has-tag {
    color: #93c5fd;
    background: rgba(59, 130, 246, 0.2);
}

:root[data-theme="dark"] .edit-tag-btn.no-tag {
    color: #34d399;
    background: rgba(16, 185, 129, 0.18);
}

.admin-post-actions .delete-btn {
    padding: 6px 14px;
    font-size: 0.82rem;
    font-family: var(--font-heading);
    font-weight: 600;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
    background: #9b1b24;
    color: white;
}

.admin-post-actions .delete-btn:hover {
    background: #7a151d;
    transform: translateY(-1px);
}

/* Plain Login Screen Layout */
.plain-login-body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: var(--bg-page);
    margin: 0;
    padding: 0;
}

.plain-login-body .top-bar {
    width: 100%;
    flex-shrink: 0;
}

.plain-login-body .navbar {
    width: 100%;
    flex-shrink: 0;
}

.plain-login-body main {
    flex: 1 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2.5rem 1rem !important;
    width: 100%;
}

.plain-login-body section {
    width: 100%;
    padding: 0 !important;
}

.plain-login-body .admin-form-container {
    margin: 0 auto !important;
    max-width: 440px;
    width: 100%;
}

/* Admin Edit Mode Visual Highlights */
body.admin-edit-mode [contenteditable="true"] {
    transition: outline var(--transition-fast), background-color var(--transition-fast);
    pointer-events: auto !important;
}

body.admin-edit-mode [contenteditable="true"]:hover {
    outline: 2px dashed rgba(179, 33, 43, 0.5);
    outline-offset: 4px;
    background-color: rgba(179, 33, 43, 0.05);
    cursor: pointer;
}

body.admin-edit-mode [contenteditable="true"]:focus {
    outline: 2px solid var(--fire-red);
    outline-offset: 4px;
    background-color: rgba(179, 33, 43, 0.08);
}

/* Ensure admin menu, floating bar, dashboard actions, and site navigation are strictly non-editable */
#admin-floating-bar,
.admin-floating-bar,
.admin-header-actions,
.admin-dashboard-header,
.admin-link,
#admin-navbar,
.navbar,
.nav-links,
.nav-dropdown-menu,
button,
.btn,
.station-image-change-btn,
.section-drag-handle,
.section-admin-bar,
.card-admin-remove-btn,
.section-item-upload-btn,
.section-card-add-btn,
.mobile-menu-btn,
.filter-btn,
.theme-switch-btn,
.slider-nav-btn,
.slider-dot,
.roster-card-remove-btn,
.apparatus-card-remove-btn,
.stat-row-remove-btn {
    -webkit-user-modify: read-only !important;
    user-select: none;
}

body.admin-edit-mode #admin-floating-bar,
body.admin-edit-mode .admin-floating-bar,
body.admin-edit-mode .admin-header-actions,
body.admin-edit-mode .admin-dashboard-header,
body.admin-edit-mode .admin-link,
body.admin-edit-mode #admin-navbar,
body.admin-edit-mode .navbar,
body.admin-edit-mode .nav-links,
body.admin-edit-mode .nav-dropdown-menu,
body.admin-edit-mode button,
body.admin-edit-mode .btn,
body.admin-edit-mode .station-image-change-btn,
body.admin-edit-mode #admin-floating-bar *,
body.admin-edit-mode .admin-floating-bar *,
body.admin-edit-mode .admin-header-actions *,
body.admin-edit-mode .admin-dashboard-header *,
body.admin-edit-mode .admin-link *,
body.admin-edit-mode #admin-navbar *,
body.admin-edit-mode .navbar *,
body.admin-edit-mode .nav-links *,
body.admin-edit-mode .nav-dropdown-menu *,
body.admin-edit-mode button *,
body.admin-edit-mode .btn *,
body.admin-edit-mode .station-image-change-btn * {
    outline: none !important;
}

body.admin-edit-mode #admin-floating-bar button,
body.admin-edit-mode #admin-floating-bar a,
body.admin-edit-mode .admin-header-actions button,
body.admin-edit-mode .admin-header-actions a,
body.admin-edit-mode .navbar a,
body.admin-edit-mode .admin-link,
body.admin-edit-mode button,
body.admin-edit-mode .btn {
    cursor: pointer !important;
}

/* ==========================================================================
   POWR Social Feed Container & Watermark Suppression
   ========================================================================== */

/* Official Instagram Feed Embed Styling */
.instagram-media {
    margin: 1.5rem auto !important;
    display: block !important;
    background: #ffffff !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12) !important;
}

:root[data-theme="dark"] .instagram-media {
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.45) !important;
}

/* Feed section boundary & containment */
#home-facebook-feed-section,
#news-facebook-feed-section {
    position: relative;
    overflow: hidden !important;
}

/* Hide Third-Party POWR Admin Bar, Edit App controls, Watermark, and Branding */
#editMe,
.editMeBtnGroup,
.editMeBtn,
#editMeEditApp,
#editMeRateUs,
.editMeSpan,
.editMeMenu,
.rateUsMenu,
.adminAppInfo,
[id*="editMe"],
[class*="editMe"],
.powrMark,
[class*="powrMark"],
[id*="powrMark"],
.powr-branding,
.powrBranding,
[class*="powrBranding"],
[class*="powr-branding"],
[id*="powrBranding"],
.powr-badge,
[class*="powr-badge"],
.js-powrMark,
.watermark-create-free,
.powr-social-feed a[href*="powr.io"],
.powr-social-feed [class*="powrBranding"],
.powr-social-feed [class*="branding"],
.powr-social-feed [class*="badge"],
.powr-social-feed [id*="branding"],
a[href*="powr.io"],
a[href*="powr.io/plugins"],
div[class*="powr-social-feed"] > div:last-child a[href*="powr.io"] {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    max-height: 0 !important;
    opacity: 0 !important;
    pointer-events: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* ==========================================================================
   Homepage Recruitment Enhancement Styles (Wix Civic Template Style)
   ========================================================================== */

/* Role Pathway Cards - 4 in Line */
#roles .container {
    max-width: 1400px;
}

.roles-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
    margin-top: 2.5rem;
    align-items: stretch;
}

@media (max-width: 1120px) {
    .roles-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

@media (max-width: 640px) {
    .roles-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
}

.role-card {
    background: var(--bg-card);
    border-radius: 4px;
    padding: 1.85rem 1.25rem;
    display: flex;
    flex-direction: column;
    text-align: left;
    height: 100%;
    box-sizing: border-box;
    border: 1px solid var(--border-light);
    border-top: 4px solid var(--fire-red);
    box-shadow: var(--card-shadow);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.role-card:hover {
    transform: none !important;
    border-color: var(--border-subtle);
    box-shadow: var(--card-shadow-hover);
}

.role-card.role-firefighter {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-top: 5px solid var(--fire-red);
    box-shadow: var(--card-shadow);
    position: relative;
}

.role-card.role-firefighter:hover {
    transform: none !important;
    box-shadow: var(--card-shadow-hover);
    border-top-color: var(--fire-red-dark);
}

.role-card.role-junior {
    border-top: 4px solid #1e40af;
}

.role-card.role-associate {
    border-top: 4px solid var(--gold);
}

.role-header {
    margin-bottom: 1.5rem;
}

.role-badge-tag {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.74rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.75rem;
}

.role-card.role-firefighter .role-badge-tag {
    background: #fae5e7;
    color: #7a151d;
    border: 1px solid #f5cdd0;
}

.role-card.role-junior .role-badge-tag {
    background: #dbeafe;
    color: #1e40af;
    border: 1px solid #bfdbfe;
}

.role-card.role-associate .role-badge-tag {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fde68a;
}

.role-card h3 {
    font-size: 1.35rem;
    color: var(--text-heading);
    font-family: var(--font-heading);
    font-weight: 800;
    margin: 0 0 0.5rem 0;
}

.role-desc {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1.25rem;
}

.role-features {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem 0;
    flex: 1;
}

.role-features li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 7px 0;
    color: var(--text-primary);
    font-size: 0.88rem;
    line-height: 1.45;
    border-bottom: 1px solid var(--border-divider);
}

.role-features li:last-child {
    border-bottom: none;
}

.role-features li svg {
    color: var(--fire-red);
    stroke: var(--fire-red);
    flex-shrink: 0;
    margin-top: 3px;
}

.role-card .btn {
    padding: 11px 12px;
    font-size: 0.86rem;
    letter-spacing: 0.3px;
    white-space: nowrap;
    margin-top: auto;
}

/* Homepage Quick Application Form Section */
.recruit-form-card {
    max-width: 100%;
    width: 100%;
    margin: 3rem auto 0;
    padding: 3rem;
    border-radius: 6px;
    border: 1px solid var(--border-light);
    background: var(--bg-card);
    box-shadow: var(--card-shadow);
}

.open-drill-banner {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 1rem 1.25rem;
    background: var(--bg-card-alt);
    border: 1px solid var(--border-light);
    border-left: 4px solid var(--fire-red);
    border-radius: 4px;
    margin-bottom: 2rem;
    text-align: left;
}

.open-drill-banner svg {
    color: var(--fire-red);
    stroke: var(--fire-red);
    flex-shrink: 0;
}

.open-drill-banner h4 {
    margin: 0;
    color: var(--text-heading);
    font-size: 1.05rem;
    font-weight: 800;
}

.open-drill-banner p {
    margin: 2px 0 0 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.recruit-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    margin-bottom: 1.25rem;
    width: 100%;
}

.recruit-form-grid .form-group {
    width: 100%;
    margin-bottom: 0;
}

.recruit-form-card button[type="submit"] {
    margin-top: 0.5rem;
}

@media (max-width: 768px) {
    .recruit-form-grid {
        grid-template-columns: 1fr;
    }
    .recruit-form-card {
        padding: 1.75rem 1.25rem;
    }
}

/* ==========================================================================
   Membership Page Cards & Grid (Wix Template Style)
   ========================================================================== */
.membership-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.75rem;
    align-items: stretch;
    margin-bottom: 3.5rem;
}

@media (max-width: 960px) {
    .membership-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

.membership-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-top: 4px solid var(--fire-red);
    border-radius: 6px;
    padding: 2rem 1.75rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
    position: relative;
    box-shadow: var(--card-shadow);
}

.membership-card:hover {
    transform: none !important;
    border-color: var(--border-subtle);
    box-shadow: var(--card-shadow-hover);
}

.membership-card.card-firefighter {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-top: 5px solid var(--fire-red);
    box-shadow: var(--card-shadow);
}

.membership-card.card-firefighter:hover {
    transform: none !important;
    box-shadow: var(--card-shadow-hover);
    border-top-color: var(--fire-red-dark);
}

.membership-card.card-police {
    border-top: 4px solid #0284c7;
}

.membership-card.card-associate {
    border-top: 4px solid #9333ea;
}

.membership-card.card-junior {
    border-top: 4px solid var(--gold);
}

.membership-badge-tag {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.9rem;
}

.membership-badge-tag.tag-firefighter {
    background: #fae5e7;
    color: #7a151d;
    border: 1px solid #f5cdd0;
}

.membership-badge-tag.tag-police {
    background: #e0f2fe;
    color: #0369a1;
    border: 1px solid #bae6fd;
}

.membership-badge-tag.tag-associate {
    background: #f3e8ff;
    color: #6b21a8;
    border: 1px solid #e9d5ff;
}

.membership-badge-tag.tag-junior {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fde68a;
}

.membership-card-title {
    color: var(--text-heading);
    font-family: var(--font-heading);
    font-size: 1.55rem;
    font-weight: 800;
    margin: 0 0 0.5rem 0;
}

.membership-card-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.55;
    margin-bottom: 1.15rem;
}

.membership-card-list {
    list-style-type: none;
    padding-left: 0;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    line-height: 1.55;
}

.membership-card-list li {
    margin-bottom: 0.65rem;
    position: relative;
    padding-left: 1.35rem;
    color: var(--text-secondary);
}

.membership-card-list li strong {
    color: var(--text-primary);
}

.membership-card-list li .bullet-dot {
    position: absolute;
    left: 0;
    font-size: 1.15rem;
    line-height: 1.4;
}

.membership-card-list .dot-firefighter { color: var(--fire-red); }
.membership-card-list .dot-police { color: #0284c7; }
.membership-card-list .dot-associate { color: #9333ea; }
.membership-card-list .dot-junior { color: var(--gold); }

.membership-card-actions {
    margin-top: auto;
    padding-top: 1rem;
}

/* Roster Avatar Initials Live Editing */
.roster-avatar[contenteditable="true"] {
    cursor: text;
    transition: all 0.2s ease;
    user-select: text;
}

.roster-avatar[contenteditable="true"]:hover {
    outline: 2px dashed rgba(255, 255, 255, 0.5);
    outline-offset: 2px;
}

.roster-avatar[contenteditable="true"]:focus {
    outline: 2px solid var(--gold) !important;
    outline-offset: 2px;
    background: rgba(255, 255, 255, 0.2) !important;
}

/* Roster Card Remove Button */
.roster-card-remove-btn {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(179, 33, 43, 0.2);
    border: 1px solid rgba(179, 33, 43, 0.4);
    color: #ec8088;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 10;
    line-height: 1;
    padding: 0;
}

.roster-card-remove-btn:hover {
    background: var(--fire-red);
    color: #ffffff;
    border-color: var(--fire-red);
    transform: scale(1.15);
    box-shadow: 0 0 10px rgba(179, 33, 43, 0.6);
}

/* Roster Section Add Member Button */
.btn-roster-add-member {
    background: rgba(179, 33, 43, 0.12);
    color: #ec8088;
    border: 1px solid rgba(179, 33, 43, 0.3);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 600;
    font-family: var(--font-heading);
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
    display: none;
    align-items: center;
    gap: 4px;
    letter-spacing: 0.3px;
    flex-shrink: 0;
}

.btn-roster-add-member:hover {
    background: var(--fire-red);
    color: #ffffff;
    border-color: var(--fire-red);
    box-shadow: 0 0 12px rgba(179, 33, 43, 0.4);
    transform: translateY(-1px);
}

/* Roster Card NEW Tag Button & Admin Mode Controls */
.roster-card-tag-btn {
    position: absolute;
    top: 6px;
    right: 34px;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 0.62rem;
    font-weight: 700;
    padding: 2px 7px;
    height: 22px;
    border-radius: 6px;
    background: rgba(16, 185, 129, 0.12);
    border: 1px dashed rgba(16, 185, 129, 0.45);
    color: #34d399;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 10;
    font-family: var(--font-heading);
    line-height: 1;
    user-select: none;
    box-sizing: border-box;
}

.roster-card-tag-btn:hover {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-style: solid;
    border-color: #10b981;
    color: #ffffff;
    transform: scale(1.06);
    box-shadow: 0 2px 10px rgba(16, 185, 129, 0.4);
}

.admin-edit-mode .roster-card-remove-btn,
.admin-edit-mode .btn-roster-add-member {
    display: inline-flex;
}

.admin-edit-mode .roster-card-tag-btn {
    display: inline-flex;
}

.admin-edit-mode .roster-card .tag-new {
    top: 6px;
    right: 34px;
    height: 22px;
    box-sizing: border-box;
    cursor: text;
    user-select: text;
    z-index: 10;
    padding-right: 18px;
    position: absolute;
}

.roster-tag-delete-btn {
    display: none;
    position: absolute;
    right: 3px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.3);
    color: #ffffff;
    border: none;
    border-radius: 50%;
    width: 13px;
    height: 13px;
    font-size: 8px;
    line-height: 1;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    transition: background 0.15s ease, transform 0.15s ease;
    user-select: none;
}

.admin-edit-mode .roster-tag-delete-btn {
    display: inline-flex;
}

.roster-tag-delete-btn:hover {
    background: #dc3a45;
    transform: translateY(-50%) scale(1.15);
}

/* Roster Add Member Modal */
.roster-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.15s ease, visibility 0.15s ease;
    padding: 1rem;
    box-sizing: border-box;
}

.roster-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.roster-modal-card {
    background: var(--bg-modal);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    width: 100%;
    max-width: 460px;
    padding: 2rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    transform: none;
    box-sizing: border-box;
    position: relative;
    text-align: left;
}

.roster-modal-overlay.active .roster-modal-card {
    transform: none;
}

.roster-modal-header {
    margin-bottom: 1.5rem;
}

.roster-modal-title {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--text-heading);
    font-family: var(--font-heading);
    margin: 0 0 0.35rem 0;
}

.roster-modal-subtitle {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin: 0;
}

.roster-modal-form .form-group {
    margin-bottom: 1.15rem;
}

.roster-modal-form label {
    display: block;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-heading);
    margin-bottom: 0.4rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.roster-modal-form input[type="text"],
.roster-modal-form select {
    width: 100%;
    padding: 10px 14px;
    background: var(--bg-input);
    border: 1px solid var(--border-subtle);
    border-radius: 4px;
    color: var(--text-primary);
    font-size: 0.95rem;
    font-family: inherit;
    box-sizing: border-box;
    transition: border-color 0.15s ease;
}

.roster-modal-form select option {
    background: var(--bg-input);
    color: var(--text-primary);
}

.roster-modal-form input[type="text"]:focus,
.roster-modal-form select:focus {
    outline: none;
    border-color: var(--fire-red);
    box-shadow: 0 0 0 3px rgba(155, 27, 36, 0.15);
    background: var(--bg-input);
}

.roster-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    margin-top: 1.75rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-light);
}

.roster-modal-actions .btn {
    padding: 9px 18px;
    font-size: 0.9rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-family: var(--font-heading);
}

.btn-roster-cancel {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-secondary);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.btn-roster-cancel:hover {
    background: rgba(255, 255, 255, 0.15);
    color: white;
}

/* Roster Drag and Drop Admin Styles */
.roster-card-drag-handle {
    position: absolute;
    top: 7px;
    left: 8px;
    width: 22px;
    height: 22px;
    display: none;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.4);
    cursor: grab;
    font-size: 13px;
    letter-spacing: -1px;
    user-select: none;
    z-index: 10;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.roster-card-drag-handle:hover {
    color: var(--gold);
    background: rgba(212, 163, 115, 0.15);
    transform: scale(1.1);
}

.roster-card-drag-handle:active {
    cursor: grabbing;
}

.admin-edit-mode .roster-card-drag-handle {
    display: flex;
}

/* Edit mode card dragging styling */
.roster-card.roster-card-draggable {
    transition: transform 0.2s ease, opacity 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.roster-card.roster-card-dragging {
    opacity: 0.35 !important;
    transform: scale(0.96) !important;
    border: 2px dashed rgba(212, 163, 115, 0.6) !important;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5) !important;
}

/* Placeholder indicating drop landing spot */
.roster-drag-placeholder {
    border: 2px dashed rgba(212, 163, 115, 0.75);
    background: rgba(212, 163, 115, 0.08);
    border-radius: 12px;
    min-height: 86px;
    margin: 0;
    transition: all 0.15s ease;
    pointer-events: none;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.roster-drag-placeholder::after {
    content: 'Drop Member Here';
    font-size: 0.78rem;
    font-weight: 600;
    font-family: var(--font-heading);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: rgba(212, 163, 115, 0.6);
}

/* Highlight section grid when dragged over */
.roster-grid-modern.roster-grid-drag-hover {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 16px;
    outline: 2px dashed rgba(212, 163, 115, 0.3);
    outline-offset: 8px;
}

/* ==========================================================================
   Apparatus Admin Management Styles (Active & Retired)
   ========================================================================== */
.apparatus-admin-actions {
    margin-top: 1.25rem;
    display: none;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

body.admin-edit-mode .apparatus-admin-actions,
body.admin-logged-in.admin-edit-mode .apparatus-admin-actions {
    display: flex !important;
}

.btn-apparatus-add {
    background: linear-gradient(135deg, #b3212b 0%, #9b1b24 100%);
    color: #ffffff;
    font-weight: 700;
    font-size: 0.88rem;
    padding: 8px 18px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    display: none;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 14px rgba(179, 33, 43, 0.35);
    transition: all 0.2s ease;
    text-decoration: none;
}

.btn-apparatus-add:hover {
    background: #8b1820;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(179, 33, 43, 0.5);
    color: #ffffff;
}

body.admin-edit-mode .btn-apparatus-add,
body.admin-logged-in.admin-edit-mode .btn-apparatus-add {
    display: inline-flex !important;
}

/* Apparatus Card Admin Controls & Reorder Handles */
.apparatus-card-admin-header {
    position: absolute;
    top: 10px;
    left: 10px;
    display: none;
    align-items: center;
    gap: 6px;
    z-index: 10;
    pointer-events: auto;
}

.admin-edit-mode .apparatus-card-admin-header {
    display: flex !important;
}

.apparatus-admin-left {
    display: flex;
    align-items: center;
    gap: 4px;
}

.apparatus-card-drag-handle {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    background: rgba(15, 23, 42, 0.88);
    backdrop-filter: blur(4px);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: grab;
    font-size: 15px;
    letter-spacing: -1px;
    user-select: none;
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    transition: all 0.2s ease;
}

.apparatus-card-drag-handle:hover {
    background: #b3212b;
    color: #ffffff;
    transform: scale(1.08);
}

.apparatus-card-drag-handle:active {
    cursor: grabbing;
}

.apparatus-card-reorder-group {
    display: flex;
    gap: 3px;
}

.apparatus-move-btn {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    background: rgba(15, 23, 42, 0.88);
    backdrop-filter: blur(4px);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 17px;
    font-weight: 800;
    line-height: 1;
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    padding: 0;
    transition: all 0.2s ease;
}

.apparatus-move-btn:hover {
    background: #b3212b;
    color: #ffffff;
    transform: scale(1.1);
}

.apparatus-card-remove-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(220, 38, 38, 0.95);
    color: #ffffff;
    border: 2px solid #ffffff;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10;
    line-height: 1;
    padding: 0;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.apparatus-card-remove-btn:hover {
    background: #991b1b;
    transform: scale(1.15);
    box-shadow: 0 0 12px rgba(220, 38, 38, 0.8);
}

.admin-edit-mode .apparatus-card-remove-btn {
    display: inline-flex !important;
}

/* Dragging state for apparatus cards */
.apparatus-card-draggable {
    transition: transform 0.2s ease, opacity 0.2s ease, box-shadow 0.2s ease;
}

.apparatus-card-dragging {
    opacity: 0.35 !important;
    transform: scale(0.97);
    border: 2px dashed #b3212b !important;
    box-shadow: 0 0 20px rgba(179, 33, 43, 0.3) !important;
}

.apparatus-drag-placeholder {
    flex: 1 1 300px;
    max-width: 350px;
    min-height: 380px;
    border: 2px dashed #b3212b;
    border-radius: 12px;
    background: rgba(179, 33, 43, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    box-sizing: border-box;
}

.apparatus-drag-placeholder-inner {
    padding: 1.5rem;
    text-align: center;
    font-weight: 800;
    color: #b3212b;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    border: 1px dashed rgba(179, 33, 43, 0.4);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.6);
}

:root[data-theme="dark"] .apparatus-drag-placeholder-inner {
    background: rgba(15, 23, 42, 0.6);
}

/* ==========================================================================
   Add Apparatus Modal (Redesigned Civic UI)
   ========================================================================== */
.apparatus-add-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 16, 28, 0.78);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 999999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1.5rem 1rem;
    box-sizing: border-box;
}

.apparatus-add-modal-overlay.active {
    display: flex;
}

.apparatus-add-modal-card {
    background: #ffffff;
    color: #0f172a;
    width: 100%;
    max-width: 600px;
    max-height: 92vh;
    overflow-y: auto;
    border-radius: 16px;
    border: 1px solid rgba(226, 232, 240, 0.9);
    box-shadow: 0 25px 60px -12px rgba(0, 0, 0, 0.38);
    padding: 2.25rem;
    position: relative;
    box-sizing: border-box;
    animation: modalSlideUp 0.25s ease-out;
}

:root[data-theme="dark"] .apparatus-add-modal-card {
    background: #131b2e;
    color: #f8fafc;
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 25px 60px -12px rgba(0, 0, 0, 0.7);
}

.apparatus-add-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    padding-bottom: 1.15rem;
    border-bottom: 1px solid #e2e8f0;
}

:root[data-theme="dark"] .apparatus-add-modal-header {
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

.apparatus-modal-header-text {
    flex: 1;
}

.apparatus-add-modal-title {
    margin: 0;
    font-size: 1.45rem;
    font-weight: 800;
    color: #0f172a;
    font-family: var(--font-heading, inherit);
    display: flex;
    align-items: center;
    gap: 8px;
}

:root[data-theme="dark"] .apparatus-add-modal-title {
    color: #ffffff;
}

.apparatus-add-modal-subtitle {
    margin: 4px 0 0 0;
    font-size: 0.88rem;
    color: #64748b;
    line-height: 1.4;
}

:root[data-theme="dark"] .apparatus-add-modal-subtitle {
    color: #94a3b8;
}

.apparatus-add-modal-close {
    background: rgba(15, 23, 42, 0.05);
    border: none;
    font-size: 1.35rem;
    color: #64748b;
    cursor: pointer;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
    padding: 0;
    line-height: 1;
    margin-left: 12px;
}

.apparatus-add-modal-close:hover {
    background: rgba(179, 33, 43, 0.1);
    color: var(--fire-red, #b3212b);
}

:root[data-theme="dark"] .apparatus-add-modal-close {
    background: rgba(255, 255, 255, 0.08);
    color: #94a3b8;
}

:root[data-theme="dark"] .apparatus-add-modal-close:hover {
    background: rgba(220, 38, 38, 0.2);
    color: #f87171;
}

/* Modal Form Fields */
.apparatus-add-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    width: 100%;
}

.apparatus-form-group {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    margin: 0 !important;
    text-align: left !important;
}

.apparatus-form-label {
    display: block !important;
    width: 100% !important;
    font-size: 0.86rem !important;
    font-weight: 700 !important;
    color: #1e293b !important;
    margin-bottom: 0.45rem !important;
    text-align: left !important;
}

:root[data-theme="dark"] .apparatus-form-label {
    color: #f1f5f9 !important;
}

.required-star {
    color: var(--fire-red, #b3212b);
    margin-left: 3px;
    font-weight: 800;
}

.apparatus-form-input,
.apparatus-form-textarea {
    display: block !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 11px 14px !important;
    font-size: 0.92rem !important;
    font-family: var(--font-body, 'Inter', sans-serif) !important;
    border: 1.5px solid #cbd5e1 !important;
    border-radius: 8px !important;
    background: #f8fafc !important;
    color: #0f172a !important;
    line-height: 1.5 !important;
    transition: all 0.2s ease !important;
}

:root[data-theme="dark"] .apparatus-form-input,
:root[data-theme="dark"] .apparatus-form-textarea {
    background: #090e1a !important;
    border-color: #27354a !important;
    color: #f8fafc !important;
}

.apparatus-form-input:focus,
.apparatus-form-textarea:focus {
    outline: none !important;
    border-color: var(--fire-red, #b3212b) !important;
    background: #ffffff !important;
    box-shadow: 0 0 0 3px rgba(179, 33, 43, 0.18) !important;
}

:root[data-theme="dark"] .apparatus-form-input:focus,
:root[data-theme="dark"] .apparatus-form-textarea:focus {
    background: #0f172a !important;
    border-color: #ef4444 !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.22) !important;
}

.apparatus-form-textarea {
    resize: vertical;
    min-height: 105px;
}

.apparatus-form-hint {
    display: block;
    font-size: 0.78rem;
    color: #64748b;
    margin-top: 5px;
}

:root[data-theme="dark"] .apparatus-form-hint {
    color: #94a3b8;
}

/* Fleet Assignment Toggle (Segmented Control) */
.apparatus-status-toggle-group {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 8px !important;
    width: 100% !important;
    box-sizing: border-box !important;
    background: #f1f5f9 !important;
    padding: 5px !important;
    border-radius: 10px !important;
    border: 1px solid #e2e8f0 !important;
}

:root[data-theme="dark"] .apparatus-status-toggle-group {
    background: rgba(255, 255, 255, 0.05) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
}

.apparatus-status-btn {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    padding: 10px 14px !important;
    border-radius: 8px !important;
    border: 1.5px solid transparent !important;
    background: transparent !important;
    color: #475569 !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    text-align: left !important;
}

:root[data-theme="dark"] .apparatus-status-btn {
    color: #94a3b8 !important;
}

.apparatus-status-btn:hover:not(.active) {
    background: rgba(0, 0, 0, 0.04) !important;
    color: #0f172a !important;
}

:root[data-theme="dark"] .apparatus-status-btn:hover:not(.active) {
    background: rgba(255, 255, 255, 0.06) !important;
    color: #ffffff !important;
}

.apparatus-status-btn.active {
    background: linear-gradient(135deg, #b3212b 0%, #901720 100%) !important;
    color: #ffffff !important;
    border-color: #8b1820 !important;
    box-shadow: 0 3px 12px rgba(179, 33, 43, 0.35) !important;
}

.status-btn-icon {
    font-size: 1.3rem;
    flex-shrink: 0;
}

.status-btn-text {
    display: flex;
    flex-direction: column;
}

.status-btn-text strong {
    font-size: 0.88rem;
    font-weight: 700;
}

.status-btn-text small {
    font-size: 0.72rem;
    opacity: 0.85;
}

/* Photo Input & Upload Row */
.apparatus-photo-input-row {
    display: flex;
    gap: 8px;
    align-items: center;
    width: 100%;
}

.apparatus-photo-input-row .apparatus-form-input {
    flex: 1;
    min-width: 0;
}

.apparatus-file-upload-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 11px 16px;
    border-radius: 8px;
    background: rgba(179, 33, 43, 0.08);
    border: 1.5px solid rgba(179, 33, 43, 0.3);
    color: #b3212b;
    font-weight: 700;
    font-size: 0.86rem;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
    margin: 0;
    flex-shrink: 0;
}

.apparatus-file-upload-btn:hover {
    background: #b3212b;
    color: #ffffff;
    border-color: #b3212b;
}

:root[data-theme="dark"] .apparatus-file-upload-btn {
    background: rgba(179, 33, 43, 0.18);
    border-color: rgba(248, 113, 113, 0.4);
    color: #fca5a5;
}

:root[data-theme="dark"] .apparatus-file-upload-btn:hover {
    background: #dc2626;
    color: #ffffff;
    border-color: #dc2626;
}

.apparatus-file-upload-btn input[type="file"] {
    display: none !important;
}

.apparatus-img-preview-card {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 10px;
    padding: 10px 14px;
    background: #f8fafc;
    border: 1.5px solid #cbd5e1;
    border-radius: 8px;
    width: 100%;
    box-sizing: border-box;
}

:root[data-theme="dark"] .apparatus-img-preview-card {
    background: rgba(255, 255, 255, 0.04);
    border-color: #334155;
}

.apparatus-img-preview-card img {
    width: 48px;
    height: 48px;
    border-radius: 6px;
    object-fit: cover;
    border: 1px solid rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
}

.apparatus-img-preview-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.apparatus-img-preview-name {
    font-size: 0.84rem;
    font-weight: 700;
    color: #0f172a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

:root[data-theme="dark"] .apparatus-img-preview-name {
    color: #f1f5f9;
}

.apparatus-img-preview-status {
    font-size: 0.72rem;
    color: #16a34a;
    font-weight: 600;
}

.apparatus-img-preview-remove {
    background: rgba(220, 38, 38, 0.08);
    color: #dc2626;
    border: 1px solid rgba(220, 38, 38, 0.25);
    border-radius: 6px;
    padding: 6px 12px;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.apparatus-img-preview-remove:hover {
    background: #dc2626;
    color: #ffffff;
    border-color: #dc2626;
}

/* Modal Footer */
.apparatus-add-modal-footer {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 12px;
    margin-top: 1.75rem;
    padding-top: 1.25rem;
    border-top: 1px solid #e2e8f0;
}

:root[data-theme="dark"] .apparatus-add-modal-footer {
    border-top-color: rgba(255, 255, 255, 0.1);
}

.apparatus-modal-btn-cancel {
    background: #f1f5f9 !important;
    color: #334155 !important;
    border: 1.5px solid #cbd5e1 !important;
    padding: 11px 22px !important;
    border-radius: 8px !important;
    font-weight: 700 !important;
    font-size: 0.92rem !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
}

.apparatus-modal-btn-cancel:hover {
    background: #e2e8f0 !important;
    color: #0f172a !important;
    border-color: #94a3b8 !important;
}

:root[data-theme="dark"] .apparatus-modal-btn-cancel {
    background: #1e293b !important;
    color: #e2e8f0 !important;
    border-color: #334155 !important;
}

:root[data-theme="dark"] .apparatus-modal-btn-cancel:hover {
    background: #334155 !important;
    color: #ffffff !important;
    border-color: #475569 !important;
}

.apparatus-modal-btn-submit {
    background: linear-gradient(135deg, #b3212b 0%, #901720 100%) !important;
    color: #ffffff !important;
    border: none !important;
    padding: 11px 26px !important;
    border-radius: 8px !important;
    font-weight: 800 !important;
    font-size: 0.92rem !important;
    cursor: pointer !important;
    box-shadow: 0 4px 14px rgba(179, 33, 43, 0.35) !important;
    transition: all 0.2s ease !important;
}

.apparatus-modal-btn-submit:hover {
    background: #8b1820 !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 6px 18px rgba(179, 33, 43, 0.5) !important;
    color: #ffffff !important;
}

/* ==========================================================================
   Upcoming Apparatus & Blueprints Showcase (Wix Civic Style)
   ========================================================================== */
.upcoming-apparatus-section {
    padding-top: 5rem;
    padding-bottom: 6rem;
    border-top: 2px solid var(--border-light);
    background: var(--bg-surface-alt);
    position: relative;
    scroll-margin-top: 80px;
}

.upcoming-feature-card {
    padding: 3rem;
    border: 1px solid var(--border-light);
    border-top: 4px solid var(--fire-red);
    background: var(--bg-card);
    border-radius: 6px;
    box-shadow: var(--card-shadow);
}

.upcoming-badge-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.76rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #7a151d;
    background: #fae5e7;
    border: 1px solid #f5cdd0;
    padding: 4px 12px;
    border-radius: 4px;
    margin-bottom: 1.25rem;
}

.upcoming-title {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 800;
    color: var(--text-heading);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.upcoming-desc {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.65;
    max-width: 900px;
    margin-bottom: 2rem;
}

.upcoming-specs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.25rem;
    margin-bottom: 2.5rem;
}

.upcoming-spec-item {
    background: var(--bg-card-alt);
    border: 1px solid var(--border-light);
    border-radius: 4px;
    padding: 1rem 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.upcoming-spec-item .spec-label {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    font-weight: 700;
}

.upcoming-spec-item .spec-val {
    font-size: 1rem;
    color: var(--text-heading);
    font-weight: 800;
}

.upcoming-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
}

/* Blueprints Gallery */
.blueprints-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.blueprint-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    transition: transform var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
    display: flex;
    flex-direction: column;
    box-shadow: var(--card-shadow);
}

.blueprint-card:hover {
    border-color: var(--border-subtle);
    transform: translateY(-4px);
    box-shadow: var(--card-shadow-hover);
}

.blueprint-img-box {
    position: relative;
    background: var(--bg-card);
    padding: 8px;
    height: 240px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid var(--border-light);
}

.blueprint-thumb {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.35s ease;
}

.blueprint-card:hover .blueprint-thumb {
    transform: scale(1.04);
}

.blueprint-zoom-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 25, 43, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.blueprint-card:hover .blueprint-zoom-overlay {
    opacity: 1;
}

.zoom-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--fire-red);
    color: white;
    font-weight: 700;
    font-size: 0.9rem;
    padding: 10px 18px;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(155, 27, 36, 0.4);
}

.blueprint-details {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.blueprint-tag {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--fire-red);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.blueprint-details h4 {
    font-size: 1.25rem;
    color: var(--text-heading);
    margin-bottom: 0.5rem;
    font-weight: 800;
    line-height: 1.3;
}

.blueprint-details p {
    color: var(--text-secondary);
    font-size: 0.92rem;
    line-height: 1.55;
    margin: 0;
}

/* Lightbox Modal */
.blueprint-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.9);
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.blueprint-modal-backdrop.active {
    display: flex;
    opacity: 1;
}

.blueprint-modal-content {
    position: relative;
    width: 100%;
    max-width: 1300px;
    background: #0f1523;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), 0 0 40px rgba(179, 33, 43, 0.2);
    display: flex;
    flex-direction: column;
    max-height: 92vh;
}

.blueprint-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 1.8rem;
    line-height: 1;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.blueprint-modal-close:hover {
    background: var(--fire-red);
    border-color: var(--fire-red);
    transform: scale(1.1);
}

.blueprint-modal-nav {
    position: absolute;
    top: 45%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(15, 21, 35, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 1.4rem;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.blueprint-modal-nav:hover {
    background: var(--fire-red);
    border-color: var(--fire-red);
    transform: translateY(-50%) scale(1.1);
}

.blueprint-modal-nav.prev { left: 16px; }
.blueprint-modal-nav.next { right: 16px; }

.blueprint-modal-body {
    background: var(--bg-surface);
    padding: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: auto;
    max-height: calc(92vh - 140px);
}

#blueprint-modal-img {
    max-width: 100%;
    max-height: calc(92vh - 160px);
    object-fit: contain;
    display: block;
    user-select: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.blueprint-modal-caption {
    padding: 1.25rem 2rem;
    background: #0d121e;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.blueprint-modal-caption-text h4 {
    font-size: 1.15rem;
    font-weight: 700;
    color: white;
    margin: 0 0 4px 0;
}

.blueprint-modal-caption-text p {
    font-size: 0.88rem;
    color: var(--text-secondary);
    margin: 0;
}

.blueprint-modal-footer-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.btn-sm {
    padding: 8px 16px !important;
    font-size: 0.85rem !important;
}

@media (max-width: 768px) {
    .upcoming-feature-card {
        padding: 1.5rem;
    }
    .upcoming-specs-grid {
        grid-template-columns: 1fr;
    }
    .blueprint-img-box {
        height: 200px;
    }
    .blueprint-modal-backdrop {
        padding: 8px;
    }
    .blueprint-modal-content {
        max-height: 96vh;
    }
    .blueprint-modal-body {
        max-height: calc(96vh - 160px);
        padding: 6px;
    }
    .blueprint-modal-caption {
        padding: 1rem;
        flex-direction: column;
        align-items: flex-start;
    }
    .blueprint-modal-nav {
        width: 38px;
        height: 38px;
        font-size: 1.1rem;
    }
    .blueprint-modal-nav.prev { left: 8px; }
    .blueprint-modal-nav.next { right: 8px; }
}

/* ==========================================
   Admin Typography & Font Customization Toolbar
   ========================================== */
#admin-font-toolbar {
    position: fixed;
    z-index: 100000;
    display: none;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: #0f172a;
    color: #f8fafc;
    border: 1px solid #334155;
    border-radius: 30px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.4), 0 8px 10px -6px rgba(0, 0, 0, 0.3);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 13px;
    pointer-events: auto;
    transition: opacity 0.15s ease, transform 0.15s ease;
    user-select: none;
}

#admin-font-toolbar.active {
    display: flex;
}

#admin-font-toolbar .font-toolbar-label {
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: 600;
    color: #94a3b8;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

#admin-font-toolbar select {
    background: #1e293b;
    color: #f1f5f9;
    border: 1px solid #475569;
    border-radius: 20px;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    outline: none;
    transition: border-color 0.15s ease;
    max-width: 170px;
}

#admin-font-toolbar select:hover,
#admin-font-toolbar select:focus {
    border-color: #38bdf8;
}

#admin-font-toolbar .font-toolbar-btn {
    background: transparent;
    border: 1px solid #475569;
    color: #cbd5e1;
    border-radius: 20px;
    padding: 4px 9px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

#admin-font-toolbar .font-toolbar-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border-color: #94a3b8;
}

#admin-font-toolbar .font-toolbar-close {
    background: transparent;
    border: none;
    color: #64748b;
    font-size: 14px;
    cursor: pointer;
    padding: 2px 6px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.15s ease;
}

#admin-font-toolbar .font-toolbar-close:hover {
    color: #e8656e;
}

/* Admin Global Typography Modal */
.admin-font-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(4px);
    z-index: 100001;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.admin-font-modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.admin-font-modal {
    background: var(--bg-card);
    width: 90%;
    max-width: 520px;
    border-radius: 12px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.25), 0 8px 10px -6px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    animation: modalSlideUp 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid var(--border-light);
}

.admin-font-modal-header {
    background: var(--navy-dark);
    color: #ffffff;
    padding: 1.25rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.admin-font-modal-header h3 {
    margin: 0;
    color: #ffffff;
    font-size: 1.2rem;
    font-weight: 700;
}

.admin-font-modal-close {
    background: none;
    border: none;
    color: #94a3b8;
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 1;
    transition: color 0.15s ease;
}

.admin-font-modal-close:hover {
    color: #ffffff;
}

.admin-font-modal-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.admin-font-option-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.admin-font-option-group label {
    font-weight: 600;
    color: var(--text-heading);
    font-size: 0.9rem;
}

.admin-font-option-group select {
    padding: 10px 12px;
    border-radius: 8px;
    border: 1.5px solid var(--border-subtle);
    font-size: 0.95rem;
    color: var(--text-primary);
    background: var(--bg-input);
    cursor: pointer;
}

.admin-font-option-group select:focus {
    border-color: #2563eb;
    outline: none;
}

.admin-font-preview-box {
    padding: 1rem;
    border-radius: 8px;
    background: var(--bg-card-alt);
    border: 1px dashed var(--border-light);
}

.admin-font-modal-actions {
    padding: 1rem 1.5rem 1.5rem;
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    border-top: 1px solid var(--border-divider);
}

/* ==========================================================================
   Dark Mode Component & Badge Refinements
   ========================================================================== */
    /* Navbar & Header */
    :root[data-theme="dark"] .navbar,
    :root[data-theme="dark"] .navbar {
        background: rgba(8, 12, 20, 0.95);
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        backdrop-filter: blur(12px);
    }

    :root[data-theme="dark"] .navbar.scrolled,
    :root[data-theme="dark"] .navbar.scrolled {
        background: rgba(8, 12, 20, 0.98);
        border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    }

    :root[data-theme="dark"] .nav-links a:not(.btn-primary),
    :root[data-theme="dark"] .nav-links a:not(.btn-primary) {
        color: #cbd5e1;
    }

    :root[data-theme="dark"] .nav-links a:not(.btn-primary):hover,
    :root[data-theme="dark"] .nav-links a:not(.btn-primary):hover {
        color: #e8656e;
    }

    :root[data-theme="dark"] .nav-links a:not(.btn-primary).active,
    :root[data-theme="dark"] .nav-links a:not(.btn-primary).active {
        color: #ffffff;
    }

    :root[data-theme="dark"] .nav-links a:not(.btn-primary)::after,
    :root[data-theme="dark"] .nav-links a:not(.btn-primary)::after {
        background: var(--fire-red);
        box-shadow: 0 0 10px rgba(155, 27, 36, 0.8);
    }

    :root[data-theme="dark"] .nav-links a.nav-btn-donate,
    :root[data-theme="dark"] .nav-links a.nav-btn-donate {
        background: var(--fire-red);
        box-shadow: 0 2px 10px rgba(155, 27, 36, 0.4);
    }

    :root[data-theme="dark"] .nav-links a.nav-btn-donate:hover,
    :root[data-theme="dark"] .nav-links a.nav-btn-donate:hover {
        background: var(--fire-red-light);
        box-shadow: 0 4px 18px rgba(155, 27, 36, 0.6);
    }

    :root[data-theme="dark"] .logo-text .mtvfc,
    :root[data-theme="dark"] .logo-text .mtvfc {
        color: #ffffff;
    }

    :root[data-theme="dark"] .logo-text .subtitle,
    :root[data-theme="dark"] .logo-text .subtitle {
        color: #e8656e;
    }

    /* Hero Elements */
    :root[data-theme="dark"] .hero-badge-pill,
    :root[data-theme="dark"] .hero-badge-pill {
        background: rgba(10, 16, 28, 0.88) !important;
        color: #f1f5f9 !important;
        border: 1px solid rgba(255, 255, 255, 0.2) !important;
        backdrop-filter: blur(10px);
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
    }
    
    :root[data-theme="dark"] .hero-badge-pill svg,
    :root[data-theme="dark"] .hero-badge-pill svg {
        color: var(--fire-red) !important;
        stroke: var(--fire-red) !important;
        filter: drop-shadow(0 0 6px rgba(155, 27, 36, 0.6));
    }

    :root[data-theme="dark"] .hero-trust-bar,
    :root[data-theme="dark"] .hero-trust-bar {
        background: rgba(8, 14, 25, 0.82);
        border: 1px solid rgba(255, 255, 255, 0.14);
        backdrop-filter: blur(12px);
    }

    :root[data-theme="dark"] .trust-item svg,
    :root[data-theme="dark"] .trust-item svg {
        color: #fbbf24;
        stroke: #fbbf24;
        filter: drop-shadow(0 0 5px rgba(251, 191, 36, 0.4));
    }

    /* Cards, Panels & Containers */
    :root[data-theme="dark"] .glass-panel,
    :root[data-theme="dark"] .glass-card,
    :root[data-theme="dark"] .membership-card,
    :root[data-theme="dark"] .recruit-form-card,
    :root[data-theme="dark"] .role-card,
    :root[data-theme="dark"] .stat-card,
    :root[data-theme="dark"] .news-card,
    :root[data-theme="dark"] .blueprint-card,
    :root[data-theme="dark"] .roster-card,
    :root[data-theme="dark"] #membership-application-form,
    :root[data-theme="dark"] .glass-panel,
    :root[data-theme="dark"] .glass-card,
    :root[data-theme="dark"] .membership-card,
    :root[data-theme="dark"] .recruit-form-card,
    :root[data-theme="dark"] .role-card,
    :root[data-theme="dark"] .stat-card,
    :root[data-theme="dark"] .news-card,
    :root[data-theme="dark"] .blueprint-card,
    :root[data-theme="dark"] .roster-card,
    :root[data-theme="dark"] #membership-application-form {
        background: var(--bg-card) !important;
        border-color: var(--border-light) !important;
        box-shadow: var(--card-shadow) !important;
    }

    :root[data-theme="dark"] .glass-card:hover,
    :root[data-theme="dark"] .membership-card:hover,
    :root[data-theme="dark"] .role-card:hover,
    :root[data-theme="dark"] .news-card:hover,
    :root[data-theme="dark"] .blueprint-card:hover,
    :root[data-theme="dark"] .roster-card:hover,
    :root[data-theme="dark"] .glass-card:hover,
    :root[data-theme="dark"] .membership-card:hover,
    :root[data-theme="dark"] .role-card:hover,
    :root[data-theme="dark"] .news-card:hover,
    :root[data-theme="dark"] .blueprint-card:hover,
    :root[data-theme="dark"] .roster-card:hover {
        background: var(--bg-card-hover) !important;
        border-color: rgba(220, 58, 69, 0.4) !important;
        box-shadow: var(--card-shadow-hover) !important;
    }

    :root[data-theme="dark"] .open-drill-banner,
    :root[data-theme="dark"] .open-drill-banner {
        background: var(--bg-card-alt);
        border-color: var(--border-light);
    }

    /* Typography in Dark Mode */
    :root[data-theme="dark"] .membership-card-title,
    :root[data-theme="dark"] .membership-card-list li strong,
    :root[data-theme="dark"] .role-card h3,
    :root[data-theme="dark"] .role-specs strong,
    :root[data-theme="dark"] .stat-card .stat-number,
    :root[data-theme="dark"] .news-card-title,
    :root[data-theme="dark"] .roster-name,
    :root[data-theme="dark"] .upcoming-spec-item .spec-val,
    :root[data-theme="dark"] .blueprint-details h4,
    :root[data-theme="dark"] .membership-card-title,
    :root[data-theme="dark"] .membership-card-list li strong,
    :root[data-theme="dark"] .role-card h3,
    :root[data-theme="dark"] .role-specs strong,
    :root[data-theme="dark"] .stat-card .stat-number,
    :root[data-theme="dark"] .news-card-title,
    :root[data-theme="dark"] .roster-name,
    :root[data-theme="dark"] .upcoming-spec-item .spec-val,
    :root[data-theme="dark"] .blueprint-details h4 {
        color: #ffffff !important;
    }

    :root[data-theme="dark"] .membership-card-desc,
    :root[data-theme="dark"] .membership-card-list li,
    :root[data-theme="dark"] .role-card p,
    :root[data-theme="dark"] .role-specs li,
    :root[data-theme="dark"] .stat-card p,
    :root[data-theme="dark"] .news-card-text,
    :root[data-theme="dark"] .roster-rank,
    :root[data-theme="dark"] .upcoming-spec-item .spec-label,
    :root[data-theme="dark"] .blueprint-details p,
    :root[data-theme="dark"] .membership-card-desc,
    :root[data-theme="dark"] .membership-card-list li,
    :root[data-theme="dark"] .role-card p,
    :root[data-theme="dark"] .role-specs li,
    :root[data-theme="dark"] .stat-card p,
    :root[data-theme="dark"] .news-card-text,
    :root[data-theme="dark"] .roster-rank,
    :root[data-theme="dark"] .upcoming-spec-item .spec-label,
    :root[data-theme="dark"] .blueprint-details p {
        color: #cbd5e1;
    }

    /* Form Inputs in Dark Mode */
    :root[data-theme="dark"] .contact-form input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
    :root[data-theme="dark"] .contact-form textarea,
    :root[data-theme="dark"] .contact-form select,
    :root[data-theme="dark"] .recruit-form-card input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
    :root[data-theme="dark"] .recruit-form-card textarea,
    :root[data-theme="dark"] .recruit-form-card select,
    :root[data-theme="dark"] .membership-application-form input,
    :root[data-theme="dark"] .membership-application-form textarea,
    :root[data-theme="dark"] .membership-application-form select,
    :root[data-theme="dark"] .admin-form-container input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
    :root[data-theme="dark"] .admin-form-container textarea,
    :root[data-theme="dark"] .admin-form-container select,
    :root[data-theme="dark"] .admin-form input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
    :root[data-theme="dark"] .admin-form textarea,
    :root[data-theme="dark"] .admin-form select,
    :root[data-theme="dark"] #admin-login-form input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
    :root[data-theme="dark"] #admin-publish-form input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
    :root[data-theme="dark"] #admin-publish-form select,
    :root[data-theme="dark"] .roster-modal-form input[type="text"],
    :root[data-theme="dark"] .roster-modal-form select {
        background: var(--bg-input) !important;
        border: 1.5px solid var(--border-light) !important;
        color: #f8fafc !important;
    }

    /* Dark Mode Autofill */
    :root[data-theme="dark"] input:-webkit-autofill,
    :root[data-theme="dark"] input:-webkit-autofill:hover, 
    :root[data-theme="dark"] input:-webkit-autofill:focus, 
    :root[data-theme="dark"] input:-webkit-autofill:active,
    :root[data-theme="dark"] textarea:-webkit-autofill,
    :root[data-theme="dark"] select:-webkit-autofill {
        -webkit-text-fill-color: #f8fafc !important;
        -webkit-box-shadow: 0 0 0 1000px #121d33 inset !important;
        box-shadow: 0 0 0 1000px #121d33 inset !important;
        color: #f8fafc !important;
        caret-color: #f8fafc !important;
    }

    /* Light Mode Autofill */
    :root[data-theme="light"] input:-webkit-autofill,
    :root[data-theme="light"] input:-webkit-autofill:hover, 
    :root[data-theme="light"] input:-webkit-autofill:focus, 
    :root[data-theme="light"] input:-webkit-autofill:active,
    :root[data-theme="light"] textarea:-webkit-autofill,
    :root[data-theme="light"] select:-webkit-autofill {
        -webkit-text-fill-color: #0a0f1d !important;
        -webkit-box-shadow: 0 0 0 1000px #ffffff inset !important;
        box-shadow: 0 0 0 1000px #ffffff inset !important;
        color: #0a0f1d !important;
        caret-color: #0a0f1d !important;
    }

    :root[data-theme="dark"] .contact-form input::placeholder,
    :root[data-theme="dark"] .contact-form textarea::placeholder,
    :root[data-theme="dark"] .recruit-form-card input::placeholder,
    :root[data-theme="dark"] .recruit-form-card textarea::placeholder,
    :root[data-theme="dark"] .admin-form-container input::placeholder,
    :root[data-theme="dark"] .admin-form input::placeholder,
    :root[data-theme="dark"] #admin-login-form input::placeholder,
    :root[data-theme="dark"] #admin-publish-form input::placeholder {
        color: #64748b !important;
    }

    :root[data-theme="dark"] select option,
    :root[data-theme="dark"] select option {
        background: #0e1626 !important;
        color: #f8fafc !important;
    }

    :root[data-theme="dark"] .paypal-badge,
    :root[data-theme="dark"] .paypal-badge {
        background: #16243d;
        border-color: rgba(255, 255, 255, 0.15);
    }
    :root[data-theme="dark"] .paypal-badge svg,
    :root[data-theme="dark"] .paypal-badge svg {
        stroke: #38bdf8;
    }
    
    /* Badges, Tags & Avatars in Dark Mode */
    :root[data-theme="dark"] .role-card.role-firefighter .role-badge-tag,
    :root[data-theme="dark"] .upcoming-badge-tag,
    :root[data-theme="dark"] .membership-badge-tag.tag-firefighter,
    :root[data-theme="dark"] .recent-post-tag.tag-calls,
    :root[data-theme="dark"] .badge-chief,
    :root[data-theme="dark"] .badge-line,
    :root[data-theme="dark"] .avatar-line,
    :root[data-theme="dark"] .role-card.role-firefighter .role-badge-tag,
    :root[data-theme="dark"] .upcoming-badge-tag,
    :root[data-theme="dark"] .membership-badge-tag.tag-firefighter,
    :root[data-theme="dark"] .recent-post-tag.tag-calls,
    :root[data-theme="dark"] .badge-chief,
    :root[data-theme="dark"] .badge-line,
    :root[data-theme="dark"] .avatar-line {
        background: rgba(220, 58, 69, 0.16) !important;
        color: #f0a3a8 !important;
        border: 1px solid rgba(220, 58, 69, 0.35) !important;
    }

    :root[data-theme="dark"] .role-card.role-police .role-badge-tag,
    :root[data-theme="dark"] .membership-badge-tag.tag-police,
    :root[data-theme="dark"] .badge-police,
    :root[data-theme="dark"] .avatar-police,
    :root[data-theme="dark"] .role-card.role-police .role-badge-tag,
    :root[data-theme="dark"] .membership-badge-tag.tag-police,
    :root[data-theme="dark"] .badge-police,
    :root[data-theme="dark"] .avatar-police {
        background: rgba(14, 165, 233, 0.16) !important;
        color: #7dd3fc !important;
        border: 1px solid rgba(14, 165, 233, 0.35) !important;
    }

    :root[data-theme="dark"] .role-card.role-junior .role-badge-tag,
    :root[data-theme="dark"] .membership-badge-tag.tag-junior,
    :root[data-theme="dark"] .recent-post-tag.tag-news,
    :root[data-theme="dark"] .badge-president,
    :root[data-theme="dark"] .badge-company,
    :root[data-theme="dark"] .avatar-company,
    :root[data-theme="dark"] .avatar-junior,
    :root[data-theme="dark"] .badge-probationary,
    :root[data-theme="dark"] .role-card.role-junior .role-badge-tag,
    :root[data-theme="dark"] .membership-badge-tag.tag-junior,
    :root[data-theme="dark"] .recent-post-tag.tag-news,
    :root[data-theme="dark"] .badge-president,
    :root[data-theme="dark"] .badge-company,
    :root[data-theme="dark"] .avatar-company,
    :root[data-theme="dark"] .avatar-junior,
    :root[data-theme="dark"] .badge-probationary {
        background: rgba(245, 158, 11, 0.16) !important;
        color: #fde68a !important;
        border: 1px solid rgba(245, 158, 11, 0.35) !important;
    }

    :root[data-theme="dark"] .role-card.role-associate .role-badge-tag,
    :root[data-theme="dark"] .membership-badge-tag.tag-associate,
    :root[data-theme="dark"] .badge-associate,
    :root[data-theme="dark"] .avatar-associate,
    :root[data-theme="dark"] .role-card.role-associate .role-badge-tag,
    :root[data-theme="dark"] .membership-badge-tag.tag-associate,
    :root[data-theme="dark"] .badge-associate,
    :root[data-theme="dark"] .avatar-associate {
        background: rgba(168, 85, 247, 0.16) !important;
        color: #e9d5ff !important;
        border: 1px solid rgba(168, 85, 247, 0.35) !important;
    }

    :root[data-theme="dark"] .badge-firefighter,
    :root[data-theme="dark"] .avatar-firefighter,
    :root[data-theme="dark"] .badge-firefighter,
    :root[data-theme="dark"] .avatar-firefighter {
        background: rgba(255, 255, 255, 0.08) !important;
        color: #cbd5e1 !important;
        border: 1px solid rgba(255, 255, 255, 0.15) !important;
    }

    :root[data-theme="dark"] .station-detail-icon,
    :root[data-theme="dark"] .station-detail-icon {
        background: rgba(220, 58, 69, 0.18);
        border-color: rgba(220, 58, 69, 0.4);
    }

    :root[data-theme="dark"] .donation-list-icon,
    :root[data-theme="dark"] .donation-list-icon {
        background: rgba(220, 58, 69, 0.18);
        border-color: rgba(220, 58, 69, 0.4);
    }

    :root[data-theme="dark"] .contact-form select,
    :root[data-theme="dark"] .recruit-form-card select,
    :root[data-theme="dark"] .membership-application-form select,
    :root[data-theme="dark"] .admin-form-container select,
    :root[data-theme="dark"] .admin-form select,
    :root[data-theme="dark"] #admin-publish-form select,
    :root[data-theme="dark"] .contact-form select,
    :root[data-theme="dark"] .recruit-form-card select,
    :root[data-theme="dark"] .membership-application-form select,
    :root[data-theme="dark"] .admin-form-container select,
    :root[data-theme="dark"] .admin-form select,
    :root[data-theme="dark"] #admin-publish-form select {
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    }

/* ==========================================================================
   Light / Dark Mode Switch in Bottom-Right Corner
   ========================================================================== */
.theme-switch-wrapper {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    user-select: none;
    -webkit-user-select: none;
}

.theme-switch-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin: 0;
    background: transparent;
    border: none;
    cursor: pointer;
    outline: none;
    border-radius: 999px;
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
    -webkit-tap-highlight-color: transparent;
}

.theme-switch-btn:hover {
    transform: scale(1.08);
}

.theme-switch-btn:active {
    transform: scale(0.94);
}

.theme-switch-btn:focus-visible {
    outline: 2px solid var(--fire-red);
    outline-offset: 3px;
}

.theme-switch-track {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 64px;
    height: 32px;
    padding: 0 8px;
    border-radius: 999px;
    background: #e2e8f0;
    border: 1.5px solid #cbd5e1;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12), inset 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    box-sizing: border-box;
}

:root[data-theme="dark"] .theme-switch-track,
.theme-switch-btn.dark .theme-switch-track,
.theme-switch-btn[aria-checked="true"] .theme-switch-track {
    background: #1e293b;
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.45), inset 0 2px 4px rgba(0, 0, 0, 0.3);
}

.theme-track-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 14px;
    height: 14px;
    z-index: 1;
    pointer-events: none;
    transition: opacity 0.25s ease, color 0.25s ease;
}

.theme-track-icon.sun-icon {
    color: #f59e0b;
    opacity: 0.95;
}

.theme-track-icon.moon-icon {
    color: #94a3b8;
    opacity: 0.4;
}

:root[data-theme="dark"] .theme-track-icon.sun-icon,
.theme-switch-btn.dark .theme-track-icon.sun-icon,
.theme-switch-btn[aria-checked="true"] .theme-track-icon.sun-icon {
    color: #64748b;
    opacity: 0.35;
}

:root[data-theme="dark"] .theme-track-icon.moon-icon,
.theme-switch-btn.dark .theme-track-icon.moon-icon,
.theme-switch-btn[aria-checked="true"] .theme-track-icon.moon-icon {
    color: #38bdf8;
    opacity: 0.95;
}

.theme-switch-thumb {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2), 0 0 1px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), background-color 0.25s ease, box-shadow 0.25s ease;
    z-index: 2;
    overflow: hidden;
}

:root[data-theme="dark"] .theme-switch-thumb,
.theme-switch-btn.dark .theme-switch-thumb,
.theme-switch-btn[aria-checked="true"] .theme-switch-thumb {
    transform: translateX(32px);
    background: #0f172a;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.thumb-icon-sun,
.thumb-icon-moon {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s ease, transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.thumb-icon-sun {
    color: #d97706;
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

.thumb-icon-moon {
    color: #38bdf8;
    opacity: 0;
    transform: rotate(-90deg) scale(0.4);
}

:root[data-theme="dark"] .thumb-icon-sun,
.theme-switch-btn.dark .thumb-icon-sun,
.theme-switch-btn[aria-checked="true"] .thumb-icon-sun {
    opacity: 0;
    transform: rotate(90deg) scale(0.4);
}

:root[data-theme="dark"] .thumb-icon-moon,
.theme-switch-btn.dark .thumb-icon-moon,
.theme-switch-btn[aria-checked="true"] .thumb-icon-moon {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

/* Tooltip */
.theme-switch-tooltip {
    position: absolute;
    bottom: calc(100% + 8px);
    right: 0;
    background: #0f172a;
    color: #f8fafc;
    border: 1px solid rgba(255, 255, 255, 0.15);
    font-size: 11px;
    font-weight: 600;
    padding: 4px 9px;
    border-radius: 6px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transform: translateY(4px);
    transition: opacity 0.2s ease, transform 0.2s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    z-index: 10000;
}

:root[data-theme="dark"] .theme-switch-tooltip {
    background: #1e293b;
    border-color: rgba(255, 255, 255, 0.2);
}

.theme-switch-wrapper:hover .theme-switch-tooltip,
.theme-switch-btn:focus-visible + .theme-switch-tooltip {
    opacity: 1;
    transform: translateY(0);
}

/* Smooth Theme Transitions across components */
html.theme-transition,
html.theme-transition *,
html.theme-transition *::before,
html.theme-transition *::after {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease !important;
    transition-delay: 0s !important;
}

@media (max-width: 640px) {
    .theme-switch-wrapper {
        bottom: 16px;
        right: 16px;
    }
    .theme-switch-tooltip {
        display: none;
    }
}

/* ==========================================================================
   Navigation Dropdown Menu ("About" -> "History")
   ========================================================================== */
.nav-dropdown {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.nav-dropdown-toggle {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
}

.nav-dropdown-toggle svg {
    transition: transform var(--transition-fast);
}

.nav-dropdown:hover .nav-dropdown-toggle svg,
.nav-dropdown.active .nav-dropdown-toggle svg {
    transform: rotate(180deg);
}

.nav-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    background: var(--bg-surface);
    border: 1px solid var(--border-light);
    border-radius: 6px;
    padding: 6px 0;
    min-width: 170px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
    z-index: 1000;
}

:root[data-theme="dark"] .nav-dropdown-menu {
    background: #182234;
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu,
.nav-dropdown.is-open .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(4px);
}

.nav-dropdown-item {
    display: block;
    padding: 8px 16px;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-heading);
    text-transform: none !important;
    letter-spacing: 0 !important;
    text-decoration: none;
    transition: background-color var(--transition-fast), color var(--transition-fast);
}

.nav-dropdown-item::after {
    display: none !important;
}

.nav-dropdown-item:hover {
    background: rgba(179, 33, 43, 0.08);
    color: var(--fire-red) !important;
}

:root[data-theme="dark"] .nav-dropdown-item:hover {
    background: rgba(179, 33, 43, 0.2);
}

@media (max-width: 768px) {
    .nav-dropdown {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        width: 100%;
    }
    .nav-dropdown-toggle {
        justify-content: space-between;
        width: 100%;
    }
    .nav-dropdown-menu {
        position: static;
        transform: none !important;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        box-shadow: none;
        border: none;
        background: transparent !important;
        padding-left: 1rem;
        display: none;
    }
    .nav-dropdown.is-open .nav-dropdown-menu {
        display: block;
    }
    .nav-dropdown:hover .nav-dropdown-menu {
        display: block;
    }
}

/* ==========================================================================
   Role Cards Enhancement (Fire Police & Support Separation)
   ========================================================================== */
.role-card.role-police {
    border-top: 4px solid #0284c7;
}

.role-card.role-police .role-badge-tag {
    background: #e0f2fe;
    color: #0369a1;
    border: 1px solid #bae6fd;
}

:root[data-theme="dark"] .role-card.role-police .role-badge-tag {
    background: rgba(2, 132, 199, 0.25);
    color: #38bdf8;
    border-color: rgba(2, 132, 199, 0.4);
}

.role-card.role-associate .role-badge-tag {
    background: #fef3c7;
    color: #b45309;
    border: 1px solid #fde68a;
}

:root[data-theme="dark"] .role-card.role-associate .role-badge-tag {
    background: rgba(217, 119, 6, 0.25);
    color: #fbbf24;
    border-color: rgba(217, 119, 6, 0.4);
}

.role-card.role-junior .role-badge-tag {
    background: #dbeafe;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
}

:root[data-theme="dark"] .role-card.role-junior .role-badge-tag {
    background: rgba(37, 99, 235, 0.25);
    color: #60a5fa;
    border-color: rgba(37, 99, 235, 0.4);
}

/* ==========================================================================
   History Dropdown / Collapsible Card (About Page)
   ========================================================================== */
.history-dropdown-wrapper {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    overflow: hidden;
    margin: 2.5rem auto 0;
    max-width: 1000px;
    box-shadow: var(--card-shadow);
    transition: box-shadow var(--transition-fast);
}

.history-page-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    padding: 3rem 3.5rem;
    max-width: 1000px;
    margin: 0 auto;
    box-shadow: var(--card-shadow);
}

@media (max-width: 768px) {
    .history-page-card {
        padding: 2rem 1.5rem;
    }
}

.history-dropdown-wrapper:hover {
    box-shadow: var(--card-shadow-hover);
}

.history-dropdown-header {
    width: 100%;
    background: transparent;
    border: none;
    padding: 2rem 2.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    text-align: left;
    transition: background-color var(--transition-fast);
}

.history-dropdown-header:hover {
    background: rgba(0, 0, 0, 0.02);
}

:root[data-theme="dark"] .history-dropdown-header:hover {
    background: rgba(255, 255, 255, 0.03);
}

.history-dropdown-title-wrap {
    flex: 1;
}

.history-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 4px;
    background: #fae5e7;
    color: var(--fire-red);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

:root[data-theme="dark"] .history-badge {
    background: rgba(179, 33, 43, 0.2);
    color: #e8656e;
}

.history-dropdown-title {
    font-size: 1.8rem;
    font-family: var(--font-heading);
    color: var(--text-heading);
    margin: 0 0 0.4rem 0;
}

.history-dropdown-subtitle {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin: 0;
}

.history-dropdown-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--bg-surface-alt);
    border: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--fire-red);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), background-color var(--transition-fast);
    flex-shrink: 0;
    margin-left: 1.5rem;
}

.history-dropdown-header[aria-expanded="true"] .history-dropdown-icon {
    transform: rotate(180deg);
    background: var(--fire-red);
    color: #ffffff;
}

.history-dropdown-content {
    display: none;
    padding: 0 2.5rem 2.5rem;
    border-top: 1px solid var(--border-light);
    animation: fadeInHistory 0.3s ease;
}

.history-dropdown-header[aria-expanded="true"] + .history-dropdown-content {
    display: block;
}

@keyframes fadeInHistory {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

.history-body {
    padding-top: 2rem;
    color: var(--text-main);
    line-height: 1.8;
    font-size: 1.05rem;
}

.history-era {
    margin-bottom: 3rem;
    position: relative;
    padding-left: 1.5rem;
    border-left: 3px solid var(--fire-red);
}

.history-era:last-child {
    margin-bottom: 0;
}

.history-era-title {
    font-family: var(--font-heading);
    font-size: 1.45rem;
    color: var(--navy-blue);
    margin: 0 0 1rem 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

:root[data-theme="dark"] .history-era-title {
    color: #e2e8f0;
}

.history-body p {
    margin-bottom: 1.25rem;
    text-align: justify;
}

.history-body p:last-child {
    margin-bottom: 0;
}

/* ==========================================================================
   Other Ways to Support Section (Homepage)
   ========================================================================== */
.support-ways-wrapper {
    margin-top: 3.5rem;
    padding-top: 3rem;
    border-top: 1px solid var(--border-light);
}

.support-ways-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.support-ways-title {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    color: var(--text-heading);
    margin-bottom: 0.5rem;
}

.support-ways-subtitle {
    font-size: 0.95rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto;
}

.support-ways-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.support-way-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 6px;
    padding: 1.8rem;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.support-way-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--card-shadow-hover);
}

.support-way-icon {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    background: rgba(179, 33, 43, 0.1);
    color: var(--fire-red);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
}

.support-way-title {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--text-heading);
    margin-bottom: 0.75rem;
}

.support-way-desc {
    color: var(--text-secondary);
    font-size: 0.92rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    flex: 1;
}

.support-way-action {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 700;
    font-size: 0.88rem;
    color: var(--fire-red);
    text-decoration: none;
}

.support-way-action:hover {
    text-decoration: underline;
}

/* ==========================================================================
   General Form Styling (Textarea & Responsive Layout)
   ========================================================================== */
.form-textarea {
    width: 100%;
    padding: 14px 16px;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
    color: var(--text-main);
    transition: border-color var(--transition-fast);
    resize: vertical;
    box-sizing: border-box;
}

.form-textarea:focus {
    outline: none;
    border-color: var(--fire-red);
    box-shadow: 0 0 0 3px rgba(179, 33, 43, 0.15);
}

/* ==========================================================================
   Station 46 Inclement Weather & Storm Mode System
   ========================================================================== */

/* Emergency Top Alert Banner */
.storm-alert-banner {
    position: relative;
    z-index: 1002;
    padding: 10px 1.5rem;
    font-size: 0.88rem;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
    transition: background-color 0.2s ease, border-color 0.2s ease;
    border-bottom: 2px solid rgba(0, 0, 0, 0.2);
    will-change: transform;
    transform: translateZ(0);
}

.storm-banner-warning {
    background: linear-gradient(90deg, #7a151d 0%, #b3212b 50%, #7a151d 100%);
    border-bottom-color: #dc3a45;
}

.storm-banner-watch {
    background: linear-gradient(90deg, #92400e 0%, #d97706 50%, #92400e 100%);
    border-bottom-color: #f59e0b;
}

.storm-banner-advisory,
.storm-banner-upcoming {
    background: linear-gradient(90deg, #075985 0%, #0284c7 50%, #075985 100%);
    border-bottom-color: #38bdf8;
}

.storm-banner-container {
    max-width: var(--nav-container-width);
    margin: 0 auto;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.storm-banner-left {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    flex: 1;
    min-width: 280px;
}

.storm-pulse-dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background-color: #ffffff;
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7);
    animation: stormPulse 1.8s infinite;
    flex-shrink: 0;
}

@keyframes stormPulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.8);
    }
    70% {
        transform: scale(1.15);
        box-shadow: 0 0 0 10px rgba(255, 255, 255, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
    }
}

.storm-banner-tag {
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    padding: 3px 8px;
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.3);
    white-space: nowrap;
}

.storm-banner-text {
    line-height: 1.35;
    font-weight: 500;
}

.storm-banner-title {
    font-weight: 700;
    letter-spacing: 0.2px;
}

.storm-banner-timing {
    opacity: 0.9;
    font-size: 0.8rem;
    margin-left: 6px;
}

.storm-banner-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

.storm-banner-btn {
    background: #ffffff;
    color: #0f172a;
    font-weight: 700;
    font-size: 0.82rem;
    padding: 6px 14px;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: transform var(--transition-fast), background var(--transition-fast), box-shadow var(--transition-fast);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    text-decoration: none;
    white-space: nowrap;
}

.storm-banner-btn:hover {
    background: #f8fafc;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.25);
}

.storm-banner-dismiss {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
    width: 28px;
    height: 28px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1rem;
    line-height: 1;
    transition: background var(--transition-fast);
}

.storm-banner-dismiss:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Atmospheric Storm State */
body.storm-mode-active .top-bar {
    border-bottom: 1px solid rgba(245, 158, 11, 0.3);
}

body.storm-mode-active.storm-level-warning .top-bar {
    border-bottom: 1px solid rgba(220, 58, 69, 0.4);
}

/* Floating Quick-Access Pill (Bottom-Left) */
.storm-floating-pill {
    position: fixed;
    bottom: 22px;
    left: 22px;
    z-index: 1000;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 10px 16px;
    border-radius: 50px;
    background: #0f172a;
    color: #ffffff;
    border: 1.5px solid #d97706;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
    cursor: pointer;
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.25s ease;
    text-decoration: none;
}

.storm-floating-pill:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.45);
}

/* Floating Admin Bar: Centered at bottom of viewport to avoid colliding with storm pill or theme toggle */
#admin-floating-bar,
.admin-floating-bar {
    position: fixed !important;
    bottom: 24px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    z-index: 99999 !important;
    display: flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    background: #0f172a !important;
    padding: 8px 14px !important;
    border-radius: 30px !important;
    border: 1px solid #334155 !important;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.45) !important;
    max-width: calc(100vw - 32px) !important;
    box-sizing: border-box !important;
}

/* When Admin Bar is present, elevate storm pill on narrower screens so they never touch */
@media (max-width: 992px) {
    body.has-admin-floating-bar .storm-floating-pill,
    body.admin-edit-mode .storm-floating-pill {
        bottom: 86px !important;
    }
}

.storm-floating-pill.pill-warning {
    border-color: #dc3a45;
    background: #1e1b18;
}

.storm-floating-pill.pill-warning .storm-pulse-dot {
    background-color: #dc3a45;
}

.storm-floating-pill.pill-watch {
    border-color: #f59e0b;
    background: #1c1917;
}

.storm-floating-pill.pill-watch .storm-pulse-dot {
    background-color: #f59e0b;
}

.storm-floating-pill.pill-upcoming {
    border-color: #38bdf8;
    background: #0c1a2e;
}

.storm-floating-pill.pill-upcoming .storm-pulse-dot {
    background-color: #38bdf8;
}

/* ==========================================================================
   Storm & Inclement Weather Safety Hub (Modal Dialog)
   ========================================================================== */

.storm-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 16, 26, 0.78);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    box-sizing: border-box;
}

.storm-modal-backdrop.active {
    opacity: 1;
    visibility: visible;
}

.storm-modal-container {
    background: #ffffff;
    color: #1e293b;
    border-radius: 8px;
    width: 100%;
    max-width: 980px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(0, 0, 0, 0.08);
    border: 1px solid #cbd5e1;
    transform: translateY(6px);
    transition: transform 0.2s ease;
    overflow: hidden;
    position: relative;
}

[data-theme="dark"] .storm-modal-container {
    background: #0f172a;
    color: #f1f5f9;
    border-color: #334155;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.storm-modal-backdrop.active .storm-modal-container {
    transform: translateY(0);
}

/* Modal Header - Civic Fire Department Header */
.storm-modal-header {
    padding: 1.15rem 1.5rem;
    background: #111827;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    border-bottom: 3px solid #9b1b24;
}

.storm-modal-title-wrap {
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 0;
}

.storm-modal-header-top {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.storm-modal-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    padding: 3px 8px;
    border-radius: 3px;
    color: #ffffff;
    line-height: 1.2;
}

.badge-warning {
    background: #9b1b24;
}

.badge-watch {
    background: #b45309;
}

.badge-upcoming {
    background: #0369a1;
}

.storm-modal-office {
    font-size: 0.76rem;
    color: #cbd5e1;
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: 500;
}

.storm-modal-title {
    font-size: 1.25rem;
    font-weight: 800;
    margin: 0;
    color: #ffffff;
    line-height: 1.3;
    font-family: var(--font-heading);
    letter-spacing: 0.2px;
}

.storm-modal-close-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #cbd5e1;
    width: 32px;
    height: 32px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background var(--transition-fast), color var(--transition-fast);
    flex-shrink: 0;
    padding: 0;
}

.storm-modal-close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

/* Modal Body */
.storm-modal-body {
    padding: 1.25rem 1.5rem;
    overflow-y: auto;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    background: #f8fafc;
}

[data-theme="dark"] .storm-modal-body {
    background: #0b1120;
}

/* Station Custom Announcement Notice */
.storm-station-notice {
    background: #fcf1f2;
    border: 1px solid #f5cdd0;
    border-left: 4px solid #9b1b24;
    padding: 0.9rem 1.15rem;
    border-radius: 4px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

[data-theme="dark"] .storm-station-notice {
    background: rgba(155, 27, 36, 0.15);
    border-color: rgba(220, 58, 69, 0.3);
    border-left-color: #dc3a45;
}

.storm-notice-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9b1b24;
    flex-shrink: 0;
    margin-top: 1px;
}

[data-theme="dark"] .storm-notice-icon {
    color: #e8656e;
}

.storm-notice-content h4 {
    margin: 0 0 3px 0;
    font-size: 0.88rem;
    font-weight: 700;
    color: #7a151d;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

[data-theme="dark"] .storm-notice-content h4 {
    color: #f0a3a8;
}

.storm-notice-content p {
    margin: 0;
    font-size: 0.88rem;
    line-height: 1.5;
    color: #334155;
}

[data-theme="dark"] .storm-notice-content p {
    color: #cbd5e1;
}

/* Emergency One-Click Contact Bar - Authentic Civic Cards */
.storm-contacts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 0.65rem;
}

.storm-contact-card {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    padding: 8px 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: #1e293b;
    min-width: 0;
    box-sizing: border-box;
    transition: border-color var(--transition-fast), background var(--transition-fast);
}

[data-theme="dark"] .storm-contact-card {
    background: #1e293b;
    border-color: #334155;
    color: #f8fafc;
}

.storm-contact-card:hover {
    border-color: #94a3b8;
    background: #f1f5f9;
}

[data-theme="dark"] .storm-contact-card:hover {
    border-color: #64748b;
    background: #27354a;
}

.storm-contact-card.emergency-card {
    background: #fcf1f2;
    border: 1.5px solid #b3212b;
}

[data-theme="dark"] .storm-contact-card.emergency-card {
    background: rgba(155, 27, 36, 0.2);
    border-color: #dc3a45;
}

.storm-contact-card.emergency-card:hover {
    background: #fae5e7;
}

[data-theme="dark"] .storm-contact-card.emergency-card:hover {
    background: rgba(155, 27, 36, 0.3);
}

.storm-contact-icon {
    width: 28px;
    height: 28px;
    border-radius: 4px;
    background: #f1f5f9;
    color: #475569;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.storm-contact-icon svg {
    width: 15px;
    height: 15px;
}

[data-theme="dark"] .storm-contact-icon {
    background: #0f172a;
    color: #94a3b8;
}

.emergency-card .storm-contact-icon {
    background: #b3212b;
    color: #ffffff;
}

[data-theme="dark"] .emergency-card .storm-contact-icon {
    background: #dc3a45;
    color: #ffffff;
}

.storm-contact-details {
    display: flex;
    flex-direction: column;
    min-width: 0;
    flex: 1;
    overflow: hidden;
}

.storm-contact-label {
    font-size: 0.65rem;
    color: #64748b;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.25px;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

[data-theme="dark"] .storm-contact-label {
    color: #94a3b8;
}

.storm-contact-number {
    font-size: 0.84rem;
    font-weight: 800;
    color: #0f172a;
    white-space: nowrap;
    line-height: 1.25;
    letter-spacing: -0.35px;
    font-variant-numeric: tabular-nums;
    overflow: hidden;
    text-overflow: ellipsis;
}

[data-theme="dark"] .storm-contact-number {
    color: #ffffff;
}

.emergency-card .storm-contact-number {
    color: #9b1b24;
}

[data-theme="dark"] .emergency-card .storm-contact-number {
    color: #f0a3a8;
}

/* Live Weather & NWS Statement Card - Clean Meteorological Panel */
.storm-live-weather-card {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    padding: 1.15rem 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

[data-theme="dark"] .storm-live-weather-card {
    background: #151f32;
    border-color: #334155;
}

.storm-live-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding-bottom: 0.65rem;
    border-bottom: 1px solid #e2e8f0;
}

[data-theme="dark"] .storm-live-header {
    border-bottom-color: #27354a;
}

.storm-live-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 0.92rem;
    color: #0f172a;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

[data-theme="dark"] .storm-live-title {
    color: #e2e8f0;
}

.storm-radar-link {
    font-size: 0.78rem;
    color: #9b1b24;
    text-decoration: none;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

[data-theme="dark"] .storm-radar-link {
    color: #e8656e;
}

.storm-radar-link:hover {
    text-decoration: underline;
}

.storm-live-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.65rem;
}

@media (max-width: 768px) {
    .storm-live-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

.storm-stat-item {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 7px 10px;
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

[data-theme="dark"] .storm-stat-item {
    background: #0f172a;
    border-color: #27354a;
}

.storm-stat-label {
    font-size: 0.68rem;
    color: #64748b;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.4px;
}

[data-theme="dark"] .storm-stat-label {
    color: #94a3b8;
}

.storm-stat-val {
    font-size: 0.95rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.25;
}

[data-theme="dark"] .storm-stat-val {
    color: #f8fafc;
}

.storm-nws-statement {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    padding: 9px 12px;
    font-size: 0.84rem;
    line-height: 1.5;
    color: #475569;
    max-height: 120px;
    overflow-y: auto;
}

[data-theme="dark"] .storm-nws-statement {
    background: #0f172a;
    border-color: #27354a;
    color: #cbd5e1;
}

.storm-nws-statement strong {
    color: #0f172a;
    font-weight: 700;
}

[data-theme="dark"] .storm-nws-statement strong {
    color: #ffffff;
}

/* Scenario Tabs Navigation */
.storm-scenarios-section {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.storm-scenarios-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.storm-scenarios-header h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

[data-theme="dark"] .storm-scenarios-header h3 {
    color: #e2e8f0;
}

.storm-tab-buttons {
    display: flex;
    align-items: center;
    gap: 4px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: thin;
    border-bottom: 1px solid #e2e8f0;
}

[data-theme="dark"] .storm-tab-buttons {
    border-bottom-color: #334155;
}

.storm-tab-btn {
    background: transparent;
    border: 1px solid transparent;
    border-bottom: 2px solid transparent;
    border-radius: 4px 4px 0 0;
    padding: 7px 12px;
    font-size: 0.82rem;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all var(--transition-fast);
    font-family: inherit;
    margin-bottom: -1px;
}

[data-theme="dark"] .storm-tab-btn {
    color: #94a3b8;
}

.storm-tab-btn:hover {
    color: #0f172a;
    background: #e2e8f0;
}

[data-theme="dark"] .storm-tab-btn:hover {
    color: #ffffff;
    background: #1e293b;
}

.storm-tab-btn.active {
    background: #ffffff;
    color: #9b1b24;
    border-color: #cbd5e1 #cbd5e1 transparent #cbd5e1;
    border-bottom: 2px solid #9b1b24;
    font-weight: 700;
}

[data-theme="dark"] .storm-tab-btn.active {
    background: #1e293b;
    color: #e8656e;
    border-color: #334155 #334155 transparent #334155;
    border-bottom: 2px solid #dc3a45;
}

/* Tab Panels */
.storm-tab-panel {
    display: none;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 0 0 6px 6px;
    padding: 1.25rem;
    animation: stormFadeIn 0.2s ease;
}

[data-theme="dark"] .storm-tab-panel {
    background: #151f32;
    border-color: #334155;
}

.storm-tab-panel.active {
    display: block;
}

@keyframes stormFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.scenario-panel-title {
    margin: 0 0 0.35rem 0;
    font-size: 1.1rem;
    font-weight: 700;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 8px;
}

[data-theme="dark"] .scenario-panel-title {
    color: #ffffff;
}

.scenario-panel-desc {
    margin: 0 0 1rem 0;
    font-size: 0.88rem;
    line-height: 1.5;
    color: #475569;
}

[data-theme="dark"] .scenario-panel-desc {
    color: #94a3b8;
}

.scenario-action-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

@media (max-width: 768px) {
    .scenario-action-grid {
        grid-template-columns: 1fr;
    }
}

.action-column {
    border-radius: 4px;
    padding: 0.9rem 1rem;
}

.action-column.dos {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
}

[data-theme="dark"] .action-column.dos {
    background: rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.3);
}

.action-column.donts {
    background: #fcf1f2;
    border: 1px solid #f5cdd0;
}

[data-theme="dark"] .action-column.donts {
    background: rgba(220, 58, 69, 0.1);
    border-color: rgba(220, 58, 69, 0.3);
}

.action-column-header {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.65rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

.action-column.dos .action-column-header {
    color: #166534;
}

[data-theme="dark"] .action-column.dos .action-column-header {
    color: #4ade80;
}

.action-column.donts .action-column-header {
    color: #7a151d;
}

[data-theme="dark"] .action-column.donts .action-column-header {
    color: #e8656e;
}

.action-list {
    margin: 0;
    padding-left: 1.15rem;
    font-size: 0.84rem;
    line-height: 1.55;
    color: #1e293b;
}

[data-theme="dark"] .action-list {
    color: #cbd5e1;
}

.action-list li {
    margin-bottom: 0.4rem;
}

.scenario-local-tip {
    background: #fffbeb;
    border-left: 3px solid #d97706;
    padding: 8px 12px;
    border-radius: 0 4px 4px 0;
    font-size: 0.82rem;
    line-height: 1.45;
    color: #78350f;
}

[data-theme="dark"] .scenario-local-tip {
    background: rgba(217, 119, 6, 0.15);
    border-left-color: #f59e0b;
    color: #fde68a;
}

.scenario-local-tip strong {
    color: #78350f;
}

[data-theme="dark"] .scenario-local-tip strong {
    color: #fef3c7;
}

/* Modal Footer - Official Civic Footer */
.storm-modal-footer {
    padding: 0.85rem 1.5rem;
    background: #f1f5f9;
    border-top: 1px solid #cbd5e1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    font-size: 0.78rem;
    color: #64748b;
}

[data-theme="dark"] .storm-modal-footer {
    background: #0f172a;
    border-top-color: #334155;
    color: #94a3b8;
}

.storm-modal-source strong {
    color: #334155;
}

[data-theme="dark"] .storm-modal-source strong {
    color: #cbd5e1;
}

.storm-modal-footer-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.storm-modal-close-action {
    background: #334155;
    color: #ffffff !important;
    border: none;
    padding: 7px 18px;
    font-size: 0.82rem;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: background var(--transition-fast);
}

.storm-modal-close-action:hover {
    background: #1e293b;
}

[data-theme="dark"] .storm-modal-close-action {
    background: #475569;
}

[data-theme="dark"] .storm-modal-close-action:hover {
    background: #64748b;
}

/* Simulator Toggle Box (Admin / Preview) */
.storm-sim-bar {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #ffffff;
    padding: 4px 10px;
    border-radius: 4px;
    border: 1px solid #cbd5e1;
}

[data-theme="dark"] .storm-sim-bar {
    background: #1e293b;
    border-color: #334155;
}

.storm-sim-bar select {
    background: transparent;
    border: none;
    color: inherit;
    font-size: 0.8rem;
    font-family: inherit;
    font-weight: 600;
    outline: none;
    cursor: pointer;
}

@media (max-width: 640px) {
    .storm-alert-banner {
        padding: 10px 1rem;
    }
    .storm-banner-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.6rem;
    }
    .storm-banner-right {
        width: 100%;
        justify-content: space-between;
    }
    .storm-modal-body {
        padding: 1rem;
    }
    .storm-modal-header {
        padding: 1rem;
    }
    .storm-contacts-grid {
        grid-template-columns: 1fr;
    }
    .storm-floating-pill {
        bottom: 74px;
        left: 14px;
        padding: 8px 12px;
        font-size: 0.78rem;
    }
}

/* ==========================================================================
   Interactive Storm Mode Toggle Switch Group
   ========================================================================== */
.storm-toggle-group {
    display: inline-flex;
    align-items: center;
    background: var(--bg-surface);
    border: 1.5px solid var(--border-subtle);
    border-radius: 8px;
    padding: 4px;
    gap: 6px;
    width: 100%;
    box-sizing: border-box;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.06);
}

.storm-toggle-btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 6px;
    border: 1.5px solid transparent;
    background: transparent;
    color: var(--text-secondary);
    font-family: inherit;
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
    user-select: none;
    outline: none;
}

.storm-toggle-btn:hover {
    background: rgba(0, 0, 0, 0.05);
    color: var(--text-main);
    transform: translateY(-1px);
}

[data-theme="dark"] .storm-toggle-btn:hover {
    background: rgba(255, 255, 255, 0.08);
}

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

/* Active State: Force Active */
.storm-toggle-btn.active[data-mode="force_active"] {
    background: linear-gradient(135deg, #b3212b 0%, #9b1b24 100%);
    color: #ffffff;
    border-color: #dc3a45;
    box-shadow: 0 4px 12px rgba(179, 33, 43, 0.35);
}

/* Active State: Auto Detect */
.storm-toggle-btn.active[data-mode="auto"] {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #ffffff;
    border-color: #34d399;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.35);
}

/* Active State: Deactivated */
.storm-toggle-btn.active[data-mode="force_inactive"] {
    background: #cbd5e1;
    color: #0f172a;
    border-color: #94a3b8;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}

[data-theme="dark"] .storm-toggle-btn.active[data-mode="force_inactive"] {
    background: #334155;
    color: #f8fafc;
    border-color: #475569;
}

.login-storm-toggle-group .storm-toggle-btn {
    padding: 8px 10px;
    font-size: 0.8rem;
}

/* ==========================================================================
   Station Activity & Annual Call Volume Sliders System
   ========================================================================== */
.call-volume-section {
    max-width: 900px;
    margin: 3.5rem auto 1.5rem;
    text-align: center;
}

.call-volume-header {
    margin-bottom: 2rem;
    position: relative;
}

.call-volume-badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 1.2px;
    color: var(--fire-red);
    background: rgba(179, 33, 43, 0.08);
    border: 1px solid rgba(179, 33, 43, 0.22);
    padding: 5px 14px;
    border-radius: 20px;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
}

.call-volume-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-heading);
    margin: 0 0 0.5rem;
}

.call-volume-subtitle {
    font-size: 0.98rem;
    color: var(--text-secondary);
    max-width: 650px;
    margin: 0 auto;
    line-height: 1.55;
}

.station-slider-admin-actions {
    margin-top: 1.2rem;
    display: none;
    justify-content: center;
    gap: 0.75rem;
}

.btn-slider-admin {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #ffffff;
    font-size: 0.82rem;
    font-weight: 700;
    padding: 7px 16px;
    border-radius: 20px;
    border: none;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(16, 185, 129, 0.3);
    transition: all 0.2s ease;
}

.btn-slider-admin:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.45);
}

/* Slider Outer Wrapper & Nav Buttons */
.station-sliders-wrapper {
    position: relative;
    padding: 0 54px;
}

.slider-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 1.5px solid var(--border-light);
    color: var(--text-heading);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 5;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
    transition: all 0.2s ease;
}

.slider-nav-btn:hover {
    background: var(--fire-red);
    color: #ffffff;
    border-color: var(--fire-red);
    box-shadow: 0 6px 18px rgba(179, 33, 43, 0.35);
    transform: translateY(-50%) scale(1.08);
}

.slider-nav-btn.prev-btn {
    left: 0;
}

.slider-nav-btn.next-btn {
    right: 0;
}

.slider-nav-btn:disabled,
.slider-nav-btn[aria-hidden="true"] {
    opacity: 0.35;
    cursor: not-allowed;
    pointer-events: none;
}

/* Track & Slide Cards */
.station-sliders-track {
    position: relative;
    width: 100%;
    min-height: 460px;
}

.station-slider-card {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-top: 4px solid var(--fire-red);
    border-radius: 12px;
    padding: 2.2rem 2.4rem;
    box-shadow: var(--card-shadow);
    text-align: left;
    transition: opacity 0.35s ease, transform 0.35s ease;
    display: none;
}

.station-slider-card.active-slide {
    display: block;
    animation: sliderFadeIn 0.35s ease-out;
}

@keyframes sliderFadeIn {
    from {
        opacity: 0;
        transform: translateY(6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slider-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.5rem;
    margin-bottom: 1.8rem;
    padding-bottom: 1.4rem;
    border-bottom: 1px solid var(--border-light);
}

.slider-card-heading-group {
    flex: 1;
}

.slider-card-badge {
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 800;
    color: var(--fire-red);
    letter-spacing: 0.8px;
    text-transform: uppercase;
    margin-bottom: 0.35rem;
}

.slider-card-title {
    font-size: 1.45rem;
    font-weight: 800;
    color: var(--text-heading);
    margin: 0 0 0.3rem;
}

.slider-card-desc {
    font-size: 0.88rem;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.45;
}

.slider-card-admin-controls {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.btn-slider-ctrl {
    font-size: 0.76rem;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-add-item-ctrl {
    background: rgba(16, 185, 129, 0.12);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.35);
}

.btn-add-item-ctrl:hover {
    background: #10b981;
    color: #ffffff;
}

.btn-del-slider-ctrl {
    background: rgba(220, 38, 38, 0.1);
    color: #ef4444;
    border: 1px solid rgba(220, 38, 38, 0.3);
}

.btn-del-slider-ctrl:hover {
    background: #ef4444;
    color: #ffffff;
}

/* Stat Rows List Inside Slider */
.slider-items-list {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.slider-stat-row {
    display: flex;
    align-items: center;
    padding: 0.85rem 1.15rem;
    background: rgba(15, 23, 42, 0.02);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    transition: all 0.2s ease;
    position: relative;
}

:root[data-theme="dark"] .slider-stat-row {
    background: rgba(255, 255, 255, 0.03);
}

.slider-stat-row:hover {
    background: rgba(179, 33, 43, 0.04);
    border-color: rgba(179, 33, 43, 0.25);
    transform: translateX(4px);
}

:root[data-theme="dark"] .slider-stat-row:hover {
    background: rgba(179, 33, 43, 0.12);
}

.stat-row-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

.stat-year-badge {
    display: inline-block;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.05rem;
    color: var(--text-heading);
    background: rgba(15, 23, 42, 0.06);
    padding: 3px 10px;
    border-radius: 6px;
    letter-spacing: -0.2px;
}

:root[data-theme="dark"] .stat-year-badge {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

.stat-row-label {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.stat-row-dots {
    flex: 1;
    height: 1px;
    margin: 0 1rem;
    background: radial-gradient(circle, var(--border-subtle) 25%, transparent 25%);
    background-size: 6px 1px;
    opacity: 0.45;
}

.stat-row-right {
    display: flex;
    align-items: baseline;
    gap: 0.35rem;
    flex-shrink: 0;
}

.stat-row-value {
    font-family: var(--font-heading);
    font-size: 1.45rem;
    font-weight: 900;
    color: var(--fire-red);
    line-height: 1;
    letter-spacing: -0.5px;
}

.stat-unit {
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--text-secondary);
    letter-spacing: 0.5px;
}

.stat-row-remove-btn {
    margin-left: 0.75rem;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(220, 38, 38, 0.12);
    color: #ef4444;
    border: none;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 800;
    flex-shrink: 0;
    transition: all 0.15s ease;
}

.stat-row-remove-btn:hover {
    background: #ef4444;
    color: #ffffff;
    transform: scale(1.15);
}

/* Dots Navigation Underneath Track */
.slider-dots-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 1.5rem;
}

.slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--border-light);
    border: none;
    cursor: pointer;
    transition: all 0.25s ease;
    padding: 0;
}

.slider-dot:hover {
    background: var(--border-subtle);
}

.slider-dot.active {
    width: 26px;
    border-radius: 12px;
    background: var(--fire-red);
    box-shadow: 0 0 10px rgba(179, 33, 43, 0.4);
}

/* Admin Active State Styles */
body.admin-edit-mode .station-slider-admin-actions,
body.admin-logged-in.admin-edit-mode .station-slider-admin-actions,
.admin-edit-mode .slider-card-admin-controls,
.admin-edit-mode .stat-row-remove-btn {
    display: flex !important;
}

/* Dark Mode Overrides for Sliders */
:root[data-theme="dark"] .call-volume-badge {
    background: rgba(220, 38, 38, 0.15);
    border-color: rgba(220, 38, 38, 0.35);
    color: #fca5a5;
}

:root[data-theme="dark"] .slider-nav-btn {
    background: #1e293b;
    border-color: #334155;
    color: #f1f5f9;
}

:root[data-theme="dark"] .slider-nav-btn:hover {
    background: var(--fire-red);
    color: #ffffff;
}

/* Responsive Rules for Small Devices */
@media (max-width: 680px) {
    .station-sliders-wrapper {
        padding: 0;
    }

    .slider-nav-btn {
        position: static;
        transform: none;
    }

    .slider-nav-btn:hover {
        transform: scale(1.05);
    }

    .station-sliders-wrapper > .slider-nav-btn {
        display: none;
    }

    .station-slider-card {
        padding: 1.4rem 1.1rem;
    }

    .slider-card-header {
        flex-direction: column;
        gap: 0.8rem;
    }

    .slider-card-admin-controls {
        width: 100%;
        justify-content: flex-start;
    }

    .slider-stat-row {
        padding: 0.75rem 0.85rem;
    }

    .stat-row-dots {
        display: none;
    }

    .slider-stat-row {
        justify-content: space-between;
    }

    .call-volume-title {
        font-size: 1.6rem;
    }
}

/* ==========================================================================
   Interactive Apparatus Detail Modal (Clickable Cards)
   ========================================================================== */
#active-fleet .card,
#retired-fleet .card,
.cards-grid .card {
    cursor: pointer;
    position: relative;
    user-select: none;
}

#active-fleet .card .card-img-wrapper,
#retired-fleet .card .card-img-wrapper,
.cards-grid .card .card-img-wrapper {
    position: relative;
}

.card-img-wrapper::after {
    content: "🔍 View Photo & Specs";
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(15, 23, 42, 0.78);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.4px;
    padding: 5px 12px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    opacity: 0;
    transform: translateY(6px);
    transition: all 0.25s ease;
    pointer-events: none;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

#active-fleet .card:hover .card-img-wrapper::after,
#retired-fleet .card:hover .card-img-wrapper::after,
.cards-grid .card:hover .card-img-wrapper::after {
    opacity: 1;
    transform: translateY(0);
}

/* Apparatus Modal Backdrop & Dialog */
.apparatus-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(10, 14, 23, 0.82);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 999999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    box-sizing: border-box;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.apparatus-modal-backdrop.active {
    display: flex;
    opacity: 1;
}

.apparatus-modal-content {
    position: relative;
    width: 100%;
    max-width: 960px;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 14px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.45);
    display: flex;
    flex-direction: column;
    max-height: 92vh;
    overflow: hidden;
    animation: appModalIn 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes appModalIn {
    from {
        opacity: 0;
        transform: scale(0.96) translateY(12px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.apparatus-modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    font-size: 1.1rem;
    cursor: pointer;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.apparatus-modal-close:hover {
    background: var(--fire-red);
    border-color: var(--fire-red);
    transform: scale(1.1);
}

.apparatus-modal-nav {
    position: absolute;
    top: 36%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 15;
    transition: all 0.2s ease;
}

.apparatus-modal-nav:hover {
    background: var(--fire-red);
    border-color: var(--fire-red);
    transform: translateY(-50%) scale(1.12);
}

.apparatus-modal-nav.prev { left: 16px; }
.apparatus-modal-nav.next { right: 16px; }

/* Modal Image Area */
.apparatus-modal-img-wrapper {
    position: relative;
    width: 100%;
    height: 440px;
    background: #090d16;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

#apparatus-modal-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    user-select: none;
    filter: none !important;
    -webkit-filter: none !important;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: high-quality;
    transition: opacity 0.2s ease;
}

/* Modal Details & Specs Area */
.apparatus-modal-details {
    padding: 1.75rem 2rem 2rem;
    overflow-y: auto;
    background: var(--bg-card);
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.apparatus-modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    border-bottom: 1px solid var(--border-light);
    padding-bottom: 1rem;
}

.apparatus-modal-badge {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 800;
    color: var(--fire-red);
    letter-spacing: 0.8px;
    text-transform: uppercase;
    margin-bottom: 0.3rem;
}

.apparatus-modal-title {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--text-heading);
    margin: 0;
    line-height: 1.2;
}

.apparatus-modal-specs-title {
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.8px;
    color: var(--text-secondary);
    text-transform: uppercase;
    margin: 0 0 0.6rem 0;
}

.apparatus-modal-specs-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 0.65rem 1.25rem;
}

.apparatus-modal-specs-list li {
    font-size: 0.95rem;
    color: var(--text-heading);
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    line-height: 1.45;
}

.apparatus-modal-specs-list li::before {
    content: "•";
    color: var(--fire-red);
    font-size: 1.4rem;
    line-height: 1;
    flex-shrink: 0;
}

.apparatus-modal-footer-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1rem;
    border-top: 1px solid var(--border-light);
    margin-top: 0.5rem;
}

.apparatus-modal-counter {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.apparatus-modal-full-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 6px;
    background: rgba(179, 33, 43, 0.1);
    color: var(--fire-red);
    font-weight: 700;
    font-size: 0.82rem;
    text-decoration: none;
    border: 1px solid rgba(179, 33, 43, 0.3);
    transition: all 0.2s ease;
}

.apparatus-modal-full-btn:hover {
    background: var(--fire-red);
    color: #ffffff;
    border-color: var(--fire-red);
}

@media (max-width: 768px) {
    .apparatus-modal-backdrop {
        padding: 0.5rem;
    }
    .apparatus-modal-content {
        max-height: 96vh;
        border-radius: 10px;
    }
    .apparatus-modal-img-wrapper {
        height: 250px;
    }
    .apparatus-modal-details {
        padding: 1.25rem;
    }
    .apparatus-modal-title {
        font-size: 1.4rem;
    }
    .apparatus-modal-specs-list {
        grid-template-columns: 1fr;
    }
    .apparatus-modal-nav {
        width: 38px;
        height: 38px;
    }
    .apparatus-modal-nav.prev { left: 8px; }
    .apparatus-modal-nav.next { right: 8px; }
}

/* ==========================================================================
   Station 46 Page & Section Builder Suite (Edit Mode & Civic Templates)
   ========================================================================== */

/* Section Admin Toolbar (Visible only in Edit Mode) */
.section-admin-bar {
    display: none;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    background: #0f172a;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    padding: 8px 14px;
    margin: 0 auto 1.25rem;
    width: calc(100% - 32px);
    max-width: 1200px;
    flex: 0 0 100%;
    box-sizing: border-box;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
    z-index: 100;
    position: relative;
    user-select: none;
}

body.admin-edit-mode .section-admin-bar {
    display: flex !important;
}

/* Guard: Never allow section-admin-bar inside hero banners or hero content */
body.admin-edit-mode .hero .section-admin-bar,
body.admin-edit-mode .hero-content .section-admin-bar,
body.admin-edit-mode #home .section-admin-bar,
body.admin-edit-mode .small-hero .section-admin-bar,
.hero .section-admin-bar,
.hero-content .section-admin-bar,
#home .section-admin-bar,
.small-hero .section-admin-bar {
    display: none !important;
}

.section-admin-bar-title {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #f8fafc;
    font-size: 0.82rem;
    font-weight: 700;
    font-family: var(--font-heading, sans-serif);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.section-admin-bar-icon {
    font-size: 1rem;
}

.section-admin-bar-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.section-admin-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 11px;
    border-radius: 6px;
    font-size: 0.78rem;
    font-weight: 700;
    font-family: var(--font-heading, sans-serif);
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.08);
    color: #f8fafc;
    cursor: pointer;
    transition: all 0.15s ease;
}

.section-admin-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

.section-admin-btn.section-btn-add-below {
    background: rgba(21, 101, 192, 0.3);
    border-color: rgba(33, 150, 243, 0.5);
    color: #60a5fa;
}

.section-admin-btn.section-btn-add-below:hover {
    background: rgba(21, 101, 192, 0.7);
    color: #ffffff;
}

.section-admin-btn.section-btn-delete {
    background: rgba(179, 33, 43, 0.25);
    border-color: rgba(239, 68, 68, 0.4);
    color: #fca5a5;
}

.section-admin-btn.section-btn-delete:hover {
    background: rgba(179, 33, 43, 0.85);
    color: #ffffff;
}

/* In-Between Section Inserter Divider */
.section-insert-divider {
    display: none;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 18px 0;
    margin: 10px 0;
    z-index: 90;
}

body.admin-edit-mode .section-insert-divider {
    display: flex !important;
}

.section-insert-divider::before {
    content: '';
    position: absolute;
    left: 10%;
    right: 10%;
    top: 50%;
    height: 1px;
    background: dashed 1px rgba(33, 150, 243, 0.4);
    border-top: 2px dashed rgba(33, 150, 243, 0.4);
    z-index: 1;
}

.section-insert-divider-btn {
    position: relative;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #0f172a;
    color: #60a5fa;
    border: 1.5px dashed rgba(33, 150, 243, 0.6);
    border-radius: 20px;
    padding: 6px 16px;
    font-size: 0.8rem;
    font-weight: 700;
    font-family: var(--font-heading, sans-serif);
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    transition: all 0.2s ease;
}

.section-insert-divider-btn:hover {
    background: #1e3a8a;
    color: #ffffff;
    border-color: #60a5fa;
    transform: scale(1.04);
}

/* Section Item Add & Remove Controls */
.section-card-add-btn {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 7px;
    width: 100%;
    padding: 12px;
    margin-top: 1.25rem;
    border: 2px dashed rgba(33, 150, 243, 0.5);
    border-radius: 10px;
    background: rgba(33, 150, 243, 0.05);
    color: var(--fire-red, #b3212b);
    font-weight: 700;
    font-size: 0.88rem;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: var(--font-heading, sans-serif);
}

body.admin-edit-mode .section-card-add-btn {
    display: flex !important;
}

.section-card-add-btn:hover {
    background: rgba(33, 150, 243, 0.15);
    border-color: #2196f3;
    transform: translateY(-2px);
}

.card-admin-remove-btn {
    display: none;
    position: absolute;
    top: 8px;
    right: 8px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: rgba(179, 33, 43, 0.9);
    color: #ffffff;
    border: none;
    font-size: 0.75rem;
    font-weight: bold;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    transition: transform 0.15s ease, background 0.15s ease;
}

body.admin-edit-mode .card-admin-remove-btn {
    display: flex !important;
}

.card-admin-remove-btn:hover {
    background: #dc2626;
    transform: scale(1.15);
}

.section-item-upload-btn {
    display: none;
    position: absolute;
    bottom: 8px;
    left: 8px;
    padding: 4px 10px;
    border-radius: 6px;
    background: rgba(15, 23, 42, 0.85);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.3);
    font-size: 0.72rem;
    font-weight: 700;
    cursor: pointer;
    z-index: 10;
    backdrop-filter: blur(4px);
    transition: all 0.2s ease;
}

body.admin-edit-mode .section-item-upload-btn {
    display: inline-flex !important;
}

.section-item-upload-btn:hover {
    background: #1e293b;
    border-color: #ffffff;
}

/* Modals: Common Overlay Styles for Builder */
.station-builder-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 100000;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
    overflow-y: auto;
}

.station-builder-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.station-builder-modal-card {
    background: #ffffff;
    color: #1e293b;
    border-radius: 16px;
    width: 100%;
    max-width: 900px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(0, 0, 0, 0.1);
    transform: translateY(20px) scale(0.97);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
}

:root[data-theme="dark"] .station-builder-modal-card {
    background: #0f172a;
    color: #f8fafc;
    border-color: #334155;
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.7);
}

.station-builder-modal-overlay.active .station-builder-modal-card {
    transform: translateY(0) scale(1);
}

.station-builder-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.75rem;
    border-bottom: 1px solid #e2e8f0;
    background: rgba(248, 250, 252, 0.9);
}

:root[data-theme="dark"] .station-builder-modal-header {
    background: rgba(15, 23, 42, 0.95);
    border-color: #1e293b;
}

.station-builder-modal-title {
    font-size: 1.25rem;
    font-weight: 800;
    font-family: var(--font-heading, sans-serif);
    color: var(--navy-blue, #0f172a);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

:root[data-theme="dark"] .station-builder-modal-title {
    color: #f8fafc;
}

.station-builder-modal-subtitle {
    margin: 4px 0 0;
    font-size: 0.85rem;
    color: #64748b;
}

:root[data-theme="dark"] .station-builder-modal-subtitle {
    color: #94a3b8;
}

.station-builder-modal-close {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: none;
    background: #f1f5f9;
    color: #64748b;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.station-builder-modal-close:hover {
    background: #e2e8f0;
    color: #0f172a;
}

:root[data-theme="dark"] .station-builder-modal-close {
    background: #1e293b;
    color: #94a3b8;
}

:root[data-theme="dark"] .station-builder-modal-close:hover {
    background: #334155;
    color: #ffffff;
}

.station-builder-modal-body {
    padding: 1.75rem;
    overflow-y: auto;
    flex: 1;
}

.station-builder-modal-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    padding: 1.25rem 1.75rem;
    border-top: 1px solid #e2e8f0;
    background: #f8fafc;
}

:root[data-theme="dark"] .station-builder-modal-footer {
    background: #0f172a;
    border-color: #1e293b;
}

/* Template Picker Grid */
.section-template-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.25rem;
}

.section-template-card {
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.25rem;
    background: #ffffff;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    text-align: left;
}

:root[data-theme="dark"] .section-template-card {
    background: #1e293b;
    border-color: #334155;
}

.section-template-card:hover {
    border-color: var(--fire-red, #b3212b);
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(179, 33, 43, 0.15);
}

.section-template-icon-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.section-template-icon {
    font-size: 1.8rem;
}

.section-template-tag {
    font-size: 0.72rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    background: rgba(21, 101, 192, 0.12);
    color: #1565c0;
    text-transform: uppercase;
}

:root[data-theme="dark"] .section-template-tag {
    background: rgba(96, 165, 250, 0.15);
    color: #60a5fa;
}

.section-template-title {
    font-size: 1.05rem;
    font-weight: 800;
    font-family: var(--font-heading, sans-serif);
    margin: 0 0 6px;
    color: var(--navy-blue, #0f172a);
}

:root[data-theme="dark"] .section-template-title {
    color: #f8fafc;
}

.section-template-desc {
    font-size: 0.82rem;
    color: #64748b;
    line-height: 1.5;
    margin: 0 0 1rem;
    flex: 1;
}

:root[data-theme="dark"] .section-template-desc {
    color: #94a3b8;
}

.section-template-wireframe {
    background: #f1f5f9;
    border-radius: 6px;
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    border: 1px dashed #cbd5e1;
}

:root[data-theme="dark"] .section-template-wireframe {
    background: #0f172a;
    border-color: #334155;
}

.wireframe-bar {
    height: 6px;
    border-radius: 3px;
    background: #cbd5e1;
}

:root[data-theme="dark"] .wireframe-bar {
    background: #334155;
}

.wireframe-bar.w-75 { width: 75%; }
.wireframe-bar.w-50 { width: 50%; }
.wireframe-bar.w-100 { width: 100%; }

.wireframe-grid-preview {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 4px;
}

.wireframe-box {
    height: 24px;
    border-radius: 4px;
    background: #cbd5e1;
}

:root[data-theme="dark"] .wireframe-box {
    background: #334155;
}

/* Page Creator Form */
.page-creator-form-group {
    margin-bottom: 1.25rem;
}

.page-creator-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--navy-blue, #0f172a);
}

:root[data-theme="dark"] .page-creator-label {
    color: #f8fafc;
}

.page-creator-input,
.page-creator-select {
    width: 100%;
    padding: 10px 14px;
    border-radius: 8px;
    border: 1.5px solid #cbd5e1;
    font-family: inherit;
    font-size: 0.95rem;
    background: #ffffff;
    color: #0f172a;
    box-sizing: border-box;
    transition: border-color 0.2s ease;
}

:root[data-theme="dark"] .page-creator-input,
:root[data-theme="dark"] .page-creator-select {
    background: #1e293b;
    border-color: #334155;
    color: #f8fafc;
}

.page-creator-input:focus,
.page-creator-select:focus {
    border-color: var(--fire-red, #b3212b);
    outline: none;
}

.page-creator-hint {
    font-size: 0.78rem;
    color: #64748b;
    margin-top: 5px;
}

:root[data-theme="dark"] .page-creator-hint {
    color: #94a3b8;
}

.page-creator-templates {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 10px;
    margin-top: 8px;
}

.page-creator-template-option {
    border: 1.5px solid #cbd5e1;
    border-radius: 8px;
    padding: 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #ffffff;
}

:root[data-theme="dark"] .page-creator-template-option {
    background: #1e293b;
    border-color: #334155;
}

.page-creator-template-option.selected {
    border-color: var(--fire-red, #b3212b);
    background: rgba(179, 33, 43, 0.06);
}

:root[data-theme="dark"] .page-creator-template-option.selected {
    background: rgba(179, 33, 43, 0.2);
}

.page-creator-template-option-icon {
    font-size: 1.5rem;
    margin-bottom: 4px;
}

.page-creator-template-option-title {
    font-weight: 700;
    font-size: 0.85rem;
}

.page-creator-checkbox-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 1rem;
    cursor: pointer;
    font-size: 0.88rem;
    font-weight: 600;
}

/* ==========================================================================
   Civic Block Templates Styling
   ========================================================================== */

.custom-section {
    position: relative;
    padding: 4rem 0;
}

/* 1. Spotlight / 2-Column Split */
.custom-spotlight-wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

@media (max-width: 900px) {
    .custom-spotlight-wrap {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

.custom-spotlight-media {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

.custom-spotlight-img {
    width: 100%;
    height: 380px;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.custom-spotlight-media:hover .custom-spotlight-img {
    transform: scale(1.03);
}

.custom-spotlight-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 10px 16px;
    background: linear-gradient(to top, rgba(0,0,0,0.85), transparent);
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 600;
}

.custom-spotlight-body {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.custom-check-list {
    list-style: none;
    padding: 0;
    margin: 0.75rem 0 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.custom-check-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.98rem;
    line-height: 1.5;
    color: var(--text-main);
}

.custom-check-list li span {
    color: #10b981;
    font-weight: 800;
    font-size: 1.1rem;
    line-height: 1;
}

.custom-action-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}

/* 2. Civic Feature Cards Grid */
.custom-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.75rem;
    margin-top: 2rem;
}

.custom-feature-card {
    position: relative;
    padding: 2rem;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.custom-feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
}

.custom-card-icon {
    font-size: 2.2rem;
    margin-bottom: 1rem;
}

.custom-card-title {
    font-size: 1.2rem;
    font-weight: 800;
    font-family: var(--font-heading, sans-serif);
    margin: 0 0 0.75rem;
    color: var(--navy-blue);
}

:root[data-theme="dark"] .custom-card-title {
    color: #f8fafc;
}

.custom-card-desc {
    font-size: 0.92rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin: 0 0 1.25rem;
    flex: 1;
}

.custom-card-link {
    font-weight: 700;
    font-size: 0.88rem;
    color: var(--fire-red);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: gap 0.2s ease;
}

.custom-card-link:hover {
    gap: 8px;
    text-decoration: underline;
}

/* 3. Rich Text / Notice Block */
.custom-container-narrow {
    max-width: 860px;
    margin: 0 auto;
}

.custom-rich-content {
    padding: 2.5rem;
    border-radius: 12px;
    line-height: 1.8;
    font-size: 1.05rem;
}

.custom-lead-text {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--navy-blue);
    line-height: 1.6;
    margin-bottom: 1.25rem;
}

:root[data-theme="dark"] .custom-lead-text {
    color: #e2e8f0;
}

.custom-highlight-box {
    background: rgba(179, 33, 43, 0.08);
    border-left: 4px solid var(--fire-red);
    padding: 1.25rem 1.5rem;
    border-radius: 0 8px 8px 0;
    margin: 1.5rem 0;
}

.custom-highlight-box h4 {
    margin: 0 0 6px;
    color: var(--fire-red);
    font-weight: 800;
    font-size: 1.05rem;
}

.custom-highlight-box p {
    margin: 0;
    font-size: 0.95rem;
    color: var(--text-main);
}

/* 4. FAQ Accordion */
.custom-faq-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
}

.custom-faq-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.2s ease;
}

.custom-faq-header {
    width: 100%;
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    background: none;
    border: none;
    text-align: left;
    cursor: pointer;
    font-family: inherit;
}

.custom-faq-q {
    font-size: 1.05rem;
    font-weight: 700;
    font-family: var(--font-heading, sans-serif);
    color: var(--navy-blue);
}

:root[data-theme="dark"] .custom-faq-q {
    color: #f8fafc;
}

.custom-faq-chevron {
    font-size: 1.2rem;
    color: var(--text-secondary);
    transition: transform 0.25s ease;
    flex-shrink: 0;
}

.custom-faq-item.open .custom-faq-chevron {
    transform: rotate(180deg);
}

.custom-faq-answer {
    padding: 0 1.5rem 1.25rem;
    display: none;
    font-size: 0.96rem;
    line-height: 1.7;
    color: var(--text-secondary);
}

.custom-faq-item.open .custom-faq-answer {
    display: block;
}

/* 5. Photo Showcase / Gallery */
.custom-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.custom-gallery-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    background: #0f172a;
}

.custom-gallery-img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.custom-gallery-card:hover .custom-gallery-img {
    transform: scale(1.05);
}

.custom-gallery-caption {
    padding: 12px 16px;
    background: rgba(15, 23, 42, 0.95);
    color: #f8fafc;
    font-size: 0.88rem;
    font-weight: 600;
    text-align: center;
}

/* 6. Callout Alert Banner */
.custom-callout-banner {
    background: linear-gradient(135deg, rgba(179, 33, 43, 0.95), rgba(138, 25, 33, 0.98));
    color: #ffffff;
    border-radius: 14px;
    padding: 2.5rem;
    display: flex;
    align-items: center;
    gap: 2rem;
    box-shadow: 0 12px 32px rgba(179, 33, 43, 0.35);
}

@media (max-width: 800px) {
    .custom-callout-banner {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
        padding: 2rem;
    }
}

.custom-callout-icon {
    font-size: 3rem;
    flex-shrink: 0;
}

.custom-callout-content {
    flex: 1;
}

.custom-callout-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.2);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.custom-callout-title {
    font-size: 1.4rem;
    font-weight: 800;
    font-family: var(--font-heading, sans-serif);
    margin: 0 0 6px;
}

.custom-callout-text {
    margin: 0;
    font-size: 0.95rem;
    opacity: 0.92;
    line-height: 1.5;
}

.custom-callout-action .btn {
    background: #ffffff;
    color: #b3212b;
    font-weight: 800;
    white-space: nowrap;
    border: none;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}

.custom-callout-action .btn:hover {
    background: #f1f5f9;
    color: #8a1921;
    transform: translateY(-2px);
}

/* 7. Key Stats / Numbers Grid */
.custom-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.custom-stat-box {
    position: relative;
    padding: 2rem 1.5rem;
    text-align: center;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.custom-stat-num {
    font-size: 2.5rem;
    font-weight: 900;
    font-family: var(--font-heading, sans-serif);
    color: var(--fire-red);
    line-height: 1;
    margin-bottom: 8px;
}

.custom-stat-label {
    font-size: 1rem;
    font-weight: 700;
    color: var(--navy-blue);
    margin-bottom: 6px;
}

:root[data-theme="dark"] .custom-stat-label {
    color: #f8fafc;
}

.custom-stat-sub {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin: 0;
}

/* Admin Dashboard Page Management Card */
.admin-pages-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 1rem;
}

.admin-page-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.08));
    flex-wrap: wrap;
    gap: 10px;
}

.admin-page-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.admin-page-name {
    font-weight: 700;
    font-size: 0.95rem;
}

.admin-page-slug {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-family: monospace;
}

.admin-page-type-badge {
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
}

.admin-page-type-built-in {
    background: rgba(33, 150, 243, 0.15);
    color: #60a5fa;
}

.admin-page-type-custom {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
}

/* ==========================================================================
   Website Builder Drag & Drop Sections
   ========================================================================== */

.section-drag-handle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 0.78rem;
    font-weight: 700;
    font-family: var(--font-heading, sans-serif);
    background: rgba(33, 150, 243, 0.18);
    border: 1px solid rgba(59, 130, 246, 0.45);
    color: #93c5fd;
    cursor: grab;
    user-select: none;
    transition: all 0.15s ease;
}

.section-drag-handle:hover {
    background: rgba(33, 150, 243, 0.35);
    color: #ffffff;
    border-color: #60a5fa;
    transform: translateY(-1px);
}

.section-drag-handle:active {
    cursor: grabbing;
}

.section-drag-grip {
    font-size: 1.05rem;
    line-height: 1;
    letter-spacing: -1px;
}

.section-dragging {
    opacity: 0.45 !important;
    outline: 2px dashed #3b82f6 !important;
    outline-offset: 4px;
    transform: scale(0.995);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.section-drop-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    height: 44px;
    margin: 12px auto;
    width: calc(100% - 32px);
    max-width: 1200px;
    z-index: 150;
    pointer-events: none;
}

.section-drop-indicator::before {
    content: '';
    position: absolute;
    left: 4%;
    right: 4%;
    top: 50%;
    height: 3px;
    background: #3b82f6;
    border-radius: 2px;
    box-shadow: 0 0 14px rgba(59, 130, 246, 0.85);
}

.section-drop-indicator-badge {
    position: relative;
    z-index: 2;
    background: #1d4ed8;
    color: #ffffff;
    padding: 6px 18px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 800;
    font-family: var(--font-heading, sans-serif);
    letter-spacing: 0.4px;
    border: 1.5px solid #93c5fd;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
    animation: pulseDropBadge 1.2s ease-in-out infinite alternate;
}

@keyframes pulseDropBadge {
    0% { transform: scale(0.97); }
    100% { transform: scale(1.03); }
}

.section-drop-highlight {
    animation: highlightPlacedSection 1.2s ease;
}

@keyframes highlightPlacedSection {
    0% { outline: 3px solid #3b82f6; background-color: rgba(59, 130, 246, 0.15); }
    100% { outline: none; background-color: transparent; }
}

/* ==========================================================================
   Universal Image Editing System
   ========================================================================== */

.station-image-change-btn {
    display: none;
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 80;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 20px;
    background: rgba(15, 23, 42, 0.92);
    color: #ffffff;
    border: 1.5px solid rgba(255, 255, 255, 0.45);
    font-size: 0.76rem;
    font-weight: 700;
    font-family: var(--font-heading, sans-serif);
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: auto;
}

body.admin-edit-mode .station-image-change-btn {
    display: inline-flex !important;
}

.station-image-change-btn:hover {
    background: #1e3a8a;
    border-color: #60a5fa;
    color: #ffffff;
    transform: translateY(-2px) scale(1.04);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.5);
}

.station-image-change-btn.station-image-change-bg-btn {
    top: 14px;
    right: 14px;
}

/* Hover indication on editable images during edit mode */
body.admin-edit-mode img:not(#station-image-editor-modal img):not(#admin-floating-bar img):not(.nav-badge-img):not(.footer-badge-img),
body.admin-edit-mode .card-img-placeholder {
    transition: outline 0.15s ease, filter 0.15s ease;
}

body.admin-edit-mode img:not(#station-image-editor-modal img):not(#admin-floating-bar img):not(.nav-badge-img):not(.footer-badge-img):hover,
body.admin-edit-mode .card-img-placeholder:hover {
    outline: 2px dashed rgba(37, 99, 235, 0.85);
    outline-offset: 3px;
    cursor: pointer;
}

/* Image Editor Modal */
.image-editor-tabs {
    display: flex;
    gap: 8px;
    background: #f1f5f9;
    padding: 6px;
    border-radius: 10px;
    margin-bottom: 1.25rem;
}

:root[data-theme="dark"] .image-editor-tabs {
    background: #0f172a;
    border: 1px solid #334155;
}

.image-editor-tab-btn {
    flex: 1;
    padding: 8px 12px;
    border-radius: 8px;
    border: none;
    background: transparent;
    color: #64748b;
    font-size: 0.82rem;
    font-weight: 700;
    font-family: var(--font-heading, sans-serif);
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

:root[data-theme="dark"] .image-editor-tab-btn {
    color: #94a3b8;
}

.image-editor-tab-btn.active {
    background: #ffffff;
    color: #0f172a;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

:root[data-theme="dark"] .image-editor-tab-btn.active {
    background: #1e293b;
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.image-editor-preview-card {
    background: #0f172a;
    border-radius: 12px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    border: 1px solid #334155;
    min-height: 180px;
}

.image-editor-preview-img {
    max-width: 100%;
    max-height: 220px;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.image-editor-preview-info {
    margin-top: 8px;
    font-size: 0.78rem;
    color: #94a3b8;
    display: flex;
    gap: 12px;
}

.image-editor-dropzone {
    border: 2px dashed #94a3b8;
    border-radius: 12px;
    padding: 2.5rem 1.5rem;
    text-align: center;
    cursor: pointer;
    background: rgba(241, 245, 249, 0.5);
    transition: all 0.2s ease;
}

:root[data-theme="dark"] .image-editor-dropzone {
    background: rgba(15, 23, 42, 0.4);
    border-color: #475569;
}

.image-editor-dropzone:hover {
    border-color: #3b82f6;
    background: rgba(59, 130, 246, 0.05);
}

.image-editor-dropzone-icon {
    font-size: 2.5rem;
    margin-bottom: 8px;
}

.image-editor-dropzone-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--navy-blue);
    margin-bottom: 4px;
}

:root[data-theme="dark"] .image-editor-dropzone-title {
    color: #f8fafc;
}

.image-editor-dropzone-sub {
    font-size: 0.8rem;
    color: #64748b;
}

.image-editor-dropzone.drag-over {
    border-color: #10b981 !important;
    background: rgba(16, 185, 129, 0.08) !important;
    transform: scale(1.01);
}

.image-upload-options-card {
    margin-top: 1.25rem;
    padding: 1.25rem;
    background: var(--bg-surface, #f8fafc);
    border: 1.5px solid var(--border-subtle, #cbd5e1);
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

:root[data-theme="dark"] .image-upload-options-card {
    background: #0f172a;
    border-color: #334155;
}

.image-upload-status-box {
    margin-top: 1rem;
    padding: 11px 15px;
    border-radius: 8px;
    font-size: 0.88rem;
    line-height: 1.45;
}

.image-upload-status-box.loading {
    background: rgba(37, 99, 235, 0.1);
    color: #1d4ed8;
    border: 1px solid rgba(37, 99, 235, 0.3);
}

:root[data-theme="dark"] .image-upload-status-box.loading {
    background: rgba(37, 99, 235, 0.2);
    color: #93c5fd;
    border-color: rgba(37, 99, 235, 0.4);
}

.image-upload-status-box.success {
    background: rgba(16, 185, 129, 0.12);
    color: #065f46;
    border: 1px solid rgba(16, 185, 129, 0.4);
}

:root[data-theme="dark"] .image-upload-status-box.success {
    background: rgba(16, 185, 129, 0.2);
    color: #34d399;
    border-color: rgba(16, 185, 129, 0.5);
}

.image-upload-status-box.error {
    background: rgba(239, 68, 68, 0.1);
    color: #991b1b;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

:root[data-theme="dark"] .image-upload-status-box.error {
    background: rgba(239, 68, 68, 0.2);
    color: #f87171;
    border-color: rgba(239, 68, 68, 0.5);
}

/* Station Media Library Grid in Modal */
.image-library-search {
    width: 100%;
    padding: 9px 14px;
    border-radius: 8px;
    border: 1px solid #cbd5e1;
    font-size: 0.88rem;
    margin-bottom: 1rem;
    background: #ffffff;
    box-sizing: border-box;
}

:root[data-theme="dark"] .image-library-search {
    background: #0f172a;
    border-color: #334155;
    color: #ffffff;
}

.image-library-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 10px;
    max-height: 280px;
    overflow-y: auto;
    padding: 2px;
}

.image-library-item {
    border: 2px solid transparent;
    border-radius: 8px;
    overflow: hidden;
    background: #0f172a;
    cursor: pointer;
    transition: all 0.15s ease;
    display: flex;
    flex-direction: column;
    text-align: center;
}

.image-library-item:hover {
    transform: translateY(-2px);
    border-color: #60a5fa;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

.image-library-item.selected {
    border-color: #2563eb;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.4);
}

.image-library-thumb {
    width: 100%;
    height: 80px;
    object-fit: cover;
    display: block;
}

.image-library-item-name {
    font-size: 0.72rem;
    font-weight: 600;
    color: #e2e8f0;
    padding: 5px 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ==========================================================================
   New Civic Block Templates
   ========================================================================== */

/* Template Modal Filter Pills & Search */
.template-modal-top {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 1.25rem;
}

.template-filter-pills {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding-bottom: 4px;
}

.template-filter-pill {
    padding: 6px 14px;
    border-radius: 20px;
    border: 1px solid #cbd5e1;
    background: #f1f5f9;
    color: #475569;
    font-size: 0.78rem;
    font-weight: 700;
    font-family: var(--font-heading, sans-serif);
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.15s ease;
}

:root[data-theme="dark"] .template-filter-pill {
    background: #1e293b;
    border-color: #334155;
    color: #94a3b8;
}

.template-filter-pill.active {
    background: #2563eb;
    border-color: #2563eb;
    color: #ffffff;
}

.template-search-input {
    width: 100%;
    padding: 10px 16px;
    border-radius: 8px;
    border: 1px solid #cbd5e1;
    font-size: 0.9rem;
    background: #ffffff;
    box-sizing: border-box;
}

:root[data-theme="dark"] .template-search-input {
    background: #0f172a;
    border-color: #334155;
    color: #ffffff;
}

/* 8. Mini Hero / Action Showcase */
.custom-hero-mini-wrap {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    padding: 4.5rem 2.5rem;
    color: #ffffff;
    background-size: cover;
    background-position: center;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

.custom-hero-mini-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.88) 0%, rgba(15, 23, 42, 0.75) 100%);
    z-index: 1;
}

.custom-hero-mini-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.custom-hero-mini-title {
    font-size: 2.4rem;
    font-weight: 900;
    font-family: var(--font-heading, sans-serif);
    color: #ffffff;
    line-height: 1.15;
    margin: 0.75rem 0 1rem;
}

.custom-hero-mini-lead {
    font-size: 1.12rem;
    line-height: 1.6;
    color: #cbd5e1;
    margin-bottom: 2rem;
}

.custom-hero-mini-pills {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.custom-mini-stat-pill {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.82rem;
    font-weight: 700;
    color: #f8fafc;
    backdrop-filter: blur(4px);
}

/* 9. Milestones & History Timeline */
.custom-timeline-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 880px;
    margin: 2.5rem auto 0;
    position: relative;
}

.custom-timeline-list::before {
    content: '';
    position: absolute;
    top: 20px;
    bottom: 20px;
    left: 80px;
    width: 3px;
    background: linear-gradient(to bottom, #b3212b, #2563eb);
    border-radius: 2px;
}

@media (max-width: 640px) {
    .custom-timeline-list::before {
        left: 20px;
    }
}

.custom-timeline-item {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    position: relative;
    padding: 1.5rem 1.75rem;
    border-radius: 12px;
    margin-left: 20px;
}

@media (max-width: 640px) {
    .custom-timeline-item {
        flex-direction: column;
        gap: 0.75rem;
        margin-left: 0;
        padding-left: 3rem;
    }
}

.custom-timeline-year {
    font-size: 1.35rem;
    font-weight: 900;
    font-family: var(--font-heading, sans-serif);
    color: var(--fire-red);
    min-width: 90px;
    flex-shrink: 0;
    letter-spacing: 0.5px;
}

.custom-timeline-body {
    flex: 1;
}

.custom-timeline-title {
    font-size: 1.15rem;
    font-weight: 800;
    margin: 0 0 6px;
    color: var(--navy-blue);
}

:root[data-theme="dark"] .custom-timeline-title {
    color: #f8fafc;
}

.custom-timeline-desc {
    margin: 0;
    font-size: 0.94rem;
    line-height: 1.6;
    color: var(--text-secondary);
}

/* 10. Community Events Grid */
.custom-events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.75rem;
    margin-top: 2rem;
}

.custom-event-card {
    position: relative;
    border-radius: 14px;
    padding: 1.75rem;
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.custom-event-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
}

.custom-event-date-badge {
    background: linear-gradient(135deg, var(--fire-red), #8a1921);
    color: #ffffff;
    border-radius: 10px;
    padding: 10px 12px;
    text-align: center;
    min-width: 64px;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(179, 33, 43, 0.35);
}

.custom-event-month {
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 1px;
    text-transform: uppercase;
    display: block;
}

.custom-event-day {
    font-size: 1.6rem;
    font-weight: 900;
    line-height: 1.1;
    display: block;
}

.custom-event-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.custom-event-title {
    font-size: 1.15rem;
    font-weight: 800;
    margin: 0 0 6px;
    color: var(--navy-blue);
}

:root[data-theme="dark"] .custom-event-title {
    color: #f8fafc;
}

.custom-event-meta {
    font-size: 0.8rem;
    font-weight: 700;
    color: #64748b;
    margin-bottom: 8px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

:root[data-theme="dark"] .custom-event-meta {
    color: #94a3b8;
}

.custom-event-desc {
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--text-secondary);
    margin: 0 0 1rem;
    flex: 1;
}

/* 11. Emergency Alert & Advisory Box */
.custom-alert-box {
    border-radius: 14px;
    border: 2px solid #ef4444;
    background: rgba(239, 68, 68, 0.05);
    padding: 2rem;
    max-width: 960px;
    margin: 0 auto;
}

.custom-alert-status-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(239, 68, 68, 0.2);
}

.custom-alert-status-pill {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    background: #ef4444;
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.35);
}

.custom-alert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}

.custom-alert-card-item {
    padding: 1.25rem;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(239, 68, 68, 0.15);
}

:root[data-theme="dark"] .custom-alert-card-item {
    background: rgba(15, 23, 42, 0.6);
}

.custom-alert-card-item h4 {
    margin: 0 0 6px;
    font-size: 0.95rem;
    font-weight: 800;
    color: #b91c1c;
}

.custom-alert-card-item p {
    margin: 0;
    font-size: 0.88rem;
    color: var(--text-main);
    line-height: 1.45;
}

/* 12. Community Testimonials / Quotes */
.custom-quotes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.75rem;
    margin-top: 2rem;
}

.custom-quote-card {
    position: relative;
    padding: 2rem;
    border-radius: 14px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.custom-quote-stars {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: #f59e0b;
}

.custom-quote-text {
    font-size: 1.02rem;
    line-height: 1.6;
    font-style: italic;
    color: var(--text-main);
    margin: 0 0 1.25rem;
    flex: 1;
}

.custom-quote-author {
    font-size: 0.86rem;
    font-weight: 700;
    color: var(--navy-blue);
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    padding-top: 10px;
}

:root[data-theme="dark"] .custom-quote-author {
    color: #93c5fd;
    border-color: rgba(255, 255, 255, 0.1);
}

/* 13. Recruitment Steps */
.custom-steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.custom-step-card {
    position: relative;
    padding: 2rem 1.5rem;
    border-radius: 12px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.custom-step-num {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--fire-red), #8a1921);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 1rem;
    margin-bottom: 1rem;
    box-shadow: 0 4px 12px rgba(179, 33, 43, 0.3);
}

.custom-step-title {
    font-size: 1.1rem;
    font-weight: 800;
    margin: 0 0 8px;
    color: var(--navy-blue);
}

:root[data-theme="dark"] .custom-step-title {
    color: #f8fafc;
}

.custom-step-desc {
    font-size: 0.88rem;
    line-height: 1.5;
    color: var(--text-secondary);
    margin: 0;
}

/* 14. Specifications Table */
.custom-specs-table-wrap {
    overflow-x: auto;
    border-radius: 12px;
    margin-top: 2rem;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
}

.custom-specs-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.92rem;
    text-align: left;
}

.custom-specs-table th {
    background: #0f172a;
    color: #f8fafc;
    padding: 14px 16px;
    font-weight: 700;
    font-family: var(--font-heading, sans-serif);
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.custom-specs-table td {
    padding: 14px 16px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    color: var(--text-main);
}

:root[data-theme="dark"] .custom-specs-table td {
    border-color: rgba(255, 255, 255, 0.08);
}

.custom-specs-row:nth-child(even) {
    background: rgba(0, 0, 0, 0.02);
}

:root[data-theme="dark"] .custom-specs-row:nth-child(even) {
    background: rgba(255, 255, 255, 0.03);
}

/* 15. Contact & Headquarters Grid */
.custom-contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.custom-contact-card {
    position: relative;
    padding: 2.2rem 1.75rem;
    border-radius: 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.custom-contact-icon {
    font-size: 2.4rem;
    margin-bottom: 1rem;
}

.custom-contact-card h3 {
    font-size: 1.25rem;
    font-weight: 800;
    margin: 0 0 8px;
    color: var(--navy-blue);
}

:root[data-theme="dark"] .custom-contact-card h3 {
    color: #f8fafc;
}

.custom-contact-highlight {
    font-size: 1.35rem;
    font-weight: 900;
    font-family: var(--font-heading, sans-serif);
    color: var(--fire-red);
    margin: 6px 0 10px;
}

.custom-contact-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0 0 1.25rem;
    flex: 1;
}

/* 16. Donation Tiers Showcase */
.custom-donate-tiers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.custom-donate-tier-card {
    position: relative;
    padding: 2rem 1.5rem;
    border-radius: 12px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.custom-donate-tier-card:hover {
    transform: translateY(-4px);
    border-color: var(--fire-red);
}

.custom-donate-amount {
    font-size: 2.2rem;
    font-weight: 900;
    font-family: var(--font-heading, sans-serif);
    color: var(--fire-red);
    margin-bottom: 6px;
}

.custom-donate-title {
    font-size: 1.05rem;
    font-weight: 800;
    margin: 0 0 8px;
    color: var(--navy-blue);
}

:root[data-theme="dark"] .custom-donate-title {
    color: #f8fafc;
}

.custom-donate-desc {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0;
}

