/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
}

:root {
    /* New Modern Color Scheme */
    --primary-red: #DC2626;
    --primary-red-dark: #B91C1C;
    --primary-red-light: #EF4444;
    --secondary-navy: #1E293B;
    --secondary-navy-dark: #0F172A;
    --accent-gold: #F59E0B;
    --accent-gold-light: #FBBF24;
    --white: #FFFFFF;
    --gray-50: #F8FAFC;
    --gray-100: #F1F5F9;
    --gray-200: #E2E8F0;
    --gray-300: #CBD5E1;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1E293B;
    --gray-900: #0F172A;
    --text-primary: #1E293B;
    --text-secondary: #475569;
    --text-muted: #64748B;
}

body {
    font-family: 'Arial', 'Helvetica', sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--white);
    overflow-x: hidden;
    overflow-y: auto;
    width: 100%;
    margin: 0;
    padding: 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    box-sizing: border-box;
}

/* Header */
header {
    background: var(--white);
    color: var(--text-primary);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    margin-right: 0px;
    padding: 0;
    min-height: 240px;
}


.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    transition: gap 0.3s ease;
    position: relative;
    width: 100%;
    min-height: 240px;
    margin: 0;
    padding: 1rem 2rem;
    box-sizing: border-box;
    pointer-events: auto;
}

.header-logo {
    position: absolute;
    right: 2rem !important;
    left: auto !important;
    top: 50% !important;
    transform: translateY(-50%);
    transition: width 0.3s ease, height 0.3s ease, transform 0.3s ease;
    padding: 0 !important;
    margin-right: 0 !important;
    display: flex;
    align-items: center;
    z-index: 1;
}

.header-logo .logo-container {
    position: relative;
    display: flex;
    align-items: center;
    transition: opacity 0.3s ease, transform 0.3s ease;
    margin: 0 !important;
    padding: 0 !important;
}

.header-logo .logo-main {
    width: 220px;
    height: 220px;
    object-fit: contain;
    transition: width 0.3s ease, height 0.3s ease;
    position: relative;
    z-index: 1;
    display: block;
    margin: 0 !important;
    padding: 0 !important;
    vertical-align: middle;
    align-self: center;
}

.header-logo .logo-headshot {
    width: 270px;
    height: 270px;
    object-fit: contain;
    transition: opacity 0.3s ease, transform 0.3s ease, width 0.3s ease, height 0.3s ease;
    opacity: 1;
    position: relative;
    margin: -20px 0 0 -85px !important;
    padding: 0 !important;
    z-index: 2;
    align-self: center;
    display: block;
    vertical-align: middle;
}




/* Hamburger Menu */
.hamburger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 35px;
    height: 35px;
    min-width: 35px;
    min-height: 35px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    margin: 0;
    z-index: 1001;
    position: relative;
    align-items: center;
    pointer-events: auto;
    -webkit-tap-highlight-color: transparent;
}

.hamburger-menu span {
    width: 100%;
    height: 3px;
    background-color: var(--primary-red);
    border-radius: 3px;
    transition: all 0.3s ease;
    display: block;
}

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

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

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

.header-nav {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    justify-content: flex-start;
    flex: 0 0 auto;
    margin: 0 !important;
    padding: 0 !important;
    position: relative;
}

/* Override base nav styles on mobile when menu is open */
@media (max-width: 768px) {
    .header-nav.mobile-menu-open {
        display: flex !important;
        position: fixed !important;
    }
}

/* Menu close button */
.menu-close {
    display: none;
    background: transparent;
    border: none;
    color: var(--primary-red);
    font-size: 1.3rem;
    font-weight: bold;
    cursor: pointer;
    padding: 0;
    margin: 0;
    width: auto;
    height: auto;
    line-height: 1.3rem;
    transition: color 0.3s;
}

.menu-close:hover {
    color: var(--primary-red-dark);
}

.header-donate {
    display: none;
}

.nav-link {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    text-transform: uppercase;
    transition: color 0.3s, transform 0.3s;
    padding: 0.5rem 0;
    position: relative;
    align-self: flex-end;
    margin-bottom: 0;
}

.nav-link:hover {
    color: var(--accent-gold);
    transform: translateY(-2px);
}

.nav-link.active {
    color: #B91C1C;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--accent-gold);
}


.btn-donate-header {
    background-color: var(--accent-gold);
    color: var(--secondary-navy);
    padding: 1rem 2.5rem;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.2rem;
    border-radius: 5px;
    display: inline-block;
    transition: background-color 0.3s, padding 0.3s ease, font-size 0.3s ease;
    text-transform: uppercase;
    align-self: flex-end;
    margin-bottom: 0;
}


.btn-donate-header:hover {
    background-color: #fde409;
    opacity: 0.9;
}

/* Mobile Menu Styles */
@media (max-width: 768px) {
    .hamburger-menu {
        display: flex !important;
        position: absolute;
        top: 50%;
        left: 1rem !important;
        right: auto !important;
        transform: translateY(-50%);
        z-index: 10002 !important;
        pointer-events: auto !important;
        cursor: pointer !important;
        width: 44px !important;
        height: 44px !important;
        min-width: 44px !important;
        min-height: 44px !important;
        padding: 10px !important;
        margin: 0 !important;
        background: transparent !important;
        border: none !important;
        -webkit-tap-highlight-color: rgba(220, 38, 38, 0.2);
        touch-action: manipulation;
        -webkit-touch-callout: none;
        user-select: none;
    }
    
    .hamburger-menu:active {
        background: rgba(220, 38, 38, 0.1) !important;
    }
    
    .header-logo {
        position: absolute !important;
        right: 5rem !important;
        left: auto !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        margin-right: 0 !important;
        z-index: 1 !important;
        pointer-events: none !important;
    }
    
    .header-logo a {
        pointer-events: auto !important;
    }
    
    .header-content {
        flex-wrap: wrap;
        min-height: 120px;
        padding: 1rem 20px;
        padding-right: 20px; /* Reset padding on mobile */
    }
    
    /* Mobile Menu - Complete Rebuild - Opens from LEFT */
    .header-nav {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: auto !important;
        width: 0 !important;
        max-width: 320px !important;
        height: auto !important;
        min-height: auto !important;
        background-color: #ffffff !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        justify-content: flex-start !important;
        padding: 0 !important;
        gap: 0 !important;
        z-index: 10003 !important;
        overflow: hidden !important;
        box-shadow: 4px 0 20px rgba(0, 0, 0, 0.15) !important;
        transition: width 0.3s ease-in-out, padding 0.3s ease-in-out !important;
        visibility: hidden !important;
        pointer-events: none !important;
        opacity: 1 !important;
    }
    
    .header-nav.mobile-menu-open {
        width: 80% !important;
        max-width: 320px !important;
        padding: 2rem 1.5rem !important;
        visibility: visible !important;
        background-color: #ffffff !important;
        z-index: 10003 !important;
        pointer-events: auto !important;
        opacity: 1 !important;
        display: flex !important;
    }
    
    body.menu-open {
        overflow: hidden;
    }
    
    /* Ensure menu stays white and visible - override any dark styles */
    .header-nav.mobile-menu-open,
    .header-nav.mobile-menu-open * {
        background-color: #ffffff !important;
    }
    
    .header-nav.mobile-menu-open .nav-link {
        background-color: #ffffff !important;
        color: #dc2626 !important;
        pointer-events: auto !important;
        cursor: pointer !important;
        z-index: 10004 !important;
        position: relative !important;
    }
    
    .header-nav.mobile-menu-open .nav-link-donate {
        background-color: #dc2626 !important;
        color: #ffffff !important;
        pointer-events: auto !important;
        cursor: pointer !important;
        z-index: 10004 !important;
        position: relative !important;
    }
    
    .header-nav.mobile-menu-open .menu-close {
        background-color: transparent !important;
        color: #dc2626 !important;
        pointer-events: auto !important;
        cursor: pointer !important;
        z-index: 10005 !important;
        position: relative !important;
    }
    
    .header-nav .menu-close {
        display: none !important;
    }
    
    .header-nav .nav-link {
        width: 100%;
        padding: 1.25rem 0;
        padding-left: 1rem;
        border-bottom: 1px solid #e5e7eb;
        font-size: 1.3rem;
        font-weight: 600;
        color: #dc2626 !important;
        text-decoration: none;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        transition: color 0.3s, background-color 0.3s;
        display: flex;
        align-items: center;
        justify-content: flex-start;
        background-color: #ffffff !important;
        text-align: left;
    }
    
    .header-nav .nav-link:first-of-type {
        display: flex !important;
        align-items: center !important;
        justify-content: flex-start !important;
    }
    
    .header-nav .nav-link:hover {
        color: #b91c1c !important;
        background-color: #ffffff !important;
        transform: none;
    }
    
    .header-nav .nav-link.active {
        color: #0033A0 !important;
        background-color: #ffffff !important;
        font-weight: 700;
    }
    
    .header-nav .nav-link.active::after {
        display: none;
    }
    
    .header-nav .nav-link-donate {
        background-color: #dc2626 !important;
        color: #ffffff !important;
        padding: 1rem 2rem !important;
        border-radius: 8px;
        margin-top: 1.5rem;
        text-align: center !important;
        justify-content: center !important;
        width: 100%;
        border: none;
        font-weight: bold;
        box-shadow: 0 4px 15px rgba(220, 38, 38, 0.3);
    }
    
    .header-nav .nav-link-donate:hover {
        background-color: var(--primary-red-dark) !important;
        color: var(--white) !important;
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(220, 38, 38, 0.4);
    }
    
    .menu-close {
        display: block !important;
    }
}

/* Desktop: Show donate link in nav (first), hide separate button */
@media (min-width: 769px) {
    .hamburger-menu {
        display: none !important;
    }
    
    .header-content {
        padding-right: 280px; /* Ensure space for logo on desktop */
    }
    
    .nav-link-donate {
        display: block;
        background-color: var(--accent-gold);
        color: var(--secondary-navy);
        padding: 0.5rem 1.5rem !important;
        border-radius: 5px;
    }
    
    .header-donate {
        display: none;
    }
    
    /* Hide menu close button on desktop */
    .menu-close {
        display: none !important;
    }
    
    /* Remove backdrop on desktop */
    body.menu-open::after {
        display: none !important;
    }
}

/* Accent Section Base (light gradient) */
.yellow-section {
    background: linear-gradient(135deg, var(--gray-50) 0%, var(--gray-100) 100%);
    padding: 0.75rem 0;
    position: relative;
}

.main-heading.yellow-section {
    padding: 0.75rem 0 !important;
    margin-top: 0 !important;
    min-height: auto;
    display: flex;
    align-items: center;
    border-radius: 0;
}

.main-heading.yellow-section:first-of-type {
    padding: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    margin-top: 2rem !important;
}

.yellow-section:first-of-type {
    border-top-left-radius: 0;
    border-top-right-radius: 0;
    margin-top: 0 !important;
    padding: 0 !important;
}

.main-heading.yellow-section:first-of-type {
    padding: 0 !important;
}

.main-heading:first-of-type {
    margin-top: 2rem !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

/* Main Heading Section - Modern red gradient */
.main-heading {
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--primary-red-dark) 100%);
    padding: 1.5rem 0 !important;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
    margin-top: 0 !important;
    overflow: visible;
    position: relative;
    display: flex;
    align-items: center;
    min-height: auto;
}

.main-heading .container {
    padding: 0 20px !important;
}

.main-heading-content {
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    text-align: center;
    width: 100%;
    min-height: 300px;
}

.hero-image {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    object-fit: contain;
    margin-top: -20rem;
    margin-bottom: 0;
    position: relative;
    z-index: 1002;
    transition: opacity 0.3s ease;
    transform: scale(0.7);
    transform-origin: bottom center;
}

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

.main-title {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--white);
    line-height: 1.4;
    text-transform: none;
    text-align: center;
    margin: 0;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.2);
}

.main-title br {
    display: block;
    margin: 0.2em 0;
    line-height: 1.4;
}

.main-title strong {
    font-weight: bold;
}

/* White Section Base */
.white-section {
    background-color: var(--white);
    padding: 6rem 0;
}

@media (max-width: 768px) {
    .white-section {
        padding: 3rem 0;
    }
    
    .yellow-section {
        padding: 3rem 0;
    }
}

/* Scroll Reveal Animations */
.scroll-reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Action Photos Scroll Animation */
.action-photos {
    position: relative;
}

/* About Section - White */
.about-section {
    padding: 6rem 0;
}

.section-title {
    font-size: 2.5rem;
    color: var(--primary-red);
    text-align: center;
    margin-bottom: 2rem;
    font-weight: bold;
    text-transform: uppercase;
}

.about-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 1rem;
    row-gap: 1rem;
    max-width: 1200px;
    margin: 0 auto;
    align-items: start;
}

.about-heading {
    grid-column: 1;
    grid-row: 1;
}

.about-title {
    font-family: 'Georgia', 'Times New Roman', serif;
    font-size: 3rem;
    font-weight: normal;
    color: var(--text-primary);
    line-height: 1.2;
    margin: 0 0 1.5rem 0;
    text-align: left;
}

.about-title br {
    display: none;
}

.about-main-bio {
    grid-column: 1 / -1;
    grid-row: 2;
    text-align: left;
    margin-bottom: 0;
    padding-right: 0;
}

.about-heading {
    grid-column: 1 / -1;
    grid-row: 1;
}

.about-main-bio p {
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--text-primary);
    margin: 0;
}

.about-personal-bio {
    grid-column: 1;
    grid-row: 2;
    text-align: left;
    margin-top: 0;
}

.about-personal-bio p {
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--text-primary);
    margin: 0;
}

.about-image-yellow {
    grid-column: 2;
    grid-row: 1 / 3;
    background-color: transparent;
    border-radius: 15px;
    padding: 0;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    min-height: 500px;
}

.about-image-yellow img {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    object-fit: contain;
    object-position: bottom;
}

/* In Action Section - Hero Slideshow */
.action-section {
    padding: 0;
}

.action-section.white-section {
    padding: 0;
}

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

/* Slideshow Wrapper - Full Width Hero */
.slideshow-wrapper {
    position: relative;
    width: 100%;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.action-photos {
    position: relative;
    width: 100%;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.action-photo {
    width: 100%;
    height: 60vh;
    min-height: 500px;
    max-height: 700px;
    overflow: hidden;
    border-radius: 0;
    box-shadow: none;
    background-color: var(--white);
    opacity: 0;
    transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
    cursor: pointer;
    position: absolute;
    top: 0;
    left: 0;
}

.action-photo.active {
    position: relative;
    opacity: 1;
}

/* Slideshow Navigation Arrows */
.slideshow-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 51, 160, 0.8);
    color: var(--white);
    border: none;
    font-size: 3rem;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
    line-height: 1;
    padding: 0;
    margin: 0;
    user-select: none;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
    vertical-align: middle;
}

.slideshow-arrow:hover {
    background-color: var(--primary-red);
    transform: translateY(-50%) scale(1.1);
}

.slideshow-arrow:active {
    transform: translateY(-50%) scale(0.95);
}

.slideshow-prev {
    left: 20px;
    padding-left: 8px;
    padding-bottom: 8px;
}

.slideshow-next {
    right: 20px;
    padding-left: 8px;
    padding-bottom: 8px;
}

@media (max-width: 768px) {
    .slideshow-arrow {
        width: 50px;
        height: 50px;
        font-size: 2.5rem;
        line-height: 50px;
    }
    
    .slideshow-prev {
        left: 10px;
        padding-left: 3px;
        padding-top: 3px;
    }
    
    .slideshow-next {
        right: 10px;
        padding-right: 3px;
        padding-top: 3px;
    }
}

.action-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center; /* Default vertical center - adjust per image in script.js */
    display: block;
    transition: transform 0.3s ease;
}

/* Individual image vertical positioning examples (add to script.js objectPosition property):
   'center' - default center
   'center top' - align to top
   'center bottom' - align to bottom  
   'center 30%' - 30% from top
   'center 70%' - 70% from top
   etc.
*/

.action-photo:hover img {
    transform: scale(1.08);
}

.action-photo:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
}

/* Image Modal Popup */
.image-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    overflow: auto;
    animation: fadeIn 0.3s ease;
}

.image-modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.image-modal-content {
    position: relative;
    margin: auto;
    max-width: 90%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.image-modal-content img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.image-modal-caption {
    color: var(--white);
    text-align: center;
    padding: 1rem;
    font-size: 1.1rem;
    margin-top: 1rem;
    max-width: 800px;
}

.image-modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: var(--white);
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
    transition: color 0.3s ease;
    z-index: 10001;
}

.image-modal-close:hover {
    color: var(--accent-gold);
}

@media (max-width: 768px) {
    .image-modal-content {
        max-width: 95%;
        padding: 1rem;
    }
    
    .image-modal-close {
        top: 10px;
        right: 20px;
        font-size: 35px;
    }
    
    .image-modal-caption {
        font-size: 0.9rem;
        padding: 0.5rem;
    }
}

/* Precinct Section - White */
.precinct-section {
    padding: 6rem 0;
}

.precinct-map-container {
    text-align: center;
    margin-top: 3rem;
}

.precinct-map-link {
    display: inline-block;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.precinct-map-link:hover {
    transform: scale(1.05);
}

.precinct-map-thumbnail {
    max-width: 400px;
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    display: block;
}

.precinct-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    max-width: 900px;
    margin: 0 auto;
}

.precinct-item {
    text-align: center;
}

.precinct-item h3 {
    font-size: 2rem;
    color: var(--primary-red);
    margin-bottom: 1rem;
    font-weight: bold;
}

.precinct-item p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Priorities Grid Section - Yellow */
.priorities-section {
    padding: 6rem 0;
}

.priorities-grid-simple {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.priority-item {
    color: var(--white);
    padding: 2rem 1.5rem;
    text-align: center;
    font-size: 1rem;
    font-weight: bold;
    text-transform: uppercase;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    border: 3px solid var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 150px;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    line-height: 1.3;
}

.priority-item.priority-1 {
    background-color: var(--primary-red);
}

.priority-item.priority-2 {
    background-color: var(--primary-red-dark);
}

.priority-item.priority-3 {
    background-color: var(--secondary-navy);
}

.priority-item.priority-4 {
    background-color: var(--secondary-navy-dark);
}

.priority-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

/* Page Titles */
.page-title {
    font-size: 3.5rem;
    color: var(--primary-red);
    text-align: center;
    margin-bottom: 1.5rem;
    font-weight: bold;
}

.page-subtitle {
    font-size: 1.3rem;
    color: var(--text-secondary);
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
}

/* Priorities Detail Page */
.priorities-hero {
    padding: 4rem 0 3rem;
}

.priority-detail-section {
    padding: 5rem 0;
}

.priority-detail-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.priority-detail-reverse {
    direction: rtl;
}

.priority-detail-reverse > * {
    direction: ltr;
}

.priority-detail-text {
    padding: 2rem;
}

.priority-detail-title {
    font-size: 3rem;
    color: var(--primary-red);
    margin-bottom: 2rem;
    font-weight: bold;
}

.priority-detail-list {
    list-style: none;
    padding: 0;
}

.priority-detail-list li {
    font-size: 1.2rem;
    line-height: 2;
    color: var(--text-primary);
    margin-bottom: 1rem;
    padding-left: 2rem;
    position: relative;
}

.priority-detail-list li:before {
    content: "•";
    color: var(--primary-red);
    font-size: 2rem;
    position: absolute;
    left: 0;
    top: -0.3rem;
    font-weight: bold;
}

.priority-detail-image {
    width: 100%;
    height: 400px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.priority-detail-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Endorsements Page */
.endorsements-hero {
    padding: 4rem 0 3rem;
}

/* Contact Page */
.contact-hero {
    padding: 4rem 0 3rem;
}

@media (max-width: 768px) {
    .priorities-hero,
    .endorsements-hero,
    .contact-hero {
        padding: 2.5rem 0 2rem;
    }
    
    .page-title {
        font-size: 2.5rem;
    }
    
    .page-subtitle {
        font-size: 1.1rem;
    }
}

.endorsements-section {
    padding: 5rem 0;
}

.endorsements-section-title {
    font-size: 2.5rem;
    color: var(--primary-red);
    text-align: center;
    margin-bottom: 3rem;
    font-weight: bold;
}

.endorsements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.endorsement-item {
    background-color: var(--white);
    padding: 2.5rem 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    border: 2px solid var(--primary-red);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.endorsement-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.endorsement-image {
    width: 200px;
    height: 150px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.endorsement-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.endorsement-name {
    font-size: 1.3rem;
    color: var(--primary-red);
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.endorsement-position {
    font-size: 1rem;
    color: var(--text-secondary);
    font-style: italic;
}

.testimonials-section {
    padding: 5rem 0;
}

.testimonials-list {
    max-width: 900px;
    margin: 0 auto;
}

.testimonial-item {
    background-color: var(--white);
    padding: 3rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
    border-left: 5px solid var(--primary-red);
}

.testimonial-text {
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    font-style: italic;
}

.testimonial-author {
    font-size: 1rem;
    color: var(--primary-red);
    font-weight: bold;
    text-align: right;
}

/* Support Section */
.support-section {
    padding: 6rem 0;
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--primary-red-dark) 100%);
    color: var(--white);
}

.support-section.white-section {
    background: var(--white);
    color: var(--text-primary);
}

.support-section.white-section .section-title {
    color: var(--primary-red);
}

.support-section .section-title {
    color: var(--white);
}

.support-text {
    text-align: center;
    font-size: 1.3rem;
    margin-bottom: 3rem;
    color: var(--white);
}

.support-section.white-section .support-text {
    color: var(--text-primary);
}

/* Contact Form */
.contact-form-container {
    max-width: 600px;
    margin: 0 auto;
}

.contact-form {
    background-color: var(--white);
    padding: 3rem;
    border-radius: 12px;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--gray-200);
}

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

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
    color: var(--text-primary);
    font-size: 1rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.875rem;
    border: 2px solid var(--gray-300);
    border-radius: 8px;
    font-size: 1rem;
    font-family: 'Arial', 'Helvetica', sans-serif;
    transition: border-color 0.3s, box-shadow 0.3s;
    box-sizing: border-box;
    background-color: var(--white);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-red);
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

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

.form-row {
    display: flex;
    gap: 1rem;
}

.form-col {
    flex: 1;
}

.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    font-weight: normal;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    margin: 0;
    cursor: pointer;
    flex-shrink: 0;
}

.checkbox-label span {
    color: var(--text-primary);
    font-size: 1rem;
}

/* Radio Button Styles */
.radio-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 0.5rem;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    font-weight: normal;
    padding: 0.5rem;
    border-radius: 6px;
    transition: background-color 0.2s;
}

.radio-label:hover {
    background-color: var(--gray-50);
}

.radio-label input[type="radio"] {
    width: auto;
    margin: 0;
    cursor: pointer;
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    accent-color: var(--primary-red);
}

.radio-label span {
    color: var(--text-primary);
    font-size: 1rem;
    flex: 1;
}

.form-hint {
    display: block;
    margin-top: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.btn-submit {
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--primary-red-dark) 100%);
    color: var(--white);
    padding: 1rem 3rem;
    font-size: 1.1rem;
    font-weight: bold;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
    width: 100%;
    box-shadow: 0 4px 15px rgba(220, 38, 38, 0.3);
}

.btn-submit:hover {
    background: linear-gradient(135deg, var(--primary-red-dark) 0%, var(--primary-red) 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(220, 38, 38, 0.4);
}

.btn-submit:disabled {
    background-color: #999;
    cursor: not-allowed;
    transform: none;
}

.form-message {
    margin-top: 1.5rem;
    padding: 1rem;
    border-radius: 5px;
    font-weight: bold;
    text-align: center;
}

.form-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.support-content {
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 900px;
    margin: 0 auto;
}

.donate-main {
    text-align: center;
}

.btn-support {
    background-color: var(--accent-gold);
    color: var(--secondary-navy);
    padding: 1.5rem 4rem;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.5rem;
    border-radius: 5px;
    display: inline-block;
    transition: background-color 0.3s;
    text-transform: uppercase;
}

.btn-support:hover {
    background-color: #fde409;
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(253, 228, 9, 0.4);
}

.donate-note {
    margin-top: 1rem;
    color: var(--accent-gold);
    font-size: 0.9rem;
}

.qr-section {
    text-align: center;
    background-color: var(--white);
    padding: 2rem;
    border-radius: 10px;
    color: var(--text-primary);
}

.qr-section h3 {
    color: var(--primary-red);
    margin-bottom: 1rem;
}

.qr-code-container {
    display: flex;
    justify-content: center;
    margin: 1.5rem 0;
    padding: 1rem;
    background-color: var(--white);
    border-radius: 5px;
}

.qr-code-container canvas {
    max-width: 100%;
    height: auto;
}

.qr-note {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.btn {
    display: inline-block;
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    background-color: var(--primary-red);
    color: var(--white);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-red);
    border: 2px solid var(--primary-red);
}

.btn-secondary:hover {
    background-color: var(--primary-red);
    color: var(--white);
}

/* Footer */
.footer {
    background: linear-gradient(135deg, var(--secondary-navy) 0%, var(--secondary-navy-dark) 100%);
    color: var(--white);
    padding: 3rem 0;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 2rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    grid-column: 1;
    height: 80px;
}

.footer-logo img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    display: block;
}

.footer-info {
    text-align: center;
    grid-column: 2;
}

.footer-info p {
    margin-bottom: 0.5rem;
    margin-top: 0;
    font-size: 0.85rem;
    opacity: 0.9;
}

.footer-info p:first-child {
    font-size: 1rem;
    opacity: 1;
    font-weight: bold;
}

.footer-info p:nth-child(2) {
    font-size: 0.85rem;
    opacity: 0.9;
}

.footer-texas-logo {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    grid-column: 3;
    height: 80px;
}

.footer-texas-logo img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    display: block;
}

.footer-info a:link,
.footer-info a:visited,
.footer-info a:active {
    color: #FFFFFF !important;
    text-decoration: none;
}

.footer-info a {
    color: #FFFFFF !important;
    text-decoration: none;
    font-size: 0.85rem;
    opacity: 0.9;
    transition: opacity 0.3s, color 0.3s;
}

.footer-info a:hover {
    opacity: 1;
    color: var(--accent-gold-light) !important;
    text-decoration: underline;
}

.footer-social {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    align-self: flex-end;
}

.social-icon {
    color: var(--white);
    transition: color 0.3s, transform 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-icon:hover {
    color: var(--accent-gold);
    transform: translateY(-2px);
}

.social-icon svg {
    width: 28px;
    height: 28px;
}

.footer-disclaimer {
    font-size: 0.85rem;
    margin-top: 1rem;
    opacity: 0.9;
}

/* Responsive Design */
@media (max-width: 768px) {
    header {
        padding: 0;
        display: block !important;
        visibility: visible !important;
        height: auto !important;
        min-height: 187.5px;
        position: relative;
    }
    
    header .container {
        display: block !important;
        width: 100%;
        padding: 0 20px;
    }
    
    .header-content {
        min-height: 187.5px;
        display: flex !important;
        width: 100%;
        position: relative;
        justify-content: space-between;
    }
    
    .header-logo {
        margin-right: -90px !important;
        left: auto !important;
        top: 50% !important;
        transform: translateY(-50%);
    }
    
    .header-nav {
        order: -1;
    }
    
    .header-logo .logo-main {
        width: 165px !important;
        height: 165px !important;
    }
    
    .header-logo .logo-headshot {
        width: 202.5px !important;
        height: 202.5px !important;
        margin: -15px 0 0 -65px !important;
    }
    
    /* Hide regular navigation and donate button on mobile */
    .header-donate {
        display: none;
    }
    
    /* Show hamburger menu on mobile */
    .hamburger-menu {
        display: flex;
        order: -2;
        margin-left: 20px;
    }
    
    /* Hamburger menu hiding is handled by JavaScript */
    
    /* Old mobile menu styles removed - using new sidebar style above */
}


@media (max-width: 480px) {
    .main-heading-content {
        display: flex;
        justify-content: center;
        align-items: center;
        text-align: center;
        padding-bottom: 0;
        min-height: auto;
    }

    .main-title {
        font-size: 2rem;
        text-align: center;
        line-height: 1.3;
        animation: slideInFromRight 0.8s ease-out;
        margin-top: 2rem;
        margin-bottom: 2rem;
    }

    .section-title {
        font-size: 1.5rem;
    }


    .priority-item {
        padding: 1.5rem 1rem;
        font-size: 0.85rem;
        min-height: 100px;
    }

    /* Priorities Detail Page Mobile */
    .priority-detail-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .priority-detail-reverse {
        direction: ltr;
    }

    .priority-detail-image {
        height: 300px;
    }

    .priority-detail-title {
        font-size: 2rem;
    }

    .priority-detail-list li {
        font-size: 1.1rem;
    }

    /* Endorsements Page Mobile */
    .endorsements-grid {
        grid-template-columns: 1fr;
    }

    .testimonial-item {
        padding: 2rem;
    }

    .testimonial-text {
        font-size: 1.1rem;
    }

    .page-title {
        font-size: 2.5rem;
    }

    .page-subtitle {
        font-size: 1.1rem;
    }

    .endorsements-section-title {
        font-size: 2rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        align-items: center;
        text-align: center;
    }
    
    .footer-logo {
        grid-column: 1;
        justify-content: center;
        order: 1;
        height: auto;
    }
    
    .footer-info {
        grid-column: 1;
        order: 2;
    }
    
    .footer-texas-logo {
        grid-column: 1;
        justify-content: center;
        order: 3;
        height: auto;
    }
    
    .footer-info p:first-child,
    .footer-info p:nth-child(2) {
        display: none;
    }
    
    .footer-social {
        order: 2;
        align-self: center;
        margin: 0 auto;
        margin-top: 0rem;
        margin-bottom: 0;
    }

    .footer-social {
        gap: 1rem;
    }

    .social-icon svg {
        width: 24px;
        height: 24px;
    }

    .action-photos {
        max-width: 100%;
    }

    .action-photo {
        height: 50vh;
        min-height: 350px;
        max-height: 500px;
        max-width: 100%;
    }

    .action-photo img {
        object-fit: cover;
        object-position: center; /* Adjust per image in script.js objectPosition property */
    }
    
    .white-section {
        padding: 2.5rem 0;
    }
    
    .yellow-section {
        padding: 2rem 1rem;
    }
    
    .main-heading.yellow-section {
        padding: 2rem 1rem !important;
        min-height: auto !important;
    }
    
    .main-heading-content {
        padding: 0 !important;
        min-height: auto !important;
    }
    
    .about-section {
        padding: 2.5rem 0;
    }
    
    .about-layout {
        display: flex;
        flex-direction: column;
        gap: 0;
    }
    
    .about-heading {
        order: 1;
    }
    
    .about-title {
        font-size: 2.5rem;
        text-align: left;
        margin-bottom: 1.5rem;
    }
    
    .about-main-bio {
        order: 2;
        padding-right: 0;
    }
    
    .about-main-bio p {
        font-size: 1rem;
        line-height: 1.6;
        text-align: justify;
    }
    
    .about-personal-bio {
        order: 4;
    }
    
    .about-personal-bio p {
        font-size: 1rem;
        line-height: 1.6;
        text-align: justify;
    }
    
    .about-image-yellow {
        order: 3;
        grid-column: 1;
        grid-row: auto;
        min-height: auto;
        margin: 1rem 0;
    }
    
    .about-image-yellow img {
        width: 100%;
        height: auto;
        object-fit: contain;
        object-position: center;
    }
    
    .precinct-section {
        padding: 2.5rem 0;
    }
    
    .precinct-map-thumbnail {
        max-width: 300px;
    }
    
    .action-section {
        padding: 2.5rem 0;
    }

    .map-modal-close {
        top: 15px;
        right: 20px;
        font-size: 40px;
    }

    .map-modal-content {
        max-width: 98%;
        max-height: 90vh;
    }
}

/* Map Modal */
.map-modal {
    display: none !important;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
    flex-direction: column;
    visibility: hidden;
    opacity: 0;
}

.map-modal.show {
    display: flex !important;
    visibility: visible;
    opacity: 1;
}

.map-modal-content {
    max-width: 95%;
    max-height: 95vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.map-modal-close {
    position: absolute;
    top: 30px;
    right: 50px;
    color: var(--white);
    font-size: 50px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10001;
    line-height: 1;
    transition: color 0.3s ease;
}

.map-modal-close:hover {
    color: var(--accent-gold);
}

/* Print Styles for QR Code */
@media print {
    body * {
        visibility: hidden;
    }

    .qr-section,
    .qr-section * {
        visibility: visible;
    }

    .qr-section {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        page-break-inside: avoid;
    }
}

/* Team Section */
/* Events Section - Home Page */
.events-section {
    padding: 3rem 0;
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .events-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

.event-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border-light);
}

.event-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.event-card-header {
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--primary-red-dark) 100%);
    padding: 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.event-date-badge {
    background: var(--white);
    color: var(--primary-red);
    border-radius: 12px;
    padding: 1rem 1.25rem;
    text-align: center;
    min-width: 80px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.event-date-badge .event-month {
    display: block;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 0.25rem;
    color: var(--text-secondary);
}

.event-date-badge .event-day {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
    color: var(--primary-red);
}

.event-card-body {
    padding: 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.event-card-title {
    color: var(--primary-red);
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 1.5rem 0;
    line-height: 1.3;
}

.event-card-info {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.event-info-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.event-info-icon {
    font-size: 1.1rem;
    flex-shrink: 0;
}

.event-info-text {
    flex: 1;
    color: var(--text-primary);
}

.event-location-link {
    color: var(--primary-red);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
    border-bottom: 1px solid transparent;
}

.event-location-link:hover {
    color: var(--primary-red-dark);
    border-bottom-color: var(--primary-red-dark);
}

.event-card-description {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

.event-card-footer {
    padding: 0 2rem 2rem 2rem;
    margin-top: auto;
}

.btn-rsvp {
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--primary-red-dark) 100%);
    color: var(--white);
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    width: 100%;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.2);
}

.btn-rsvp:hover {
    background: linear-gradient(135deg, var(--primary-red-dark) 0%, var(--primary-red) 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(220, 38, 38, 0.4);
}

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

.event-no-rsvp {
    display: block;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-style: italic;
    padding: 1rem;
}

.team-section {
    display: none; /* Hidden per user request */
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    max-width: 900px;
    margin: 0 auto;
}

.team-member {
    background-color: var(--white);
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    text-align: center;
    border: 1px solid var(--gray-200);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.team-member:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(220, 38, 38, 0.15);
}

.team-member-photo {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 1.5rem;
    border: 4px solid var(--primary-red);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.team-member-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.team-member-info h3 {
    font-size: 1.8rem;
    color: var(--primary-red);
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.team-role {
    font-size: 1.2rem;
    color: var(--text-secondary);
    font-weight: bold;
    margin-bottom: 1rem;
}

.team-bio {
    font-size: 1rem;
    color: var(--text-primary);
    line-height: 1.6;
    margin-top: 1rem;
}

/* Join Today Button */
.btn-join-today {
    background: linear-gradient(135deg, var(--accent-gold) 0%, var(--accent-gold-light) 100%);
    color: var(--secondary-navy);
    padding: 0.875rem 2rem;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    border-radius: 6px;
    display: inline-block;
    transition: all 0.3s;
    text-transform: uppercase;
    margin-top: 0.75rem;
    border: none;
    box-shadow: 0 3px 10px rgba(245, 158, 11, 0.25);
    letter-spacing: 0.5px;
}

.btn-join-today:hover {
    background: linear-gradient(135deg, var(--accent-gold-light) 0%, var(--accent-gold) 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4);
}

/* Events Calendar Section */
.calendar-container {
    max-width: 1200px;
    margin: 0 auto;
    background: var(--white);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.calendar-grid {
    display: block;
    width: 100%;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-light);
}

.calendar-header h2 {
    color: var(--primary-red);
    font-size: 2rem;
    margin: 0;
    font-weight: 700;
}

.calendar-nav-btn {
    background: var(--primary-red);
    color: var(--white);
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: bold;
    min-width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.calendar-nav-btn:hover {
    background: var(--primary-red-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(220, 38, 38, 0.3);
}

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0;
    margin-bottom: 0;
    background: var(--background-medium);
    border-radius: 8px 8px 0 0;
    padding: 0.75rem 0;
}

.calendar-weekday {
    text-align: center;
    font-weight: 600;
    color: var(--text-primary);
    padding: 0.5rem;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0;
    border: 1px solid var(--border-light);
    border-top: none;
    border-radius: 0 0 8px 8px;
    overflow: hidden;
}

.calendar-day {
    min-height: 120px;
    border-right: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
    padding: 0.75rem;
    background: var(--white);
    position: relative;
    transition: background-color 0.2s;
}

.calendar-day:nth-child(7n) {
    border-right: none;
}

.calendar-day.empty {
    background: var(--background-light);
    cursor: default;
}

.calendar-day.today {
    background: rgba(220, 38, 38, 0.05);
}

.calendar-day.today .calendar-day-number.today-number {
    background: var(--primary-red);
    color: var(--white);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.calendar-day.has-events {
    background: var(--white);
}

.calendar-day.has-events:hover {
    background: var(--background-light);
}

.calendar-day-number {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    display: block;
}

.calendar-event {
    font-size: 0.75rem;
    padding: 0.35rem 0.5rem;
    margin-bottom: 0.35rem;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 500;
    line-height: 1.3;
}

.calendar-event.rsvp-enabled {
    background: var(--primary-red);
    color: var(--white);
    box-shadow: 0 2px 4px rgba(220, 38, 38, 0.2);
}

.calendar-event.rsvp-enabled:hover {
    background: var(--primary-red-dark);
    transform: translateX(2px);
    box-shadow: 0 3px 6px rgba(220, 38, 38, 0.3);
}

.calendar-event.no-rsvp {
    background: var(--text-secondary);
    color: var(--white);
    cursor: default;
    opacity: 0.8;
}

.event-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: block;
}

@media (max-width: 768px) {
    .calendar-container {
        padding: 1rem;
    }
    
    .calendar-header h2 {
        font-size: 1.5rem;
    }
    
    .calendar-nav-btn {
        padding: 0.4rem 0.8rem;
        font-size: 1rem;
        min-width: 35px;
        height: 35px;
    }
    
    .calendar-day {
        min-height: 80px;
        padding: 0.5rem;
    }
    
    .calendar-day-number {
        font-size: 0.85rem;
        margin-bottom: 0.35rem;
    }
    
    .calendar-event {
        font-size: 0.65rem;
        padding: 0.25rem 0.4rem;
        margin-bottom: 0.25rem;
    }
    
    .calendar-weekday {
        font-size: 0.75rem;
        padding: 0.4rem 0.25rem;
    }
}

/* RSVP Modal */
.rsvp-modal {
    display: none !important;
    position: fixed !important;
    z-index: 10000 !important;
    left: 0 !important;
    top: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background-color: rgba(0, 0, 0, 0.7) !important;
    overflow: auto !important;
    animation: fadeIn 0.3s ease;
}

.rsvp-modal.show {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.rsvp-modal-content {
    position: relative;
    background-color: var(--white);
    margin: auto;
    padding: 2rem;
    border-radius: 12px;
    max-width: 500px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: zoomIn 0.3s ease;
}

.rsvp-modal-content h2 {
    color: var(--primary-red);
    margin-bottom: 1.5rem;
    font-size: 2rem;
}

.rsvp-modal-close {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    color: var(--text-secondary);
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
    transition: color 0.3s ease;
    z-index: 10001;
}

.rsvp-modal-close:hover {
    color: var(--primary-red);
}

@media (max-width: 768px) {
    .team-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .team-section {
        padding: 4rem 0;
    }
    
    .rsvp-modal-content {
        padding: 1.5rem;
        margin: 1rem;
        width: calc(100% - 2rem);
    }
    
    .rsvp-modal-close {
        top: 0.5rem;
        right: 1rem;
        font-size: 30px;
    }
    
    .btn-join-today {
        font-size: 1.1rem;
        padding: 1rem 2rem;
    }
}
