/* ============================================
   IL9Cast Landing Page — Editorial Design System
   Inspired by FiveThirtyEight / Arena / NYT Upshot
   ============================================ */

/* --- Google Fonts loaded in HTML:
   Libre Baskerville (serif headlines)
   Source Sans 3 (sans body)
--- */

:root {
    /* Light editorial palette (default) */
    --bg-primary:       #F5F0E8;
    --bg-surface:       #E3DDD2;
    --bg-surface-hover: #DBD5C9;
    --bg-elevated:      #D4CEC2;
    --border-subtle:    rgba(0,0,0,0.06);
    --border-default:   rgba(0,0,0,0.10);
    --border-hover:     rgba(0,0,0,0.18);
    --text-primary:     #1A1A1A;
    --text-secondary:   #4A4A4A;
    --text-tertiary:    #7A7A7A;
    --accent-gold:      #F2C306;
    --accent-blue:      #31B0B5;
    --accent-red:       #F25446;
    --accent-green:     #40B040;
    --accent-teal:      #31B686;
    --grid-color:       rgba(0,0,0,0.06);
    --highlight-bg:     #F2C306;
    --highlight-text:   #1A1A1A;
    --header-border:    var(--text-primary);
    --shadow-soft:      rgba(0,0,0,0.06);
    --serif:            'Libre Baskerville', 'Georgia', 'Times New Roman', serif;
    --sans:             'Source Sans 3', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --mono:             'JetBrains Mono', 'SF Mono', 'Fira Code', monospace;
}

/* Dark mode — Arena-inspired */
[data-theme="dark"] {
    --bg-primary:       #1A1A1E;
    --bg-surface:       #232328;
    --bg-surface-hover: #2A2A30;
    --bg-elevated:      #2F2F36;
    --border-subtle:    rgba(255,255,255,0.05);
    --border-default:   rgba(255,255,255,0.08);
    --border-hover:     rgba(255,255,255,0.15);
    --text-primary:     #F0EFEB;
    --text-secondary:   #A0A0A0;
    --text-tertiary:    #6B6B6B;
    --accent-gold:      #F2C306;
    --accent-blue:      #31B0B5;
    --accent-red:       #F25446;
    --accent-green:     #40B040;
    --accent-teal:      #31B686;
    --grid-color:       rgba(255,255,255,0.05);
    --highlight-bg:     #F2C306;
    --highlight-text:   #1A1A1A;
    --header-border:    rgba(255,255,255,0.12);
    --shadow-soft:      rgba(0,0,0,0.3);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--sans);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
    position: relative;
    transition: background 0.3s ease, color 0.3s ease;
}

/* Subtle editorial grid background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        linear-gradient(var(--grid-color) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-color) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
    z-index: 0;
}

.site-content {
    position: relative;
    z-index: 1;
}

/* ============================================
   HEADER — Clean editorial nav
   ============================================ */

header {
    position: sticky;
    top: 0;
    z-index: 200;
    background: var(--bg-primary);
    padding: 0 2.5rem;
    max-width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid var(--header-border);
    height: 56px;
}

/* Theme toggle */
.theme-toggle {
    order: 3;
    background: none;
    border: 1px solid var(--border-default);
    border-radius: 4px;
    cursor: pointer;
    padding: 0.35rem 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: all 0.15s ease;
    margin-left: 0.75rem;
    flex-shrink: 0;
}

.theme-toggle:hover {
    color: var(--text-primary);
    border-color: var(--border-hover);
}

.theme-toggle svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.theme-toggle .icon-moon { display: block; }
.theme-toggle .icon-sun  { display: none; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun  { display: block; }

.logo {
    font-family: var(--serif);
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-decoration: none;
    color: var(--text-primary);
    cursor: pointer;
    transition: opacity 0.15s ease;
    flex-shrink: 0;
    order: 1;
}

.logo:hover {
    opacity: 0.6;
}

.logo span {
    font-style: italic;
    font-weight: 400;
    background: var(--accent-gold);
    color: var(--highlight-text);
    padding: 0 0.2em 0 0;
}

/* Desktop nav links */
.desktop-nav {
    display: flex;
    align-items: center;
    gap: 1.75rem;
    order: 2;
    margin-left: auto;
    margin-right: 1.5rem;
}

.desktop-nav a {
    font-family: var(--sans);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    letter-spacing: 0.01em;
    transition: color 0.15s ease;
    padding: 0.25rem 0;
    border-bottom: 2px solid transparent;
}

.desktop-nav a:hover {
    color: var(--text-primary);
}

.desktop-nav a.active {
    color: var(--text-primary);
    border-bottom-color: var(--text-primary);
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    gap: 5px;
    z-index: 1001;
    order: 3;
    margin-left: 1rem;
}

.hamburger span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 1px;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Mobile nav */
#mobileNav {
    display: none;
}

#mobileNav.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 56px;
    left: 0;
    right: 0;
    background: var(--bg-surface);
    border-bottom: 2px solid var(--header-border);
    padding: 0.75rem 0;
    z-index: 199;
    box-shadow: 0 4px 20px var(--shadow-soft);
}

#mobileNav.active a {
    padding: 0.75rem 2.5rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-family: var(--sans);
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

#mobileNav.active a:hover {
    background: var(--bg-elevated);
    color: var(--text-primary);
}

#mobileNav.active a.active {
    color: var(--text-primary);
    font-weight: 600;
}

/* ============================================
   HERO — Big editorial serif headline
   ============================================ */

.hero {
    max-width: 820px;
    margin: 0 auto;
    padding: 5rem 2rem 2rem;
    text-align: left;
}

.hero-dateline {
    font-family: var(--sans);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-tertiary);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.hero-dateline .dot {
    width: 6px;
    height: 6px;
    background: var(--accent-red);
    border-radius: 50%;
    display: inline-block;
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.hero h1 {
    font-family: var(--serif);
    font-size: 3.25rem;
    font-weight: 400;
    line-height: 1.15;
    letter-spacing: -0.01em;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

.hero h1 em {
    font-style: italic;
    background: var(--highlight-bg);
    color: var(--highlight-text);
    padding: 0.05em 0.2em;
    margin: 0 -0.05em;
    text-decoration: none;
}

.hero-subtitle {
    font-family: var(--sans);
    font-size: 1.15rem;
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 580px;
    margin-bottom: 0.75rem;
}

.hero-countdown {
    font-family: var(--sans);
    font-size: 0.9rem;
    color: var(--text-tertiary);
    font-weight: 500;
}

.hero-countdown span {
    font-family: var(--mono);
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.85rem;
}

/* Thin rule under hero */
.hero-rule {
    max-width: 820px;
    margin: 0 auto;
    padding: 0 2rem;
}

.hero-rule hr {
    border: none;
    border-top: 1px solid var(--border-default);
}

/* ============================================
   STAT BOXES — Editorial data highlights
   ============================================ */

.stat-strip {
    max-width: 820px;
    margin: 2.5rem auto 0;
    padding: 0 2rem;
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: var(--border-default);
    border: 1px solid var(--border-default);
}

.stat-box {
    background: var(--bg-surface);
    padding: 1.25rem 1.25rem;
    text-align: left;
    border-left: 3px solid transparent;
}

/* Arena-inspired colored accents per stat box */
.stat-box:nth-child(1) { border-left-color: var(--accent-gold); }
.stat-box:nth-child(2) { border-left-color: var(--accent-blue); }
.stat-box:nth-child(3) { border-left-color: var(--accent-red); }
.stat-box:nth-child(4) { border-left-color: var(--accent-green); }

.stat-label {
    font-family: var(--sans);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-tertiary);
    margin-bottom: 0.5rem;
}

.stat-value {
    font-family: var(--serif);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
    margin-bottom: 0.25rem;
}

.stat-detail {
    font-family: var(--sans);
    font-size: 0.8rem;
    color: var(--text-tertiary);
    line-height: 1.4;
}

.stat-value .accent-blue { color: var(--accent-blue); }
.stat-value .accent-green { color: var(--accent-green); }
.stat-value .accent-red { color: var(--accent-red); }
.stat-value .accent-gold { color: var(--accent-gold); }

/* ============================================
   CONTENT SECTIONS — Editorial modules
   ============================================ */

.editorial-section {
    max-width: 820px;
    margin: 3.5rem auto 0;
    padding: 0 2rem;
}

.section-label {
    font-family: var(--sans);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-tertiary);
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-default);
}

/* Navigation cards grid */
.nav-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--border-default);
    border: 1px solid var(--border-default);
    margin-top: 1.25rem;
}

.nav-card {
    background: var(--bg-surface);
    padding: 1.75rem 1.5rem;
    text-decoration: none;
    color: inherit;
    transition: background 0.15s ease;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.nav-card:hover {
    background: var(--bg-surface-hover);
}

/* Arena-inspired colored top accents per card */
.nav-card:nth-child(1) { border-top: 3px solid var(--accent-gold); }
.nav-card:nth-child(2) { border-top: 3px solid var(--accent-teal); }
.nav-card:nth-child(3) { border-top: 3px solid var(--accent-red); }

.nav-card-title {
    font-family: var(--serif);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.3;
}

.nav-card-type {
    font-family: var(--sans);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent-blue);
}

.nav-card-desc {
    font-family: var(--sans);
    font-size: 0.85rem;
    color: var(--text-tertiary);
    line-height: 1.5;
}

.nav-card-arrow {
    font-family: var(--sans);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-top: auto;
    transition: color 0.15s ease;
}

.nav-card:hover .nav-card-arrow {
    color: var(--accent-blue);
}

/* About block */
.about-block {
    margin-top: 1.25rem;
    border: 1px solid var(--border-default);
    background: var(--bg-surface);
    padding: 2rem 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
}

.about-block-text {
    font-family: var(--sans);
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.75;
}

.about-block-text strong {
    color: var(--text-primary);
    font-weight: 600;
}

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

.about-block-list li {
    font-family: var(--sans);
    font-size: 0.875rem;
    color: var(--text-secondary);
    padding-left: 1rem;
    border-left: 3px solid var(--border-default);
    line-height: 1.5;
}

.about-block-list li:nth-child(1) { border-left-color: var(--accent-gold); }
.about-block-list li:nth-child(2) { border-left-color: var(--accent-blue); }
.about-block-list li:nth-child(3) { border-left-color: var(--accent-green); }

.about-block-list li strong {
    color: var(--text-primary);
    display: block;
    font-size: 0.8rem;
    letter-spacing: 0.02em;
}

/* CTA row */
.cta-row {
    margin-top: 2.5rem;
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.btn-primary {
    font-family: var(--sans);
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    padding: 0.75rem 1.75rem;
    background: var(--text-primary);
    color: var(--bg-primary);
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: opacity 0.15s ease;
    display: inline-block;
}

.btn-primary:hover {
    opacity: 0.8;
}

.btn-secondary {
    font-family: var(--sans);
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    padding: 0.75rem 1.75rem;
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--text-primary);
    cursor: pointer;
    text-decoration: none;
    transition: all 0.15s ease;
    display: inline-block;
}

.btn-secondary:hover {
    background: var(--text-primary);
    color: var(--bg-primary);
}

/* ============================================
   FEATURED CARD — Case study link on homepage
   ============================================ */

.featured-card {
    display: block;
    text-decoration: none;
    color: inherit;
    border: 1px solid var(--border-default);
    border-top: 3px solid var(--accent-gold);
    background: var(--bg-surface);
    margin-top: 1.25rem;
    transition: background 0.15s ease;
}

.featured-card:hover {
    background: var(--bg-surface-hover);
}

.featured-card-inner {
    padding: 2rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.featured-card-tag {
    font-family: var(--sans);
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--bg-primary);
    background: var(--accent-gold);
    padding: 0.2em 0.6em;
    align-self: flex-start;
}

.featured-card-title {
    font-family: var(--serif);
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-primary);
}

.featured-card-desc {
    font-family: var(--sans);
    font-size: 0.925rem;
    color: var(--text-secondary);
    line-height: 1.65;
    max-width: 600px;
}

.featured-card-arrow {
    font-family: var(--sans);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-top: 0.25rem;
    transition: color 0.15s ease;
}

.featured-card:hover .featured-card-arrow {
    color: var(--accent-blue);
}

@media (max-width: 600px) {
    .featured-card-inner {
        padding: 1.5rem 1.25rem;
    }

    .featured-card-title {
        font-size: 1.25rem;
    }

    .featured-card-desc {
        font-size: 0.875rem;
    }
}

/* ============================================
   FOOTER — Minimal editorial
   ============================================ */

.site-footer {
    max-width: 820px;
    margin: 5rem auto 0;
    padding: 0 2rem 3rem;
}

.footer-rule {
    border: none;
    border-top: 2px solid var(--header-border);
    margin-bottom: 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr 1.5fr;
    gap: 2.5rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    font-family: var(--sans);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-tertiary);
    margin-bottom: 0.75rem;
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-section li {
    margin-bottom: 0.4rem;
    font-family: var(--sans);
    font-size: 0.875rem;
}

.footer-section a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.15s ease;
}

.footer-section a:hover {
    color: var(--text-primary);
}

.footer-section p {
    font-family: var(--sans);
    font-size: 0.8rem;
    line-height: 1.6;
    color: var(--text-tertiary);
}

.footer-bottom {
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-default);
    font-family: var(--sans);
    font-size: 0.75rem;
    color: var(--text-tertiary);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-support-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.15s ease;
}

.footer-support-link:hover {
    color: var(--text-primary);
}

/* Flag footer image */
.flag-footer-image {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    margin-top: 0;
    margin-bottom: 0;
    padding: 0;
    overflow: hidden;
    line-height: 0;
}

.flag-footer-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* ============================================
   ANIMATIONS — Restrained entrance
   ============================================ */

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

.hero {
    animation: fadeIn 0.5s ease-out;
}

.stat-strip {
    animation: fadeIn 0.5s ease-out 0.1s both;
}

.editorial-section {
    animation: fadeIn 0.5s ease-out 0.15s both;
}

/* ============================================
   RESPONSIVE — Mobile-first adjustments
   ============================================ */

@media (max-width: 900px) {
    .desktop-nav {
        display: none;
    }

    .hamburger {
        display: flex;
    }

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

    .nav-cards {
        grid-template-columns: 1fr;
    }

    .about-block {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    header {
        padding: 0 1.5rem;
    }

    .hero {
        padding: 3.5rem 1.5rem 1.5rem;
    }

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

    .hero-subtitle {
        font-size: 1.05rem;
    }

    .stat-strip {
        padding: 0 1.5rem;
    }

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

    .hero-rule {
        padding: 0 1.5rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.75rem;
    }

    .site-footer {
        padding: 0 1.5rem 2rem;
    }

    .cta-row {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 600px) {
    header {
        padding: 0 1.25rem;
        height: 50px;
    }

    .logo {
        font-size: 1.1rem;
    }

    #mobileNav.active {
        top: 50px;
    }

    .hero {
        padding: 2.5rem 1.25rem 1.25rem;
    }

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

    .hero-dateline {
        font-size: 0.7rem;
    }

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

    .stat-strip {
        padding: 0 1.25rem;
        margin-top: 2rem;
    }

    .stat-box {
        padding: 1rem;
    }

    .stat-value {
        font-size: 1.35rem;
    }

    .stat-label {
        font-size: 0.65rem;
    }

    .editorial-section {
        padding: 0 1.25rem;
        margin-top: 2.5rem;
    }

    .nav-card {
        padding: 1.25rem 1.25rem;
    }

    .about-block {
        padding: 1.5rem 1.25rem;
    }

    .site-footer {
        padding: 0 1.25rem 2rem;
        margin-top: 3.5rem;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.75rem;
    }

    .stat-grid {
        grid-template-columns: 1fr 1fr;
    }

    .stat-value {
        font-size: 1.2rem;
    }

    .stat-detail {
        font-size: 0.75rem;
    }

    .nav-card-title {
        font-size: 1.05rem;
    }

    .btn-primary,
    .btn-secondary {
        padding: 0.65rem 1.25rem;
        font-size: 0.8rem;
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 375px) {
    .hero {
        padding: 2rem 1rem 1rem;
    }

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

    .hero-subtitle {
        font-size: 0.9rem;
    }

    .stat-strip {
        padding: 0 1rem;
    }

    .editorial-section {
        padding: 0 1rem;
    }

    .site-footer {
        padding: 0 1rem 1.5rem;
    }
}

/* ==================== Fundraising Callout Popup ==================== */

.fundraising-callout-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.fundraising-callout-overlay.show {
    opacity: 1;
    visibility: visible;
}

.fundraising-callout {
    background: var(--bg-surface, #1a1f2e);
    border: 2px solid var(--accent-blue, #31B0B5);
    max-width: 620px;
    width: 90%;
    padding: 2.5rem 2.5rem 2rem;
    position: relative;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.6);
    transform: translateY(20px) scale(0.95);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.fundraising-callout-overlay.show .fundraising-callout {
    transform: translateY(0) scale(1);
}

.callout-close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: none;
    border: none;
    font-size: 1.75rem;
    color: var(--text-secondary, #a0a0a0);
    cursor: pointer;
    line-height: 1;
    padding: 0.25rem 0.5rem;
    transition: color 0.2s ease;
    opacity: 0.6;
}

.callout-close:hover {
    color: var(--text-primary, #e0e0e0);
    opacity: 1;
}

.callout-content {
    text-align: center;
}

.callout-two-boxes {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}

.callout-box-left,
.callout-box-right {
    border: 1px solid var(--border-default, rgba(160, 160, 160, 0.2));
    padding: 1.5rem 1.25rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.callout-box-label {
    font-size: 0.8rem;
    color: var(--text-secondary, #a0a0a0);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.75rem;
    font-weight: 500;
    line-height: 1.4;
}

.callout-box-value {
    font-family: var(--sans, sans-serif);
    font-size: 2rem;
    font-weight: 800;
    color: var(--accent-blue, #31B0B5);
    line-height: 1;
}

.callout-box-asterisk {
    font-size: 0.7rem;
    color: var(--text-tertiary, #606060);
    margin-top: 0.6rem;
    font-style: italic;
}

.callout-pitch {
    font-size: 0.95rem;
    color: var(--text-secondary, #a0a0a0);
    margin: 0 0 1.5rem 0;
    line-height: 1.6;
}

.callout-donate-btn {
    display: inline-block;
    padding: 0.9rem 2.5rem;
    background: var(--accent-blue, #31B0B5);
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    border: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(49, 176, 181, 0.3);
    margin-bottom: 0.75rem;
}

.callout-donate-btn:hover {
    background: var(--accent-teal, #28a0a5);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(49, 176, 181, 0.4);
}

.callout-skip {
    display: block;
    margin: 0 auto;
    background: none;
    border: none;
    color: var(--text-tertiary, #606060);
    font-size: 0.8rem;
    cursor: pointer;
    padding: 0.5rem;
    transition: color 0.2s ease;
}

.callout-skip:hover {
    color: var(--text-secondary, #a0a0a0);
    text-decoration: underline;
}

@media (max-width: 640px) {
    .fundraising-callout {
        padding: 2rem 1.5rem 1.5rem;
        width: 92%;
    }

    .callout-two-boxes {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .callout-box-value {
        font-size: 1.75rem;
    }

    .callout-donate-btn {
        width: 100%;
        padding: 0.9rem 2rem;
    }
}

/* ============================================
   ELECTION NIGHT THEME
   Activated via data-election-night attribute on <html>
   Adds blue/red broadcast styling over existing layout
   ============================================ */

[data-election-night] {
    --bg-primary:       #0d1a2d;
    --bg-surface:       #122240;
    --bg-surface-hover: #182d4e;
    --bg-elevated:      #1e3658;
    --border-subtle:    rgba(100, 140, 200, 0.08);
    --border-default:   rgba(100, 140, 200, 0.12);
    --border-hover:     rgba(100, 140, 200, 0.22);
    --text-primary:     #e2e8f0;
    --text-secondary:   #8b9bb5;
    --text-tertiary:    #5e6e84;
    --accent-gold:      #c44040;
    --accent-blue:      #5b8fd4;
    --accent-red:       #c44040;
    --accent-green:     #22c55e;
    --accent-teal:      #5b8fd4;
    --grid-color:       rgba(80, 120, 180, 0.03);
    --highlight-bg:     #a83232;
    --highlight-text:   #ffffff;
    --header-border:    rgba(100, 140, 200, 0.2);
    --shadow-soft:      rgba(0, 0, 0, 0.4);
}

/* Header glow */
[data-election-night] header {
    border-bottom: 2px solid rgba(91, 143, 212, 0.25);
    box-shadow: 0 2px 12px rgba(91, 143, 212, 0.06);
}

/* Logo highlight turns muted red */
[data-election-night] .logo span {
    background: #a83232;
    color: #ffffff;
}

/* Hero highlight in muted red */
[data-election-night] .hero h1 em {
    background: #a83232;
    color: #ffffff;
    box-shadow: 4px 0 0 #a83232, -4px 0 0 #a83232;
}

/* Dateline dot pulses blue */
[data-election-night] .hero-dateline .dot {
    background: #5b8fd4;
    box-shadow: 0 0 6px rgba(91, 143, 212, 0.4);
}

/* Stat boxes: alternating red/blue accents */
[data-election-night] .stat-box {
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

[data-election-night] .stat-box:nth-child(1) { border-left-color: #5b8fd4; }
[data-election-night] .stat-box:nth-child(2) { border-left-color: #c44040; }
[data-election-night] .stat-box:nth-child(3) { border-left-color: #5b8fd4; }
[data-election-night] .stat-box:nth-child(4) { border-left-color: #c44040; }

[data-election-night] .stat-grid {
    background: rgba(91, 143, 212, 0.06);
    border-color: rgba(91, 143, 212, 0.12);
}

/* Nav cards: muted red/blue top accents */
[data-election-night] .nav-card:nth-child(1) { border-top-color: #5b8fd4; }
[data-election-night] .nav-card:nth-child(2) { border-top-color: #c44040; }
[data-election-night] .nav-card:nth-child(3) { border-top-color: #5b8fd4; }

[data-election-night] .nav-card {
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    transition: background 0.15s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

[data-election-night] .nav-card:hover {
    box-shadow: 0 4px 12px rgba(91, 143, 212, 0.1);
    transform: translateY(-2px);
}

[data-election-night] .nav-cards {
    background: rgba(91, 143, 212, 0.05);
    border-color: rgba(91, 143, 212, 0.12);
}

/* Featured card: muted red accent */
[data-election-night] .featured-card {
    border-top-color: #c44040;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

[data-election-night] .featured-card-tag {
    background: #c44040;
    color: #ffffff;
}

/* About block list: muted red/blue */
[data-election-night] .about-block-list li:nth-child(1) { border-left-color: #5b8fd4; }
[data-election-night] .about-block-list li:nth-child(2) { border-left-color: #c44040; }
[data-election-night] .about-block-list li:nth-child(3) { border-left-color: #5b8fd4; }

[data-election-night] .about-block {
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

/* Buttons: muted blue primary, muted red outline */
[data-election-night] .btn-primary {
    background: #5b8fd4;
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(91, 143, 212, 0.2);
}

[data-election-night] .btn-primary:hover {
    opacity: 1;
    background: #4a7ec3;
    box-shadow: 0 4px 12px rgba(91, 143, 212, 0.3);
}

[data-election-night] .btn-secondary {
    color: #c44040;
    border-color: #c44040;
}

[data-election-night] .btn-secondary:hover {
    background: #c44040;
    color: #ffffff;
}

/* Footer */
[data-election-night] .footer-rule {
    border-top-color: rgba(91, 143, 212, 0.2);
}

/* Grid background: faint blue */
[data-election-night] body::before {
    background-image:
        linear-gradient(rgba(91, 143, 212, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(91, 143, 212, 0.02) 1px, transparent 1px);
}

/* Election Night Banner */
[data-election-night] .en-banner {
    display: flex;
}

.en-banner {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    background: linear-gradient(90deg, #1e3558 0%, #a83232 50%, #1e3558 100%);
    padding: 0.5rem 1rem;
    font-family: var(--sans);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #ffffff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.en-banner .en-live-dot {
    width: 8px;
    height: 8px;
    background: #ffffff;
    border-radius: 50%;
    animation: en-pulse 1.5s ease-in-out infinite;
    box-shadow: 0 0 6px rgba(255, 255, 255, 0.8);
}

@keyframes en-pulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 6px rgba(255, 255, 255, 0.8); }
    50% { opacity: 0.4; box-shadow: 0 0 12px rgba(255, 255, 255, 1); }
}

/* Theme toggle icon override for election night */
[data-election-night] .theme-toggle {
    border-color: rgba(91, 143, 212, 0.2);
    color: #8b9bb5;
}

[data-election-night] .theme-toggle:hover {
    border-color: rgba(91, 143, 212, 0.35);
    color: #e2e8f0;
}

/* Confetti canvas overlay */
[data-election-night] .confetti-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
}

/* Election Night Live Event Card */
.en-live-card {
    display: none;
    background: linear-gradient(135deg, rgba(91, 143, 212, 0.08), rgba(196, 64, 64, 0.08));
    border: 1px solid rgba(91, 143, 212, 0.15);
    padding: 2rem 2.5rem;
    margin-top: 1rem;
    position: relative;
    overflow: hidden;
}

[data-election-night] .en-live-card {
    display: block;
}

.en-live-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #5b8fd4, #c44040, #5b8fd4);
}

.en-live-card-tag {
    display: inline-block;
    background: #c44040;
    color: #fff;
    font-family: 'Source Sans 3', sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.25rem 0.75rem;
    margin-bottom: 1rem;
}

.en-live-card h3 {
    font-family: 'Libre Baskerville', serif;
    font-size: 1.4rem;
    color: var(--text-primary);
    margin: 0 0 0.75rem 0;
}

.en-live-card p {
    font-family: 'Source Sans 3', sans-serif;
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0 0 0.5rem 0;
}

.en-live-card .en-details {
    margin-top: 1.25rem;
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.en-live-card .en-detail-item {
    font-family: 'Source Sans 3', sans-serif;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.en-live-card .en-detail-item strong {
    color: var(--text-primary);
}

@media (max-width: 600px) {
    .en-live-card {
        padding: 1.5rem;
    }
    .en-live-card h3 {
        font-size: 1.2rem;
    }
    .en-live-card .en-details {
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* Election Night Video Popup */
.en-video-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.82);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.en-video-overlay.active {
    display: flex;
    animation: en-fade-in 0.35s ease;
}

@keyframes en-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

.en-video-modal {
    background: #0d1117;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    max-width: 680px;
    width: 90%;
    position: relative;
    overflow: hidden;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6);
}

.en-video-wrap {
    position: relative;
}

.en-video-modal video {
    width: 100%;
    display: block;
    border-radius: 0;
}

.en-unmute-btn {
    display: none;
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    color: #fff;
    font-family: 'Source Sans 3', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    padding: 0.5rem 1.25rem;
    cursor: pointer;
    transition: all 0.15s ease;
    z-index: 3;
}

.en-unmute-btn:hover {
    background: rgba(0, 0, 0, 0.85);
    border-color: rgba(255, 255, 255, 0.3);
}

.en-video-close {
    position: absolute;
    top: 10px;
    right: 12px;
    z-index: 2;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.2rem;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    transition: all 0.15s ease;
}

.en-video-close:hover {
    color: #ffffff;
    background: rgba(0, 0, 0, 0.7);
    border-color: rgba(255, 255, 255, 0.2);
}

.en-video-modal-footer {
    padding: 1.25rem 1.5rem 1.5rem;
    font-family: 'Source Sans 3', sans-serif;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.6;
}

.en-video-modal-footer strong {
    color: rgba(255, 255, 255, 0.85);
    font-weight: 600;
}

.en-video-links {
    display: flex;
    gap: 1.25rem;
    flex-wrap: wrap;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.en-video-links + .en-video-links {
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: none;
}

.en-video-links a {
    color: rgba(255, 255, 255, 0.55);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.15s ease;
}

.en-video-links a.en-link-primary {
    color: #5b8fd4;
    font-size: 1rem;
    font-weight: 600;
}

.en-video-links a:hover {
    color: #ffffff;
}

/* Banner message link */
.en-banner-msg {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    margin-left: 1.5rem;
    padding-left: 1.5rem;
    border-left: 1px solid rgba(255, 255, 255, 0.25);
    font-weight: 400;
    letter-spacing: 0.05em;
    transition: color 0.15s ease;
}

.en-banner-msg:hover {
    color: #ffffff;
}

@media (max-width: 600px) {
    .en-banner-msg {
        display: none;
    }
}
