/* Main Frontend Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--body-font, 'Open Sans', sans-serif);
    color: var(--text-color, #333);
    line-height: 1.6;
}

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

/* Header Styles */
.site-header {
    background: var(--header-bg, #ffffff);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.site-header.centered {
    padding: 0;
}

.site-header.left {
    padding: 15px 0;
}

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

.header-logo-section {
    text-align: center;
    margin: 0;
    padding: 10px 0 15px 0;
}

.header-logo {
    max-height: 80px;
    width: auto;
}

.site-title {
    font-size: 2.5rem;
    color: var(--primary-color, #981E20);
    margin: 0;
}

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

/* Navigation */
.nav-bar-section {
    width: 100vw;
    margin: 0;
    padding: 0;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    box-sizing: border-box;
}

.nav-bar-section .main-nav {
    background: var(--nav-bg, var(--nav-color, #981E20));
}

.main-nav {
    font-family: var(--nav-font, 'Roboto', sans-serif);
    color: var(--nav-font-color, #FFFFFF);
    margin: 0;
    padding: 10px 0;
    background: none;
}

.nav-menu {
    list-style: none;
    display: flex;
    gap: 45px;
    justify-content: center;
    align-items: center;
    margin: 0;
    padding: 0;
}

.nav-item {
    position: relative;
    margin: 0;
    display: flex;
    align-items: center;
}

/* Dropdown Menu Styles */
.nav-item.has-dropdown {
    position: relative;
}

.nav-item.has-dropdown .nav-link {
    position: relative;
}

.dropdown-arrow {
    font-size: 0.8em;
    transition: transform 0.3s ease;
    margin-left: 5px;
    display: inline-flex;
    align-items: center;
}

.nav-item.has-dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    background: var(--primary-color, #981E20);
    min-width: 200px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border-radius: 4px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1001;
    list-style: none;
    padding: 8px 0;
    margin: 0;
    border: 1px solid var(--secondary-color, #F15622);
}

.nav-item.has-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-menu .nav-item {
    margin: 0;
}

.dropdown-menu .nav-link {
    display: block;
    padding: 8px 16px;
    color: #FFFFFF;
    text-decoration: none;
    transition: background-color 0.3s ease;
    border-radius: 0;
    border-bottom: 1px solid var(--secondary-color, #F15622);
    text-align: center;
}

.dropdown-menu .nav-link:last-child {
    border-bottom: none;
}

.dropdown-menu .nav-link:hover {
    background-color: var(--secondary-color, #F15622);
    color: #FFFFFF;
}

.dropdown-menu .nav-link.active {
    background-color: var(--secondary-color, #F15622);
    color: #FFFFFF;
}

/* Desktop and mobile visibility */
.desktop-only {
    display: inline-block;
}

.mobile-only {
    display: none;
}

/* Mobile dropdown styles */
@media (max-width: 768px) {
    .desktop-only {
        display: none;
    }
    
    .mobile-only {
        display: inline-block;
    }
    
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        left: auto;
        box-shadow: none;
        background: rgba(255,255,255,0.1);
        margin-left: 20px;
        margin-top: 10px;
        border-left: 2px solid rgba(255,255,255,0.3);
        padding-left: 15px;
        text-align: center;
    }
    
    .nav-item.has-dropdown .nav-link {
        justify-content: center;
        text-align: center;
    }
    
    /* Ensure parent menu item stays centered when dropdown is active */
    .nav-item.has-dropdown.active .nav-link {
        justify-content: center;
        text-align: center;
    }
    
    .dropdown-arrow {
        transition: transform 0.3s ease;
    }
    
    .nav-item.has-dropdown.active .dropdown-arrow {
        transform: rotate(180deg);
    }
    
    .nav-item.has-dropdown .dropdown-menu {
        display: none;
    }
    
    .nav-item.has-dropdown.active .dropdown-menu {
        display: block;
    }
    
    .mobile-dropdown-toggle {
        cursor: pointer;
        transition: transform 0.3s ease;
        font-size: 0.9em;
        margin-left: 10px;
        display: flex;
        align-items: center;
    }
    
    .nav-item.has-dropdown.active .mobile-dropdown-toggle {
        /* Remove the rotation - let JavaScript handle the icon change */
    }
}

.nav-link {
    color: var(--nav-font-color, #FFFFFF);
    text-decoration: none;
    font-weight: 500;
    padding: 10px 0;
    transition: color 0.3s;
    position: relative;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    line-height: 1;
}

.nav-link:hover,
.nav-link.active {
    color: var(--nav-hover-color, #F15622);
}

.nav-label {
    color: var(--nav-font-color, #FFFFFF);
    text-decoration: none;
    font-weight: 500;
    padding: 10px 0;
    position: relative;
    text-transform: uppercase;
    cursor: default;
    display: inline-flex;
    align-items: center;
    line-height: 1;
}

.nav-label:hover {
    color: var(--nav-font-color, #FFFFFF);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary-color, #F15622);
    transition: width 0.3s;
}

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

/* Main Content */
.site-main {
    min-height: calc(100vh - 200px);
}

.page-content {
    width: 100%;
}

/* Campaign Slogan Section */
.campaign-slogan {
    padding: 20px 0;
    text-align: center;
}

.campaign-slogan .container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.slogan-text {
    font-size: 2rem;
    font-weight: bold;
    margin: 0;
    text-align: center;
    max-width: 800px;
    line-height: 1.2;
}

@media (max-width: 768px) {
    .slogan-text {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .slogan-text {
        font-size: 1.5rem;
    }
}

/* About Page Image */
.about-page-image {
    padding: 40px 0;
    text-align: center;
    background: #ffffff;
}

.about-page-image img {
    max-height: 300px;
    width: auto;
    max-width: 100%;
    object-fit: cover;
    border-radius: 8px;
    border: 3px solid var(--primary-color, #981E20);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Video Container */
.video-container {
    padding: 40px 0;
    text-align: center;
    background: #ffffff;
}

.video-container video {
    max-width: 800px;
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    display: block;
    margin: 0 auto;
}

/* Endorsements Page */
.endorsements-page {
    min-height: 100vh;
}

.endorsements-hero,
.endorsements-grid-section {
    position: relative;
    background-image: url('/assets/uploads/endorsements/flag.jpg');
    background-size: cover;
    background-position: center;
}

.endorsements-hero {
    background-image: none;
    background-color: var(--primary-color, #981E20);
}

.endorsements-hero-overlay {
    display: none;
}

.endorsements-grid-overlay {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.85);
}

.endorsements-hero-inner,
.endorsements-grid-inner {
    position: relative;
    z-index: 1;
}

.endorsements-hero {
    padding: 3rem 0;
}

.endorsements-title {
    text-align: center;
    color: #fff;
    font-size: clamp(1.5rem, 4vw, 2.25rem);
    font-weight: 700;
    line-height: 1.3;
    margin: 0;
}

.endorsements-grid-section {
    padding: 3rem 0;
    overflow: visible;
}

/* Flexbox first for broad support; Grid used when supported */
.endorsements-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem 1.5rem;
    max-width: 1100px;
    margin: 0 auto;
    justify-content: center;
}

.endorsement-card {
    flex: 0 0 calc(25% - 1.125rem);
    min-width: 160px;
    text-align: center;
}

@supports (display: grid) {
    .endorsements-grid {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
    }
    .endorsement-card {
        flex: none;
        min-width: unset;
    }
}

.endorsement-photo-wrap {
    width: 160px;
    height: 160px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid;
}

.endorsement-photo-wrap.endorsement-border-red {
    border-color: var(--primary-color, #981E20);
}

.endorsement-photo-wrap.endorsement-border-blue {
    border-color: #1e3a5f;
}

.endorsement-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.endorsement-name {
    font-weight: 700;
    color: var(--primary-color, #981E20);
    margin: 0 0 0.25rem;
    font-size: 1rem;
}

.endorsement-title {
    font-size: 0.9rem;
    color: #555;
    margin: 0;
    line-height: 1.3;
}

@media (max-width: 992px) {
    .endorsement-card {
        flex: 0 0 calc(33.333% - 1rem);
    }
    @supports (display: grid) {
        .endorsements-grid {
            grid-template-columns: repeat(3, 1fr);
        }
    }
}

@media (max-width: 768px) {
    .endorsements-grid {
        gap: 1.5rem 1rem;
    }
    .endorsement-card {
        flex: 0 0 calc(50% - 0.5rem);
    }
    @supports (display: grid) {
        .endorsements-grid {
            grid-template-columns: repeat(2, 1fr);
        }
    }
    .endorsement-photo-wrap {
        width: 130px;
        height: 130px;
    }
}

@media (max-width: 480px) {
    .endorsement-card {
        flex: 0 0 100%;
    }
    @supports (display: grid) {
        .endorsements-grid {
            grid-template-columns: 1fr;
            gap: 1.5rem;
        }
    }
    .endorsement-photo-wrap {
        width: 140px;
        height: 140px;
    }
}

/* Endorsements PC list section */
.endorsements-pc-section {
    background-color: #1e3a5f;
    color: #fff;
    padding: 3rem 0;
}

.endorsements-pc-heading {
    text-align: center;
    font-size: clamp(1.25rem, 3vw, 1.5rem);
    font-weight: 700;
    margin: 0 0 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.endorsements-pc-intro {
    text-align: center;
    font-size: 1rem;
    margin: 0 0 2rem;
    opacity: 0.95;
}

.endorsements-pc-list {
    list-style: none;
    margin: 0 auto;
    padding: 0;
    max-width: 700px;
    text-align: center;
}

.endorsements-pc-list li {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 1rem;
    line-height: 1.4;
    text-align: center;
}

.endorsements-pc-list li:last-child {
    border-bottom: none;
}

.endorsements-pc-list li strong {
    color: #fff;
}

.endorsements-pc-list .endorsements-pc-subhead {
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    background: rgba(255, 255, 255, 0.1);
    border-bottom-color: rgba(255, 255, 255, 0.3);
}

/* About Section */
.about-section {
    padding: 60px 0;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-image {
    text-align: center;
}

.about-image img {
    max-height: 400px;
    width: auto;
    max-width: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.about-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.about-content h2 {
    font-size: 2.5rem;
    margin: 0;
    color: var(--primary-color, #981E20);
}

.about-content p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin: 0;
}

.about-content .btn {
    align-self: flex-start;
    padding: 12px 24px;
    font-size: 1.1rem;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s;
    display: inline-block;
}

.about-content .btn-primary {
    background-color: var(--primary-color, #981E20);
    color: white;
}

.about-content .btn-primary:hover {
    background-color: var(--secondary-color, #F15622);
    transform: translateY(-2px);
}

/* About section alignment options */
.about-content.text-left {
    text-align: left;
    align-items: flex-start;
}

.about-content.text-center {
    text-align: center;
    align-items: center;
}

.about-content.text-right {
    text-align: right;
    align-items: flex-end;
}

.about-content.text-center .btn {
    align-self: center;
}

.about-content.text-right .btn {
    align-self: flex-end;
}

/* Hero responsive height - let image determine height */
@media (max-width: 768px) {
    .hero-section {
        max-height: 70vw;
    }
}

@media (max-width: 480px) {
    .hero-section {
        max-height: 80vw;
    }
}

/* Responsive design for about section */
@media (max-width: 768px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .about-content h2 {
        font-size: 2rem;
    }
    
    .about-content p {
        font-size: 1rem;
    }
    .about-content,
    .about-content.text-left,
    .about-content.text-right {
        text-align: center !important;
        align-items: center !important;
    }
    .about-content .btn {
        align-self: center !important;
    }
}

@media (max-width: 480px) {
    .about-section {
        padding: 40px 0;
    }
    
    .about-grid {
        gap: 30px;
    }
    
    .about-content h2 {
        font-size: 1.8rem;
    }
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color, #981E20) 0%, var(--secondary-color, #F15622) 100%);
    color: white;
    padding: 0;
    text-align: center;
    max-height: var(--hero-height, 400px);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.hero-image {
    width: 100%;
    height: auto;
    object-fit: contain;
    object-position: center;
    z-index: 1;
    display: block;
}

.hero-overlay {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.4);
}

.hero-overlay h1 {
    font-size: 3.5rem;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    color: white;
}

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

.hero-tagline {
    font-size: 1.5rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

/* Page Headers */
.page-header {
    background: var(--primary-color, #981E20);
    color: white;
    padding: 60px 0;
    text-align: center;
}

.page-header h1 {
    font-size: 2.5rem;
    margin: 0;
}

/* Main Content */
.main-content {
    padding: 0 0 60px 0;
}

/* Ensure empty main-content sections take up no space */
.main-content:empty {
    padding: 0;
    margin: 0;
    display: none;
}

.main-content h1,
.main-content h2,
.main-content h3,
.main-content h4,
.main-content h5 {
    margin-bottom: 20px;
    color: var(--primary-color, #981E20);
}

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

.main-content h2 {
    font-size: 2rem;
}

.main-content h3 {
    font-size: 1.5rem;
}

.main-content h4 {
    font-size: 1.25rem;
}

.main-content h5 {
    font-size: 1.1rem;
}

.main-content p {
    margin-bottom: 0;
    font-size: 1.1rem;
}

.main-content ul,
.main-content ol {
    margin-bottom: 20px;
    padding-left: 30px;
}

.main-content li {
    margin-bottom: 10px;
}

.main-content a {
    color: var(--secondary-color, #F15622);
    text-decoration: none;
    transition: color 0.3s;
}

.main-content a:hover {
    color: var(--primary-color, #981E20);
    text-decoration: underline;
}

.main-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
}

.main-content blockquote {
    border-left: 4px solid var(--primary-color, #981E20);
    padding-left: 20px;
    margin: 20px 0;
    font-style: italic;
    background: #f8f9fa;
    padding: 20px;
    border-radius: 0 8px 8px 0;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    font-size: 1.1rem;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    font-weight: 500;
}

.btn-primary {
    background-color: var(--primary-color, #981E20) !important;
    color: white !important;
}

.btn-primary:hover {
    background-color: var(--secondary-color, #F15622) !important;
    transform: translateY(-2px);
    color: white !important;
    text-decoration: none !important;
}

.btn-secondary {
    background-color: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background-color: #5a6268;
    transform: translateY(-2px);
    color: white;
    text-decoration: none;
}

/* Footer */
.site-footer {
    background: var(--footer-bg, #333);
    color: white;
    padding: 20px 0 20px;
    text-align: center;
}

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

.social-icons {
    margin-bottom: 20px;
}

.social-icon {
    display: inline-block;
    color: var(--footer-social-icon-color, #FFFFFF);
    margin: 0 10px;
    transition: all 0.3s;
    text-decoration: none;
    font-size: 2rem;
}

.social-icon:hover {
    color: var(--footer-social-icon-hover-color, #2F9B67);
    transform: translateY(-2px);
}

.footer-logo {
    margin-bottom: 20px;
}

.footer-logo img {
    max-height: 60px;
    width: auto;
}

.footer-disclaimer {
    border-top: 1px solid #555;
    padding-top: 20px;
    font-size: 0.9rem;
    line-height: 1.5;
}

.committee-name {
    margin-bottom: 10px;
    color: #fff;
}

.disclaimer-text {
    color: #ccc;
    max-width: 800px;
    margin: 0 auto;
}

.footer-links {
    margin-top: 15px;
    text-align: center;
}

.footer-link {
    color: #ccc;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: #fff;
    text-decoration: underline;
}

.footer-link-separator {
    color: #ccc;
    margin: 0 10px;
    font-size: 0.9rem;
}

.page-description-section {
    padding: 40px 0;
    background-color: #f8f9fa;
}

.page-description {
    padding-top: 40px;
    margin-bottom: 1.5em;
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    font-size: 1.1rem;
    line-height: 1.6;
    color: #666;
}

.volunteer-form-content {
    margin-top: 30px;
}

.volunteer-form-content iframe {
    border: none;
    width: 100%;
    max-width: 100%;
}

.volunteer-form-content script {
    display: block;
}

.donate-form-content {
    margin-top: 30px;
}

.donate-form-content iframe {
    border: none;
    width: 100%;
    max-width: 100%;
}

.donate-form-content script {
    display: block;
}

/* Issues Page Styling */
.issues-page .main-content {
    padding: 40px 0;
}

.inline-issues {
    margin-top: 40px;
}

.issue-item {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

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

.issue-item h3 {
    color: var(--primary-color, #981E20);
    margin-bottom: 20px;
    font-size: 1.5rem;
    border-bottom: 2px solid var(--secondary-color, #F15622);
    padding-bottom: 10px;
}

.issue-content {
    line-height: 1.6;
}

.issue-content h1,
.issue-content h2,
.issue-content h3,
.issue-content h4,
.issue-content h5 {
    margin-top: 20px;
    margin-bottom: 15px;
}

.issue-content p {
    margin-bottom: 15px;
}

.sub-page-issues {
    margin-top: 40px;
}

.issues-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.issue-card {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.issue-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.issue-card h3 {
    color: var(--primary-color, #981E20);
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.issue-excerpt {
    color: #666;
    margin-bottom: 20px;
    line-height: 1.5;
}

.issue-card .btn {
    margin-top: 15px;
}

/* Responsive Design */
@media (max-width: 768px) {
    /* Centered header mobile nav */
    .site-header.centered .header-logo-section {
        width: 100%;
        text-align: center;
        margin-bottom: 0;
        padding: 10px 0 0 0;
    }
    .site-header.centered .nav-bar-section {
        display: flex;
        flex-direction: row;
        justify-content: center;
        align-items: center;
        width: 100%;
        min-height: 56px;
        height: auto;
        position: relative;
        background: var(--nav-bg, #130F55);
        margin: 0;
        padding: 0;
    }
    .site-header.centered .nav-bar-section .nav-menu {
        display: none;
    }
    .site-header.centered .mobile-menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        background: none;
        border: none;
        font-size: 2rem;
        color: var(--nav-font-color, #FFFFFF);
        height: 56px;
        width: 56px;
        margin: 0 auto;
        position: static;
        z-index: 1201;
        cursor: pointer;
    }
    /* Left header mobile nav (duplicate of centered) */
    .site-header.left .header-content {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
        min-height: unset;
        height: auto;
        position: relative;
        margin: 0;
        padding: 0;
    }
    .site-header.left .header-logo {
        margin: 0 auto 0 auto;
        display: block;
    }
    .site-header.left .header-content .nav-menu {
        display: none;
    }
    .site-header.left .mobile-menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        background: none;
        border: none;
        font-size: 2rem;
        color: var(--nav-bg, #130F55) !important;
        height: 56px;
        width: 56px;
        margin: 0 auto;
        position: static;
        z-index: 1201;
        cursor: pointer;
    }
    .site-header.left .mobile-offcanvas-menu {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: var(--nav-bg, #130F55);
        z-index: 2000;
        transition: transform 0.3s ease;
    }
    .site-header.left .mobile-offcanvas-menu:not(.active) {
        display: none;
    }
    .site-header.left .mobile-offcanvas-menu .nav-menu {
        flex-direction: column;
        gap: 2rem;
        align-items: center;
        justify-content: center;
    }
    .site-header.left .mobile-menu-close {
        background: none;
        border: none;
        color: var(--nav-font-color, #FFFFFF);
        font-size: 2rem;
        position: absolute;
        top: 20px;
        right: 30px;
        z-index: 2200;
        cursor: pointer;
    }
    /* Hide hamburger on desktop for both headers */
    .site-header.centered .mobile-menu-toggle,
    .site-header.left .mobile-menu-toggle {
        display: flex;
    }
    .hero-content h1 {
        font-size: 2.5rem;
    }
    .hero-tagline {
        font-size: 1.2rem;
    }
    .page-header h1 {
        font-size: 2rem;
    }
    .main-content h1 {
        font-size: 2rem;
    }
    .main-content h2 {
        font-size: 1.5rem;
    }
    .social-icon {
        margin: 0 5px;
        font-size: 1.5rem;
    }
    .site-header.centered .mobile-offcanvas-menu .nav-link,
    .site-header.left .mobile-offcanvas-menu .nav-link {
        font-size: 2rem !important;
    }
}
/* Hide hamburger on desktop for both headers */
@media (min-width: 769px) {
    .site-header.centered .mobile-menu-toggle,
    .site-header.left .mobile-menu-toggle {
        display: none !important;
    }
    .site-header.centered .mobile-offcanvas-menu,
    .site-header.left .mobile-offcanvas-menu {
        display: none !important;
    }
}
@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-tagline {
        font-size: 1rem;
    }
    
    .page-header {
        padding: 40px 0;
    }
    
    .main-content {
        padding: 40px 0;
    }
}

/* Utility Classes */
.text-center {
    text-align: center;
}

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

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

.mb-20 {
    margin-bottom: 20px;
}

.mb-30 {
    margin-bottom: 30px;
}

.mt-20 {
    margin-top: 20px;
}

.mt-30 {
    margin-top: 30px;
}

.p-20 {
    padding: 20px;
}

.p-30 {
    padding: 30px;
}

.bg-primary {
    background: var(--primary-color, #981E20);
    color: white;
}

.bg-secondary {
    background: var(--secondary-color, #F15622);
    color: white;
}

.bg-light {
    background: #f8f9fa;
}

.rounded {
    border-radius: 8px;
}

.shadow {
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* Vote Info Page - d45yes-style layout */
.vote-info-page .main-content {
    padding: 40px 0;
}

.vote-info-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    padding: 2rem;
    margin: 2rem 0;
    overflow: hidden;
}

.vote-info-card-row1 {
    width: 100%;
    padding-bottom: 2rem;
}

.vote-info-card-row1 + .vote-info-card-row2 {
    border-top: 1px solid #eee;
    padding-top: 2rem;
}

.vote-info-card-row2 {
    width: 100%;
}

.vote-info-countdown-wrapper {
    text-align: center;
}

.vote-info-card .vote-info-countdown-wrapper {
    margin: 0;
}

.vote-info-countdown-heading {
    font-size: 1.25rem;
    font-weight: bold;
    color: #333;
    margin: 0 0 1.5rem;
    padding-bottom: 1rem;
}

.vote-info-countdown {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.vote-info-countdown .countdown-segment {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 70px;
    padding: 0.75rem 1rem;
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 4px;
    background: var(--primary-color, #981E20);
}

.vote-info-countdown .countdown-value {
    font-size: 1.75rem;
    font-weight: bold;
    color: #fff;
    line-height: 1.2;
}

.vote-info-countdown .countdown-unit-label {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.9);
    text-transform: uppercase;
    margin-top: 0.25rem;
}

.vote-info-countdown-expired {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color, #981E20);
}

.vote-info-two-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 40px;
    align-items: start;
}

.vote-info-column-title {
    font-size: 1.25rem;
    font-weight: bold;
    color: #333;
    margin: 0 0 1.25rem;
}

.vote-info-action-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.vote-info-action-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 18px;
    background: #f0f0f0;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
    transition: background-color 0.2s ease;
}

.vote-info-action-item:hover {
    background: #e5e5e5;
    color: var(--primary-color, #981E20);
}

.vote-info-action-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: 50%;
    background: var(--primary-color, #981E20);
    color: #fff;
    font-size: 1.1rem;
}

.vote-info-action-text {
    font-weight: 500;
    flex: 1;
}

.vote-info-dates-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.vote-info-date-item {
    padding: 0.5rem 0;
    border-bottom: 1px solid #eee;
    line-height: 1.5;
}

.vote-info-date-item:last-child {
    border-bottom: none;
}

.vote-info-date {
    font-weight: bold;
    color: var(--primary-color, #981E20);
}

.vote-info-date-desc {
    color: #333;
}

.vote-info-page .vote-section.district-map {
    margin: 2rem 0 3rem;
}

.vote-info-page .vote-section.district-map h3,
.vote-info-page .vote-section.voting-locations h3 {
    color: var(--primary-color, #981E20);
    margin-bottom: 1rem;
    text-align: center;
}

.vote-ev-map-wrap {
    position: relative;
    text-align: center;
    margin: 1.5rem 0;
    max-width: 100%;
    min-height: 400px;
}

.vote-ev-map-loading {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    background: #f0f4f8;
    border-radius: 8px;
    min-height: 400px;
    z-index: 1;
    transition: opacity 0.3s ease;
}

.vote-ev-map-wrap.loaded .vote-ev-map-loading {
    pointer-events: none;
    opacity: 0;
}

.vote-ev-map-loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #e0e0e0;
    border-top-color: var(--primary-color, #981E20);
    border-radius: 50%;
    animation: vote-ev-map-spin 0.8s linear infinite;
}

@keyframes vote-ev-map-spin {
    to { transform: rotate(360deg); }
}

.vote-ev-map-loading-text {
    font-weight: 600;
    color: #333;
}

.vote-ev-map-embed {
    min-height: 400px;
}

.vote-ev-map-wrap iframe {
    max-width: 100%;
    width: 800px;
    height: 600px;
    border: 0;
    border-radius: 8px;
}

@media (max-width: 900px) {
    .vote-ev-map-wrap iframe {
        width: 100%;
        height: 500px;
    }
}

@media (max-width: 768px) {
    .vote-info-two-columns {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .vote-info-countdown {
        gap: 0.35rem;
    }
    .vote-info-countdown .countdown-segment {
        min-width: 60px;
        padding: 0.5rem 0.65rem;
    }
    .vote-info-countdown .countdown-value {
        font-size: 1.4rem;
    }
    .vote-ev-map-wrap iframe {
        height: 450px;
    }
}

/* Hamburger and Off-Canvas Mobile Menu for Centered Header */
.site-header.centered .mobile-menu-toggle {
    display: none;
}
.site-header.centered .mobile-offcanvas-menu {
    display: none;
}
@media (max-width: 768px) {
    .site-header.centered .nav-bar-section {
        display: flex;
        justify-content: center;
        align-items: center;
        height: 56px;
        position: relative;
    }
    .site-header.centered .nav-bar-section .nav-menu {
        display: none;
    }
    .site-header.centered .mobile-menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        background: none;
        border: none;
        font-size: 2rem;
        color: var(--nav-font-color, #FFFFFF);
        height: 100%;
        width: 56px;
        margin: 0;
        position: static;
        z-index: 1201;
        cursor: pointer;
    }
    .site-header.centered .mobile-offcanvas-menu {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: var(--nav-bg, #130F55);
        z-index: 2000;
        transition: transform 0.3s ease;
    }
    .site-header.centered .mobile-offcanvas-menu:not(.active) {
        display: none;
    }
    .site-header.centered .mobile-offcanvas-menu .nav-menu {
        flex-direction: column;
        gap: 2rem;
        align-items: center;
        justify-content: center;
    }
    
    /* Ensure mobile menu items stay centered when dropdown is active */
    .site-header.centered .mobile-offcanvas-menu .nav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
    }
    
    .site-header.centered .mobile-offcanvas-menu .nav-item .nav-link {
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
        width: 100%;
    }
    .site-header.centered .mobile-menu-close {
        background: none;
        border: none;
        color: var(--nav-font-color, #FFFFFF);
        font-size: 2rem;
        position: absolute;
        top: 20px;
        right: 30px;
        z-index: 2200;
        cursor: pointer;
    }
}

.opt-out-content {
    font-size: 10px;
    text-align: center;
    font-style: italic;
}

/* 404 Error Page Styles */
.error-page .error-code {
    font-size: 6rem;
    font-weight: bold;
    color: var(--primary-color, #981E20);
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

.error-page .error-actions {
    margin-top: 2rem;
}

.error-page .btn {
    display: inline-block;
    padding: 12px 24px;
    font-size: 1.1rem;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s ease;
    margin: 0 0.5rem 0.5rem 0;
    border: none;
    cursor: pointer;
}

.error-page .btn-primary {
    background-color: var(--primary-color, #981E20);
    color: white;
}

.error-page .btn-primary:hover {
    background-color: var(--secondary-color, #F15622);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.error-page .btn-secondary {
    background-color: #6c757d;
    color: white;
}

.error-page .btn-secondary:hover {
    background-color: #5a6268;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.error-page .btn-outline-primary {
    background-color: transparent;
    color: var(--primary-color, #981E20);
    border: 2px solid var(--primary-color, #981E20);
}

.error-page .btn-outline-primary:hover {
    background-color: var(--primary-color, #981E20);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.error-page .error-help {
    margin-top: 3rem;
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 8px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    border: 1px solid #e9ecef;
}

@media (max-width: 768px) {
    .error-page .error-code {
        font-size: 4rem;
    }
    
    .error-page .btn {
        display: block;
        width: 100%;
        margin: 0.5rem 0;
        text-align: center;
    }
}

/* Privacy Policy Page Styles */
.privacy-policy-page .privacy-policy-content {
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
    padding-top: 40px;
}

.privacy-policy-page .privacy-policy-content h2 {
    color: var(--primary-color, #981E20);
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-size: 1.5rem;
    border-bottom: 2px solid var(--primary-color, #981E20);
    padding-bottom: 0.5rem;
}

.privacy-policy-page .privacy-policy-content h2:first-child {
    margin-top: 0;
}

.privacy-policy-page .privacy-policy-content p {
    margin-bottom: 1rem;
    text-align: justify;
}

.privacy-policy-page .privacy-policy-content ul {
    margin-bottom: 1rem;
    padding-left: 2rem;
}

.privacy-policy-page .privacy-policy-content li {
    margin-bottom: 0.5rem;
}

.privacy-policy-page .privacy-policy-content p:last-child {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color, #981E20);
    margin-top: 2rem;
}

@media (max-width: 768px) {
    .privacy-policy-page .privacy-policy-content {
        padding: 0 1rem;
    }
    
    .privacy-policy-page .privacy-policy-content h2 {
        font-size: 1.3rem;
    }
    
    .privacy-policy-page .privacy-policy-content ul {
        padding-left: 1.5rem;
    }
} 