/* ============================================
   Holly's Hope - Main Stylesheet
   Brand: Purple ribbon heart/infinity symbol
   Colours extracted from logo assets
   ============================================ */

/* ---------- CSS Variables ---------- */
:root {
    /* Brand Purples */
    --purple-deep: #1E0A3C;
    --purple-dark: #2D1054;
    --purple-primary: #6D28D9;
    --purple-light: #8B5CF6;
    --purple-bright: #A78BFA;
    --purple-muted: #C4B5FD;

    /* Backgrounds */
    --lavender: #F3EEFA;
    --lavender-light: #FAF5FF;
    --white: #ffffff;
    --cream: #FDFBFF;

    /* Text */
    --text-dark: #1E0A3C;
    --text-body: #374151;
    --text-light: #ffffff;
    --text-muted: #6B7280;

    /* Functional */
    --success: #10B981;
    --error: #EF4444;
    --warning: #F59E0B;

    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-accent: 'Lora', Georgia, serif;

    /* Spacing */
    --section-padding: 100px;
    --container-max: 1200px;

    /* Transitions */
    --transition: all 0.3s ease;
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: var(--font-primary);
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-body);
    background-color: var(--white);
}

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

a {
    text-decoration: none;
    color: var(--purple-primary);
    transition: var(--transition);
}

a:hover {
    color: var(--purple-light);
}

a:focus-visible {
    outline: 3px solid var(--purple-light);
    outline-offset: 2px;
    border-radius: 2px;
}

ul {
    list-style: none;
}

/* ---------- Accessibility ---------- */
.skip-link {
    position: absolute;
    top: -100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--purple-primary);
    color: var(--white);
    padding: 12px 24px;
    border-radius: 0 0 8px 8px;
    z-index: 10000;
    font-weight: 600;
}

.skip-link:focus {
    top: 0;
    color: var(--white);
}

/* ---------- Container ---------- */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 20px;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-dark);
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

h4 {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
}

p {
    margin-bottom: 1rem;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-block;
    padding: 14px 32px;
    font-family: var(--font-primary);
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    border: 2px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.btn-primary {
    background-color: var(--purple-primary);
    color: var(--white);
    border-color: var(--purple-primary);
}

.btn-primary:hover {
    background-color: var(--purple-light);
    border-color: var(--purple-light);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(109, 40, 217, 0.3);
}

.btn-secondary {
    background-color: transparent;
    color: var(--white);
    border-color: var(--white);
}

.btn-secondary:hover {
    background-color: var(--white);
    color: var(--purple-deep);
}

.btn-outline {
    background-color: transparent;
    color: var(--purple-primary);
    border-color: var(--purple-primary);
}

.btn-outline:hover {
    background-color: var(--purple-primary);
    color: var(--white);
}

.btn-full {
    width: 100%;
}

.btn-small {
    padding: 8px 20px;
    font-size: 0.875rem;
}

/* ---------- Section Common ---------- */
.section {
    padding: var(--section-padding) 0;
}

.section-alt {
    background-color: var(--lavender-light);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    color: var(--purple-deep);
}

.section-header p {
    font-size: 1.125rem;
    color: var(--text-muted);
    max-width: 650px;
    margin: 0 auto;
}

.section-line {
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--purple-primary), var(--purple-light));
    margin: 20px auto;
    border-radius: 2px;
}

/* ============================================
   Cookie Banner
   ============================================ */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--purple-deep);
    color: var(--white);
    padding: 20px;
    z-index: 9999;
    transform: translateY(100%);
    transition: transform 0.4s ease;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.2);
}

.cookie-banner.visible {
    transform: translateY(0);
}

.cookie-content {
    max-width: var(--container-max);
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.cookie-content p {
    flex: 1;
    min-width: 300px;
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.5;
}

.cookie-content a {
    color: var(--purple-bright);
    text-decoration: underline;
}

.cookie-buttons {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

/* ============================================
   Navigation
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: transparent;
    padding: 15px 0;
    transition: var(--transition);
}

.navbar.scrolled {
    background-color: var(--purple-deep);
    padding: 8px 0;
    box-shadow: 0 2px 20px rgba(30, 10, 60, 0.3);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--white);
}

.nav-logo:hover {
    color: var(--white);
}

.nav-logo-icon {
    height: 45px;
    width: auto;
    transition: var(--transition);
}

.navbar.scrolled .nav-logo-icon {
    height: 38px;
}

.nav-logo-text {
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 24px;
}

.nav-link {
    color: var(--white);
    font-weight: 500;
    font-size: 0.85rem;
    position: relative;
    white-space: nowrap;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--purple-bright);
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--purple-bright);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link.active::after {
    width: 100%;
}

.nav-cta {
    background-color: var(--purple-primary);
    color: var(--white) !important;
    padding: 10px 24px;
    border-radius: 8px;
    font-weight: 600;
}

.nav-cta::after {
    display: none;
}

.nav-cta:hover {
    background-color: var(--purple-light);
    transform: translateY(-1px);
}

/* Mobile Navigation Toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    z-index: 1001;
}

.nav-toggle span {
    width: 25px;
    height: 2px;
    background-color: var(--white);
    transition: var(--transition);
    display: block;
}

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

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

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

/* ============================================
   Hero Section
   ============================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--purple-deep) 0%, var(--purple-dark) 50%, #4C1D95 100%);
    overflow: hidden;
    padding-top: 80px;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at 30% 50%, rgba(139, 92, 246, 0.15) 0%, transparent 70%),
                radial-gradient(ellipse at 70% 80%, rgba(109, 40, 217, 0.1) 0%, transparent 50%);
}

/* ============================================
   Water Ripple Effect — Continuous Site-Wide
   Each section gets its own ripple layer that
   adapts colour to match its background.
   ============================================ */

/* Shared ripple base — applied via ::before on every section */
.hero,
.section,
.section-alt,
.donate,
.footer {
    position: relative;
    overflow: hidden;
}

.hero-overlay,
.hero-content {
    z-index: 2;
    position: relative;
}

/* All section content above the ripple layer */
.section > .container,
.section-alt > .container,
.donate > .container,
.footer > .container {
    position: relative;
    z-index: 2;
}

/* The ripple layer — sits behind content in every section */
.hero::after,
.section::after,
.section-alt::after,
.donate::after,
.footer::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse at 25% 30%, var(--ripple-c1) 0%, transparent 50%),
        radial-gradient(ellipse at 75% 70%, var(--ripple-c2) 0%, transparent 45%),
        radial-gradient(ellipse at 50% 50%, var(--ripple-c3) 0%, transparent 60%),
        radial-gradient(ellipse at 15% 80%, var(--ripple-c4) 0%, transparent 40%),
        radial-gradient(ellipse at 85% 20%, var(--ripple-c5) 0%, transparent 35%);
    background-size:
        60% 60%,
        55% 55%,
        80% 80%,
        45% 45%,
        50% 50%;
    background-position:
        0% 0%,
        100% 100%,
        50% 50%,
        0% 100%,
        100% 0%;
    animation: waterFlow 12s ease-in-out infinite;
    opacity: 1;
}

/* -- DARK sections (hero, footer) — deeper purple ripples -- */
.hero::after,
.footer::after {
    --ripple-c1: rgba(109, 40, 217, 0.18);
    --ripple-c2: rgba(76, 29, 149, 0.15);
    --ripple-c3: rgba(139, 92, 246, 0.10);
    --ripple-c4: rgba(91, 33, 182, 0.14);
    --ripple-c5: rgba(109, 40, 217, 0.12);
}

/* -- WHITE sections — light purple tint ripples -- */
.section::after,
.donate::after {
    --ripple-c1: rgba(139, 92, 246, 0.06);
    --ripple-c2: rgba(167, 139, 250, 0.05);
    --ripple-c3: rgba(196, 181, 253, 0.07);
    --ripple-c4: rgba(109, 40, 217, 0.04);
    --ripple-c5: rgba(243, 238, 250, 0.15);
}

/* -- LIGHT PURPLE sections (section-alt) — medium purple ripples -- */
.section-alt::after {
    --ripple-c1: rgba(109, 40, 217, 0.08);
    --ripple-c2: rgba(139, 92, 246, 0.06);
    --ripple-c3: rgba(167, 139, 250, 0.10);
    --ripple-c4: rgba(196, 181, 253, 0.08);
    --ripple-c5: rgba(109, 40, 217, 0.05);
}

/* The animation — slow flowing water movement */
@keyframes waterFlow {
    0% {
        background-position:
            0% 0%,
            100% 100%,
            50% 50%,
            0% 100%,
            100% 0%;
        background-size:
            60% 60%,
            55% 55%,
            80% 80%,
            45% 45%,
            50% 50%;
    }
    25% {
        background-position:
            30% 20%,
            70% 80%,
            40% 60%,
            20% 70%,
            80% 30%;
        background-size:
            70% 70%,
            65% 65%,
            90% 90%,
            55% 55%,
            60% 60%;
    }
    50% {
        background-position:
            60% 40%,
            40% 60%,
            55% 45%,
            35% 55%,
            65% 35%;
        background-size:
            55% 55%,
            50% 50%,
            70% 70%,
            40% 40%,
            45% 45%;
    }
    75% {
        background-position:
            40% 60%,
            60% 40%,
            45% 55%,
            10% 90%,
            90% 10%;
        background-size:
            65% 65%,
            60% 60%,
            85% 85%,
            50% 50%,
            55% 55%;
    }
    100% {
        background-position:
            0% 0%,
            100% 100%,
            50% 50%,
            0% 100%,
            100% 0%;
        background-size:
            60% 60%,
            55% 55%,
            80% 80%,
            45% 45%,
            50% 50%;
    }
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    .hero::after,
    .section::after,
    .section-alt::after,
    .donate::after,
    .footer::after {
        animation: none;
    }
}

.hero-content {
    position: relative;
    text-align: center;
    max-width: 800px;
    padding: 20px;
}

.hero-logo {
    max-width: 280px;
    margin: 0 auto 24px;
    animation: fadeInUp 1s ease;
    border-radius: 16px;
    background-color: rgba(255, 255, 255, 0.95);
    padding: 16px 24px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.15);
}

.hero-description {
    font-size: 1.2rem;
    color: var(--white);
    margin-bottom: 40px;
    opacity: 0.9;
    line-height: 1.8;
    animation: fadeInUp 1s ease 0.3s both;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease 0.5s both;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-top: 60px;
    animation: fadeInUp 1s ease 0.7s both;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--purple-bright);
    line-height: 1;
}

.stat-label {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 8px;
    display: block;
}

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

/* ============================================
   About Section
   ============================================ */
.about-content {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
    align-items: start;
}

.about-text h3 {
    color: var(--purple-primary);
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
}

.about-text p {
    color: var(--text-body);
    font-size: 1.05rem;
}

.mission-pillars {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-top: 30px;
}

.pillar {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 20px;
    background-color: var(--lavender-light);
    border-radius: 12px;
    border-left: 4px solid var(--purple-primary);
}

.pillar-icon {
    width: 40px;
    height: 40px;
    color: var(--purple-primary);
    flex-shrink: 0;
}

.pillar-icon svg {
    width: 100%;
    height: 100%;
}

.pillar h4 {
    color: var(--purple-deep);
    margin-bottom: 4px;
}

.pillar p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 0;
}

.about-image {
    position: relative;
}

.image-placeholder {
    aspect-ratio: 4/5;
    background: linear-gradient(135deg, var(--lavender) 0%, #E9D5FF 100%);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--purple-primary);
    font-weight: 600;
    gap: 12px;
    border: 2px dashed var(--purple-muted);
}

.placeholder-icon {
    width: 48px;
    height: 48px;
    opacity: 0.5;
}

.image-placeholder span {
    font-size: 0.9rem;
    opacity: 0.7;
}

.about-photo {
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(30, 10, 60, 0.15);
    width: 100%;
    object-fit: cover;
}

/* ============================================
   Who Was Holly Section
   ============================================ */
.holly-content {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 60px;
    align-items: start;
}

.holly-photo {
    aspect-ratio: 3/4;
}

.holly-text h3 {
    color: var(--purple-primary);
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
}

.holly-text p {
    font-size: 1.05rem;
    color: var(--text-body);
}

.holly-quote {
    margin-top: 30px;
    padding: 24px 30px;
    background: linear-gradient(135deg, var(--purple-deep) 0%, var(--purple-dark) 100%);
    border-radius: 12px;
    border-left: 4px solid var(--purple-bright);
}

.holly-quote p {
    font-family: var(--font-accent);
    font-style: italic;
    font-size: 1.15rem;
    color: var(--white);
    margin-bottom: 12px;
    line-height: 1.8;
}

.holly-quote cite {
    color: var(--purple-bright);
    font-style: normal;
    font-weight: 600;
    font-size: 0.95rem;
}

.holly-main-photo {
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(30, 10, 60, 0.15);
    width: 100%;
    object-fit: cover;
    max-height: 500px;
}

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

.holly-gallery img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    border-radius: 8px;
    transition: var(--transition);
    cursor: pointer;
}

.holly-gallery img:hover {
    transform: scale(1.03);
    box-shadow: 0 4px 16px rgba(109, 40, 217, 0.2);
}

/* ============================================
   Holly's Law Section
   ============================================ */
.law-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.law-explainer h3 {
    color: var(--purple-primary);
    margin-bottom: 1.5rem;
}

.law-explainer p {
    font-size: 1.05rem;
}

.law-tracker h3 {
    color: var(--purple-primary);
    margin-bottom: 2rem;
}

/* Timeline */
.timeline {
    position: relative;
    padding-left: 40px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 12px;
    top: 8px;
    bottom: 8px;
    width: 2px;
    background-color: var(--purple-muted);
}

.timeline-item {
    position: relative;
    padding-bottom: 30px;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-marker {
    position: absolute;
    left: -34px;
    top: 4px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background-color: var(--white);
    border: 3px solid var(--purple-muted);
    z-index: 1;
}

.timeline-item.completed .timeline-marker {
    background-color: var(--purple-primary);
    border-color: var(--purple-primary);
}

.timeline-item.active .timeline-marker {
    background-color: var(--white);
    border-color: var(--purple-primary);
    box-shadow: 0 0 0 4px rgba(109, 40, 217, 0.2);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 4px rgba(109, 40, 217, 0.2); }
    50% { box-shadow: 0 0 0 8px rgba(109, 40, 217, 0.1); }
}

.timeline-content h4 {
    color: var(--text-dark);
    font-size: 1rem;
    margin-bottom: 6px;
}

.timeline-content p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 0;
}

.timeline-item.completed .timeline-content h4 {
    color: var(--purple-primary);
}

/* ============================================
   Workshops Section
   ============================================ */
.workshops-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.workshop-info h3 {
    color: var(--purple-primary);
    margin-bottom: 1.5rem;
}

.workshop-features {
    margin: 30px 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.feature {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
    color: var(--text-dark);
}

.feature svg {
    width: 20px;
    height: 20px;
    color: var(--purple-primary);
    flex-shrink: 0;
}

.workshop-photo {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(30, 10, 60, 0.15);
    object-fit: cover;
    max-height: 400px;
}

.workshop-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 12px;
}

.workshop-gallery img {
    width: 100%;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
    transition: var(--transition);
}

.workshop-gallery img:hover {
    transform: scale(1.03);
}

.video-embed-placeholder {
    aspect-ratio: 16/9;
    background: linear-gradient(135deg, var(--purple-deep) 0%, var(--purple-dark) 100%);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--white);
    gap: 12px;
    cursor: pointer;
    transition: var(--transition);
    border: 2px dashed rgba(167, 139, 250, 0.3);
}

.video-embed-placeholder:hover {
    border-color: var(--purple-light);
}

.play-icon {
    width: 48px;
    height: 48px;
    opacity: 0.8;
}

.video-embed-placeholder span {
    font-weight: 600;
    font-size: 0.95rem;
}

.video-note {
    font-size: 0.8rem;
    opacity: 0.6;
    margin-bottom: 0;
}

/* ============================================
   Bleed Kits Section
   ============================================ */
.kits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 50px;
}

.kit-card {
    background-color: var(--white);
    padding: 40px 30px;
    border-radius: 12px;
    text-align: center;
    transition: var(--transition);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    border-top: 4px solid var(--purple-primary);
}

.kit-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(109, 40, 217, 0.12);
}

.kit-icon {
    width: 50px;
    height: 50px;
    margin: 0 auto 20px;
    color: var(--purple-primary);
}

.kit-icon svg {
    width: 100%;
    height: 100%;
}

.kit-card h3 {
    color: var(--purple-deep);
    margin-bottom: 12px;
}

.kit-card p {
    color: var(--text-muted);
    margin-bottom: 0;
}

.kits-cta {
    text-align: center;
    padding: 40px;
    background: var(--lavender-light);
    border-radius: 12px;
}

.kits-cta p {
    font-size: 1.15rem;
    color: var(--text-dark);
    margin-bottom: 20px;
}

/* ============================================
   Events Section
   ============================================ */
.events-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.event-card {
    background-color: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    transition: var(--transition);
}

.event-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(109, 40, 217, 0.1);
}

.event-date {
    background: linear-gradient(135deg, var(--purple-primary), var(--purple-light));
    color: var(--white);
    padding: 20px;
    text-align: center;
}

.event-day {
    display: block;
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1;
}

.event-month {
    display: block;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 4px;
    opacity: 0.9;
}

.event-details {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.event-details h3 {
    color: var(--purple-deep);
    font-size: 1.15rem;
    margin-bottom: 10px;
}

.event-details p {
    color: var(--text-muted);
    font-size: 0.95rem;
    flex: 1;
}

.event-link {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--purple-primary);
}

.event-link:hover {
    color: var(--purple-light);
}

/* ============================================
   Video Library Section
   ============================================ */
.videos-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.video-card {
    background-color: var(--lavender-light);
    border-radius: 12px;
    overflow: hidden;
    transition: var(--transition);
}

.video-card:hover {
    box-shadow: 0 8px 30px rgba(109, 40, 217, 0.1);
}

.video-card h4 {
    padding: 16px 20px 4px;
    color: var(--purple-deep);
}

.video-card p {
    padding: 0 20px 20px;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 0;
}

.videos-cta {
    text-align: center;
}

/* ============================================
   Sponsors Section
   ============================================ */
.sponsors-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 50px;
}

.sponsor-card {
    background-color: var(--white);
    border-radius: 12px;
    overflow: hidden;
    transition: var(--transition);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.sponsor-card:hover {
    box-shadow: 0 4px 20px rgba(109, 40, 217, 0.1);
}

.sponsor-placeholder {
    aspect-ratio: 16/9;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--lavender);
    color: var(--purple-muted);
    font-weight: 600;
    font-size: 0.9rem;
    border: 2px dashed var(--purple-muted);
    border-radius: 12px;
}

.sponsors-cta {
    text-align: center;
    padding: 50px 40px;
    background: linear-gradient(135deg, var(--purple-deep) 0%, var(--purple-dark) 100%);
    border-radius: 16px;
    color: var(--white);
}

.sponsors-cta h3 {
    color: var(--white);
    font-size: 1.5rem;
    margin-bottom: 12px;
}

.sponsors-cta p {
    color: rgba(255, 255, 255, 0.8);
    max-width: 600px;
    margin: 0 auto 24px;
}

/* ============================================
   Donations Section
   ============================================ */
.donate {
    background: linear-gradient(180deg, var(--white) 0%, var(--lavender-light) 100%);
}

.donate-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 30px;
}

.donate-card {
    background-color: var(--white);
    padding: 40px 30px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.donate-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(109, 40, 217, 0.12);
}

.donate-icon {
    width: 50px;
    height: 50px;
    color: var(--purple-primary);
    margin-bottom: 20px;
}

.donate-icon svg {
    width: 100%;
    height: 100%;
}

.donate-card h3 {
    color: var(--purple-deep);
    margin-bottom: 12px;
}

.donate-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    flex: 1;
    margin-bottom: 24px;
}

.donate-note {
    display: block;
    margin-top: 12px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.donate-transparency {
    text-align: center;
    padding: 24px 30px;
    background-color: var(--lavender);
    border-radius: 12px;
    font-size: 0.9rem;
    color: var(--text-body);
}

.donate-transparency strong {
    color: var(--purple-deep);
}

/* ============================================
   Contact Section
   ============================================ */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
}

.contact-item {
    display: flex;
    gap: 16px;
    margin-bottom: 28px;
}

.contact-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--purple-primary), var(--purple-light));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-icon svg {
    width: 22px;
    height: 22px;
    color: var(--white);
}

.contact-item h4 {
    color: var(--purple-deep);
    margin-bottom: 4px;
}

.contact-item p {
    color: var(--text-muted);
    margin-bottom: 0;
}

.contact-item a {
    color: var(--text-muted);
}

.contact-item a:hover {
    color: var(--purple-primary);
}

.social-links {
    margin-top: 30px;
}

.social-links h4 {
    color: var(--purple-deep);
    margin-bottom: 12px;
}

.social-icons {
    display: flex;
    gap: 12px;
}

.social-icons a {
    width: 44px;
    height: 44px;
    background-color: var(--purple-deep);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.social-icons a:hover {
    background-color: var(--purple-primary);
    transform: translateY(-2px);
}

.social-icons svg {
    width: 20px;
    height: 20px;
    color: var(--white);
}

.contact-hashtags {
    margin-top: 24px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.hashtag {
    display: inline-block;
    padding: 6px 14px;
    background-color: var(--lavender);
    color: var(--purple-primary);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

/* Contact Form */
.contact-form {
    background-color: var(--white);
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--text-dark);
}

.required {
    color: var(--error);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 14px 18px;
    font-family: var(--font-primary);
    font-size: 1rem;
    border: 2px solid #E5E7EB;
    border-radius: 8px;
    transition: var(--transition);
    background-color: var(--white);
    color: var(--text-dark);
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--purple-primary);
    box-shadow: 0 0 0 3px rgba(109, 40, 217, 0.1);
}

.contact-form textarea {
    resize: vertical;
    min-height: 120px;
}

.form-consent {
    font-size: 0.9rem;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-weight: 400;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    margin-top: 3px;
    accent-color: var(--purple-primary);
}

.checkbox-label span {
    color: var(--text-muted);
}

.checkbox-label a {
    color: var(--purple-primary);
}

/* ============================================
   Footer
   ============================================ */
.footer {
    background-color: var(--purple-deep);
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    height: 80px;
    margin-bottom: 16px;
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.95);
    padding: 8px 12px;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

.footer-links h4,
.footer-contact h4 {
    color: var(--purple-bright);
    margin-bottom: 16px;
    font-size: 1rem;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--purple-bright);
}

.footer-contact p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.footer-contact a {
    color: rgba(255, 255, 255, 0.7);
}

.footer-contact a:hover {
    color: var(--purple-bright);
}

.footer-social {
    display: flex;
    gap: 10px;
    margin-top: 16px;
}

.footer-social a {
    width: 36px;
    height: 36px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.footer-social a:hover {
    background-color: var(--purple-primary);
}

.footer-social svg {
    width: 16px;
    height: 16px;
    color: var(--white);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 24px;
    text-align: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.85rem;
    margin-bottom: 0;
}

.footer-bottom a {
    color: rgba(255, 255, 255, 0.6);
}

.footer-bottom a:hover {
    color: var(--purple-bright);
}

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 1024px) {
    .nav-menu {
        gap: 16px;
    }

    .nav-link {
        font-size: 0.8rem;
    }

    .law-content,
    .workshops-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

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

@media (max-width: 768px) {
    :root {
        --section-padding: 60px;
    }

    h2 {
        font-size: 2rem;
    }

    /* Mobile Navigation */
    .nav-toggle {
        display: flex;
    }

    .nav-logo-icon {
        height: 32px;
    }

    .navbar.scrolled .nav-logo-icon {
        height: 28px;
    }

    .nav-logo-text {
        font-size: 0.85rem;
    }

    .nav-logo {
        max-width: 160px;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        background-color: var(--purple-deep);
        flex-direction: column;
        align-items: flex-start;
        padding: 90px 30px 30px;
        gap: 20px;
        transition: var(--transition);
        overflow-y: auto;
        box-shadow: -4px 0 20px rgba(0, 0, 0, 0.3);
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-cta {
        margin-top: 10px;
        width: 100%;
        text-align: center;
    }

    /* Hero */
    .hero {
        padding-top: 80px;
    }

    .hero-logo {
        max-width: 250px;
        padding: 14px 20px;
    }

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

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .hero-stats {
        gap: 30px;
    }

    .stat-number {
        font-size: 2rem;
    }

    /* About */
    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-image {
        order: -1;
        max-width: 300px;
        margin: 0 auto;
    }

    /* Holly */
    .holly-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .holly-image {
        max-width: 300px;
        margin: 0 auto;
    }

    .holly-gallery {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }

    .holly-gallery img {
        height: 100px;
    }

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

    .workshop-gallery img {
        height: 80px;
    }

    /* Grids */
    .kits-grid,
    .events-grid,
    .donate-content,
    .sponsors-grid,
    .videos-grid {
        grid-template-columns: 1fr;
    }

    /* Contact */
    .contact-content {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }

    .footer-logo {
        margin: 0 auto 16px;
    }

    .footer-social {
        justify-content: center;
    }

    .social-icons {
        justify-content: center;
    }

    .contact-hashtags {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .btn {
        padding: 12px 24px;
        font-size: 0.9rem;
    }

    .hero-logo {
        max-width: 220px;
    }

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

    .contact-form {
        padding: 24px;
    }

    .cookie-content {
        flex-direction: column;
        text-align: center;
    }

    .cookie-content p {
        min-width: auto;
    }
}

/* ============================================
   Print Styles
   ============================================ */
@media print {
    .navbar,
    .cookie-banner,
    .hero-buttons,
    .nav-toggle,
    .social-links,
    .social-icons,
    .footer-social,
    .btn,
    .video-embed-placeholder {
        display: none !important;
    }

    body {
        color: #000;
        background: #fff;
    }

    .section, .section-alt {
        padding: 30px 0;
    }

    a[href]::after {
        content: " (" attr(href) ")";
        font-size: 0.8em;
        color: #666;
    }
}
/* ============================================
   ADDITIONS: News/Law, Events, Map, Newsletter,
   Honeypot & Bleed Kit Application
   ============================================ */

/* ---------- Honeypot field (must be hidden from all users) ---------- */
.hp-field {
    position: absolute;
    left: -9999px;
    top: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    tab-size: 0;
}

/* ---------- Spinner (shared loading state) ---------- */
.spinner {
    width: 36px;
    height: 36px;
    border: 3px solid var(--lavender);
    border-top-color: var(--purple-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    flex-shrink: 0;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.news-loading,
.map-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 48px 20px;
    color: var(--text-muted);
    font-size: 0.95rem;
    grid-column: 1 / -1;
}

/* ============================================
   News & Holly's Law Section
   ============================================ */
.news-law {
    background-color: var(--white);
}

/* Section divider between law tracker and news */
.news-divider {
    text-align: center;
    margin: 80px 0 40px;
    padding-top: 60px;
    border-top: 1px solid var(--lavender);
}

.news-divider h2 {
    color: var(--purple-deep);
}

.news-divider p {
    font-size: 1.125rem;
    color: var(--text-muted);
    max-width: 650px;
    margin: 0 auto;
}

/* Timeline date labels */
.timeline-date {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--purple-primary);
    background-color: var(--lavender);
    padding: 2px 10px;
    border-radius: 20px;
    margin-bottom: 6px;
}

/* News Tabs */
.news-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 36px;
    flex-wrap: wrap;
}

.news-tab {
    padding: 9px 22px;
    font-family: var(--font-primary);
    font-size: 0.875rem;
    font-weight: 600;
    border: 2px solid var(--purple-muted);
    border-radius: 24px;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
}

.news-tab:hover {
    border-color: var(--purple-primary);
    color: var(--purple-primary);
}

.news-tab.active {
    background-color: var(--purple-primary);
    border-color: var(--purple-primary);
    color: var(--white);
}

/* News Grid */
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-bottom: 60px;
}

/* News Card */
.news-card {
    background-color: var(--white);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    border: 1px solid var(--lavender);
    display: flex;
    flex-direction: column;
    transition: var(--transition);
}

.news-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 36px rgba(109, 40, 217, 0.12);
    border-color: var(--purple-muted);
}

.news-card-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

.news-card-image-placeholder {
    width: 100%;
    height: 180px;
    background: linear-gradient(135deg, var(--purple-deep) 0%, var(--purple-dark) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.news-card-image-placeholder svg {
    width: 40px;
    height: 40px;
    color: rgba(255, 255, 255, 0.3);
}

.news-card-body {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.news-card-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.news-card-date {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
}

.news-badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.news-badge-hollys-law {
    background-color: var(--lavender);
    color: var(--purple-primary);
}

.news-badge-news {
    background-color: #ECFDF5;
    color: #065F46;
}

.news-badge-media {
    background-color: #FFF7ED;
    color: #92400E;
}

.news-card h4 {
    font-size: 1rem;
    color: var(--purple-deep);
    margin-bottom: 8px;
    line-height: 1.4;
}

.news-card p {
    font-size: 0.875rem;
    color: var(--text-muted);
    flex: 1;
    margin-bottom: 14px;
    line-height: 1.6;
}

.news-card-link {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--purple-primary);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: var(--transition);
    margin-top: auto;
}

.news-card-link:hover {
    color: var(--purple-light);
    gap: 8px;
}

/* Empty state */
.news-empty,
.events-empty,
.rss-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
    gap: 16px;
}

.news-empty svg,
.events-empty svg {
    width: 48px;
    height: 48px;
    opacity: 0.35;
    color: var(--purple-primary);
}

.news-empty p,
.events-empty p {
    font-size: 1rem;
    margin-bottom: 0;
    max-width: 400px;
}

/* ---------- RSS Media Mentions ---------- */
.media-mentions {
    margin-top: 60px;
    padding: 40px;
    background: linear-gradient(135deg, var(--purple-deep) 0%, var(--purple-dark) 100%);
    border-radius: 16px;
}

.media-mentions-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
    flex-wrap: wrap;
    gap: 12px;
}

.media-mentions-header h3 {
    color: var(--white);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.25rem;
    margin-bottom: 0;
}

.media-mentions-header h3 svg {
    width: 22px;
    height: 22px;
    color: var(--purple-bright);
    flex-shrink: 0;
}

.media-badge {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--purple-bright);
    background-color: rgba(167, 139, 250, 0.15);
    border: 1px solid rgba(167, 139, 250, 0.3);
    padding: 4px 12px;
    border-radius: 20px;
}

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

.rss-card {
    background-color: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 18px 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition: var(--transition);
}

.rss-card:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(167, 139, 250, 0.4);
}

.rss-card-source {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--purple-bright);
}

.rss-card-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--white);
    line-height: 1.4;
}

.rss-card-date {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.5);
}

.rss-card-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 4px;
    flex-wrap: wrap;
}

.rss-card-read {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--purple-bright);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.rss-card-read:hover {
    color: var(--white);
}

.rss-card-approve {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 4px;
    padding: 2px 9px;
    transition: var(--transition);
}

.rss-card-approve:hover {
    border-color: var(--purple-bright);
    color: var(--purple-bright);
}

.rss-empty {
    color: rgba(255, 255, 255, 0.6);
    padding: 40px 20px;
}

.rss-empty p {
    margin-bottom: 0;
}

.rss-empty a {
    color: var(--purple-bright);
}

/* ============================================
   Events Section — Dynamic
   ============================================ */

/* Extended event card for dynamic data */
.event-card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.event-card-image-placeholder {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, var(--purple-deep) 0%, #4C1D95 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.event-card-image-placeholder svg {
    width: 36px;
    height: 36px;
    color: rgba(255, 255, 255, 0.25);
}

.event-location {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.event-location svg {
    width: 14px;
    height: 14px;
    color: var(--purple-primary);
    flex-shrink: 0;
}

.event-price {
    display: inline-block;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--purple-primary);
    background: var(--lavender);
    padding: 2px 10px;
    border-radius: 12px;
    margin-bottom: 14px;
}

.event-ticket-btn {
    display: inline-block;
    margin-top: auto;
    padding: 10px 20px;
    background-color: var(--purple-primary);
    color: var(--white);
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    text-align: center;
    transition: var(--transition);
}

.event-ticket-btn:hover {
    background-color: var(--purple-light);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(109, 40, 217, 0.3);
}

/* Past Events toggle */
.past-events-wrapper {
    margin-top: 50px;
}

.past-events-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    background: none;
    border: 2px solid var(--purple-muted);
    border-radius: 10px;
    padding: 14px 24px;
    font-family: var(--font-primary);
    font-size: 1rem;
    font-weight: 600;
    color: var(--purple-primary);
    cursor: pointer;
    transition: var(--transition);
    width: 100%;
    margin-bottom: 24px;
}

.past-events-toggle:hover {
    border-color: var(--purple-primary);
    background-color: var(--lavender-light);
}

.past-events-toggle[aria-expanded="true"] svg {
    transform: rotate(180deg);
}

.past-events-toggle svg {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.past-events-count {
    font-size: 0.82rem;
    background-color: var(--lavender);
    color: var(--purple-primary);
    padding: 2px 10px;
    border-radius: 20px;
    margin-left: auto;
}

/* Past event card style */
.event-card.past-event {
    opacity: 0.75;
    filter: grayscale(20%);
}

.event-card.past-event:hover {
    opacity: 1;
    filter: grayscale(0%);
}

.event-past-label {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--text-muted);
    padding: 4px 10px;
    background: rgba(107, 114, 128, 0.1);
    border-radius: 4px;
    display: inline-block;
    margin-bottom: 8px;
}

/* ============================================
   Bleed Kit Map
   ============================================ */
.map-section {
    margin-top: 60px;
}

.map-heading {
    color: var(--purple-primary);
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    font-size: 1.4rem;
}

.map-heading svg {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.bleed-kit-map {
    width: 100%;
    height: 420px;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 6px 30px rgba(30, 10, 60, 0.14);
    border: 2px solid var(--lavender);
    background-color: var(--lavender-light);
}

/* Override Leaflet defaults to match brand */
.leaflet-popup-content-wrapper {
    border-radius: 10px !important;
    box-shadow: 0 6px 24px rgba(30, 10, 60, 0.18) !important;
    font-family: var(--font-primary) !important;
    padding: 0 !important;
    overflow: hidden;
}

.leaflet-popup-content {
    margin: 0 !important;
    font-family: var(--font-primary) !important;
    font-size: 0.9rem !important;
    line-height: 1.5 !important;
}

.kit-popup {
    padding: 14px 16px;
    min-width: 180px;
}

.kit-popup-name {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--purple-deep);
    margin-bottom: 4px;
}

.kit-popup-address {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-bottom: 8px;
    line-height: 1.4;
}

.kit-popup-status {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 3px 10px;
    border-radius: 20px;
}

.kit-popup-status.status-active {
    background-color: #ECFDF5;
    color: #065F46;
}

.kit-popup-status.status-maintenance {
    background-color: #FFF7ED;
    color: #92400E;
}

.kit-popup-installed {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 6px;
}

.map-caption {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-top: 12px;
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.map-legend {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 4px;
    vertical-align: middle;
}

.map-legend-active { background-color: #10B981; }
.map-legend-maintenance { background-color: #F59E0B; }

/* Custom Leaflet marker colours */
.kit-marker-active {
    background-color: #10B981;
    border: 3px solid #fff;
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(16, 185, 129, 0.5);
}

.kit-marker-maintenance {
    background-color: #F59E0B;
    border: 3px solid #fff;
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(245, 158, 11, 0.5);
}

.map-loading {
    height: 420px;
    border-radius: 14px;
    border: 2px solid var(--lavender);
    background-color: var(--lavender-light);
}

/* ============================================
   Bleed Kit Application Form
   ============================================ */
.kit-application {
    margin-top: 60px;
    background: var(--lavender-light);
    border-radius: 16px;
    padding: 50px 50px;
    border: 1px solid var(--lavender);
}

.kit-application h3 {
    color: var(--purple-primary);
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.kit-application > p {
    color: var(--text-muted);
    margin-bottom: 30px;
    font-size: 1.05rem;
}

.kit-form input,
.kit-form textarea,
.kit-form select {
    width: 100%;
    padding: 14px 18px;
    font-family: var(--font-primary);
    font-size: 1rem;
    border: 2px solid #E5E7EB;
    border-radius: 8px;
    transition: var(--transition);
    background-color: var(--white);
    color: var(--text-dark);
}

.kit-form input:focus,
.kit-form textarea:focus,
.kit-form select:focus {
    outline: none;
    border-color: var(--purple-primary);
    box-shadow: 0 0 0 3px rgba(109, 40, 217, 0.1);
}

.kit-form textarea {
    resize: vertical;
    min-height: 110px;
}

.w3w-input-group {
    display: flex;
    align-items: center;
}

.w3w-prefix {
    background: var(--purple-primary);
    color: var(--white);
    padding: 14px 12px;
    font-weight: 700;
    font-size: 1rem;
    border-radius: 8px 0 0 8px;
    border: 2px solid var(--purple-primary);
    line-height: 1.4;
}

.w3w-input-group input {
    border-radius: 0 8px 8px 0 !important;
    border-left: none !important;
}

.w3w-help {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 6px;
    margin-bottom: 0;
}

.w3w-help a {
    color: var(--purple-primary);
    font-weight: 600;
}

/* ============================================
   Newsletter Signup
   ============================================ */

/* Hero newsletter */
.newsletter-hero {
    margin-top: 48px;
    padding: 28px 32px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 14px;
    backdrop-filter: blur(4px);
    animation: fadeInUp 1s ease 0.9s both;
}

.newsletter-label {
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.75);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-weight: 600;
    margin-bottom: 14px;
    text-align: center;
}

.newsletter-input-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.newsletter-input-row input[type="email"] {
    flex: 1;
    min-width: 220px;
    padding: 12px 18px;
    font-family: var(--font-primary);
    font-size: 0.95rem;
    border: 2px solid rgba(255, 255, 255, 0.25);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    transition: var(--transition);
}

.newsletter-input-row input[type="email"]::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.newsletter-input-row input[type="email"]:focus {
    outline: none;
    border-color: var(--purple-bright);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 0 3px rgba(167, 139, 250, 0.2);
}

.newsletter-consent {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-top: 12px;
    cursor: pointer;
    font-weight: 400;
}

.newsletter-consent input[type="checkbox"] {
    accent-color: var(--purple-bright);
    margin-top: 3px;
}

.newsletter-consent span {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.5;
}

.newsletter-consent a {
    color: var(--purple-bright);
}

/* Footer newsletter */
.newsletter-footer {
    margin-top: 20px;
}

.newsletter-footer-label {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.6px;
    font-weight: 600;
    margin-bottom: 10px;
}

.newsletter-input-row-footer {
    flex-wrap: nowrap;
    gap: 6px;
}

.newsletter-input-row-footer input[type="email"] {
    flex: 1;
    min-width: 0;
    padding: 10px 14px;
    font-family: var(--font-primary);
    font-size: 0.875rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.08);
    color: var(--white);
    transition: var(--transition);
}

.newsletter-input-row-footer input[type="email"]::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.newsletter-input-row-footer input[type="email"]:focus {
    outline: none;
    border-color: var(--purple-bright);
    box-shadow: 0 0 0 2px rgba(167, 139, 250, 0.2);
}

.newsletter-consent-footer {
    margin-top: 8px;
}

.newsletter-consent-footer span {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.45);
}

.newsletter-consent-footer input[type="checkbox"] {
    accent-color: var(--purple-bright);
}

/* ============================================
   Responsive additions
   ============================================ */
@media (max-width: 1024px) {
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .kit-application {
        padding: 36px 30px;
    }
}

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

    .news-tabs {
        gap: 6px;
    }

    .news-tab {
        padding: 7px 16px;
        font-size: 0.82rem;
    }

    .media-mentions {
        padding: 28px 20px;
    }

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

    .bleed-kit-map {
        height: 300px;
    }

    .map-loading {
        height: 300px;
    }

    .kit-application {
        padding: 28px 20px;
    }

    .newsletter-hero {
        padding: 20px;
    }

    .newsletter-input-row {
        flex-direction: column;
    }

    .newsletter-input-row input[type="email"] {
        min-width: auto;
    }

    .past-events-toggle {
        font-size: 0.9rem;
        padding: 12px 18px;
    }
}

@media (max-width: 480px) {
    .news-divider {
        margin: 50px 0 30px;
        padding-top: 40px;
    }

    .media-mentions-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .newsletter-input-row-footer {
        flex-wrap: wrap;
    }
}

/* ============================================
   Print additions
   ============================================ */
@media print {
    .news-tabs,
    .past-events-toggle,
    .newsletter-hero,
    .newsletter-footer,
    .bleed-kit-map,
    .kit-application,
    .media-mentions {
        display: none !important;
    }
}