/* ========================================
   CPC NEW HAVEN - UNIFIED STYLESHEET
   ========================================
   
   This file consolidates all CSS for the website.
   Organized for easy maintenance and updates.
   
   Quick Navigation:
   1. CSS Variables (Line ~15)
   2. Reset & Base Styles (Line ~80)
   3. Navigation (Line ~200)
   4. Footer (Line ~400)
   5. Common Components (Line ~500)
   6. Page Styles (Line ~1000)
   7. Utilities (Line ~2000)
   8. Media Queries (Line ~2100)
   
   To update colors: Edit CSS Variables section
   To update navigation: Edit Navigation section
   To add page styles: Add to Page Styles section
*/

/* ========================================
   1. CSS VARIABLES - UPDATE COLORS HERE
   ======================================== */
/* Fonts & icons are now loaded via <link> in base.html for faster rendering.
   (CSS @import is sequential and render-blocking.) */

:root {
    /* Brand Colors - Modernized for study tool feel */
    --cpc-blue: #0052a3;
    --cpc-blue-dark: #003d7a;
    --cpc-blue-light: #e8f2ff;
    --cpc-blue-medium: #0066cc;
    --accent-gold: #c99a3a;
    --accent-gold-light: rgba(201, 154, 58, 0.16);

    /* Glass Effects - More refined */
    --glass-bg: rgba(0, 60, 130, 0.22);
    --glass-bg-hover: rgba(0, 60, 130, 0.32);
    --glass-border: rgba(0, 60, 130, 0.35);
    --glass-white: rgba(255, 255, 255, 0.22);
    --glass-white-strong: rgba(255, 255, 255, 0.32);

    /* Surface Colors for Cards */
    --surface-blue: rgba(0, 50, 120, 0.15);
    --border-blue: rgba(0, 50, 120, 0.3);

    /* Background - Modernized gradient */
    --bg-gradient: linear-gradient(135deg, #004080 0%, #003366 50%, #00264d 100%);
    --background-color: #f9f9fa;

    /* Text Colors */
    --text-primary: #1d1d1f;
    --text-secondary: #4b5563;
    --text-white: rgba(255, 255, 255, 0.95);
    --heading-color: #2c3e50;

    /* Shadows */
    --shadow-soft: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 4px 15px rgba(0, 0, 0, 0.15);
    --shadow-strong: 0 8px 30px rgba(0, 0, 0, 0.2);
    --glass-shadow: 0 8px 32px rgba(0, 50, 120, 0.3);

    /* Spacing - Use these for consistent spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
    --space-2xl: 4rem;

    /* Border Radius */
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;

    /* Typography */
    --font-primary: 'Barlow', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;

    /* Left sidebar redesign tokens */
    --sidebar-panel-bg: rgba(255, 255, 255, 0.07);
    --sidebar-panel-border: rgba(255, 255, 255, 0.14);
    --sidebar-panel-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    --sidebar-title-color: #c3daf7;

    /* About page redesign tokens */
    --accent-warm: var(--accent-gold);
    --accent-warm-light: var(--accent-gold-light);
    --quote-card-bg: linear-gradient(135deg, rgba(18, 34, 61, 0.96), rgba(11, 25, 48, 0.94));
    --quote-card-border: rgba(214, 187, 136, 0.2);
    --quote-card-shadow: 0 16px 44px rgba(0, 0, 0, 0.28);
    --quote-card-text: rgba(247, 241, 231, 0.96);
    --quote-card-attribution: rgba(214, 187, 136, 0.88);
}

/* White Theme Variables */
body.theme-white {
    --cpc-blue: #0052a3;
    --cpc-blue-dark: #003d7a;
    --cpc-blue-light: #e8f2ff;
    --cpc-blue-medium: #0066cc;
    --accent-gold: #c99a3a;
    --accent-gold-light: rgba(201, 154, 58, 0.16);

    /* Glass Effects - White theme */
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-bg-hover: rgba(255, 255, 255, 0.95);
    --glass-border: rgba(0, 0, 0, 0.1);
    --glass-white: rgba(255, 255, 255, 0.9);
    --glass-white-strong: rgba(255, 255, 255, 0.95);

    /* Surface Colors for Cards */
    --surface-blue: rgba(0, 50, 120, 0.08);
    --border-blue: rgba(0, 50, 120, 0.15);

    /* Background - White theme */
    --bg-gradient: linear-gradient(135deg, #f5f7fa 0%, #e8ecf1 50%, #dde2e8 100%);
    --background-color: #ffffff;

    /* Text Colors - White theme */
    --text-primary: #1d1d1f;
    --text-secondary: #6c757d;
    --text-white: rgba(30, 30, 35, 0.95);
    --heading-color: #2c3e50;

    /* Shadows - White theme */
    --shadow-soft: 0 2px 10px rgba(0, 0, 0, 0.08);
    --shadow-medium: 0 4px 15px rgba(0, 0, 0, 0.12);
    --shadow-strong: 0 8px 30px rgba(0, 0, 0, 0.15);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);

    /* Left sidebar redesign tokens - white theme */
    --sidebar-panel-bg: rgba(255, 255, 255, 0.9);
    --sidebar-panel-border: rgba(0, 0, 0, 0.1);
    --sidebar-panel-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    --sidebar-title-color: #0d355f;

    /* About page redesign tokens - white theme */
    --accent-warm: var(--accent-gold);
    --accent-warm-light: var(--accent-gold-light);
    --quote-card-bg: linear-gradient(135deg, #fef9f5, #f9f0e8);
    --quote-card-border: #e8dcc8;
    --quote-card-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
    --quote-card-text: #4a3f2f;
    --quote-card-attribution: #9d8668;
}

body.theme-white {
    background: var(--bg-gradient);
    color: var(--text-primary);
}

/* Brand selection highlight: CPC gold instead of browser pink */
::selection {
    background: var(--accent-gold-light);
    color: var(--text-primary);
}

::-moz-selection {
    background: var(--accent-gold-light);
    color: var(--text-primary);
}

/* White theme navigation adjustments */
body.theme-white .top-nav {
    background: rgba(0, 50, 120, 0.85) !important;
    border: 1px solid rgba(0, 50, 120, 0.45) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.35) !important;
    box-shadow: 0 8px 32px rgba(0, 50, 120, 0.35) !important;
}

body.theme-white .top-nav a,
body.theme-white .top-nav .text-white {
    color: #fff !important;
}

body.theme-white .top-nav a:hover {
    color: #cfe4ff !important;
}

body.theme-white .nav-logo img {
    filter: brightness(0) invert(1) !important;
}

body.theme-white .dropdown-menu {
    background: rgba(255, 255, 255, 0.95) !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
}

body.theme-white .dropdown-menu a {
    color: var(--text-primary) !important;
}

body.theme-white .dropdown-menu a:hover {
    background: rgba(0, 50, 120, 0.1) !important;
    color: var(--cpc-blue) !important;
}

/* Settings dropdown in white theme. Keep these selectors more specific than
   the navigation's generic .text-white rule so the controls remain readable
   on the white menu surface. */
body.theme-white .top-nav .dropdown-menu li span {
    color: #1a1a1a !important;
}

body.theme-white .top-nav .dropdown-menu li span.text-white\/70 {
    color: #666 !important;
}

body.theme-white .top-nav .dropdown-menu button {
    color: #1a1a1a !important;
}

body.theme-white .top-nav .dropdown-menu button.bg-blue-500 {
    background: var(--cpc-blue) !important;
    color: white !important;
}

body.theme-white .top-nav .dropdown-menu button.bg-white\/20 {
    background: rgba(0, 0, 0, 0.08) !important;
    color: #333 !important;
}

body.theme-white .top-nav .dropdown-menu .border-white\/20 {
    border-color: rgba(0, 0, 0, 0.1) !important;
}

/* White theme dashboard adjustments */
body.theme-white .dashboard-title {
    color: var(--text-primary);
    border-left: 2px solid rgba(0, 82, 163, 0.5);
}

body.theme-white .dashboard-note {
    color: var(--text-primary);
    opacity: 0.85;
}

body.theme-white .dashboard-link {
    color: var(--text-primary);
    background: rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

body.theme-white .dashboard-link:hover {
    background: rgba(0, 50, 120, 0.1);
    color: var(--cpc-blue);
}

body.theme-white .glass-button {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.15);
    color: var(--text-primary);
}

body.theme-white .glass-button:hover {
    background: rgba(0, 50, 120, 0.1);
    color: var(--cpc-blue);
}

body.theme-white .study-text,
body.theme-white .study-reference,
body.theme-white .study-title,
body.theme-white .study-date {
    color: var(--text-primary);
}

body.theme-white .study-link {
    background: rgba(0, 82, 163, 0.15);
    border: 1px solid rgba(0, 82, 163, 0.3);
    color: var(--cpc-blue);
}

body.theme-white .study-link:hover {
    background: rgba(0, 82, 163, 0.25);
    border-color: rgba(0, 82, 163, 0.4);
}

/* White theme footer ticker */
body.theme-white .footer-ticker {
    background: rgba(255, 255, 255, 0.9) !important;
    border-top: 1px solid rgba(0, 0, 0, 0.1) !important;
}

body.theme-white .footer-ticker .ticker-item {
    color: rgba(255, 255, 255, 0.9) !important;
}

/* White theme footer should remain a dark footer with light copy */
body.theme-white footer {
    background: rgba(0, 20, 60, 0.9) !important;
    color: rgba(255, 255, 255, 0.85) !important;
}

body.theme-white footer p,
body.theme-white footer span,
body.theme-white footer a,
body.theme-white footer i {
    color: rgba(255, 255, 255, 0.85) !important;
}

body.theme-white footer a:hover {
    color: #ffffff !important;
}

body.theme-white footer [style*="color:var(--surface-text)"] {
    color: #ffffff !important;
}

body.theme-white footer [style*="color:var(--surface-muted)"] {
    color: rgba(255, 255, 255, 0.78) !important;
}

body.theme-white .ticker-item {
    color: var(--text-primary) !important;
}

body.theme-white .footer-meta {
    color: var(--text-primary) !important;
}

body.theme-white .footer-status-bar,
body.theme-white .footer-status-bar-inner {
    color: rgba(255, 255, 255, 0.96) !important;
}

body.theme-white .footer-status-bar {
    background: var(--cpc-blue) !important;
    border-top-color: rgba(255, 255, 255, 0.18) !important;
    box-shadow: 0 -4px 18px rgba(10, 26, 52, 0.18) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

@keyframes cpcpulse {
    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.35;
        transform: scale(0.85);
    }
}

@media (prefers-reduced-motion: reduce) {
    .dash-live__dot {
        animation: none;
    }
}

body.theme-white .ticker-item .badge {
    background: rgba(0, 82, 163, 0.15) !important;
    border: 1px solid rgba(0, 82, 163, 0.3) !important;
    color: var(--cpc-blue) !important;
}

/* White theme ticker fade mask */
body.theme-white .ticker-viewport {
    mask-image: linear-gradient(90deg, transparent 0%, black 8%, black 92%, transparent 100%);
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, black 8%, black 92%, transparent 100%);
}

/* Scroll progress bar white theme */
body.theme-white .scroll-progress-bar {
    background: var(--cpc-blue) !important;
}

/* ========================================
   NAV SEARCH MODAL (Phase 2)
   ======================================== */

#searchModal {
    animation: fadeIn 0.15s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

#searchModalBox {
    animation: slideUp 0.2s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#modalSearchInput {
    transition: all 0.2s ease;
}

#modalSearchInput:focus {
    outline: none;
    border-color: rgba(135, 206, 250, 0.5) !important;
    box-shadow: 0 0 0 2px rgba(135, 206, 250, 0.2);
    background: rgba(255, 255, 255, 0.12) !important;
}

/* ========================================
   SEARCH PAGE - FILTER PANEL (Phase 2)
   ======================================== */

#advancedFiltersToggle {
    cursor: pointer;
    transition: all 0.2s ease;
}

#advancedFiltersToggle:hover {
    background: rgba(255, 255, 255, 0.08) !important;
}

#advancedFiltersPanel {
    animation: slideDown 0.2s ease;
}

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

#advancedFiltersPanel .filter-select,
#advancedFiltersPanel .filter-input {
    width: 100%;
    min-width: 150px;
}

#advancedFiltersPanel .filter-select:focus,
#advancedFiltersPanel .filter-input:focus {
    outline: none;
    border-color: rgba(135, 206, 250, 0.5) !important;
    box-shadow: 0 0 0 2px rgba(135, 206, 250, 0.2);
    background: rgba(255, 255, 255, 0.12) !important;
}

/* ========================================
   WHITE THEME - COMPREHENSIVE OVERRIDES
   ======================================== */

/* Section dark backgrounds become light in white theme */
body.theme-white .section-dark {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%) !important;
}

/* Section headings and subheadings */
body.theme-white .section-heading {
    color: #1a1a1a !important;
}

body.theme-white .section-subheading {
    color: #4a4a4a !important;
}

/* Latest cards (homepage) */
body.theme-white .latest-card {
    background: rgba(255, 255, 255, 0.9) !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
}

body.theme-white .latest-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.15) !important;
    border-color: rgba(0, 82, 163, 0.15) !important;
    background: rgba(255, 255, 255, 0.95) !important;
}

body.theme-white .latest-card h3 {
    color: #666 !important;
}

body.theme-white .latest-card .latest-title {
    color: #1a1a1a !important;
}

body.theme-white .latest-card .latest-meta {
    color: #555 !important;
}

body.theme-white .latest-card a.cta {
    color: var(--cpc-blue) !important;
}

/* Dark cards (homepage new here section) */
body.theme-white .dark-card {
    background: rgba(255, 255, 255, 0.9) !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
}

body.theme-white .dark-card:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.97) !important;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.15) !important;
    border-color: rgba(0, 82, 163, 0.15) !important;
}

body.theme-white .dark-card h3 {
    color: #1a1a1a !important;
}

body.theme-white .dark-card-text {
    color: #555 !important;
}

/* Time slots (service info) */
body.theme-white .time-slot {
    background: rgba(255, 255, 255, 0.9) !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
}

body.theme-white .time-slot:hover {
    background: rgba(255, 255, 255, 0.95) !important;
}

body.theme-white .time-slot h3 {
    color: #1a1a1a !important;
}

body.theme-white .time-slot p {
    color: #555 !important;
}

body.theme-white .time-slot.featured {
    background: rgba(0, 82, 163, 0.1) !important;
    border-color: rgba(0, 82, 163, 0.3) !important;
}

/* Pull quote */
body.theme-white .section-dark .pull-quote {
    background: rgba(255, 255, 255, 0.9) !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08) !important;
}

body.theme-white .section-dark .pull-quote .quote-text,
body.theme-white .pull-quote .quote-text {
    color: #2b2a27 !important;
}

body.theme-white .section-dark .pull-quote .quote-sub,
body.theme-white .pull-quote .quote-sub {
    color: #555 !important;
}

body.theme-white .mark-card h3 {
    color: var(--cpc-blue-dark) !important;
    opacity: 1 !important;
}

/* Events list */
body.theme-white .section-label {
    color: #666 !important;
}

body.theme-white .events-list li {
    border-color: rgba(0, 0, 0, 0.1) !important;
}

body.theme-white .events-list .event-date {
    color: #666 !important;
}

body.theme-white .events-list .event-title {
    color: #1a1a1a !important;
}

/* Contact strip */
body.theme-white .contact-strip {
    background: rgba(255, 255, 255, 0.8) !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
}

body.theme-white .contact-strip a,
body.theme-white .contact-strip span {
    color: #333 !important;
}

body.theme-white .contact-strip a:hover {
    color: var(--cpc-blue) !important;
}

/* Hero banner text */
body.theme-white .hero-banner .splash-content h1,
body.theme-white .hero-banner .splash-content h2 {
    color: white !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3) !important;
}

body.theme-white .hero-banner .splash-content p {
    color: rgba(255, 255, 255, 0.9) !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2) !important;
}

/* Buttons in white theme */
body.theme-white .btn-primary {
    background: var(--cpc-blue) !important;
    color: white !important;
}

body.theme-white .btn-secondary {
    background: transparent !important;
    color: #1a1a1a !important;
    border: 2px solid #1a1a1a !important;
}

body.theme-white .btn-secondary:hover {
    background: #1a1a1a !important;
    color: white !important;
}

body.theme-white .section-dark .btn-secondary {
    color: #1a1a1a !important;
    border-color: #1a1a1a !important;
}

body.theme-white .hero-banner .btn-secondary {
    color: white !important;
    border-color: white !important;
}

body.theme-white .hero-banner .btn-secondary:hover {
    background: white !important;
    color: #1a1a1a !important;
}

/* Highlights section */
.highlights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
}

/* ========================================
   PHASE 3: MOBILE COLLAPSIBLE FILTERS
   Shared pattern across all 5 subpages
   ======================================== */

.filter-toggle-mobile {
    display: none;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.5rem 0.75rem;
    transition: color 0.2s;
}

.filter-toggle-mobile:hover {
    color: rgba(255, 255, 255, 0.95);
}

.mobile-collapsible {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

@media (max-width: 768px) {
    .filter-toggle-mobile {
        display: inline-block;
    }

    .mobile-collapsible {
        display: none;
        flex-direction: column;
        width: 100%;
        gap: 0.5rem;
    }

    .mobile-collapsible.open {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
    }

    .mobile-collapsible select,
    .mobile-collapsible input[type="text"] {
        flex: 1;
        min-width: 120px;
    }
}

@media (min-width: 769px) {
    .filter-toggle-mobile {
        display: none !important;
    }

    .mobile-collapsible {
        display: flex !important;
    }
}

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

.highlight-card {
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.highlight-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.25);
    border-color: rgba(255, 255, 255, 0.2);
}

.highlight-card.superfeatured {
    border-color: rgba(255, 215, 0, 0.35);
    border-width: 2px;
}

/* Latest and dark card hover effects */
.latest-card,
.dark-card {
    background: rgba(0, 60, 130, 0.18);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    padding: 1.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.latest-card:hover,
.dark-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(0, 60, 130, 0.24);
}

/* CTA link hover effects */
.cta {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: all 0.25s ease;
    position: relative;
}

.cta:hover {
    color: white;
    gap: 8px;
}

body.theme-white .highlights-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%) !important;
}

body.theme-white .highlight-card {
    background: rgba(255, 255, 255, 0.9) !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
}

body.theme-white .highlight-card h3 {
    color: #1a1a1a !important;
}

body.theme-white .highlight-card p {
    color: #555 !important;
}

/* CTA links */
body.theme-white .cta,
body.theme-white a.cta {
    color: var(--cpc-blue) !important;
}

body.theme-white .cta:hover,
body.theme-white a.cta:hover {
    gap: 8px !important;
}

/* Glass icon button */
body.theme-white .glass-icon-button {
    background: rgba(255, 255, 255, 0.9) !important;
    border: 1px solid rgba(0, 0, 0, 0.15) !important;
    color: var(--cpc-blue) !important;
}

/* Dashboard sidebar in white theme */
body.theme-white .dashboard-sidebar {
    background: rgba(255, 255, 255, 0.95) !important;
}

body.theme-white .dashboard-sidebar .text-white,
body.theme-white .dashboard-sidebar .text-white\/90,
body.theme-white .dashboard-sidebar .text-white\/80,
body.theme-white .dashboard-sidebar .text-white\/70 {
    color: #1a1a1a !important;
}

body.theme-white #liveClock,
body.theme-white #liveDate,
body.theme-white #weatherNow,
body.theme-white #weatherHiLo,
body.theme-white #weatherDesc {
    color: #1a1a1a !important;
}

/* Search input in sidebar */
body.theme-white .dashboard-sidebar input[type="search"],
body.theme-white .dashboard-sidebar input[type="text"] {
    background: rgba(0, 0, 0, 0.05) !important;
    border: 1px solid rgba(0, 0, 0, 0.15) !important;
    color: #1a1a1a !important;
}

body.theme-white .dashboard-sidebar input::placeholder {
    color: #888 !important;
}

/* Teaching Series page white theme */
body.theme-white .teaching-series-page {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%) !important;
}

body.theme-white .search-controls,
body.theme-white .filter-sidebar,
body.theme-white .series-category {
    background: rgba(255, 255, 255, 0.9) !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
}

body.theme-white .search-bar input,
body.theme-white .sort-select,
body.theme-white .view-btn,
body.theme-white .date-range-inputs input {
    background: rgba(0, 0, 0, 0.05) !important;
    border: 1px solid rgba(0, 0, 0, 0.15) !important;
    color: #1a1a1a !important;
}

body.theme-white .search-bar input::placeholder {
    color: #888 !important;
}

body.theme-white .search-bar i {
    color: #666 !important;
}

body.theme-white .view-btn.active {
    background: var(--cpc-blue) !important;
    color: white !important;
}

body.theme-white .results-count {
    color: #555 !important;
}

body.theme-white .filter-title {
    color: #1a1a1a !important;
}

body.theme-white .filter-option label {
    color: #333 !important;
}

body.theme-white .filter-count {
    color: #888 !important;
}

body.theme-white .clear-filters,
body.theme-white .action-btn {
    background: rgba(0, 0, 0, 0.05) !important;
    border: 1px solid rgba(0, 0, 0, 0.15) !important;
    color: #333 !important;
}

body.theme-white .clear-filters:hover,
body.theme-white .action-btn:hover {
    background: rgba(0, 50, 120, 0.1) !important;
    color: var(--cpc-blue) !important;
}

body.theme-white .category-header h2 {
    color: #1a1a1a !important;
}

body.theme-white .category-header {
    border-color: rgba(0, 0, 0, 0.1) !important;
}

body.theme-white .series-card {
    background: rgba(255, 255, 255, 0.95) !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
}

body.theme-white .series-card:hover {
    background: white !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1) !important;
}

body.theme-white .series-header h3 {
    color: #1a1a1a !important;
}

body.theme-white .series-meta {
    color: #666 !important;
}

body.theme-white .series-count {
    background: rgba(0, 0, 0, 0.08) !important;
    color: #333 !important;
}

body.theme-white .author-tag {
    background: rgba(0, 0, 0, 0.08) !important;
    color: #333 !important;
}

body.theme-white .scripture-tag {
    background: rgba(0, 82, 163, 0.15) !important;
    color: var(--cpc-blue) !important;
}

body.theme-white .sermon-info a {
    color: #1a1a1a !important;
}

body.theme-white .sermon-info a:hover {
    color: var(--cpc-blue) !important;
}

body.theme-white .sermon-meta {
    color: #666 !important;
}

body.theme-white .series-sermon-item {
    border-color: rgba(0, 0, 0, 0.08) !important;
}

body.theme-white .sermon-action-btn {
    background: rgba(0, 0, 0, 0.05) !important;
    border: 1px solid rgba(0, 0, 0, 0.15) !important;
    color: #555 !important;
}

body.theme-white .sermon-action-btn:hover {
    background: rgba(0, 50, 120, 0.1) !important;
    color: var(--cpc-blue) !important;
}

body.theme-white .expand-btn {
    background: rgba(0, 0, 0, 0.05) !important;
    border: 1px solid rgba(0, 0, 0, 0.15) !important;
    color: #333 !important;
}

body.theme-white .expand-btn:hover {
    background: rgba(0, 50, 120, 0.1) !important;
    color: var(--cpc-blue) !important;
}

body.theme-white .empty-state {
    background: rgba(0, 0, 0, 0.03) !important;
    color: #666 !important;
}

body.theme-white .compact-hero h1 {
    color: #1a1a1a !important;
}

body.theme-white .compact-hero p {
    color: #555 !important;
}

/* General page content white theme */
body.theme-white h1,
body.theme-white h2,
body.theme-white h3,
body.theme-white h4,
body.theme-white h5,
body.theme-white h6 {
    color: #1a1a1a;
}

body.theme-white p {
    color: #2f3c4d;
}

/* Glass cards in white theme */
body.theme-white .glass-card {
    background: rgba(255, 255, 255, 0.95) !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06) !important;
}

body.theme-white .glass-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1) !important;
}

body.theme-white .glass-card h1,
body.theme-white .glass-card h2,
body.theme-white .glass-card h3,
body.theme-white .glass-card h4 {
    color: #1a1a1a !important;
}

body.theme-white .glass-card p,
body.theme-white .glass-text-secondary {
    color: #445265 !important;
}

body.theme-white .latest-card__description,
body.theme-white .highlight-card__description,
body.theme-white .highlight-card__time,
body.theme-white .highlights-status {
    color: #445265 !important;
}

/* Page heroes in white theme */
body.theme-white .page-hero {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
        url('') center/cover !important;
}

/* Links in white theme */
body.theme-white a {
    color: var(--cpc-blue);
}

body.theme-white a:hover {
    color: var(--cpc-blue-dark);
}

/* Tailwind text color overrides for white theme */
body.theme-white .text-white {
    color: #1a1a1a !important;
}

body.theme-white .text-gray-600 {
    color: #555 !important;
}

body.theme-white .text-gray-400 {
    color: #777 !important;
}

/* Borders in white theme */
body.theme-white .border-blue-400,
body.theme-white .border-blue-500 {
    border-color: var(--cpc-blue) !important;
}

/* Mobile navigation dropdown in white theme */
body.theme-white nav[x-data]>div[x-show] {
    background: rgba(255, 255, 255, 0.98) !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
}

body.theme-white nav[x-data]>div[x-show] a,
body.theme-white nav[x-data]>div[x-show] p,
body.theme-white nav[x-data]>div[x-show] span {
    color: #1a1a1a !important;
}

body.theme-white nav[x-data]>div[x-show] a:hover {
    color: var(--cpc-blue) !important;
}

/* Keep the mobile menu's utility links visually consistent in both themes. */
.mobile-menu-actions .mobile-menu-action {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 2.4rem;
    padding: 0.55rem 0.65rem;
    border: 1px solid rgba(255,255,255,0.16);
    border-radius: 0.5rem;
    background: rgba(255,255,255,0.06);
    text-align: center;
    transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}

.mobile-menu-actions .mobile-menu-action:hover {
    background: rgba(255,255,255,0.14);
    border-color: rgba(255,255,255,0.32);
}

body.theme-white nav[x-data]>div[x-show] .mobile-menu-action {
    color: #17385e !important;
    border-color: rgba(10,57,109,0.14);
    background: rgba(237,245,255,0.75);
}

body.theme-white nav[x-data]>div[x-show] .mobile-menu-action:hover {
    color: #075fb9 !important;
    background: #edf5ff !important;
    border-color: rgba(0,102,204,0.28);
}

/* The Browse CPC links are a compact navigation grid, not large cards. */
.mobile-menu-browse-grid {
    height: auto !important;
    min-height: 0 !important;
    align-items: start;
    align-content: start !important;
    grid-auto-rows: 2.25rem !important;
    gap: 0.15rem 1.25rem !important;
}

.mobile-menu-browse-grid a {
    display: flex;
    align-items: center;
    min-height: 2.25rem;
    padding: 0.35rem 0.6rem !important;
    border: 0 !important;
    background: transparent !important;
    line-height: 1.2;
}

.mobile-menu-section-grid {
    height: auto !important;
    min-height: 0 !important;
    align-content: start !important;
    gap: 0.15rem 1.25rem !important;
}

.mobile-menu-section-grid > div {
    min-height: 0;
}

.mobile-menu-section-grid a {
    display: flex;
    align-items: center;
    min-height: 2.25rem;
    padding-top: 0.35rem !important;
    padding-bottom: 0.35rem !important;
    line-height: 1.2;
}

.mobile-menu-browse-grid a:hover {
    background: rgba(255,255,255,0.08) !important;
    border-radius: 0.4rem;
}

body.theme-white nav[x-data]>div[x-show] .mobile-menu-browse-grid a:hover {
    background: rgba(0,102,204,0.08) !important;
}

body.theme-white nav[x-data]>div[x-show] .border-white {
    border-color: rgba(0, 0, 0, 0.1) !important;
}

body.theme-white nav[x-data]>div[x-show] button.bg-blue-500 {
    background: var(--cpc-blue) !important;
    color: white !important;
}

body.theme-white nav[x-data]>div[x-show] button.bg-white\/20 {
    background: rgba(0, 0, 0, 0.08) !important;
    color: #333 !important;
}

/* Mobile Navigation Specifics */
@media (max-width: 1023px) {
    .top-nav {
        padding: 0.6rem 1rem !important;
        top: 1rem !important;
        width: calc(100% - 2rem) !important;
    }

    .mobile-menu-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    .mobile-menu-item {
        padding: 0.5rem;
        font-size: 0.875rem;
        border-radius: 0.5rem;
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid rgba(255, 255, 255, 0.1);
        display: flex;
        flex-direction: column;
        gap: 2px;
    }
}

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

html {
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    /* Prevent iOS bounce effect for native app feel */
    overscroll-behavior-y: contain;
    /* Better text rendering on mobile */
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

/* Hide scrollbar but allow scroll */
::-webkit-scrollbar {
    width: 0px;
    background: transparent;
}

* {
    scrollbar-width: none;
    /* Firefox */
}

/* Native app-like page transitions */
@media (max-width: 768px) {
    * {
        -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
    }

    /* Smooth transitions for native feel */
    a,
    button,
    .mobile-nav-item {
        transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    }

    /* Prevent text selection during scroll (native app behavior) */
    body {
        -webkit-user-select: none;
        user-select: none;
    }

    /* Allow text selection in content areas */
    main,
    .dashboard-panel,
    p,
    h1,
    h2,
    h3,
    h4,
    h5,
    h6 {
        -webkit-user-select: text;
        user-select: text;
    }
}

body {
    font-family: var(--font-primary);
    line-height: 1.5;
    color: var(--text-primary);
    background: var(--bg-gradient);
    min-height: 100vh;
    min-height: -webkit-fill-available;
    /* iOS Safari fix */
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-size: 15px;
    letter-spacing: -0.01em;
    /* Native app feel */
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

/* Ticker visibility (Settings dropdown) */
body.ticker-hidden .footer-ticker {
    display: none !important;
}

body.ticker-hidden {
    --dashboard-bottom-height: 0;
}

/* Bottom status bar (date/time) */
.footer-status-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    min-height: 34px;
    background: var(--cpc-blue);
    border-top: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 -4px 18px rgba(10, 26, 52, 0.18);
    z-index: 997;
}

.footer-status-bar-inner {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0 14px;
    min-height: 34px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    color: rgba(255, 255, 255, 0.96);
    font-size: 12px;
}

.footer-status-bar-left,
.footer-status-bar-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

@media (max-width: 767px) {
    .footer-status-bar {
        padding-bottom: env(safe-area-inset-bottom);
    }
    .footer-status-bar-inner {
        padding: 0 10px;
        gap: 8px;
        font-size: 11px;
    }

    .footer-status-bar-left {
        min-width: 0;
    }

    .dash-theme-toggle--footer {
        padding: 0 10px;
        min-height: 26px;
        gap: 8px;
    }

    .dash-theme-toggle--footer .dash-theme-toggle__label {
        font-size: 11px;
    }

    .dash-theme-toggle--footer .dash-theme-toggle__meta {
        display: none;
    }
}

/* Sticky nav off = nav scrolls with page (Settings dropdown) */
body.nav-not-sticky .top-nav {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    transform: none !important;
    margin-top: 1.25rem;
}

body.nav-not-sticky main {
    margin-top: 1rem;
    padding-top: 2rem !important;
    /* override Tailwind pt-8/pt-24 when nav scrolls */
}

main {
    flex: 1;
    margin-top: 100px;
}

/* Dashboard Layout */
:root {
    --dashboard-sidebar-width: 217px;
    /* 15% wider */
    --dashboard-sidebar-width-max: 320px;
    --dashboard-sidebar-width-left: 248px;
    --dashboard-sidebar-width-right: var(--dashboard-sidebar-width);
    --dashboard-gutter: 16px;
    --dashboard-top-offset: 90px;
    /* below nav */
    --dashboard-bottom-height: 34px;
    /* footer ticker height */
}

.dashboard-sidebar {
    position: fixed;
    top: var(--dashboard-top-offset);
    bottom: calc(var(--dashboard-gutter) + var(--dashboard-bottom-height));
    background: var(--sidebar-panel-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--sidebar-panel-border);
    border-radius: var(--radius-md);
    box-shadow: var(--sidebar-panel-shadow);
    padding: 18px;
    overflow-y: auto;
    overflow-x: hidden;
    z-index: 40;
    transition: all 0.3s ease;
}

body.theme-white .dashboard-sidebar {
    border: 1px solid var(--sidebar-panel-border);
    box-shadow: var(--sidebar-panel-shadow);
}

.dashboard-left {
    left: var(--dashboard-gutter);
    width: var(--dashboard-sidebar-width-left);
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: 16px 15px;
}

.dashboard-right {
    right: var(--dashboard-gutter);
    width: var(--dashboard-sidebar-width-right);
}

.dashboard-main {
    /* leave room for fixed sidebars on large screens */
}

@media (min-width: 1024px) {
    .dashboard-main {
        padding-left: calc(var(--dashboard-sidebar-width-left) + var(--dashboard-gutter) * 2);
        padding-right: calc(var(--dashboard-sidebar-width-right) + var(--dashboard-gutter) * 2);
    }
}

@media (min-width: 1280px) {
    :root {
        --dashboard-sidebar-width: 259px;
        /* 15% wider */
    }
}

body.sidebar-left-max {
    --dashboard-sidebar-width-left: var(--dashboard-sidebar-width-max);
}

body.sidebar-right-max {
    --dashboard-sidebar-width-right: var(--dashboard-sidebar-width-max);
}

body.sidebar-left-hidden {
    --dashboard-sidebar-width-left: 0px;
}

body.sidebar-right-hidden {
    --dashboard-sidebar-width-right: 0px;
}

body.sidebar-left-hidden .dashboard-left,
body.sidebar-right-hidden .dashboard-right {
    display: none;
}

.dashboard-section+.dashboard-section {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
}

body.theme-white .dashboard-section+.dashboard-section {
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.dashboard-title {
    font-size: 0.6875rem;
    font-weight: 800;
    letter-spacing: 0.15em;
    color: var(--sidebar-title-color);
    margin-bottom: 12px;
    padding-left: 8px;
    border-left: 2px solid rgba(155, 199, 255, 0.45);
    text-transform: uppercase;
    opacity: 0.9;
}

.dashboard-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.dashboard-link {
    display: block;
    padding: 8px 10px;
    border-radius: 6px;
    color: var(--text-white);
    text-decoration: none;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition-fast);
    font-size: 0.875rem;
}

.dashboard-link:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(1px);
}

.dashboard-note {
    color: var(--text-white);
    opacity: 0.92;
    font-size: 0.875rem;
    line-height: 1.5;
}

/* Study tool styles for Luke chapter section */
.study-reference {
    font-size: 0.95rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.98);
    margin-bottom: 4px;
    letter-spacing: 0.01em;
}

.study-title {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.85);
    margin-top: 6px;
    margin-bottom: 4px;
    line-height: 1.4;
}

.study-date {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 4px;
}

.study-text {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.5;
}

.study-link {
    display: inline-block;
    margin-top: 8px;
    padding: 4px 10px;
    background: rgba(0, 102, 204, 0.25);
    border: 1px solid rgba(0, 102, 204, 0.4);
    border-radius: 6px;
    color: rgba(255, 255, 255, 0.95);
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.study-link:hover {
    background: rgba(0, 102, 204, 0.35);
    border-color: rgba(0, 102, 204, 0.5);
    transform: translateY(-1px);
}

.dashboard-bottom {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - var(--dashboard-gutter) * 2);
    height: var(--dashboard-bottom-height);
    background: var(--glass-white);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.18);
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dock-inner {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: center;
    max-width: 1200px;
    width: 100%;
}

.dock-link {
    color: var(--text-white);
    padding: 6px 12px;
    border-radius: 10px;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition-fast);
}

.dock-link:hover {
    background: rgba(0, 122, 255, 0.15);
    border-color: rgba(0, 122, 255, 0.35);
}

@media (max-width: 1023px) {
    .dashboard-bottom {
        width: calc(100% - 16px);
        height: 52px;
    }
}

/* Start Menu Bar (icon dock) */
.start-menu-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 58px;
    /* compact */
    background: rgba(15, 15, 20, 0.65);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 32px;
    z-index: 999;
}

.start-menu-bar a {
    color: #eee;
    font-size: 1.5rem;
    transition: transform .15s ease, opacity .15s ease;
    opacity: .8;
}

.start-menu-bar a:hover {
    opacity: 1;
    transform: translateY(-4px) scale(1.1);
}

@media (max-width: 768px) {
    .start-menu-bar {
        height: 68px;
        /* compact */
        gap: 24px;
    }

    .start-menu-bar a {
        font-size: 1.75rem;
    }
}

/* Start menu meta (right-aligned small text) */
.start-menu-meta {
    position: absolute;
    right: 12px;
    bottom: 8px;
    color: rgba(255, 255, 255, 0.75);
    font-size: 12px;
}

/* Footer Ticker (announcements) */
.footer-ticker {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    height: 34px;
    background: rgba(10, 15, 25, 0.55);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    overflow: hidden;
    z-index: 998;
}

/* Adjust footer ticker position on mobile to sit above the status bar and bottom nav */
@media (max-width: 767px) {
    .footer-ticker {
        bottom: 34px;
        padding-bottom: env(safe-area-inset-bottom);
    }
}

.footer-ticker-inner {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 10px;
    gap: 10px;
}

.ticker-viewport {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    position: relative;
    mask-image: linear-gradient(90deg, transparent 0%, black 8%, black 92%, transparent 100%);
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, black 8%, black 92%, transparent 100%);
}

.ticker-content {
    display: inline-flex;
    gap: 32px;
    align-items: center;
    white-space: nowrap;
    will-change: transform;
    animation: tickerScroll 110s linear infinite;
    padding-left: 100%;
    transform: translateZ(0);
    backface-visibility: hidden;
}

.footer-ticker:hover .ticker-content {
    animation-play-state: paused;
}

.ticker-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
}

.ticker-item .badge {
    display: inline-block;
    padding: 2px 8px;
    font-size: 0.7rem;
    border-radius: 999px;
    background: rgba(0, 122, 255, 0.2);
    border: 1px solid rgba(0, 122, 255, 0.35);
    color: #dbeafe;
}

.ticker-item.alert-item {
    color: #ff4444;
}

.ticker-item.alert-item .badge {
    background: rgba(255, 68, 68, 0.2);
    border: 1px solid rgba(255, 68, 68, 0.5);
    color: #ff8888;
}

@keyframes tickerScroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-100%);
    }
}

.footer-status-bar .sep {
    opacity: 0.6;
}

/* Container - Use for page content */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Dashboard container - 25% narrower, then another 15% */
.dashboard-section .container {
    max-width: 765px;
}

/* Make Customize section way more compact */
.customize-section {
    padding: 6px 0 !important;
}

.customize-section .dashboard-title {
    font-size: 0.7rem !important;
    margin-bottom: 4px !important;
    padding-left: 6px !important;
}

.customize-section .flex.flex-col {
    gap: 3px !important;
}

.customize-section label {
    font-size: 0.75rem !important;
    padding: 1px 0 !important;
    margin: 0 !important;
}

.customize-section label span {
    font-size: 0.75rem !important;
}

.customize-section input[type="checkbox"] {
    width: 14px !important;
    height: 14px !important;
    margin: 0 !important;
}

.customize-section .mt-3 {
    margin-top: 6px !important;
}

.customize-section .glass-button {
    padding: 4px 6px !important;
    font-size: 0.7rem !important;
    line-height: 1.2 !important;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: "Manrope", var(--font-primary);
    line-height: 95%;
    margin: 0;
    color: var(--heading-color);
}

h1 {
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

h2 {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1.25;
}

h3 {
    font-size: 1.375rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    line-height: 1.3;
}

h4 {
    font-size: 1.125rem;
    font-weight: 600;
    line-height: 1.35;
}

p {
    font-size: 0.9375rem;
    line-height: 1.55;
    color: #ffffff;
}

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

a:hover {
    color: var(--cpc-blue-dark);
}

a:focus-visible {
    outline: 2px solid var(--cpc-blue);
    outline-offset: 2px;
    border-radius: 2px;
}

/* ========================================
   TOP ALERT BAR (weather, parking, etc.)
   ======================================== */
.top-alert-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10000;
    background: #f59e0b;
    color: #1f2937;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    font-size: 0.9rem;
    line-height: 1.4;
}

.top-alert-bar-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.5rem 2.5rem 0.5rem 1rem;
    max-width: 100%;
    margin: 0 auto;
    text-align: center;
}

#topAlertBarContent {
    flex: 1;
    min-width: 0;
}

.top-alert-item {
    white-space: normal;
}

.top-alert-sep {
    opacity: 0.85;
    margin: 0 0.25rem;
}

.top-alert-bar-close {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    color: #1f2937;
    padding: 0.25rem 0.5rem;
    opacity: 0.9;
    border-radius: 4px;
}

.top-alert-bar-close:hover {
    opacity: 1;
    background: rgba(0, 0, 0, 0.1);
}

body.has-top-alert .top-nav {
    top: 3rem;
}

body.has-top-alert .scroll-progress-bar {
    top: 2.5rem;
}

/* ========================================
   SCROLL PROGRESS BAR
   ======================================== */
.scroll-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: rgba(0, 82, 163, 0.9);
    z-index: 9999;
    transition: width 0.1s ease-out;
    box-shadow: 0 2px 4px rgba(0, 82, 163, 0.3);
}

/* ========================================
   3. NAVIGATION
   ======================================== */
.main-navigation {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 40px);
    max-width: 1200px;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--glass-shadow);
    z-index: 1000;
    padding: 8px 16px;
    transition: var(--transition-base);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 48px;
}

.nav-logo a {
    color: var(--text-white);
    text-decoration: none;
    display: flex;
    align-items: center;
}

.logo-image {
    height: 40px;
    width: auto;
    filter: brightness(0) invert(1);
    object-fit: contain;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 4px;
    align-items: center;
}

.nav-links a {
    color: var(--text-white);
    font-size: 13px;
    font-weight: 500;
    padding: 6px 10px;
    border-radius: 6px;
    white-space: nowrap;
}

.nav-links a.active {
    color: var(--cpc-blue);
    background: rgba(0, 122, 255, 0.1);
}

/* Dropdown Navigation */
.nav-dropdown {
    position: relative;
}

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

.dropdown-toggle i {
    font-size: 10px;
    transition: var(--transition-fast);
}

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

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--glass-bg);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--glass-shadow);
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
    z-index: 1000;
    list-style: none;
    padding: 8px 0;
    margin: 8px 0 0 0;
    pointer-events: none;
}

.dropdown-menu:not(.hidden) {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.nav-dropdown.active .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.dropdown-menu li {
    margin: 0;
}

.dropdown-menu a {
    display: block;
    padding: 12px 20px;
    color: var(--text-white);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    border-radius: 0;
    white-space: nowrap;
}

.dropdown-menu a:first-child {
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.dropdown-menu a:last-child {
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

/* Mobile Hamburger */
.hamburger-menu {
    display: none;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    color: var(--text-white);
    font-size: 16px;
    cursor: pointer;
    padding: 8px 12px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

/* Mobile Navigation */
.mobile-navigation {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    z-index: 2000;
    padding: 40px 20px;
}

.mobile-navigation.active {
    display: block;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

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

.close-menu {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    color: var(--text-white);
    font-size: 20px;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.mobile-nav-links {
    list-style: none;
    margin-top: 60px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mobile-nav-links a {
    color: var(--text-white);
    font-size: 18px;
    font-weight: 500;
    padding: 16px 20px;
    border-radius: var(--radius-lg);
    display: block;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition: var(--transition-fast);
}

.mobile-nav-links a:hover {
    background: var(--glass-bg-hover);
    border-color: rgba(255, 255, 255, 0.25);
}

/* ========================================
   4. FOOTER
   ======================================== */
.main-footer {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.1);
    margin-top: auto;
    flex-shrink: 0;
    position: relative;
}

.main-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--glass-border), transparent);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-logo-image {
    height: 36px;
    width: auto;
    filter: brightness(0) invert(1);
    object-fit: contain;
}

.footer-brand p {
    color: var(--text-white);
    font-size: 14px;
}

.footer-links {
    display: flex;
    gap: 24px;
    align-items: center;
}

.footer-links a {
    color: var(--text-white);
    font-size: 14px;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
}

/* ========================================
   5. COMMON COMPONENTS
   ======================================== */

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    min-height: 48px;
    padding: 12px 22px;
    text-decoration: none;
    border-radius: 999px;
    border: none;
    font-weight: 700;
    text-align: center;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, color 0.2s ease,
        border-color 0.2s ease;
    font-family: var(--font-primary);
    font-size: 0.95rem;
    line-height: 1;
    white-space: nowrap;
}

.btn:focus-visible {
    outline: 2px solid var(--cpc-blue);
    outline-offset: 2px;
}

.btn-primary {
    background: var(--cpc-blue);
    color: white;
}

.btn-primary:hover {
    background: var(--cpc-blue-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: white;
    color: var(--text-primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.btn-glass {
    background: rgba(255, 255, 255, 0.08);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.btn-glass:hover {
    background: rgba(255, 255, 255, 0.16);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
    gap: 0.85rem;
    margin-top: 1.75rem;
}

.hero-actions > * {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
}

.hero-actions .btn {
    min-width: 168px;
    padding-inline: 24px;
}

.hero-actions .visit-button {
    min-width: 168px;
    padding: 12px 22px;
    border-radius: 999px;
}

.hero-actions .btn-primary,
.hero-actions .btn-secondary {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.14);
}

.hero-actions .btn-secondary {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

body.theme-white .hero-actions .btn-primary {
    color: white !important;
    border: 2px solid var(--cpc-blue) !important;
}

body.theme-white .hero-actions .btn-secondary {
    color: var(--cpc-blue) !important;
    border: 2px solid rgba(0, 82, 163, 0.35) !important;
    background: rgba(255, 255, 255, 0.8) !important;
}

body.theme-white .hero-actions .btn-secondary:hover {
    background: var(--cpc-blue) !important;
    color: white !important;
    border-color: var(--cpc-blue) !important;
}

body.theme-white .btn-glass {
    background: rgba(255, 255, 255, 0.86) !important;
    color: var(--cpc-blue) !important;
    border: 1px solid rgba(0, 82, 163, 0.18) !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

body.theme-white .btn-glass:hover {
    background: var(--cpc-blue) !important;
    color: white !important;
    border-color: var(--cpc-blue) !important;
}

body.theme-white .hero-actions .visit-button--primary {
    background: var(--cpc-blue) !important;
    color: white !important;
    border: 2px solid var(--cpc-blue) !important;
}

body.theme-white .hero-actions .visit-button--secondary {
    background: rgba(255, 255, 255, 0.82) !important;
    color: var(--cpc-blue) !important;
    border: 2px solid rgba(0, 82, 163, 0.28) !important;
}

body.theme-white .hero-actions .visit-button--secondary:hover {
    background: var(--cpc-blue) !important;
    color: white !important;
    border-color: var(--cpc-blue) !important;
}

/* Cards */
.card,
.glass-card {
    background: var(--glass-white);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    box-shadow: var(--shadow-soft);
    transition: var(--transition-base);
}

.card:hover,
.glass-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-medium);
}

/* White header tags in cards - override all Tailwind classes */
.card h1,
.card h2,
.card h3,
.card h4,
.card h5,
.card h6,
.glass-card h1,
.glass-card h2,
.glass-card h3,
.glass-card h4,
.glass-card h5,
.glass-card h6,
.highlight-card h1,
.highlight-card h2,
.highlight-card h3,
.highlight-card h4,
.highlight-card h5,
.highlight-card h6,
.evt-card h1,
.evt-card h2,
.evt-card h3,
.evt-card h4,
.evt-card h5,
.evt-card h6,
.media-card h1,
.media-card h2,
.media-card h3,
.media-card h4,
.media-card h5,
.media-card h6,
.mark-card h1,
.mark-card h2,
.mark-card h3,
.mark-card h4,
.mark-card h5,
.mark-card h6,
[class*="card"] h1,
[class*="card"] h2,
[class*="card"] h3,
[class*="card"] h4,
[class*="card"] h5,
[class*="card"] h6,
.bg-gray-50 h1,
.bg-gray-50 h2,
.bg-gray-50 h3,
.bg-gray-50 h4,
.bg-gray-50 h5,
.bg-gray-50 h6,
.bg-white h1,
.bg-white h2,
.bg-white h3,
.bg-white h4,
.bg-white h5,
.bg-white h6,
.rounded-lg h1,
.rounded-lg h2,
.rounded-lg h3,
.rounded-lg h4,
.rounded-lg h5,
.rounded-lg h6 {
    color: white !important;
}

/* Glass Components */
.glass-input,
.glass-button {
    background: var(--glass-white);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 8px;
    padding: 8px 14px;
    color: var(--text-white);
    font-size: 0.875rem;
    transition: var(--transition-fast);
}

.glass-input:focus,
.glass-input:focus-visible {
    outline: none;
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 0 0 2px rgba(0, 122, 255, 0.2), inset 0 0 0 2px rgba(0, 122, 255, 0.15);
    background: rgba(255, 255, 255, 0.08);
}

.glass-button {
    cursor: pointer;
    font-weight: 500;
    text-decoration: none;
    display: inline-block;
}

.glass-button:hover {
    background: var(--glass-bg-hover);
    transform: translateY(-1px);
}

.glass-icon-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--glass-white);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: white;
    font-size: 1.25rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.glass-icon-button:hover {
    background: var(--glass-bg-hover);
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 4px 20px rgba(0, 122, 255, 0.3);
}

.glass-link {
    color: var(--text-white);
    text-decoration: none;
    font-weight: 500;
}

.glass-text-muted,
.glass-text-secondary {
    color: rgba(255, 255, 255, 0.7);
}

.footer-search-box {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}

.footer-search-box .glass-input {
    flex: 1;
    padding: 10px 15px;
    font-size: 0.9rem;
}

.footer-search-box .glass-button {
    padding: 10px 20px;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.footer-links-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-links-grid .glass-link {
    display: block;
    padding: 4px 0;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.85rem;
    transition: var(--transition-fast);
}

.footer-links-grid .glass-link:hover {
    color: var(--text-white);
    padding-left: 5px;
}

.social-link {
    padding: 8px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition-base);
    background: var(--glass-white);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.social-link:hover {
    transform: translateY(-2px) scale(1.1);
    box-shadow: var(--shadow-medium);
}

.glass-footer-copyright {
    max-width: 1200px;
    margin: 20px auto 0;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.glass-footer-copyright p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.75rem;
}

/* Hero Sections */
.splash-image,
.page-hero {
    height: 100vh;
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)),
        url('https://via.placeholder.com/1920x1080') center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    margin-top: 80px;
}

.splash-image {
    position: relative;
}

.splash-image .hero-video-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    opacity: 0.35;
}

.splash-content h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
}

.splash-content h2 {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.splash-content p {
    font-size: 1.2rem;
    margin-bottom: 1.25rem;
    max-width: 600px;
}

.splash-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Icon nav styling */
.nav-icon {
    font-size: 1.4rem;
    padding: 12px;
    color: #bbb;
    transition: 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}

.nav-icon:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
}

/* Dashboard OS-style panel look */
.dashboard-panel {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
}

/* Left main navigation with icons + labels */
.main-nav {
    display: flex;
    flex-direction: column;
    gap: 7px;
    /* compact */
}

.main-nav a {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #eee;
    padding: 7px 11px;
    /* compact */
    border-radius: 8px;
    transition: 0.2s;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.main-nav a:hover {
    background: rgba(255, 255, 255, 0.08);
}

.main-nav i {
    font-size: 1.3rem;
}

.main-nav span {
    font-size: 0.95rem;
    font-weight: 500;
}

/* Windows-like Start tile */
.start-tile {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 10px;
    color: #eaeaea;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-decoration: none;
    transition: 0.2s;
}

.start-tile:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-1px);
}

.start-tile i {
    font-size: 1.1rem;
}

.start-tile span {
    font-weight: 700;
    letter-spacing: 0.02em;
    font-size: 0.95rem;
}

/* Section Bands */
.section-band {
    padding: 3rem 0;
}

.band-warm {
    background: #F8F6F2;
}

.band-gray {
    background: #F3F4F6;
}

.band-white {
    background: #ffffff;
}

/* This Week strip */
.week-strip {
    position: relative;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 16px;
    padding: 0.75rem 2.5rem;
    box-shadow: var(--shadow-soft);
}

.ticker {
    display: flex;
    gap: 1.25rem;
    overflow: hidden;
    align-items: center;
}

.ticker-item {
    white-space: nowrap;
    color: var(--text-white);
    opacity: 0.95;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.ticker-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: var(--text-white);
    cursor: pointer;
    transition: var(--transition-fast);
}

.ticker-arrow:hover {
    background: rgba(255, 255, 255, 0.2);
}

.ticker-arrow.left {
    left: 8px;
}

.ticker-arrow.right {
    right: 8px;
}

/* Media Cards */
.media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1rem;
}

.media-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    border: 1px solid #e8e8ef;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.media-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.12);
}

.media-thumb {
    width: 100%;
    height: 160px;
    object-fit: cover;
    background: #e9eef6;
}

.media-body {
    padding: 14px 16px;
}

.media-title {
    font-weight: 700;
    font-size: 1.05rem;
    margin-bottom: 6px;
    color: #1d2640;
}

.media-meta {
    font-size: 0.9rem;
    color: #5d6885;
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.media-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-top: 10px;
}

.btn-play,
.btn-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    transition: var(--transition-fast);
}

.btn-play {
    background: #3A4F7A;
    color: #fff;
}

.btn-play:hover {
    background: #2f4163;
}

.btn-more {
    background: #EEF2FF;
    color: #374151;
}

.btn-more:hover {
    background: #E0E7FF;
}

/* Pull quote */
.pull-quote {
    max-width: 900px;
    margin: 0 auto;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.8), rgba(250, 250, 250, 0.9));
    border: 1px solid #ece7db;
    border-radius: 18px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}

.pull-quote .quote-text {
    font-family: "Libre Baskerville", Georgia, serif;
    font-size: 1.5rem;
    line-height: 1.6;
    color: #2b2a27;
}

.pull-quote .quote-sub {
    margin-top: 0.5rem;
    color: #6b7280;
    font-size: 1rem;
}

/* Top nav hover underline */
.top-nav a {
    position: relative;
}

.top-nav a::after {
    content: "";
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 4px;
    height: 2px;
    background: rgba(255, 255, 255, 0.9);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.2s ease;
}

.top-nav a:hover::after {
    transform: scaleX(1);
}

/* Subtle fade-up */
.fade-up {
    opacity: 0;
    transform: translateY(16px);
    animation: fadeUp 0.6s ease forwards;
}

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

/* Announcements */
.announcement {
    background: white;
    padding: 2rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
    margin-bottom: 2rem;
    transition: var(--transition-base);
}

.announcement:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.announcement-title {
    color: var(--heading-color);
    margin-bottom: 1rem;
    font-size: 1.5rem;
    font-weight: 700;
}

.announcement-subheader {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 1rem;
}

/* Forms */
input[type="text"],
input[type="email"],
input[type="search"],
textarea,
select {
    width: 100%;
    padding: 10px 16px;
    border: 1px solid #ddd;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-family: var(--font-primary);
    transition: var(--transition-fast);
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--cpc-blue);
    box-shadow: 0 0 0 3px rgba(0, 60, 109, 0.1);
}

/* Tables */
.table-responsive {
    overflow-x: auto;
    margin-bottom: 2rem;
}

table {
    width: 100%;
    border-collapse: collapse;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

th,
td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #ecf0f1;
}

th {
    background: var(--heading-color);
    color: white;
    font-weight: 600;
}

tr:hover {
    background: #f8f9fa;
}

/* ========================================
   6. PAGE-SPECIFIC STYLES
   ======================================== */

/* --- ADMIN STYLES --- */
.panel {
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
    margin-bottom: 20px;
}

.panel-heading {
    border-radius: var(--radius-md) var(--radius-md) 0 0;
    padding: 15px 20px;
    border-bottom: 1px solid #e5e5e5;
    background-color: #337ab7;
    color: white;
}

.panel-body {
    padding: 20px;
}

.panel-body h2 {
    margin: 0;
    font-size: 2.5em;
    font-weight: bold;
    color: var(--heading-color);
}

/* --- EVENTS STYLES --- */
.evt-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
    margin: 1rem 0;
}

.evt-input {
    flex: 1;
    min-width: 240px;
    padding: 0.6rem 0.8rem;
    border: 1px solid #d6d6d6;
    border-radius: var(--radius-sm);
}

.evt-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.chip {
    padding: 0.35rem 0.7rem;
    border: 1px solid #c9d1e6;
    border-radius: 999px;
    background: #f4f7ff;
    cursor: pointer;
    font-size: 0.9rem;
    transition: var(--transition-fast);
}

.chip.active {
    background: #243b53;
    color: #fff;
    border-color: #243b53;
}

.evt-card {
    border: 1px solid #e6e6e6;
    border-radius: var(--radius-md);
    padding: 1rem;
    margin: 0.5rem 0;
    background: #fff;
    box-shadow: 0 1px 0 rgba(0, 0, 0, .02);
}

.evt-title {
    margin: 0;
}

.evt-meta {
    margin: 0.25rem 0;
    color: #444;
    font-size: 0.95rem;
}

.evt-desc {
    margin: 0.5rem 0;
    color: #555;
}

/* --- GALLERY STYLES --- */
.gallery-hero,
.yearbook-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 4rem 0;
    text-align: center;
    margin-top: 100px;
}

/* ── Magazine grid: 4-col desktop, spans create visual variety ── */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 220px;
    gap: 0.75rem;
    margin-top: 1rem;
}

/* Every item is a positioned card */
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    cursor: pointer;
    background: rgba(255,255,255,0.05);
    will-change: transform;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.gallery-item:hover {
    transform: scale(1.025);
    box-shadow: 0 18px 40px rgba(0,0,0,0.38);
    z-index: 2;
}

/* Magazine span patterns — cycle every 7 items */
.gallery-item:nth-child(7n+1) { grid-column: span 2; grid-row: span 2; }  /* hero */
.gallery-item:nth-child(7n+4) { grid-column: span 2; }                     /* wide */
.gallery-item:nth-child(7n+6) { grid-row: span 2; }                        /* tall */

.photo-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
    will-change: transform;
}

.gallery-item:hover img {
    transform: scale(1.06);
}

/* Caption overlay — slides up on hover */
.photo-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 0.85rem 1rem 0.75rem;
    background: linear-gradient(to top, rgba(0,0,0,0.72) 0%, transparent 100%);
    transform: translateY(6px);
    opacity: 0;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.gallery-item:hover .photo-overlay,
.gallery-item.yearbook .photo-overlay {
    opacity: 1;
    transform: translateY(0);
}

.photo-info h3 {
    color: #fff;
    font-family: 'Manrope', sans-serif;
    font-size: 0.82rem;
    font-weight: 700;
    margin: 0 0 0.2rem;
    line-height: 1.2;
}

.photo-tags {
    color: rgba(255,255,255,0.72);
    font-size: 0.72rem;
    margin: 0;
}

.photo-actions {
    position: absolute;
    top: 0.6rem;
    right: 0.6rem;
    display: flex;
    gap: 0.35rem;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.gallery-item:hover .photo-actions {
    opacity: 1;
}

.photo-actions .action-btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: none;
    background: rgba(0,0,0,0.55);
    color: #fff;
    font-size: 0.7rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ── Masonry view: CSS columns, no JS needed ── */
.gallery-grid.masonry {
    display: block;
    columns: 3;
    column-gap: 0.75rem;
}

.gallery-grid.masonry .gallery-item {
    display: inline-block;
    width: 100%;
    margin-bottom: 0.75rem;
    break-inside: avoid;
    grid-column: unset;
    grid-row: unset;
}

.gallery-grid.masonry .gallery-item .photo-container {
    height: auto;
}

.gallery-grid.masonry .gallery-item img {
    height: auto;
    display: block;
}

/* ── Timeline view ── */
.gallery-grid.timeline {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    grid-template-columns: unset;
    grid-auto-rows: unset;
}

.gallery-grid.timeline .gallery-item {
    grid-column: unset;
    grid-row: unset;
    border-radius: 10px;
    height: 180px;
}

/* ── Yearbook grouped view ── */
.gallery-grid.yearbook {
    display: block;
    margin-top: 1.25rem;
}

.year-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0.5rem 0;
}

.year-tab {
    padding: 0.4rem 0.85rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.85rem;
    transition: all 0.2s ease;
    cursor: pointer;
}

.year-tab:hover,
.year-tab.active {
    background: rgba(0, 122, 255, 0.35);
    border-color: rgba(0, 122, 255, 0.6);
    color: #fff;
}

body.theme-white .year-tab {
    border: 1px solid rgba(0, 0, 0, 0.12);
    background: rgba(255, 255, 255, 0.75);
    color: rgba(20, 22, 28, 0.92);
}

body.theme-white .year-tab:hover,
body.theme-white .year-tab.active {
    background: rgba(0, 82, 163, 0.15);
    border-color: rgba(0, 82, 163, 0.35);
    color: var(--cpc-blue);
}

.yearbook-year {
    margin: 0 0 2.25rem 0;
    padding: 1.25rem 1.25rem 0.5rem 1.25rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
}

body.theme-white .yearbook-year {
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.08);
}

.yearbook-year-title {
    font-family: 'Libre Baskerville', serif;
    font-size: 2.1rem;
    line-height: 1.1;
    margin: 0 0 1.1rem 0;
    font-weight: 700;
    color: var(--text-white);
    text-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

body.theme-white .yearbook-year-title {
    color: var(--text-primary);
    text-shadow: none;
}

.yearbook-month {
    margin: 0 0 1.75rem 0;
}

.yearbook-month-title {
    font-family: 'Manrope', sans-serif;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: rgba(255, 255, 255, 0.85);
    margin: 0 0 0.9rem 0;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

body.theme-white .yearbook-month-title {
    color: rgba(20, 22, 28, 0.75);
}

.yearbook-month-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, rgba(255, 255, 255, 0.18), transparent);
}

body.theme-white .yearbook-month-title::after {
    background: linear-gradient(to right, rgba(0, 0, 0, 0.12), transparent);
}

/* Yearbook uses CSS columns for native masonry */
.yearbook-photos {
    columns: 3;
    column-gap: 0.9rem;
}

.gallery-item.yearbook {
    display: inline-block;
    width: 100%;
    margin-bottom: 0.9rem;
    break-inside: avoid;
    border-radius: 10px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    will-change: transform;
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.gallery-item.yearbook:hover {
    transform: translateY(-5px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.3);
}

body.theme-white .gallery-item.yearbook {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

body.theme-white .gallery-item.yearbook:hover {
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12);
}

.gallery-item.yearbook .photo-container {
    height: auto;
}

.gallery-item.yearbook img {
    height: auto;
    display: block;
}

.gallery-item.yearbook .photo-overlay {
    opacity: 1;
    transform: translateY(0);
}

/* ── Mobile: reduce blur, 2-col magazine ── */
@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 160px;
        gap: 0.5rem;
    }

    /* Keep hero span but cap at 2 col */
    .gallery-item:nth-child(7n+1) { grid-column: span 2; grid-row: span 2; }
    .gallery-item:nth-child(7n+4) { grid-column: span 2; }
    .gallery-item:nth-child(7n+6) { grid-row: span 1; grid-column: span 1; }

    .gallery-grid.masonry { columns: 2; }
    .yearbook-photos { columns: 2; }

    /* Kill expensive blur on mobile */
    .yearbook-year { backdrop-filter: none; -webkit-backdrop-filter: none; }
}

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 130px;
        gap: 0.4rem;
    }
    .gallery-grid.masonry { columns: 2; }
    .yearbook-photos { columns: 2; }
}

/* --- PODCASTS STYLES --- */
.podcast-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding: 1rem 0;
    border-bottom: 1px solid #e1e5e9;
}

.search-box {
    position: relative;
    width: 300px;
}

.search-box input {
    width: 100%;
    padding: 10px 16px 10px 40px;
    border: 1px solid #e1e5e9;
    border-radius: var(--radius-sm);
}

.podcast-series {
    margin-bottom: 3rem;
    background: white;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
    overflow: hidden;
}

.series-header {
    padding: 2rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.series-title {
    font-size: 2rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
}

.podcast-episode {
    display: flex;
    align-items: center;
    padding: 1rem 2rem;
    border-bottom: 1px solid #f1f3f4;
    transition: background-color 0.2s ease;
    cursor: pointer;
}

.podcast-episode:hover {
    background: #f8f9fa;
}

.episode-thumbnail {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    flex-shrink: 0;
}

.episode-info {
    flex: 1;
    min-width: 0;
}

.episode-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--heading-color);
    margin: 0 0 0.5rem 0;
}

.episode-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* --- ABOUT PAGE STYLES --- */
/* Better Hero Section */
.about-hero-full {
    position: relative;
    width: 100%;
    min-height: 60vh;
    background-image: url('https://storage.googleapis.com/cpc-public-website/media-gallery/womans-fall-brunch-2024/605c1ade-b21e-4713-ad4e-d9bb2d6709ad.JPG');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 100px;
}

.about-hero-full::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.5), transparent);
    z-index: 1;
}

.about-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    max-width: 900px;
    padding: 4rem 1rem;
}

.about-hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: white;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.about-hero-content p {
    font-size: 1.25rem;
    line-height: 1.75;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.2);
}

.hero-cta-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: var(--cpc-blue);
    color: white;
    text-decoration: none;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 1.125rem;
    transition: var(--transition-base);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.hero-cta-button:hover {
    background: var(--cpc-blue-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

/* Legacy about-hero for backward compatibility */
.about-hero {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
    padding: 4rem 0;
    text-align: center;
}

/* Global Layout & Typography */
.section-wrapper {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 1rem;
}

.about-content-section {
    padding-top: 4rem;
    padding-bottom: 4rem;
    position: relative;
}

/* Alternating background stripes */
.about-content-section:nth-child(even) {
    background: linear-gradient(90deg,
            rgba(0, 50, 120, 0.02) 0%,
            transparent 50%,
            rgba(0, 50, 120, 0.02) 100%);
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2.75rem;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 0.75rem;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.section-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.75;
    margin-bottom: 0;
}

.about-content-section p {
    font-size: 1.125rem;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1.5rem;
}

/* Two-column grid for sections with images */
.two-column-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    margin-top: 2rem;
}

.two-column-grid.reverse {
    direction: rtl;
}

.two-column-grid.reverse>* {
    direction: ltr;
}

.two-column-grid img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-medium);
    max-width: 100%;
}

/* Five Marks Modern Cards */
.five-marks-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 2rem;
}

.mark-card {
    background: var(--glass-white);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: var(--transition-base);
    position: relative;
}

.mark-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.mark-card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.mark-icon {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    color: var(--cpc-blue);
}

.mark-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-white);
    margin: 0;
    line-height: 1.3;
}

.mark-description {
    font-size: 1rem;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1rem;
}

.mark-think {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    font-style: italic;
}

.mark-think strong {
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
}

/* Staff Team Profile Cards */
.staff-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

.staff-member {
    background: var(--glass-white);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-lg);
    padding: 2rem;
    text-align: center;
    transition: var(--transition-base);
    box-shadow: var(--shadow-soft);
}

.staff-member:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-medium);
}

.staff-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--cpc-blue) 0%, var(--cpc-blue-dark) 100%);
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2.5rem;
    font-weight: 700;
    border: 4px solid rgba(255, 255, 255, 0.3);
}

.staff-member h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.staff-member h4 {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1rem;
    font-weight: 400;
}

.staff-contact-btn {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-white);
    text-decoration: none;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition-fast);
}

.staff-contact-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

/* Additional styling for readability */
.highlight-word {
    font-weight: 700;
    color: var(--cpc-blue-light);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.mission-statement {
    font-size: 1.25rem;
    line-height: 1.75;
}

.intro-text {
    font-size: 1.125rem;
    line-height: 1.75;
}

/* ========================================
   7. UTILITY CLASSES
   ======================================== */
.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.mb-0 {
    margin-bottom: 0;
}

.mb-1 {
    margin-bottom: var(--space-xs);
}

.mb-2 {
    margin-bottom: var(--space-sm);
}

.mb-3 {
    margin-bottom: var(--space-md);
}

.mb-4 {
    margin-bottom: var(--space-lg);
}

.mt-0 {
    margin-top: 0;
}

.mt-1 {
    margin-top: var(--space-xs);
}

.mt-2 {
    margin-top: var(--space-sm);
}

.mt-3 {
    margin-top: var(--space-md);
}

.mt-4 {
    margin-top: var(--space-lg);
}

.hidden {
    display: none;
}

.visible {
    display: block;
}

.loading,
.no-results {
    text-align: center;
    padding: 2rem;
    color: var(--text-secondary);
}

/* ========================================
   8. MEDIA QUERIES
   ======================================== */
@media (max-width: 1024px) {
    .nav-links {
        gap: 2px;
    }

    .nav-links a {
        font-size: 13px;
        padding: 6px 10px;
    }
}

@media (max-width: 768px) {

    /* Navigation */
    .main-navigation {
        top: 10px;
        width: calc(100% - 20px);
        padding: 6px 12px;
    }

    .nav-container {
        height: 40px;
    }

    .nav-links {
        display: none;
    }

    .hamburger-menu {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
    }

    main {
        margin-top: 80px;
    }

    /* Typography */
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    .splash-content h1 {
        font-size: 2.25rem;
    }

    .splash-content h2 {
        font-size: 1.5rem;
    }

    /* Components */
    .splash-buttons {
        flex-direction: column;
        align-items: center;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 24px;
    }

    /* Page specific — gallery overrides handled in gallery block */

    .podcast-controls {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }

    .search-box {
        width: 100%;
    }
}

/* ========================================
   LIVE STREAM PAGE STYLES
   ======================================== */
.live-stream-section {
    padding: 2rem 0;
    min-height: auto;
    width: 100%;
    display: block;
}

.live-stream-section .container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

.live-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2.5rem;
    margin-top: 2rem;
    margin-bottom: 3rem;
    align-items: start;
    width: 100%;
    visibility: visible;
    opacity: 1;
}

@media (min-width: 1200px) {
    .live-content {
        grid-template-columns: 1.75fr 1fr;
    }
}

.live-video-container {
    position: relative;
    width: 100%;
    display: block;
    visibility: visible;
    opacity: 1;
    min-height: 400px;
}

@media (min-width: 768px) {
    .live-video-container {
        min-height: 500px;
    }
}

.live-video-wrapper {
    position: relative;
    background: rgba(0, 0, 0, 0.5);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-strong);
    width: 100%;
    display: block;
}

.live-indicator {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 0, 0, 0.95);
    color: white;
    padding: 0.6rem 1.2rem;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: 700;
    font-size: 0.85rem;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.live-dot {
    width: 10px;
    height: 10px;
    background: white;
    border-radius: 50%;
    animation: pulse 1.5s ease-in-out infinite;
    display: inline-block;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.4;
        transform: scale(0.9);
    }
}

.youtube-embed-container {
    position: relative;
    width: 100%;
    background: #000;
    overflow: hidden;
    border-radius: var(--radius-lg);
    padding-bottom: 56.25%;
    /* 16:9 aspect ratio */
    height: 0;
    min-height: 400px;
}

@media (min-width: 768px) {
    .youtube-embed-container {
        min-height: 500px;
    }
}

.youtube-embed {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    display: block;
    min-height: 400px;
}

@media (min-width: 768px) {
    .youtube-embed {
        min-height: 500px;
    }
}

.live-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    position: sticky;
    top: 120px;
    min-height: fit-content;
    height: fit-content;
}

.live-info h2 {
    color: var(--text-white);
    font-size: 2rem;
    margin-bottom: 1rem;
    font-weight: 700;
    line-height: 1.3;
    padding-bottom: 1rem;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
}

.service-details {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px);
    padding: 1.75rem;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: var(--shadow-medium);
    min-height: 200px;
}

.service-time,
.service-location {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    color: var(--text-white);
    font-size: 1.05rem;
}

.service-time i,
.service-location i {
    font-size: 1.35rem;
    opacity: 0.95;
    color: rgba(255, 255, 255, 0.9);
}

.live-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.live-actions .btn {
    width: 100%;
    justify-content: center;
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
}

.page-hero.live-hero {
    padding: 3rem 0 2rem;
    text-align: center;
    background: transparent;
}

.page-hero.live-hero h1 {
    color: var(--text-white);
    font-size: 2.75rem;
    margin-bottom: 0.75rem;
    font-weight: 700;
}

.page-hero.live-hero p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.2rem;
}

@media (max-width: 1024px) {
    .live-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .live-info {
        position: static;
    }

    .live-info h2 {
        font-size: 1.75rem;
    }
}

@media (max-width: 768px) {
    .live-stream-section {
        padding: 1.5rem 0;
    }

    .live-content {
        gap: 1.5rem;
        margin-top: 1.5rem;
    }

    .live-info h2 {
        font-size: 1.5rem;
    }

    .service-details {
        padding: 1.25rem;
    }

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

    .page-hero.live-hero p {
        font-size: 1rem;
    }

    .live-indicator {
        top: 0.75rem;
        right: 0.75rem;
        padding: 0.5rem 1rem;
        font-size: 0.75rem;
    }
}

/* Service Schedule Section */
.service-schedule-section {
    padding: 3rem 0;
    margin-top: 3rem;
}

.service-schedule-section h2 {
    color: var(--text-white);
    font-size: 2rem;
    margin-bottom: 2rem;
    text-align: center;
    font-weight: 700;
}

.schedule-timeline {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 800px;
    margin: 0 auto;
}

.schedule-item {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 1.5rem;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: all var(--transition-base);
}

.schedule-item:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

.schedule-item.featured {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: var(--shadow-medium);
}

.schedule-time {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-white);
    display: flex;
    align-items: center;
}

.schedule-content h3 {
    color: var(--text-white);
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.schedule-content p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    line-height: 1.6;
}

.live-badge {
    display: inline-block;
    background: rgba(255, 0, 0, 0.9);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 0.5rem;
}

@media (max-width: 768px) {
    .service-schedule-section {
        padding: 2rem 0;
        margin-top: 2rem;
    }

    .schedule-item {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .schedule-time {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .main-navigation {
        top: 5px;
        width: calc(100% - 10px);
        padding: 4px 8px;
    }

    .nav-container {
        height: 36px;
    }

    main {
        margin-top: 60px;
    }

    h1 {
        font-size: 1.8rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .container {
        padding: 0 15px;
    }

    /* gallery-grid mobile handled in gallery block */
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ========================================
   MOBILE BOTTOM NAVIGATION BAR
   ======================================== */
.mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 70px;
    background: rgba(0, 50, 120, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 1000;
    padding-bottom: env(safe-area-inset-bottom);
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
    animation: slideUpNav 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateY(0);
}

@keyframes slideUpNav {
    from {
        transform: translateY(100%);
        opacity: 0;
    }

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

.mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 12px;
    transition: all 0.2s ease;
    min-width: 60px;
    position: relative;
    -webkit-tap-highlight-color: transparent;
}

.mobile-nav-item i {
    font-size: 1.5rem;
    transition: transform 0.2s ease;
}

.mobile-nav-item span {
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.01em;
}

.mobile-nav-item:active {
    transform: scale(0.95);
    background: rgba(255, 255, 255, 0.1);
}

.mobile-nav-item.active {
    color: rgba(255, 255, 255, 1);
}

.mobile-nav-item.active i {
    transform: scale(1.1);
    color: rgba(255, 255, 255, 1);
}

.mobile-nav-item.active::before {
    content: '';
    position: absolute;
    top: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 3px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 0 0 3px 3px;
}

/* White theme mobile bottom nav */
body.theme-white .mobile-bottom-nav {
    background: rgba(255, 255, 255, 0.95) !important;
    border-top: 1px solid rgba(0, 0, 0, 0.1) !important;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1) !important;
}

body.theme-white .mobile-nav-item {
    color: rgba(0, 0, 0, 0.6);
}

body.theme-white .mobile-nav-item.active {
    color: var(--cpc-blue);
}

body.theme-white .mobile-nav-item.active i {
    color: var(--cpc-blue);
}

body.theme-white .mobile-nav-item.active::before {
    background: var(--cpc-blue);
}

body.theme-white .mobile-nav-item:active {
    background: rgba(0, 50, 120, 0.1);
}

/* More as button in bottom nav (same look as links) */
.mobile-nav-more {
    background: none;
    border: none;
    cursor: pointer;
    font: inherit;
}

/* Mobile More menu (slide-up sheet) */
.mobile-more-menu {
    position: fixed;
    inset: 0;
    z-index: 1001;
    visibility: hidden;
    pointer-events: none;
    transition: visibility 0.25s ease;
}

.mobile-more-menu.mobile-more-menu-open {
    visibility: visible;
    pointer-events: auto;
}

.mobile-more-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.mobile-more-menu-open .mobile-more-backdrop {
    opacity: 1;
}

.mobile-more-sheet {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    max-height: 85vh;
    background: rgba(0, 50, 120, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.3);
    padding-bottom: env(safe-area-inset-bottom);
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.mobile-more-menu-open .mobile-more-sheet {
    transform: translateY(0);
}

.mobile-more-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    flex-shrink: 0;
}

.mobile-menu-theme-toggle {
    width: calc(100% - 2.5rem);
    margin: 0.75rem 1.25rem 0.25rem;
}

.mobile-more-title {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.02em;
}

.mobile-more-close {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    border-radius: 12px;
    color: #fff;
    font-size: 1.25rem;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: background 0.2s ease;
}

.mobile-more-close:active {
    background: rgba(255, 255, 255, 0.25);
}

.mobile-more-links {
    overflow-y: auto;
    padding: 0.5rem 0 1rem;
    -webkit-overflow-scrolling: touch;
}

.mobile-more-link {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 1.25rem;
    color: rgba(255, 255, 255, 0.95);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: background 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}

.mobile-more-link i {
    width: 24px;
    text-align: center;
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.85);
}

.mobile-more-link:active {
    background: rgba(255, 255, 255, 0.1);
}

/* White theme More menu */
body.theme-white .mobile-more-sheet {
    background: rgba(255, 255, 255, 0.98);
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.12);
}

body.theme-white .mobile-more-header {
    border-bottom-color: rgba(0, 0, 0, 0.08);
}

body.theme-white .mobile-more-title {
    color: var(--cpc-blue);
}

body.theme-white .mobile-more-close {
    background: rgba(0, 50, 120, 0.12);
    color: var(--cpc-blue);
}

body.theme-white .mobile-more-close:active {
    background: rgba(0, 50, 120, 0.2);
}

body.theme-white .mobile-more-link {
    color: rgba(0, 0, 0, 0.9);
}

body.theme-white .mobile-more-link i {
    color: var(--cpc-blue);
}

body.theme-white .mobile-more-link:active {
    background: rgba(0, 50, 120, 0.08);
}

/* The top navigation is the sole mobile navigation surface. */
.mobile-main-content {
    padding-bottom: 20px !important;
}

@media (min-width: 768px) {
    .mobile-main-content {
        padding-bottom: 20px !important;
    }
}

/* Safe area support for iOS */
@supports (padding: max(0px)) {
    .mobile-bottom-nav {
        padding-bottom: max(env(safe-area-inset-bottom), 0px);
    }
}

/* Touch optimizations */
@media (max-width: 768px) {

    .nav-links a,
    .mobile-nav-links a,
    .footer-links a,
    .btn {
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    input,
    textarea,
    select {
        font-size: 16px;
        /* Prevents zoom on iOS */
    }

    /* Native app-like smooth scrolling */
    html {
        -webkit-overflow-scrolling: touch;
        scroll-behavior: smooth;
    }

    /* Prevent text selection on tap (native app feel) */
    .mobile-nav-item,
    .mobile-bottom-nav {
        -webkit-user-select: none;
        -moz-user-select: none;
        -ms-user-select: none;
        user-select: none;
        -webkit-tap-highlight-color: transparent;
    }

    /* Better touch targets */
    a,
    button {
        min-height: 44px;
        min-width: 44px;
    }

    /* About Page Mobile Styles */
    .about-hero-full {
        min-height: 50vh;
    }

    .about-hero-content {
        padding: 2rem 1rem;
    }

    .about-hero-content h1 {
        font-size: 2.5rem;
    }

    .about-hero-content p {
        font-size: 1.125rem;
    }

    .hero-cta-button {
        padding: 0.875rem 2rem;
        font-size: 1rem;
    }

    .section-wrapper {
        padding: 0 1.5rem;
    }

    .section-title {
        font-size: 2rem;
        padding-top: 1rem;
        padding-bottom: 0.5rem;
    }

    .section-subtitle {
        font-size: 1.125rem;
    }

    .about-content-section {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }

    .about-content-section p {
        font-size: 1rem;
        line-height: 1.7;
    }

    .mission-statement {
        font-size: 1.125rem;
    }

    .intro-text {
        font-size: 1rem;
    }

    .two-column-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .two-column-grid img {
        max-width: 100%;
        height: auto;
    }

    .five-marks-grid {
        grid-template-columns: 1fr;
    }

    .mark-card {
        padding: 1.25rem;
    }

    .mark-card h3 {
        font-size: 1.25rem;
    }

    .mark-description {
        font-size: 0.95rem;
    }

    .staff-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .staff-member {
        padding: 1.5rem;
    }

    .staff-member h3 {
        font-size: 1.25rem;
    }

    .staff-member h4 {
        font-size: 0.9rem;
    }

    .staff-photo {
        width: 100px;
        height: 100px;
        font-size: 2rem;
    }
}

/* Tablet Styles for About Page */
@media (min-width: 769px) and (max-width: 1024px) {
    .five-marks-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .staff-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Desktop Styles for About Page */
@media (min-width: 1025px) {
    .five-marks-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .staff-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ========================================
   UNIFIED COMPACT PAGE LAYOUT SYSTEM
   ========================================
   Flush, compact layout for all subpages
   ======================================== */

/* Override dashboard-main padding for flush top */
.dashboard-main {
    padding-top: 0 !important;
}

/* Remove dashboard-panel padding for flush layout */
.dashboard-panel {
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
    border: none !important;
}

/* Unified compact page container */
.compact-page {
    min-height: calc(100vh - 200px);
    padding: 0;
    margin: 0;
    width: 100%;
}

/* Compact hero section */
.compact-hero {
    padding: 0.5rem 0;
    text-align: center;
    background: transparent;
    margin: 0 0 0.75rem 0;
}

.compact-hero h1 {
    font-size: 1.75rem;
    color: rgba(255, 255, 255, 0.95);
    margin: 0 0 0.25rem 0;
    font-weight: 600;
}

.compact-hero p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    margin: 0;
}

/* Compact page content - no extra padding */
.compact-content {
    width: 100%;
    margin: 0;
    padding: 0;
}

/* Compact section spacing */
.compact-section {
    margin-bottom: 1rem;
}

.compact-section:last-child {
    margin-bottom: 0;
}

/* Compact card spacing */
.compact-card {
    padding: 0.75rem;
    margin-bottom: 0.75rem;
}

.compact-card:last-child {
    margin-bottom: 0;
}

/* Sundays page */
.sundays-page {
    min-height: calc(100vh - 200px);
    padding: 0;
    margin: 0;
}

.sundays-hero {
    padding: 0.5rem 0;
    text-align: center;
    margin-bottom: 0.75rem;
}

.sundays-hero h1 {
    font-size: 1.75rem;
    color: rgba(255, 255, 255, 0.95);
    margin: 0 0 0.25rem 0;
    font-weight: 600;
}

.sundays-hero p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    margin: 0;
}

.service-schedule-section {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    padding: 1rem;
}

.service-schedule-section .container {
    max-width: 100%;
    padding: 0;
}

.what-to-expect-section {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    padding: 1rem;
    margin-top: 0.75rem;
}

.what-to-expect-section h2 {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.95);
    margin: 0 0 0.75rem 0;
    font-weight: 600;
}

.expectation-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.75rem;
}

.expectation-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 0.85rem;
    transition: all 0.2s ease;
}

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

.expectation-card h3 {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.95);
    margin: 0 0 0.4rem 0;
    font-weight: 600;
}

.expectation-card p {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.85rem;
    line-height: 1.6;
    margin: 0;
}

.expectation-icon {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 0.35rem;
}

/* Plan a Visit page */
.plan-visit-page {
    min-height: calc(100vh - 200px);
    padding: 0;
    margin: 0;
}

.plan-visit-hero {
    text-align: center;
    padding: 0.5rem 0;
    margin-bottom: 0.75rem;
}

.plan-visit-hero h1 {
    font-size: 1.75rem;
    color: rgba(255, 255, 255, 0.95);
    margin: 0 0 0.25rem 0;
    font-weight: 600;
}

.plan-visit-hero p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    margin: 0;
}

.visit-cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin-bottom: 0.75rem;
}

.visit-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.9rem;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.95);
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.2s ease;
}

.visit-cta:hover {
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
}

.visit-section {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 0.75rem;
}

.visit-section h2 {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.95);
    margin: 0 0 0.6rem 0;
    font-weight: 600;
}

.visit-section p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0 0 0.6rem 0;
}

.visit-section p:last-child {
    margin-bottom: 0;
}

.visit-highlight {
    background: rgba(0, 82, 163, 0.18);
    border: 1px solid rgba(0, 82, 163, 0.35);
    border-radius: 6px;
    padding: 0.75rem;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-top: 0.75rem;
}

.visit-highlight strong {
    color: rgba(255, 255, 255, 0.98);
}

.visit-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 0.75rem;
}

.visit-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 0.75rem;
}

.visit-card h3 {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.95);
    margin: 0 0 0.4rem 0;
    font-weight: 600;
}

.visit-card p,
.visit-card li {
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.85rem;
    line-height: 1.6;
}

.visit-card ol {
    padding-left: 1.1rem;
    margin: 0.4rem 0 0 0;
}

.visit-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.visit-list-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 0.85rem;
}

.visit-list-item h3 {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.95);
    margin: 0 0 0.35rem 0;
    font-weight: 600;
}

.visit-list-item p {
    margin: 0.35rem 0;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.85rem;
    line-height: 1.6;
}

.location-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 0.75rem;
    align-items: start;
}

.map-frame {
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.map-frame iframe {
    width: 100%;
    height: 240px;
    border: 0;
}

.visit-link {
    color: rgba(120, 190, 255, 0.95);
    text-decoration: none;
}

.visit-link:hover {
    color: rgba(160, 210, 255, 1);
}

.video-placeholder {
    background: rgba(255, 255, 255, 0.06);
    border: 1px dashed rgba(255, 255, 255, 0.25);
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.85rem;
}

/* Global Page Submenu - Vertical List Format */
.page-submenu {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 0.75rem;
    margin-bottom: 0.75rem;
}

.submenu-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding-bottom: 0.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.submenu-section {
    margin-bottom: 0.75rem;
}

.submenu-section:last-child {
    margin-bottom: 0;
}

.submenu-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.submenu-list li {
    margin: 0;
}

.submenu-list a {
    display: block;
    padding: 0.4rem 0.75rem;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.85rem;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.2s;
    white-space: nowrap;
}

.submenu-list a:hover,
.submenu-list a.active {
    background: rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.95);
    border-color: rgba(255, 255, 255, 0.2);
}

@media (max-width: 768px) {
    .submenu-list {
        flex-direction: column;
    }

    .submenu-list a {
        width: 100%;
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .compact-hero h1 {
        font-size: 1.5rem;
    }

    .compact-hero p {
        font-size: 0.85rem;
    }
}

/* ========================================
   9. CUSTOM SMART SCROLLBAR
   ======================================== */

/* Hide native scrollbar - handled globally at top of file, 
   but ensuring main body is set up for our custom one. */
body {
    scrollbar-width: none; /* Firefox */
}
body::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

#cpc-scroll-rail {
    position: fixed;
    right: 0;
    top: 0;
    bottom: 0;
    width: 6px;
    z-index: 9500;
    background: rgba(0, 30, 80, 0.45);
    transition: width 0.18s ease;
    cursor: pointer;
    user-select: none;
    backdrop-filter: blur(4px);
}

#cpc-scroll-rail:hover,
#cpc-scroll-rail.is-dragging {
    width: 14px;
}

#cpc-scroll-thumb {
    position: absolute;
    left: 0;
    right: 0;
    min-height: 24px;
    border-radius: 4px;
    background: rgba(116, 192, 252, 0.45);
    transition: background 0.15s, box-shadow 0.15s;
    cursor: grab;
}

#cpc-scroll-rail:hover #cpc-scroll-thumb,
#cpc-scroll-rail.is-dragging #cpc-scroll-thumb {
    background: rgba(116, 192, 252, 0.85);
    box-shadow: 0 0 6px rgba(116, 192, 252, 0.5);
}

#cpc-scroll-rail.is-dragging #cpc-scroll-thumb {
    cursor: grabbing;
}

/* Tick marks — visual density guide */
#cpc-scroll-ticks {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.cpc-scroll-tick {
    position: absolute;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(116, 192, 252, 0.18);
}

/* Floating label (context / percentage) */
#cpc-scroll-label {
    position: fixed;
    right: 20px;
    padding: 5px 10px;
    background: rgba(0, 30, 80, 0.97);
    border: 1px solid rgba(0, 82, 163, 0.4);
    border-radius: 6px;
    font-size: 11px;
    font-family: var(--font-primary);
    color: #74c0fc;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transform: translateY(-50%);
    transition: opacity 0.12s;
    z-index: 9501;
    box-shadow: 0 4px 14px rgba(0,0,0,0.45);
}

#cpc-scroll-label.is-visible {
    opacity: 1;
}

#cpc-scroll-label .scroll-label-main {
    font-weight: 600;
    font-size: 12px;
}

#cpc-scroll-label .scroll-label-sub {
    font-size: 10px;
    color: rgba(116, 192, 252, 0.65);
    margin-top: 1px;
}

/* White Theme Adjustments for Scrollbar */
body.theme-white #cpc-scroll-rail {
    background: rgba(0, 50, 120, 0.15);
}

body.theme-white #cpc-scroll-thumb {
    background: rgba(0, 82, 163, 0.35);
}

body.theme-white #cpc-scroll-rail:hover #cpc-scroll-thumb,
body.theme-white #cpc-scroll-rail.is-dragging #cpc-scroll-thumb {
    background: rgba(0, 82, 163, 0.7);
    box-shadow: 0 0 6px rgba(0, 82, 163, 0.2);
}

body.theme-white #cpc-scroll-label {
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: var(--cpc-blue);
    box-shadow: 0 4px 14px rgba(0,0,0,0.15);
}

body.theme-white #cpc-scroll-label .scroll-label-sub {
    color: rgba(0, 82, 163, 0.65);
}

/* White theme - Search modal */
body.theme-white #searchModalBox {
    background: rgba(255, 255, 255, 0.98) !important;
    color: #1a1a1a;
}

body.theme-white #modalSearchInput {
    background: white !important;
    border-color: rgba(0, 82, 163, 0.2) !important;
    color: #1a1a1a !important;
}

body.theme-white #modalSearchInput::placeholder {
    color: rgba(0, 82, 163, 0.5);
}

body.theme-white #modalSearchClose {
    color: rgba(0, 82, 163, 0.6) !important;
}

body.theme-white #modalSearchClose:hover {
    color: var(--cpc-blue) !important;
}

body.theme-white #modalViewAll {
    color: var(--cpc-blue) !important;
}

/* White theme - Search filter panel */
body.theme-white #advancedFiltersToggle {
    background: rgba(0, 82, 163, 0.08) !important;
    color: var(--cpc-blue);
}

body.theme-white #advancedFiltersToggle:hover {
    background: rgba(0, 82, 163, 0.12) !important;
}

body.theme-white #advancedFiltersPanel {
    background: rgba(0, 82, 163, 0.05) !important;
    border-color: rgba(0, 82, 163, 0.15) !important;
}

body.theme-white #advancedFiltersPanel .filter-select,
body.theme-white #advancedFiltersPanel .filter-input {
    background: white !important;
    border-color: rgba(0, 82, 163, 0.2) !important;
    color: #1a1a1a !important;
}

body.theme-white #advancedFiltersPanel label {
    color: var(--cpc-blue) !important;
}

body.theme-white #clearFiltersBtn {
    background: rgba(0, 82, 163, 0.1) !important;
    border-color: rgba(0, 82, 163, 0.2) !important;
    color: var(--cpc-blue) !important;
}

body.theme-white #clearFiltersBtn:hover {
    background: rgba(0, 82, 163, 0.15) !important;
}

/* White theme - Mobile filter toggle (Phase 3) */
body.theme-white .filter-toggle-mobile {
    color: var(--cpc-blue);
}

body.theme-white .filter-toggle-mobile:hover {
    color: var(--cpc-blue);
    opacity: 0.8;
}

/* ===== UNIVERSAL STICKY AUDIO PLAYER ===== */
#cpc-player {
    position: fixed;
    bottom: -100px;
    left: 0;
    right: 0;
    z-index: 9999;
    height: 72px;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0 1.25rem;
    background: rgba(0, 12, 45, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.45);
    transition: bottom 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

#cpc-player.active {
    bottom: 0;
}

/* Push page content up when player is open */
body.player-open .compact-page,
body.player-open main,
body.player-open .page-wrapper {
    padding-bottom: 80px;
}

#cpc-player-img {
    width: 48px;
    height: 48px;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
}

#cpc-player-info {
    min-width: 0;
    flex: 0 0 180px;
}

#cpc-player-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#cpc-player-subtitle {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.55);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 2px;
}

#cpc-player-controls {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

#cpc-player-playpause {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: rgba(0, 82, 163, 0.85);
    color: white;
    font-size: 0.9rem;
    cursor: pointer;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, transform 0.15s;
}

#cpc-player-playpause:hover {
    background: rgba(0, 102, 204, 0.95);
    transform: scale(1.07);
}

#cpc-player-rewind {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.75rem;
    cursor: pointer;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 2px;
    padding: 0.25rem;
    transition: color 0.2s;
    line-height: 1;
}

#cpc-player-rewind:hover {
    color: rgba(255, 255, 255, 0.95);
}

#cpc-player-rewind span {
    font-size: 0.65rem;
    font-weight: 700;
}

body.theme-white #cpc-player-rewind { color: #6c757d; }
body.theme-white #cpc-player-rewind:hover { color: #1d1d1f; }

#cpc-player-elapsed,
#cpc-player-duration {
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.55);
    flex-shrink: 0;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.02em;
}

#cpc-player-scrubber {
    flex: 1;
    height: 4px;
    -webkit-appearance: none;
    appearance: none;
    background: linear-gradient(to right, rgba(0,102,204,0.85) var(--pct, 0%), rgba(255,255,255,0.18) var(--pct, 0%));
    border-radius: 2px;
    cursor: pointer;
    outline: none;
}

#cpc-player-scrubber::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #4da3ff;
    cursor: pointer;
    box-shadow: 0 0 6px rgba(0, 102, 204, 0.6);
    transition: transform 0.15s;
}

#cpc-player-scrubber:hover::-webkit-slider-thumb {
    transform: scale(1.2);
}

#cpc-player-scrubber::-moz-range-thumb {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #4da3ff;
    border: none;
    cursor: pointer;
}

#cpc-player-close {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.4);
    font-size: 1.5rem;
    cursor: pointer;
    flex-shrink: 0;
    padding: 0.25rem 0.4rem;
    line-height: 1;
    transition: color 0.2s;
}

#cpc-player-close:hover {
    color: rgba(255, 255, 255, 0.9);
}

/* Play MP3 button — matches streaming link button style */
.btn-play-mp3 {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.9rem;
    background: rgba(29, 185, 84, 0.18);
    border: 1px solid rgba(29, 185, 84, 0.45);
    border-radius: 8px;
    color: rgba(29, 185, 84, 0.95);
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s;
    white-space: nowrap;
    backdrop-filter: blur(10px);
}

.btn-play-mp3:hover {
    background: rgba(29, 185, 84, 0.28);
    border-color: rgba(29, 185, 84, 0.7);
    transform: translateY(-1px);
}

.btn-download-mp3 {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.9rem;
    background: rgba(0, 102, 204, 0.18);
    border: 1px solid rgba(0, 102, 204, 0.45);
    border-radius: 8px;
    color: rgba(100, 180, 255, 0.95);
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s;
    white-space: nowrap;
    backdrop-filter: blur(10px);
}

.btn-download-mp3:hover {
    background: rgba(0, 102, 204, 0.28);
    border-color: rgba(0, 102, 204, 0.7);
    transform: translateY(-1px);
    color: rgba(130, 200, 255, 0.95);
}

@media (max-width: 640px) {
    #cpc-player {
        height: 76px;
        padding: 0 0.75rem;
        gap: 0.6rem;
    }
    #cpc-player-info {
        flex: 0 0 110px;
    }
    #cpc-player-img {
        width: 40px;
        height: 40px;
    }
    #cpc-player-elapsed,
    #cpc-player-duration,
    #cpc-player-rewind {
        display: none;
    }
}

/* White theme overrides */
body.theme-white #cpc-player {
    background: rgba(235, 242, 255, 0.97);
    border-top-color: rgba(0, 60, 130, 0.15);
    box-shadow: 0 -4px 20px rgba(0, 60, 130, 0.1);
}
body.theme-white #cpc-player-title { color: #1d1d1f; }
body.theme-white #cpc-player-subtitle { color: #6c757d; }
body.theme-white #cpc-player-elapsed,
body.theme-white #cpc-player-duration { color: #6c757d; }
body.theme-white #cpc-player-close { color: #aaa; }
body.theme-white #cpc-player-close:hover { color: #1d1d1f; }

/* ===========================================================================
   LEFT DASHBOARD SIDEBAR — Direction 1B (Content-first & minimal)
   =========================================================================== */

/* ---- 1. Search (borderless) ---- */
.dash-search { position: relative; margin: 0; margin-bottom: 12px; }
.dash-search__icon {
    position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
    font-size: 12px; color: rgba(255, 255, 255, .6); pointer-events: none;
}
.dash-search__input {
    width: 100%; box-sizing: border-box;
    padding: 11px 12px;
    border: 1px solid rgba(255, 255, 255, .25);
    background: rgba(255, 255, 255, .08);
    border-radius: 9px;
    color: #fff;
    font: 400 14px/1 'Barlow', sans-serif; outline: none;
    transition: background .2s ease, border-color .2s ease, box-shadow .2s ease;
    text-align: center;
}
.dash-search__input::placeholder { color: rgba(255, 255, 255, .5); }
.dash-search__input:focus {
    background: rgba(255, 255, 255, .12);
    border-color: var(--surface-accent, #0066cc);
    box-shadow: 0 0 12px rgba(0, 102, 204, .2);
}

/* ---- 2. Live hero card ---- */
.dash-live {
    position: relative; display: block; text-decoration: none;
    padding: 16px; border-radius: 12px;
    background: rgba(0, 100, 200, 0.18);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 100, 200, 0.28);
    box-shadow: 0 8px 22px rgba(0, 100, 200, 0.12);
    transition: transform .15s ease, box-shadow .15s ease, background .3s ease, border-color .3s ease;
    margin-bottom: 20px;
}
.dash-live:hover { transform: translateY(-1px); box-shadow: 0 12px 28px rgba(0, 100, 200, 0.18); }

/* Sunday variant: keep the live card on-brand blue instead of a pink/red accent */
.dash-live.is-sunday {
    background: rgba(0, 102, 204, 0.22);
    border-color: rgba(0, 102, 204, 0.34);
    box-shadow: 0 8px 22px rgba(0, 82, 163, 0.16);
}
.dash-live.is-sunday:hover {
    box-shadow: 0 12px 28px rgba(0, 82, 163, 0.22);
}
.dash-live__eyebrow {
    display: flex; align-items: center; gap: 7px;
    font: 800 10px/1 'Barlow', sans-serif; letter-spacing: .18em;
    text-transform: uppercase; color: rgba(255, 255, 255, .9);
}
.dash-live__dot {
    width: 8px; height: 8px; border-radius: 50%; background: rgba(0, 102, 204, 0.9);
    animation: cpcpulse 1.6s ease-in-out infinite;
}

.dash-live.is-sunday .dash-live__dot {
    background: rgba(90, 200, 250, 0.92);
}
.dash-live__title { display: block; margin-top: 14px; font: 800 22px/1 'Barlow', sans-serif; color: #fff; }
.dash-live__sub   { display: block; margin-top: 6px; font: 500 12.5px/1 'Barlow', sans-serif; color: rgba(255, 255, 255, .85); }
.dash-live__play  { position: absolute; right: 16px; bottom: 16px; font-size: 16px; color: rgba(255, 255, 255, .9); }

/* ---- shared: section heading (brighter for contrast) ---- */
.dash-block { display: block; }
.dash-block + .dash-block { margin-top: 18px; }
.dash-heading {
    margin: 0 0 4px; font: 800 11px/1 'Barlow', sans-serif;
    letter-spacing: .16em; text-transform: uppercase; color: #c3daf7;
}

/* ---- 3. Watch & Listen: list rows ---- */
.dash-row {
    display: flex; align-items: center; gap: 12px;
    padding: 11px 2px; text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, .09);
    transition: padding-left .15s ease;
}
.dash-row--last { border-bottom: none; }
.dash-row__icon  { width: 18px; text-align: center; font-size: 13px; color: var(--surface-accent, #0066cc); }
.dash-row__label { color: #fff; font: 600 14px/1 'Barlow', sans-serif; }
.dash-row__chev  { margin-left: auto; font-size: 11px; color: rgba(255, 255, 255, .35); }
.dash-row:hover  { padding-left: 6px; }
.dash-row:hover .dash-row__chev { color: rgba(255, 255, 255, .7); }

/* ---- 4. This Week: icon-chip rows ---- */
.dash-item {
    display: flex; align-items: center; gap: 11px;
    padding: 4px 0; text-decoration: none;
}
.dash-item + .dash-item { margin-top: 5px; }
.dash-item__chip {
    flex: none; width: 34px; height: 34px; border-radius: 9px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(0, 102, 204, .16); color: var(--surface-accent, #0066cc);
    font-size: 13px; transition: background .15s ease;
}
.dash-item:hover .dash-item__chip { background: rgba(0, 102, 204, .28); }
.dash-item__text  { display: flex; flex-direction: column; }
.dash-item__title { color: #fff; font: 600 13.5px/1.1 'Barlow', sans-serif; }
.dash-item__sub   { margin-top: 3px; color: rgba(255, 255, 255, .6); font: 400 11.5px/1 'Barlow', sans-serif; }

/* ---- 5. Give CTA ---- */
.dash-give {
    display: flex; align-items: center; justify-content: center; gap: 9px;
    padding: 14px 16px; border-radius: 11px; text-decoration: none;
    background: rgba(92, 172, 255, .18); color: #eaf5ff;
    border: 1px solid rgba(155, 208, 255, .42);
    font: 700 14px/1 'Barlow', sans-serif;
    transition: background .15s ease, border-color .15s ease, transform .15s ease;
    margin-top: 18px;
}
.dash-give:hover {
    background: rgba(92, 172, 255, .3);
    border-color: rgba(155, 208, 255, .75);
    transform: translateY(-1px);
}

.dash-theme-toggle {
    width: 100%;
    margin-top: 12px;
    padding: 12px 14px;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 11px;
    background: rgba(255, 255, 255, .08);
    color: rgba(255, 255, 255, .96);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    cursor: pointer;
    transition: background .15s ease, transform .15s ease;
}

.dash-theme-toggle--footer {
    width: auto;
    margin-top: 0;
    padding: 0 10px;
    min-height: 26px;
    border: 1px solid rgba(90, 200, 250, 0.32);
    border-radius: 999px;
    background: rgba(0, 82, 163, 0.32);
    box-shadow: none;
    gap: 8px;
}

.dash-theme-toggle:hover {
    background: rgba(255, 255, 255, .14);
    transform: translateY(-1px);
}

.dash-theme-toggle--footer:hover {
    background: rgba(0, 102, 204, 0.4);
}

.dash-theme-toggle__copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    text-align: left;
}

.dash-theme-toggle__label {
    font: 700 14px/1 'Barlow', sans-serif;
}

.dash-theme-toggle--footer .dash-theme-toggle__copy {
    flex-direction: row;
    align-items: center;
    gap: 6px;
}

.dash-theme-toggle--footer .dash-theme-toggle__label {
    font-size: 11px;
    letter-spacing: 0.02em;
    text-transform: none;
}

.dash-theme-toggle__meta {
    color: rgba(255, 255, 255, .6);
    font: 600 11px/1 'Barlow', sans-serif;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.dash-theme-toggle--footer .dash-theme-toggle__meta {
    font-size: 10px;
    letter-spacing: 0.06em;
}

.dash-theme-toggle__switch {
    position: relative;
    width: 50px;
    height: 28px;
    border-radius: 999px;
    background: rgba(0, 46, 102, 0.42);
    box-shadow: inset 0 0 0 1px rgba(144, 201, 255, 0.18);
    transition: background .15s ease;
}

.dash-theme-toggle--footer .dash-theme-toggle__switch {
    width: 42px;
    height: 24px;
}

.dash-theme-toggle__switch.is-on {
    background: linear-gradient(135deg, rgba(0, 102, 204, 0.9), rgba(90, 200, 250, 0.72));
}

.dash-theme-toggle__thumb {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #fff;
    color: #0a2a52;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    transition: transform .15s ease, color .15s ease;
}

.dash-theme-toggle--footer .dash-theme-toggle__thumb {
    width: 18px;
    height: 18px;
    top: 3px;
    left: 3px;
    font-size: 9px;
}

.dash-theme-toggle__switch.is-on .dash-theme-toggle__thumb {
    transform: translateX(22px);
    color: #0a52a3;
}

.dash-theme-toggle--footer .dash-theme-toggle__switch.is-on .dash-theme-toggle__thumb {
    transform: translateX(18px);
}

/* ---- spacer + footer ---- */
.dash-spacer { flex: 1 1 auto; }
.dash-follow {
    border-top: 1px solid rgba(255, 255, 255, .12); padding-top: 14px;
    display: flex; align-items: center; justify-content: space-between;
}
.dash-follow__label { font: 600 12px/1 'Barlow', sans-serif; color: rgba(255, 255, 255, .6); letter-spacing: .02em; }
.dash-follow__icons { display: flex; gap: 9px; }
.dash-follow__btn {
    width: 32px; height: 32px; border-radius: 9px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14);
    color: #cfe0f5; font-size: 14px; text-decoration: none;
    transition: background .15s ease;
}
.dash-follow__btn:hover { background: rgba(255, 255, 255, .16); }

/* ===========================================================================
   WHITE THEME OVERRIDES
   =========================================================================== */
body.theme-white .dash-search__icon,
body.theme-white .dash-search__input { color: #1a2b45; }
body.theme-white .dash-search__input { border-bottom-color: rgba(10, 42, 82, .2); }
body.theme-white .dash-search__input::placeholder { color: rgba(10, 42, 82, .45); }

body.theme-white .dash-heading { color: #0a52a3; }
body.theme-white .dash-row { border-bottom-color: rgba(10, 42, 82, .12); }
body.theme-white .dash-row__label,
body.theme-white .dash-item__title { color: #12233d; }
body.theme-white .dash-row__chev { color: rgba(10, 42, 82, .3); }
body.theme-white .dash-item__sub { color: rgba(10, 42, 82, .55); }
body.theme-white .dash-item__chip { background: rgba(10, 82, 163, .1); color: #0a52a3; }

body.theme-white .dash-give { background: #0a52a3; color: #fff; }
body.theme-white .dash-give:hover { background: #08478c; }

body.theme-white .dash-follow { border-top-color: rgba(10, 42, 82, .12); }
body.theme-white .dash-follow__label { color: rgba(10, 42, 82, .6); }
body.theme-white .dash-follow__btn {
    background: rgba(10, 42, 82, .06); border-color: rgba(10, 42, 82, .12); color: #0a52a3;
}
body.theme-white .dash-follow__btn:hover { background: rgba(10, 42, 82, .12); }

body.theme-white .dash-live {
    background: rgba(10, 82, 163, 0.12);
    border-color: rgba(10, 82, 163, 0.22);
    box-shadow: 0 8px 22px rgba(10, 82, 163, 0.08);
    color: #0a52a3;
}
body.theme-white .dash-live:hover {
    box-shadow: 0 12px 28px rgba(10, 82, 163, 0.12);
}
body.theme-white .dash-live__eyebrow { color: rgba(10, 82, 163, 0.8); }
body.theme-white .dash-live__title { color: #0a52a3; }
body.theme-white .dash-live__sub { color: rgba(10, 82, 163, 0.7); }
body.theme-white .dash-live__play { color: rgba(10, 82, 163, 0.75); }

body.theme-white .dash-live.is-sunday {
    background: rgba(10, 82, 163, 0.14);
    border-color: rgba(10, 82, 163, 0.24);
    box-shadow: 0 8px 22px rgba(10, 82, 163, 0.1);
}
body.theme-white .dash-live.is-sunday:hover {
    box-shadow: 0 12px 28px rgba(10, 82, 163, 0.14);
}

body.theme-white .dash-live__dot { background: rgba(0, 100, 200, 0.7); }
body.theme-white .dash-live.is-sunday .dash-live__dot { background: rgba(0, 102, 204, 0.82); }

/* ===========================================================================
   BLUE THEME OVERRIDES
   Keep shared pages readable when the CPC blue theme is active.
   =========================================================================== */
body.theme-blue {
    background: linear-gradient(180deg, #0b4f92 0%, #083f79 55%, #072f5c 100%);
    color: #f6f9ff;
}

body.theme-blue h1,
body.theme-blue h2,
body.theme-blue h3,
body.theme-blue h4,
body.theme-blue h5,
body.theme-blue h6 {
    color: #f6f9ff;
}

body.theme-blue p,
body.theme-blue li,
body.theme-blue label,
body.theme-blue small {
    color: rgba(255, 255, 255, 0.84);
}

body.theme-blue a {
    color: #d7e9ff;
}

body.theme-blue a:hover {
    color: #ffffff;
}

body.theme-blue .glass-card,
body.theme-blue .latest-card,
body.theme-blue .highlight-card,
body.theme-blue .dark-card,
body.theme-blue .time-slot,
body.theme-blue .series-card,
body.theme-blue .sermon-card,
body.theme-blue .podcast-series-card,
body.theme-blue .podcast-episode,
body.theme-blue #episodes li,
body.theme-blue .episode-search-panel,
body.theme-blue .preview-episode {
    background: rgba(246, 249, 253, 0.97) !important;
    border-color: rgba(255, 255, 255, 0.18) !important;
    box-shadow: 0 18px 36px rgba(0, 16, 36, 0.18) !important;
}

body.theme-blue .glass-card:hover,
body.theme-blue .latest-card:hover,
body.theme-blue .highlight-card:hover,
body.theme-blue .dark-card:hover,
body.theme-blue .time-slot:hover,
body.theme-blue .series-card:hover,
body.theme-blue .sermon-card:hover,
body.theme-blue .podcast-series-card:hover,
body.theme-blue .podcast-episode:hover,
body.theme-blue #episodes li:hover,
body.theme-blue .preview-episode:hover {
    background: rgba(255, 255, 255, 0.995) !important;
    box-shadow: 0 22px 42px rgba(0, 16, 36, 0.24) !important;
}

body.theme-blue .glass-card h1,
body.theme-blue .glass-card h2,
body.theme-blue .glass-card h3,
body.theme-blue .glass-card h4,
body.theme-blue .latest-card h1,
body.theme-blue .latest-card h2,
body.theme-blue .latest-card h3,
body.theme-blue .highlight-card h1,
body.theme-blue .highlight-card h2,
body.theme-blue .highlight-card h3,
body.theme-blue .dark-card h1,
body.theme-blue .dark-card h2,
body.theme-blue .dark-card h3,
body.theme-blue .time-slot h1,
body.theme-blue .time-slot h2,
body.theme-blue .time-slot h3,
body.theme-blue .series-card h1,
body.theme-blue .series-card h2,
body.theme-blue .series-card h3,
body.theme-blue .sermon-title,
body.theme-blue .podcast-card-title,
body.theme-blue .episode-title,
body.theme-blue .preview-episode-info h4 {
    color: #1a2a3f !important;
}

body.theme-blue .glass-card p,
body.theme-blue .latest-card p,
body.theme-blue .latest-card .latest-title,
body.theme-blue .latest-card .latest-meta,
body.theme-blue .latest-card__description,
body.theme-blue .highlight-card p,
body.theme-blue .highlight-card__description,
body.theme-blue .highlight-card__time,
body.theme-blue .dark-card p,
body.theme-blue .time-slot p,
body.theme-blue .series-card p,
body.theme-blue .sermon-meta,
body.theme-blue .sermon-scripture,
body.theme-blue .podcast-card-description,
body.theme-blue .podcast-card-meta,
body.theme-blue .preview-episode-meta,
body.theme-blue .episode-meta,
body.theme-blue .episode-details,
body.theme-blue .episode-results-summary,
body.theme-blue .loading-message,
body.theme-blue .error-message {
    color: #445265 !important;
}

body.theme-blue .page-hero h1,
body.theme-blue .page-hero h2,
body.theme-blue .page-hero h3,
body.theme-blue .compact-hero h1,
body.theme-blue .compact-hero p,
body.theme-blue .podcasts-hero h1,
body.theme-blue .podcasts-hero p,
body.theme-blue .section-heading,
body.theme-blue .section-subheading,
body.theme-blue .rss-episodes-section h2,
body.theme-blue .episodes-header h2 {
    color: #f6f9ff !important;
}

body.theme-blue .podcast-tabs {
    border-bottom-color: rgba(255, 255, 255, 0.16);
}

body.theme-blue .podcast-tab {
    background: rgba(255, 255, 255, 0.08) !important;
    border-color: rgba(255, 255, 255, 0.14) !important;
    color: rgba(255, 255, 255, 0.84) !important;
    box-shadow: 0 10px 22px rgba(0, 16, 36, 0.08);
}

body.theme-blue .podcast-tab:hover {
    background: rgba(255, 255, 255, 0.16) !important;
    color: #fff !important;
    border-color: rgba(255, 255, 255, 0.22) !important;
}

body.theme-blue .podcast-tab.active {
    background: #eef4fb !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
    color: #0d4b91 !important;
}

body.theme-blue .sermon-card {
    background: linear-gradient(180deg, rgba(247, 250, 255, 0.98), rgba(238, 243, 250, 0.98)) !important;
    border-color: rgba(255, 255, 255, 0.22) !important;
    box-shadow: 0 20px 44px rgba(0, 16, 36, 0.22) !important;
}

body.theme-blue .sermon-card:hover {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.995), rgba(244, 248, 253, 0.995)) !important;
    box-shadow: 0 24px 50px rgba(0, 16, 36, 0.28) !important;
}

body.theme-blue .sermon-thumbnail {
    background: rgba(0, 82, 163, 0.08);
    box-shadow: inset 0 0 0 1px rgba(0, 82, 163, 0.08);
}

body.theme-blue .sermon-links a {
    box-shadow: 0 8px 18px rgba(0, 16, 36, 0.1);
}

body.theme-blue .sermon-links a.btn-play {
    background: rgba(0, 82, 163, 0.12) !important;
    color: #0d4b91 !important;
    border-color: rgba(0, 82, 163, 0.22) !important;
}

body.theme-blue .sermon-links a.btn-play:hover {
    background: rgba(0, 82, 163, 0.18) !important;
    border-color: rgba(0, 82, 163, 0.3) !important;
    box-shadow: 0 10px 22px rgba(0, 82, 163, 0.14);
}

body.theme-blue .sermon-links a[href*="spotify"] {
    background: rgba(29, 185, 84, 0.2) !important;
    color: #0f5e28 !important;
    border-color: rgba(29, 185, 84, 0.32) !important;
}

body.theme-blue .sermon-links a[href*="youtube"] {
    background: rgba(255, 0, 0, 0.12) !important;
    color: #b10000 !important;
    border-color: rgba(255, 0, 0, 0.2) !important;
}

body.theme-blue .sermon-links a[href*="apple"] {
    background: rgba(0, 0, 0, 0.06) !important;
    color: #1a2a3f !important;
    border-color: rgba(26, 42, 63, 0.14) !important;
}

body.theme-blue .podcast-episode-count,
body.theme-blue .episode-filter-chip {
    background: rgba(0, 82, 163, 0.1) !important;
    border-color: rgba(0, 82, 163, 0.18) !important;
    color: #0d4b91 !important;
}

body.theme-blue .podcast-btn,
body.theme-blue .back-btn,
body.theme-blue .episode-clear-btn,
body.theme-blue #prevEpisodeBtn,
body.theme-blue #nextEpisodeBtn,
body.theme-blue .btn-play-mp3 {
    background: rgba(0, 82, 163, 0.08) !important;
    border-color: rgba(0, 82, 163, 0.18) !important;
    color: #0d4b91 !important;
}

body.theme-blue .btn-secondary {
    background: rgba(255, 255, 255, 0.06) !important;
    border-color: rgba(255, 255, 255, 0.42) !important;
    color: #ffffff !important;
}

body.theme-blue .podcast-btn:hover,
body.theme-blue .back-btn:hover,
body.theme-blue .episode-clear-btn:hover,
body.theme-blue #prevEpisodeBtn:hover,
body.theme-blue #nextEpisodeBtn:hover,
body.theme-blue .btn-play-mp3:hover {
    background: rgba(0, 82, 163, 0.14) !important;
    color: #083e79 !important;
}

body.theme-blue .btn-secondary:hover {
    background: rgba(155, 208, 255, 0.18) !important;
    border-color: #9bd0ff !important;
    color: #ffffff !important;
}

body.theme-blue .podcast-btn-primary,
body.theme-blue .btn-primary {
    background: var(--cpc-blue) !important;
    border-color: var(--cpc-blue) !important;
    color: #fff !important;
}

body.theme-blue .podcast-btn-primary:hover,
body.theme-blue .btn-primary:hover {
    background: var(--cpc-blue-dark) !important;
    border-color: var(--cpc-blue-dark) !important;
    color: #fff !important;
}

/* Events calendar menu: one compact action with platform-specific choices. */
.events-page .evt-calendar-menu {
    position: relative !important;
    display: inline-block !important;
}

.events-page .evt-calendar-menu summary {
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    min-height: 42px !important;
    padding: 0.56rem 0.9rem !important;
    border: 1px solid rgba(155, 208, 255, 0.72) !important;
    border-radius: 9px !important;
    background: rgba(155, 208, 255, 0.14) !important;
    color: #ffffff !important;
    cursor: pointer !important;
    font-size: 0.85rem !important;
    font-weight: 700 !important;
    list-style: none !important;
}

.events-page .evt-calendar-menu summary::-webkit-details-marker {
    display: none !important;
}

.events-page .evt-calendar-menu[open] summary {
    background: rgba(155, 208, 255, 0.22) !important;
    border-color: #9bd0ff !important;
}

.events-page .evt-card:has(.evt-calendar-menu[open]) {
    position: relative;
    z-index: 10;
}

.events-page .evt-calendar-menu__panel {
    position: absolute !important;
    z-index: 20 !important;
    top: calc(100% + 0.5rem) !important;
    left: 0 !important;
    width: 232px !important;
    padding: 0.35rem !important;
    border: 1px solid rgba(155, 208, 255, 0.48) !important;
    border-radius: 10px !important;
    background: #073566 !important;
    box-shadow: 0 12px 28px rgba(0, 19, 48, 0.38) !important;
}

.events-page .evt-calendar-menu__panel a {
    display: flex !important;
    align-items: center !important;
    gap: 0.55rem !important;
    padding: 0.68rem 0.7rem !important;
    border-radius: 7px !important;
    color: #ffffff !important;
    font-size: 0.82rem !important;
    font-weight: 600 !important;
    line-height: 1.25 !important;
    text-decoration: none !important;
}

.events-page .evt-calendar-menu__panel a:hover {
    background: rgba(155, 208, 255, 0.16) !important;
}

.events-page .evt-desc a {
    color: #b9ddff;
    font-weight: 700;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.events-page .evt-desc a:hover {
    color: #ffffff;
}

body.theme-blue .episode-filter-input,
body.theme-blue .episode-filter-select,
body.theme-blue .episode-search-input,
body.theme-blue .search-bar input,
body.theme-blue .sort-select,
body.theme-blue .date-range-inputs input {
    background: rgba(255, 255, 255, 0.96) !important;
    border-color: rgba(0, 82, 163, 0.16) !important;
    color: #1a2a3f !important;
}

body.theme-blue .episode-search-input::placeholder,
body.theme-blue .search-bar input::placeholder {
    color: #7b8896 !important;
}

/* Events cards need to escape the legacy white-heading rule in light mode. */
body.theme-white .events-page .evt-title,
body.theme-white .events-page .evt-card h1,
body.theme-white .events-page .evt-card h2,
body.theme-white .events-page .evt-card h3,
body.theme-white .events-page .evt-card h4,
body.theme-white .events-page .evt-card h5,
body.theme-white .events-page .evt-card h6 {
    color: var(--surface-text) !important;
}

body.theme-white .events-page .evt-calendar-menu summary {
    color: var(--surface-text) !important;
    background: var(--surface-accent-soft) !important;
    border-color: var(--surface-accent) !important;
}
