/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Font Awesome icon fallback for mobile */
.fa::before,
.fas::before,
.fab::before {
    display: inline-block;
    font-style: normal;
    font-variant: normal;
    text-rendering: auto;
    -webkit-font-smoothing: antialiased;
}

/* Icon fallbacks using Unicode symbols */
@supports not (font-family: "Font Awesome 6 Free") {
    .fa-phone::before { content: "☎ "; }
    .fa-envelope::before { content: "✉ "; }
    .fa-external-link-alt::before { content: "↗ "; }
    .fa-map-marker-alt::before { content: "📍 "; }
    .fa-vote-yea::before { content: "✓ "; }
    .fa-user-check::before { content: "✓ "; }
    .fa-calendar-alt::before { content: "📅 "; }
    .fa-bullseye::before { content: "◎ "; }
    .fa-landmark::before { content: "🏛 "; }
    .fa-flag-usa::before { content: "🇺🇸 "; }
    .fa-building::before { content: "🏢 "; }
    .fa-home::before { content: "🏠 "; }
    .fa-chevron-up::before { content: "↑"; }
    .fa-bars::before { content: "☰"; }
    .fa-times::before { content: "✕"; }
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #2c3e50;
    background-color: #ffffff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    background: white;
    color: #1e40af;
    padding: 1rem 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border-bottom: 3px solid #3b82f6;
}

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

.logo-section {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo {
    height: 50px;
    width: auto;
    border-radius: 5px;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

nav a {
    color: #1e40af;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

nav a:hover {
    color: #3b82f6;
}

/* Hero Section */
.hero {
    background: 
        linear-gradient(135deg, rgba(30, 64, 175, 0.85) 0%, rgba(59, 130, 246, 0.85) 50%, rgba(96, 165, 250, 0.85) 100%),
        url('white-plains-rally.jpg') center/cover no-repeat;
    color: white;
    padding: 150px 0 100px;
    text-align: center;
    margin-top: 70px;
    position: relative;
}

.hero-content h1 {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-content h2 {
    font-size: 3rem;
    font-weight: 600;
    margin-bottom: 2rem;
    color: #dbeafe;
}

.hero-content p {
    font-size: 1.3rem;
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.8;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    text-align: center;
}

.btn.primary {
    background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%);
    color: #1e293b;
    box-shadow: 0 4px 15px rgba(96, 165, 250, 0.3);
    font-weight: 600;
}

.btn.primary:hover {
    background: linear-gradient(135deg, #93c5fd 0%, #60a5fa 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(96, 165, 250, 0.4);
}

.btn.secondary {
    background: white;
    color: #1e40af;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.btn.secondary:hover {
    background: #f8fafc;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

/* Section Styling */
section {
    padding: 80px 0;
}

section:nth-child(even) {
    background-color: #f8fafc;
}

h2 {
    font-size: 2.5rem;
    color: #1e40af;
    margin-bottom: 3rem;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

h2 i {
    color: #3b82f6;
}

/* Mission Section */
.mission-content {
    max-width: 1100px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.8;
}

.mission-with-image {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 50px;
    align-items: start;
    margin-bottom: 3rem;
}

.mission-text p {
    margin-bottom: 2rem;
}

.mission-image {
    position: sticky;
    top: 120px;
}

.rally-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    transition: transform 0.3s ease;
}

.rally-image:hover {
    transform: scale(1.02);
}


.highlight-box {
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    color: white;
    padding: 30px;
    border-radius: 15px;
    margin-top: 3rem;
    text-align: center;
    box-shadow: 0 8px 25px rgba(30, 64, 175, 0.2);
}

.highlight-box p {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
}

/* Officials Section */
.officials {
    background-color: #f8fafc;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    min-height: 500px;
    color: #2c3e50;  /* Ensure text color is set */
    transform: none !important;
}

.officials-grid {
    display: block;
}

.official-category {
    background: white;
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    border: 2px solid #3b82f6;
    margin-bottom: 40px;
    min-height: 200px;
    display: block;
    visibility: visible;
    opacity: 1;
}

.official-category h3 {
    color: #1e40af;
    font-size: 1.8rem;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 12px;
    visibility: visible;
    opacity: 1;
}

.official-group {
    margin-bottom: 40px;
    display: block;
    visibility: visible;
    opacity: 1;
}

.official-group h4 {
    color: #3b82f6;
    font-size: 1.4rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e5e7eb;
    display: block;
    visibility: visible;
    opacity: 1;
}

.official-card {
    background: #f8fafc;
    padding: 25px;
    margin-bottom: 20px;
    border-radius: 10px;
    border: 2px solid #60a5fa;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    min-height: 80px;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.official-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}

.official-card h5 {
    color: #1e40af;
    font-size: 1.2rem;
    margin-bottom: 15px;
    font-weight: 600;
    display: block;
    visibility: visible;
    opacity: 1;
}

.official-card p {
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #2c3e50;
    visibility: visible;
    opacity: 1;
}

.official-card i,
.icon {
    color: #3b82f6;
    width: 16px;
    display: inline-block;
    visibility: visible;
    opacity: 1;
    font-style: normal;
    margin-right: 4px;
}

/* Ensure all text in officials section is visible */
.officials * {
    color: inherit;
}

.officials h2,
.officials h3,
.officials h4,
.officials h5,
.officials h6,
.officials p,
.officials strong,
.officials span {
    color: #2c3e50;
}

.officials h2 {
    color: #1e40af;
}

.officials h3 {
    color: #1e40af;
}

.officials h4 {
    color: #3b82f6;
}

.officials h5 {
    color: #1e40af;
}

.city-council {
    background: #eff6ff;
    padding: 25px;
    border-radius: 10px;
    margin-top: 20px;
}

.city-council h6 {
    color: #1e40af;
    font-size: 1.1rem;
    margin-bottom: 20px;
    font-weight: 600;
}

.council-member {
    margin-bottom: 15px;
    padding: 15px;
    background: white;
    border-radius: 8px;
    border-left: 3px solid #93c5fd;
}

.council-member strong {
    color: #1e40af;
    display: block;
    margin-bottom: 5px;
}

.council-member p {
    margin-bottom: 3px;
    font-size: 0.9rem;
}

.resources {
    margin-top: 25px;
    padding: 20px;
    background: #f0f9ff;
    border-radius: 8px;
}

.resources a {
    color: #1e40af;
    text-decoration: none;
}

.resources a:hover {
    color: #3b82f6;
    text-decoration: underline;
}

/* Voter Resources Section */
.voter-resources {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
}

.resources-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
}

.resource-card {
    background: white;
    padding: 40px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.resource-card:hover {
    transform: translateY(-5px);
}

.resource-card h3 {
    color: #1e40af;
    font-size: 1.5rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.resource-card p {
    margin-bottom: 25px;
    font-size: 1.1rem;
    line-height: 1.6;
}

/* Contact Section */
.contact {
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    color: white;
    text-align: center;
}

.contact h2 {
    color: white;
}

.contact h2 i {
    color: #dbeafe;
}

.contact-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.contact-info {
    margin: 3rem 0;
}

.contact-link {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%);
    color: white;
    padding: 20px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(96, 165, 250, 0.3);
}

.contact-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.tagline {
    font-size: 1.3rem;
    font-weight: 600;
    margin-top: 3rem;
    font-style: italic;
    color: #dbeafe;
}

/* Footer */
footer {
    background: #0f172a;
    color: white;
    padding: 40px 0;
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.footer-logos {
    display: flex;
    gap: 20px;
    align-items: center;
}

.footer-logo {
    height: 40px;
    width: auto;
    border-radius: 5px;
    opacity: 0.8;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    header .container {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
    
    .hero {
        padding: 120px 0 80px;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-content h2 {
        font-size: 2rem;
    }
    
    .hero-content p {
        font-size: 1.1rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    h2 {
        font-size: 2rem;
        flex-direction: column;
        gap: 10px;
    }
    
    .official-category {
        padding: 25px;
    }
    
    .resources-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .resource-card {
        padding: 30px 20px;
    }
    
    .footer-content {
        gap: 15px;
    }
    
    .footer-logos {
        gap: 15px;
    }
    
    section {
        padding: 60px 0;
    }
}

@media (max-width: 480px) {
    .logo {
        height: 40px;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content h2 {
        font-size: 1.5rem;
    }
    
    .btn {
        padding: 12px 24px;
        font-size: 1rem;
    }
    
    .official-card {
        padding: 20px;
    }
    
    .mission-content {
        font-size: 1rem;
    }
    
    .mission-with-image {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .mission-image {
        position: static;
    }
    
    .rally-image {
        height: 300px;
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Link styling */
a {
    color: #3b82f6;
    transition: color 0.3s ease;
}

a:hover {
    color: #1e40af;
}

/* Navigation active state */
nav a.active {
    color: #fbbf24;
    font-weight: 600;
}

/* Mobile menu styles */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #1e40af;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 10px;
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }
    
    nav ul {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 4px 10px rgba(0,0,0,0.1);
        border-top: 1px solid #e5e7eb;
    }
    
    nav.mobile-menu-open ul {
        display: flex;
    }
}

/* Back to top button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

/* Contact Section with Form */
.contact-options {
    margin: 3rem 0;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.contact-option {
    padding: 2rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Signup Form Styles */
.signup-form {
    max-width: 600px;
    margin: 2rem auto;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #e2e8f0;
    font-weight: 500;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: #fff;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group select:focus,
.form-group textarea:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: #60a5fa;
    outline: none;
    box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.2);
}

.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.form-group select {
    cursor: pointer;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-group small {
    display: block;
    margin-top: 0.25rem;
    color: #94a3b8;
    font-size: 0.875rem;
}

.submit-btn {
    width: 100%;
    padding: 1rem;
    font-size: 1.1rem;
    margin-top: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%);
    color: #1e293b;
    border: none;
    font-weight: 600;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(96, 165, 250, 0.3);
    background: linear-gradient(135deg, #93c5fd 0%, #60a5fa 100%);
}

/* Mobile adjustments for form */
@media (max-width: 768px) {
    .contact-option {
        padding: 1.5rem;
    }

    .signup-form {
        margin: 1rem auto;
    }
}

/* Focus states for accessibility */
.btn:focus,
nav a:focus,
a:focus,
.mobile-menu-toggle:focus,
.back-to-top:focus,
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: 2px solid #60a5fa;
    outline-offset: 2px;
}

/* Print styles */
@media print {
    header {
        position: static;
    }
    
    .hero {
        margin-top: 0;
    }
    
    .back-to-top,
    .mobile-menu-toggle {
        display: none;
    }
}