/* Shane Hindman Campaign - Custom Styles */
/* Enhanced with professional typography, animations, and accessibility */

/* ============================================
   CSS Custom Properties (Light & Dark Mode)
   ============================================ */
:root {
    /* Brand Colors */
    --primary-blue: #0d47a1;
    --primary-blue-dark: #002171;
    --primary-blue-light: #5472d3;
    --primary-red: #c62828;
    --primary-red-dark: #8e0000;
    --primary-red-light: #ff5f52;
    --accent-gold: #ffc107;
    --accent-gold-dark: #c79100;

    /* Text Colors */
    --text-dark: #1a1a2e;
    --text-body: #374151;
    --text-muted: #6b7280;
    --text-light: #9ca3af;

    /* Background Colors */
    --bg-white: #ffffff;
    --bg-light: #f8fafc;
    --bg-cream: #fefdfb;
    --bg-gray: #f1f5f9;

    /* Shadows */
    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);

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

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 300ms ease;
    --transition-slow: 500ms ease;

    /* Typography */
    --font-heading: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --line-height-tight: 1.25;
    --line-height-normal: 1.5;
    --line-height-relaxed: 1.625;

    /* Spacing */
    --section-padding: 6rem;
    --section-padding-mobile: 4rem;
}

/* Dark Mode Variables */
[data-theme="dark"] {
    --text-dark: #f1f5f9;
    --text-body: #e2e8f0;
    --text-muted: #94a3b8;
    --text-light: #64748b;
    --bg-white: #1e293b;
    --bg-light: #0f172a;
    --bg-cream: #1e293b;
    --bg-gray: #334155;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 10px 15px rgba(0, 0, 0, 0.4);
}

/* ============================================
   Base Styles & Typography
   ============================================ */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 400;
    color: var(--text-body);
    line-height: var(--line-height-relaxed);
    background-color: var(--bg-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Headings */
h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: var(--line-height-tight);
    color: var(--text-dark);
    margin-bottom: 0.5em;
}

h1, .h1 { font-size: clamp(2.25rem, 5vw, 3.5rem); font-weight: 800; }
h2, .h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h3, .h3 { font-size: clamp(1.375rem, 3vw, 1.75rem); }
h4, .h4 { font-size: clamp(1.125rem, 2.5vw, 1.375rem); }
h5, .h5 { font-size: 1.125rem; }
h6, .h6 { font-size: 1rem; }

/* Lead Text */
.lead {
    font-size: 1.25rem;
    font-weight: 400;
    line-height: var(--line-height-relaxed);
    color: var(--text-muted);
}

/* Section Titles */
.section-title {
    position: relative;
    display: inline-block;
    margin-bottom: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.025em;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-red), var(--primary-blue));
    border-radius: var(--radius-full);
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 1.125rem;
    max-width: 640px;
    margin: 0 auto 2.5rem;
    line-height: var(--line-height-relaxed);
}

/* ============================================
   Accessibility
   ============================================ */
.skip-link {
    position: absolute;
    top: -100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-blue);
    color: var(--bg-white);
    padding: 12px 24px;
    border-radius: var(--radius);
    z-index: 10000;
    text-decoration: none;
    font-weight: 600;
    transition: top var(--transition-fast);
}

.skip-link:focus {
    top: 10px;
    outline: 3px solid var(--accent-gold);
    outline-offset: 2px;
}

/* Focus Styles */
*:focus-visible {
    outline: 3px solid var(--primary-blue);
    outline-offset: 2px;
}

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

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

    html {
        scroll-behavior: auto;
    }
}

/* ============================================
   Navigation
   ============================================ */
.navbar-campaign {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-dark) 100%);
    box-shadow: var(--shadow-md);
    padding: 0.75rem 0;
    transition: all var(--transition-base);
}

.navbar-campaign.scrolled {
    padding: 0.5rem 0;
    box-shadow: var(--shadow-lg);
}

.navbar-campaign .navbar-brand {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.025em;
}

.navbar-campaign .nav-link {
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 0.9375rem;
    padding: 0.5rem 1rem;
    transition: all var(--transition-fast);
    position: relative;
}

.navbar-campaign .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--accent-gold);
    transition: all var(--transition-base);
    transform: translateX(-50%);
}

.navbar-campaign .nav-link:hover::after,
.navbar-campaign .nav-link.active::after {
    width: 70%;
}

.navbar-campaign .nav-link:hover,
.navbar-campaign .nav-link.active {
    color: var(--accent-gold) !important;
}

/* Dropdown Toggle - Use caret with spacing */
.navbar-campaign .dropdown-toggle {
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.5rem;
}

.navbar-campaign .dropdown-toggle::after {
    margin-left: 0.5rem !important;
    vertical-align: middle !important;
    border-top: 0.35em solid !important;
    border-right: 0.35em solid transparent !important;
    border-bottom: 0 !important;
    border-left: 0.35em solid transparent !important;
}

.navbar-campaign .nav-link::before {
    display: none !important;
}

/* Donate Button */
.btn-donate {
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--primary-red-dark) 100%);
    border: none;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.9375rem;
    padding: 0.625rem 1.5rem;
    border-radius: var(--radius-full);
    transition: all var(--transition-base);
    box-shadow: var(--shadow-sm);
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.5rem;
    color: #ffffff !important;
}

.btn-donate:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: var(--shadow-md);
    background: linear-gradient(135deg, var(--primary-red-light) 0%, var(--primary-red) 100%);
}

.btn-donate:active {
    transform: translateY(0) scale(1);
}

/* Pulsing Donate Button (optional animation) */
.btn-donate-pulse {
    animation: pulse-glow 2s infinite;
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(198, 40, 40, 0.4); }
    50% { box-shadow: 0 0 0 10px rgba(198, 40, 40, 0); }
}

/* ============================================
   Hero Section
   ============================================ */
.hero-section {
    position: relative;
    background: linear-gradient(135deg, rgba(13, 71, 161, 0.92) 0%, rgba(0, 33, 113, 0.95) 100%),
                url('../images/profile-image.jpg') center/cover no-repeat;
    min-height: 85vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

/* Decorative Elements */
.hero-section::after {
    content: '';
    position: absolute;
    bottom: -20%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(198, 40, 40, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

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

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(2.75rem, 6vw, 4.5rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    text-shadow: 2px 4px 8px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-family: var(--font-heading);
    font-size: clamp(1.125rem, 2.5vw, 1.5rem);
    font-weight: 600;
    letter-spacing: 0.025em;
}

.hero-tagline {
    font-size: clamp(1rem, 1.5vw, 1.25rem);
    font-weight: 400;
    opacity: 0.9;
    max-width: 500px;
}

.hero-image {
    max-height: 480px;
    border: 6px solid var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    transition: all var(--transition-base);
    object-fit: cover;
}

.hero-image:hover {
    transform: scale(1.03) rotate(1deg);
    box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.35);
}

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

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

.section-cream {
    background-color: var(--bg-cream);
}

.section-gray {
    background-color: var(--bg-gray);
}

.section-blue {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-dark) 100%);
    color: var(--bg-white);
}

.section-red {
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--primary-red-dark) 100%);
    color: var(--bg-white);
}

/* Section Dividers */
.section-divider {
    height: 4px;
    background: linear-gradient(90deg, var(--primary-blue), var(--primary-red), var(--primary-blue));
    border: none;
    margin: 0;
}

/* ============================================
   Cards
   ============================================ */
.card-campaign {
    background: var(--bg-white);
    border: none;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
    overflow: hidden;
}

.card-campaign:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.card-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--primary-red-dark) 100%);
    color: var(--bg-white);
    font-size: 2rem;
    margin: 0 auto 1.5rem;
    box-shadow: var(--shadow);
    transition: all var(--transition-base);
}

.card-campaign:hover .card-icon {
    transform: scale(1.1) rotate(5deg);
}

/* Issue Cards */
.issue-card {
    background: var(--bg-white);
    border-radius: var(--radius-md);
    padding: 2rem;
    height: 100%;
    border-left: 5px solid var(--primary-red);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
}

.issue-card:hover {
    border-left-color: var(--primary-blue);
    box-shadow: var(--shadow-md);
    transform: translateX(5px);
}

.issue-icon {
    font-size: 2.75rem;
    background: linear-gradient(135deg, var(--primary-red), var(--primary-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    display: inline-block;
}

/* ============================================
   Timeline
   ============================================ */
.timeline {
    position: relative;
    padding: 2rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--primary-blue), var(--primary-red));
    border-radius: var(--radius-full);
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
    opacity: 0;
    transform: translateY(30px);
}

.timeline-item.animate-in {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.6s ease;
}

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

.timeline-content {
    background: var(--bg-white);
    padding: 1.75rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow);
    position: relative;
    transition: all var(--transition-base);
}

.timeline-content:hover {
    box-shadow: var(--shadow-lg);
}

.timeline-year {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--primary-red-dark) 100%);
    color: #ffffff !important;
    padding: 0.375rem 1.25rem;
    border-radius: var(--radius-full);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.875rem;
    margin-bottom: 0.75rem;
    box-shadow: var(--shadow-sm);
}

/* Timeline on dark backgrounds - KEEP TEXT DARK since cards have white background */
.section-blue .timeline-content h4,
.section-blue .timeline-content .h6,
.section-blue .timeline-content h3,
.section-blue .timeline-content .fw-bold {
    color: var(--text-dark) !important;
}

.section-blue .timeline-content p,
.section-blue .timeline-content .text-secondary,
.section-blue .timeline-content .small,
.section-blue .timeline-content small {
    color: var(--text-muted) !important;
}

.timeline-dot {
    position: absolute;
    width: 24px;
    height: 24px;
    background: var(--bg-white);
    border: 4px solid var(--primary-blue);
    border-radius: var(--radius-full);
    box-shadow: var(--shadow);
    z-index: 1;
}

.timeline-icon {
    position: absolute;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-dark) 100%);
    border: 4px solid var(--bg-white);
    border-radius: var(--radius-full);
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bg-white);
    font-size: 1.25rem;
    z-index: 1;
}

@media (min-width: 768px) {
    .timeline-item:nth-child(odd) .timeline-content {
        margin-right: 55%;
        text-align: right;
    }

    .timeline-item:nth-child(even) .timeline-content {
        margin-left: 55%;
    }

    .timeline-item .timeline-dot,
    .timeline-item .timeline-icon {
        left: 50%;
        transform: translateX(-50%);
    }
}

@media (max-width: 767px) {
    .timeline::before {
        left: 24px;
    }

    .timeline-content {
        margin-left: 60px;
        text-align: left !important;
    }

    .timeline-dot {
        left: 12px;
    }

    .timeline-icon {
        left: 0;
    }
}

/* ============================================
   Endorsement Cards
   ============================================ */
.endorsement-card {
    background: var(--bg-white);
    border-radius: var(--radius-md);
    padding: 2rem;
    height: 100%;
    position: relative;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
    border-top: 4px solid var(--primary-blue);
}

.endorsement-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
}

.endorsement-card::before {
    content: '\201C';
    position: absolute;
    top: 15px;
    left: 20px;
    font-size: 5rem;
    color: var(--primary-red);
    opacity: 0.1;
    font-family: Georgia, serif;
    line-height: 1;
}

.endorser-image {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-full);
    object-fit: cover;
    border: 3px solid var(--primary-blue);
    box-shadow: var(--shadow-sm);
}

/* ============================================
   Statistics / Impact Numbers
   ============================================ */
.stat-card {
    text-align: center;
    padding: 2rem;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-red));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Count Up Animation Placeholder */
.count-up {
    opacity: 0;
    transition: opacity 0.5s ease;
}

.count-up.visible {
    opacity: 1;
}

/* ============================================
   Voting Info Card
   ============================================ */
.voting-card {
    background: var(--bg-white);
    border: 2px solid var(--primary-blue);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.voting-card-header {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-dark) 100%);
    color: var(--bg-white);
    padding: 1.5rem 2rem;
}

.voting-date-box {
    background: var(--bg-white);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
    border: 2px solid transparent;
}

.voting-date-box:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-blue);
}

.voting-date-number {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary-red);
    line-height: 1;
}

/* ============================================
   Event Cards
   ============================================ */
.event-card {
    background: var(--bg-white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
}

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

.event-date-badge {
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--primary-red-dark) 100%);
    color: var(--bg-white);
    padding: 1.25rem 1rem;
    text-align: center;
    min-width: 85px;
}

.event-date-day {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
    line-height: 1;
}

.event-date-month {
    font-size: 0.8rem;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.05em;
}

/* ============================================
   Forms
   ============================================ */
.form-control-campaign {
    border: 2px solid #e2e8f0;
    border-radius: var(--radius);
    padding: 0.875rem 1rem;
    font-size: 1rem;
    transition: all var(--transition-fast);
    background-color: var(--bg-white);
}

.form-control-campaign:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 4px rgba(13, 71, 161, 0.1);
    outline: none;
}

.form-control-campaign::placeholder {
    color: var(--text-light);
}

.form-label-campaign {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9375rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    display: block;
}

/* Form Validation States */
.form-control-campaign.is-valid {
    border-color: #22c55e;
}

.form-control-campaign.is-invalid {
    border-color: var(--primary-red);
}

.form-feedback {
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.form-feedback.valid {
    color: #22c55e;
}

.form-feedback.invalid {
    color: var(--primary-red);
}

/* ============================================
   Buttons
   ============================================ */
.btn-primary-campaign {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-dark) 100%);
    border: none;
    padding: 0.875rem 2rem;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1rem;
    border-radius: var(--radius);
    transition: all var(--transition-base);
    box-shadow: var(--shadow-sm);
    color: #ffffff !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-primary-campaign:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    background: linear-gradient(135deg, var(--primary-blue-light) 0%, var(--primary-blue) 100%);
    color: var(--bg-white);
}

.btn-primary-campaign:active {
    transform: translateY(0);
}

.btn-secondary-campaign {
    background: var(--bg-white);
    color: var(--primary-blue);
    border: 2px solid var(--primary-blue);
    padding: 0.875rem 2rem;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1rem;
    border-radius: var(--radius);
    transition: all var(--transition-base);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-secondary-campaign:hover {
    background: var(--primary-blue);
    color: var(--bg-white);
    transform: translateY(-2px);
}

/* Button with Icon */
.btn i,
.btn .bi {
    transition: transform var(--transition-fast);
}

.btn:hover i,
.btn:hover .bi {
    transform: translateX(3px);
}

/* ============================================
   CTA Section
   ============================================ */
.cta-section {
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -15%;
    width: 500px;
    height: 500px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-full);
    animation: float 20s infinite ease-in-out;
}

.cta-section::after {
    content: '';
    position: absolute;
    bottom: -40%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-full);
    animation: float 25s infinite ease-in-out reverse;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(30px, 30px); }
}

/* ============================================
   Footer
   ============================================ */
.footer-campaign {
    background: linear-gradient(180deg, #1a1a2e 0%, #16213e 100%);
}

.footer-heading {
    font-family: var(--font-heading);
    color: var(--bg-white);
    font-weight: 700;
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.75rem;
}

.footer-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-red), var(--accent-gold));
    border-radius: var(--radius-full);
}

.footer-link {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all var(--transition-fast);
    display: inline-flex;
    align-items: center;
    padding: 0.375rem 0;
    font-size: 0.9375rem;
}

.footer-link:hover {
    color: var(--bg-white);
    transform: translateX(5px);
}

.footer-link::before {
    content: '';
    width: 0;
    height: 2px;
    background: var(--primary-red);
    margin-right: 0;
    transition: all var(--transition-fast);
}

.footer-link:hover::before {
    width: 10px;
    margin-right: 8px;
}

.footer-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.1);
    color: var(--bg-white);
    font-size: 1.25rem;
    transition: all var(--transition-base);
    margin-right: 0.5rem;
}

.footer-social-link:hover {
    background: var(--primary-red);
    color: var(--bg-white);
    transform: translateY(-4px) scale(1.1);
    box-shadow: 0 10px 20px rgba(198, 40, 40, 0.3);
}

/* ============================================
   Progress Bar
   ============================================ */
.progress-campaign {
    height: 28px;
    border-radius: var(--radius-full);
    background: #e2e8f0;
    overflow: hidden;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.progress-bar-campaign {
    background: linear-gradient(90deg, var(--primary-blue), var(--primary-red));
    border-radius: var(--radius-full);
    transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.875rem;
    color: var(--bg-white);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* ============================================
   Gallery
   ============================================ */
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-md);
    cursor: pointer;
}

.gallery-item img {
    transition: all var(--transition-slow);
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(13, 71, 161, 0.85), rgba(198, 40, 40, 0.85));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all var(--transition-base);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay i {
    transform: scale(0.5);
    transition: transform var(--transition-base);
}

.gallery-item:hover .gallery-overlay i {
    transform: scale(1);
}

/* ============================================
   FAQ Accordion
   ============================================ */
.accordion-campaign .accordion-item {
    border: none;
    margin-bottom: 1rem;
    border-radius: var(--radius-md) !important;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.accordion-campaign .accordion-button {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.0625rem;
    color: var(--text-dark);
    background: var(--bg-white);
    padding: 1.25rem 1.5rem;
    border-radius: var(--radius-md);
}

.accordion-campaign .accordion-button:not(.collapsed) {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-dark) 100%);
    color: var(--bg-white);
    box-shadow: none;
}

.accordion-campaign .accordion-button:focus {
    box-shadow: 0 0 0 3px rgba(13, 71, 161, 0.2);
}

.accordion-campaign .accordion-body {
    padding: 1.5rem;
    background: var(--bg-white);
}

/* ============================================
   Back to Top Button
   ============================================ */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-dark) 100%);
    color: #ffffff !important;
    border: none;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all var(--transition-base);
    box-shadow: var(--shadow-lg);
    z-index: 1000;
}

.back-to-top i,
.back-to-top .bi {
    color: #ffffff !important;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--primary-red-dark) 100%);
    transform: translateY(-5px);
}

/* ============================================
   Mobile Sticky Action Bar
   ============================================ */
.mobile-action-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-white);
    border-top: 1px solid #e2e8f0;
    padding: 0.75rem 1rem;
    display: none;
    justify-content: space-around;
    align-items: center;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    gap: 0.5rem;
}

.mobile-action-bar .action-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    border-radius: var(--radius);
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 600;
    transition: all var(--transition-fast);
}

.mobile-action-bar .action-btn i {
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
}

.mobile-action-bar .action-btn-donate {
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--primary-red-dark) 100%);
    color: var(--bg-white);
}

.mobile-action-bar .action-btn-volunteer {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-dark) 100%);
    color: var(--bg-white);
}

.mobile-action-bar .action-btn-vote {
    background: var(--bg-gray);
    color: var(--text-dark);
}

@media (max-width: 767px) {
    .mobile-action-bar {
        display: flex;
    }

    body {
        padding-bottom: 80px;
    }

    .back-to-top {
        bottom: 100px;
        right: 20px;
        width: 44px;
        height: 44px;
    }
}

/* ============================================
   Scroll Progress Indicator
   ============================================ */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-blue), var(--primary-red));
    z-index: 10001;
    transition: width 0.1s linear;
}

/* ============================================
   Dark Mode Toggle
   ============================================ */
.theme-toggle {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: var(--bg-white);
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-fast);
    margin-left: 1rem;
}

.theme-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

.theme-toggle .bi-sun {
    display: none;
}

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

[data-theme="dark"] .theme-toggle .bi-sun {
    display: inline;
}

/* ============================================
   Animations
   ============================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Animation Classes */
.animate-fade-in-up {
    animation: fadeInUp 0.7s ease forwards;
}

.animate-fade-in-down {
    animation: fadeInDown 0.7s ease forwards;
}

.animate-fade-in {
    animation: fadeIn 0.7s ease forwards;
}

.animate-slide-in-left {
    animation: slideInLeft 0.7s ease forwards;
}

.animate-slide-in-right {
    animation: slideInRight 0.7s ease forwards;
}

.animate-scale-in {
    animation: scaleIn 0.7s ease forwards;
}

/* Animation Delays */
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
.delay-5 { animation-delay: 0.5s; }
.delay-6 { animation-delay: 0.6s; }

/* Scroll Animation Triggers */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   Utility Classes
   ============================================ */
.text-primary-campaign {
    color: var(--primary-blue) !important;
}

.text-red-campaign {
    color: var(--primary-red) !important;
}

.text-gradient {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-red));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bg-primary-campaign {
    background-color: var(--primary-blue) !important;
}

.bg-red-campaign {
    background-color: var(--primary-red) !important;
}

.border-gradient {
    border: 3px solid transparent;
    background: linear-gradient(var(--bg-white), var(--bg-white)) padding-box,
                linear-gradient(135deg, var(--primary-blue), var(--primary-red)) border-box;
}

/* ============================================
   Responsive Adjustments
   ============================================ */
@media (max-width: 1199px) {
    :root {
        --section-padding: 5rem;
    }
}

@media (max-width: 991px) {
    :root {
        --section-padding: 4rem;
    }

    .hero-section {
        min-height: auto;
        padding: 5rem 0;
    }
}

@media (max-width: 767px) {
    :root {
        --section-padding: 3.5rem;
    }

    .hero-image {
        max-height: 320px;
        margin-top: 2.5rem;
    }

    .card-icon {
        width: 64px;
        height: 64px;
        font-size: 1.5rem;
    }

    .section-title::after {
        width: 60px;
    }
}

@media (max-width: 575px) {
    :root {
        --section-padding: 3rem;
    }

    .hero-section {
        padding: 4rem 0;
    }

    .btn-primary-campaign,
    .btn-secondary-campaign {
        padding: 0.75rem 1.5rem;
        font-size: 0.9375rem;
    }
}

/* ============================================
   Print Styles
   ============================================ */
@media print {
    .navbar-campaign,
    .cta-section,
    .footer-campaign,
    .back-to-top,
    .mobile-action-bar,
    .scroll-progress,
    .share-sidebar,
    .countdown-container {
        display: none !important;
    }

    .hero-section {
        background: none !important;
        color: #000 !important;
        min-height: auto;
        padding: 2rem 0;
    }

    .section-padding {
        padding: 2rem 0;
    }

    body {
        padding-bottom: 0 !important;
    }
}

/* ============================================
   Card Icon Colors (Ensure White)
   ============================================ */
.card-icon i,
.card-icon .bi {
    color: #ffffff !important;
}

/* ============================================
   GLOBAL TEXT FIXES FOR DARK BACKGROUNDS
   ============================================ */

/* Section Blue Text Overrides - ALL text should be white */
.section-blue .section-title,
.section-blue .section-subtitle,
.section-blue h1,
.section-blue h2,
.section-blue h3,
.section-blue h4,
.section-blue h5,
.section-blue h6,
.section-blue .h1,
.section-blue .h2,
.section-blue .h3,
.section-blue .h4,
.section-blue .h5,
.section-blue .h6 {
    color: #ffffff !important;
}

.section-blue .text-primary-campaign,
.section-blue .text-primary,
.section-blue .fw-bold {
    color: #ffffff !important;
}

.section-blue .text-secondary,
.section-blue p,
.section-blue .mb-0,
.section-blue .mb-3 {
    color: rgba(255, 255, 255, 0.85) !important;
}

.section-blue .small,
.section-blue small {
    color: rgba(255, 255, 255, 0.7) !important;
}

/* Section Red Text Overrides */
.section-red .section-title,
.section-red .section-subtitle,
.section-red h2,
.section-red h3,
.section-red h4 {
    color: #ffffff !important;
}

.section-red p {
    color: rgba(255, 255, 255, 0.85) !important;
}

/* Issue Cards on Light Background - ensure dark text */
.section-light .issue-card h4,
.section-light .issue-card h3 {
    color: var(--text-dark) !important;
}

/* Footer Styles - Force White */
.footer-campaign h4,
.footer-campaign h5,
.footer-campaign .footer-heading {
    color: #ffffff !important;
}

.footer-campaign .footer-link {
    color: rgba(255, 255, 255, 0.7) !important;
}

.footer-campaign .footer-link:hover {
    color: #ffffff !important;
}

/* Footer Social Icons - White */
.footer-social-link {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.1) !important;
}

.footer-social-link:hover {
    color: #ffffff !important;
    background: var(--primary-red) !important;
}

.footer-social-link i,
.footer-social-link .bi {
    color: #ffffff !important;
}

/* Remove all blue text - force white on dark */
.text-primary-campaign {
    color: var(--primary-blue) !important;
}

/* On dark sections, override to white */
.hero-section .text-primary-campaign,
.section-blue .text-primary-campaign,
.section-red .text-primary-campaign,
.footer-campaign .text-primary-campaign {
    color: #ffffff !important;
}

/* Force blockquote text white on dark */
.section-light .card-campaign blockquote {
    color: var(--text-body) !important;
}

.section-light .card-campaign p {
    color: var(--text-body) !important;
}

/* ============================================
   Early Voting Countdown Timer
   ============================================ */
.countdown-container {
    background: linear-gradient(135deg, rgba(198, 40, 40, 0.95) 0%, rgba(142, 0, 0, 0.95) 100%);
    border-radius: var(--radius-lg);
    padding: 1.5rem 2rem;
    margin: 2rem 0;
    text-align: center;
    box-shadow: 0 10px 40px rgba(198, 40, 40, 0.4);
    animation: pulse-glow 2s ease-in-out infinite;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.countdown-container h3 {
    color: #ffffff;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.125rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem;
}

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

.countdown-item {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-md);
    padding: 1rem 1.25rem;
    min-width: 80px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.countdown-number {
    display: block;
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.countdown-label {
    display: block;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 0.5rem;
    font-weight: 600;
}

.countdown-complete {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    animation: pulse 1s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* Countdown Mobile */
@media (max-width: 576px) {
    .countdown-container {
        padding: 1.25rem 1rem;
        margin: 1.5rem 0;
    }

    .countdown-container h3 {
        font-size: 0.875rem;
    }

    .countdown-item {
        min-width: 65px;
        padding: 0.75rem 0.5rem;
    }

    .countdown-number {
        font-size: 1.75rem;
    }

    .countdown-label {
        font-size: 0.625rem;
    }
}

/* ============================================
   Floating Share Sidebar
   ============================================ */
.share-sidebar {
    position: fixed;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 0;
    background: var(--bg-white);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-left: none;
}

.share-sidebar-label {
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--primary-red-dark) 100%);
    color: #ffffff !important;
    font-family: var(--font-heading);
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0.75rem 0.5rem;
    text-align: center;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    transform: rotate(180deg);
    display: flex;
    align-items: center;
    justify-content: center;
}

.share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border: none;
    background: transparent;
    color: #ffffff;
    font-size: 1.25rem;
    cursor: pointer;
    transition: all var(--transition-fast);
    text-decoration: none;
}

.share-btn:hover {
    transform: scale(1.1);
    color: #ffffff;
}

.share-btn.facebook {
    background: #1877f2;
}

.share-btn.facebook:hover {
    background: #166fe5;
}

.share-btn.twitter {
    background: #000000;
}

.share-btn.twitter:hover {
    background: #333333;
}

.share-btn.whatsapp {
    background: #25d366;
}

.share-btn.whatsapp:hover {
    background: #20bd5a;
}

.share-btn.email {
    background: #6b7280;
}

.share-btn.email:hover {
    background: #4b5563;
}

.share-btn.copy-link {
    background: var(--accent-gold);
    color: #1a1a2e;
}

.share-btn.copy-link:hover {
    background: var(--accent-gold-dark);
}

.share-btn.copy-link.copied {
    background: #22c55e;
    color: #ffffff;
}

/* Share Sidebar Mobile - Horizontal at bottom */
@media (max-width: 991px) {
    .share-sidebar {
        position: fixed;
        left: 50%;
        top: auto;
        bottom: 80px; /* Above mobile action bar */
        transform: translateX(-50%);
        flex-direction: row;
        border-radius: var(--radius-full);
        border: 1px solid rgba(0, 0, 0, 0.1);
        padding: 0.25rem;
        gap: 0.25rem;
    }

    .share-sidebar-label {
        writing-mode: horizontal-tb;
        transform: none;
        padding: 0 0.75rem;
        display: flex;
        align-items: center;
        font-size: 0.625rem;
        border-radius: var(--radius-full);
    }

    .share-btn {
        width: 44px;
        height: 44px;
        border-radius: var(--radius-full);
        font-size: 1.125rem;
    }
}

/* Hide share sidebar on very small screens when scrolled to bottom */
@media (max-width: 576px) {
    .share-sidebar {
        bottom: 75px;
    }

    .share-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .share-sidebar-label {
        padding: 0 0.5rem;
        font-size: 0.5rem;
    }
}
