/* Prevent Horizontal Scrolling */
html, body {
    width: 100%;
    overflow-x: hidden !important;
}

/*################# Hero Section ####################*/
section.hero {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    position: relative !important;
    z-index: 1 !important;
}

section.hero .container-fluid {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    box-sizing: border-box !important;
}

section.hero picture img {
    width: 100% !important;
    height: auto !important;
    object-fit: contain !important;
    object-position: center !important;
    display: block !important;
    margin: 0 auto !important;
}

/*################# Senate & House Section ####################*/


.senate-section h2,
.house-a-section h2,
.house-b-section h2 {
    font-size: 1.6rem;
    font-weight: 700;
    color: #1d3557;
    margin-bottom: 0.75rem;
}

.senate-section p,
.house-a-section p,
.house-b-section p {
    font-size: 1rem;
    color: #444;
    margin-bottom: 1rem;
}

.senate-section .card,
.house-a-section .card,
.house-b-section .card {
    border: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    padding: 1rem;
    display: flex;
    flex-direction: row;
    gap: 1.5rem;
    margin-top: 1rem;
}

.senate-section .member-photo img,
.house-a-section .member-photo img,
.house-b-section .member-photo img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid #dee2e6;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.senate-section .card-body,
.house-a-section .card-body,
.house-b-section .card-body {
    padding: 0;
}

.senate-section .card-body h4,
.house-a-section .card-body h4,
.house-b-section .card-body h4 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1d3557;
    margin-bottom: 0.4rem;
}

.senate-section .card-body p,
.house-a-section .card-body p,
.house-b-section .card-body p {
    font-size: 0.95rem;
    color: #333;
    margin: 0.3rem 0;
}

@media (max-width: 768px) {
    .senate-section .card,
    .house-a-section .card,
    .house-b-section .card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .senate-section .card-body,
    .house-a-section .card-body,
    .house-b-section .card-body {
        align-items: center;
        padding: 0;
    }
}

/*################# Precinct Committeemen Cards ####################*/
/* Ensure parent container has enough width */
.js-view-dom-id-d759b1526733eef0737501edf24c5ce5812ccdbf4247b35bad6ae6275033a3ab {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 1rem;
    box-sizing: border-box;
}

/* Main grid layout */
div.precinct-grid {
    display: grid !important;
    gap: 2rem;
    margin-top: 2rem;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Fallback to auto-fit */
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

/* Force 2 columns on wide screens */
@media (min-width: 768px) {
    div.precinct-grid {
        grid-template-columns: repeat(2, minmax(300px, 1fr)) !important;
    }
}

/* 1 column on smaller screens */
@media (max-width: 767px) {
    div.precinct-grid {
        grid-template-columns: minmax(300px, 1fr) !important;
    }
}

div.precinct-card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    border: 1px solid #eee;
    display: flex;
    flex-direction: column;
}

div.precinct-card-header {
    background-color: #b91c1c;
    color: #fff;
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    font-weight: 700;
    font-size: 1rem;
}

div.precinct-card-header .voter-count {
    text-align: right;
    font-size: 0.85rem;
    line-height: 1.2;
}

div.precinct-card-header .voter-count span {
    font-size: 1rem;
    font-weight: 700;
}

div.precinct-card-body {
    display: flex;
    flex-direction: row;
    padding: 1rem;
    gap: 1rem;
}



div.precinct-details {
    flex: 1;
}

div.precinct-details h4 {
    margin: 0 0 0.25rem 0;
    font-size: 1.1rem;
    font-weight: 600;
}

div.precinct-details p {
    margin: 0.2rem 0;
    font-size: 0.9rem;
    color: #333;
}

div.precinct-details a {
    color: #0d6efd;
    text-decoration: none;
}

div.precinct-details a:hover {
    text-decoration: underline;
}

div.precinct-details i {
    margin-right: 5px;
    color: #b91c1c;
}

@media (max-width: 767px) {
    div.precinct-card-body {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    div.precinct-details {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
}

/*################# Event Card Styles ####################*/
.event-card {
    border: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    background: #fff;
    border-radius: 8px;
    margin-left: 0;
    margin-right: 0;
    position: relative;
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.event-card:hover {
    transform: scale(1.03);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.event-image {
    height: 150px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.event-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.7));
    display: flex;
    justify-content: flex-end;
    align-items: flex-start;
    padding: 10px;
}

/* Completely reset old event timestamp design */
.event-timestamp,
.event-contact-line {
    all: unset;
    display: block;
    font-family: "Montserrat", sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: #222;
    margin-bottom: 0.25rem;
    line-height: 1.4;
}

/* Add calendar icon and nice spacing */
.event-timestamp::before {
    content: "🗓️ ";
    font-size: 1rem;
    margin-right: 6px;
    color: #c8102e; /* red accent */
    vertical-align: middle;
}

/* Add a faint divider below to separate header from text */
.event-timestamp {
    padding-bottom: 6px;
    border-bottom: 1px solid #e0e0e0;
    margin-bottom: 0.75rem;
}

/* Organizer line styled simply below date */
.event-organizer,
.event-contact-line span {
    font-size: 0.9rem;
    font-weight: 500;
    color: #666;
}

.event-organizer::before {
    content: "👤 ";
    font-size: 0.9rem;
    color: #999;
}


.upcomfing-events-text {
    margin-bottom: 30px;
}

.facebook-icon {
    width: 16px;
    height: 16px;
    margin-right: 5px;
}

.event-title {
    font-size: 1.25rem;
    font-weight: bold;
    margin-bottom: 0px;
}

.event-title a {
    color: #000;
    text-decoration: none;
}

.event-title a:hover {
    text-decoration: underline;
}

.event-organizer {
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
    color: #6c757d;
}

.event-description,
.event-url,
.event-date {
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.event-url a {
    color: #007bff;
    text-decoration: none;
}

.event-url a:hover {
    text-decoration: underline;
}

.organizer-label {
    font-weight: bold;
    color: #333;
}

.event-url-icon {
    position: absolute;
    bottom: 10px;
    right: 10px;
}

/*################# Responsive Container Overrides ####################*/
@media (max-width: 767.98px) {
    main.content {
        max-width: 100% !important;
        width: calc(100% - 40px);
        margin-left: auto;
        margin-right: auto;
    }

    main.content .container.py-4,
    .container.event-card-container {
        max-width: 100% !important;
        width: 100%;
        padding-left: 0;
        padding-right: 0;
    }

    .container.event-card-container .row {
        margin-left: 0;
        margin-right: 0;
    }

    .container.event-card-container .col-12 {
        padding-left: 0;
        padding-right: 0;
    }

    .event-card {
        padding-left: 10px;
        padding-right: 10px;
    }
}

/*################# Pager Styling ####################*/
nav[role="navigation"][aria-labelledby="pagination-heading"] {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
}

.js-pager__items {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
}

.js-pager__items li {
    margin: 0 5px;
}

.js-pager__items li.is-active {
    background-color: #dc3545;
    color: #fff;
    padding: 8px 16px;
    border-radius: 5px;
    font-size: 1rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.js-pager__items li a {
    display: inline-flex;
    align-items: center;
    background-color: #dc3545;
    border: 1px solid #dc3545;
    color: #fff;
    padding: 8px 16px;
    border-radius: 5px;
    font-size: 1rem;
    text-decoration: none;
    transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.js-pager__items li a:hover {
    background-color: #c82333;
    color: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.js-pager__items li a span[aria-hidden="true"] {
    display: none !important;
}

.js-pager__items li a[rel="next"]::before {
    content: 'Next';
    margin-right: 5px;
}

.js-pager__items li a[rel="prev"]::after {
    content: 'Previous';
    margin-left: 5px;
}



/* ###### PRECINCT CARD LAYOUT #### */
div.precinct-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(300px, 1fr)) !important;
    gap: 2rem;
    margin-top: 2rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 990px) {
    div.precinct-grid {
        grid-template-columns: 1fr !important;
    }
}

div.precinct-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    background: #fff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    border-radius: 8px;
    overflow: hidden;
}
.precinct-card-body {
    padding: 1rem;
    flex-grow: 1;
}

/* ###### PRECINCT CARD HEADER ###### */
div.precinct-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
    padding: 0.5rem 1rem;
    background-color: #d13232;
    color: white;
    border-bottom: 1px solid #ccc;
    flex-wrap: nowrap; /* prevent wrapping */
}

div.precinct-card-header > * {
    white-space: nowrap; /* also helps keep them on one line */
}



.polling-link:hover {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.map-icon {
    margin-right: 0.25rem;
}




div.precinct-card-body {
    display: flex;
    flex-direction: row;
    padding: 1rem;
    gap: 1rem;
}

/* ###### PRECINCT PHOTO ###### */
.precinct-photo img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    object-position: top center;
    border-radius: 50%;
    display: block;
}


div.precinct-details {
    flex: 1;
}

div.precinct-details h4 {
    margin: 0 0 0.25rem 0;
    font-size: 1.1rem;
    font-weight: 600;
}


/* ###### POLLING FOOTER ###### */

.polling-footer {
    background: #f8f8f8;
    border-top: 1px solid #ddd;
    padding: 0.75rem 1rem;
    margin-top: 1rem;
    font-size: 0.95rem;
}

.polling-footer strong {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #222;
}

.polling-location-row {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    gap: 1rem;
    flex-wrap: wrap;
}

.polling-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-decoration: none;
    color: inherit;
    width: 100%;
    gap: 1rem;
}

.polling-link:hover {
    text-decoration: none;
    color: inherit;
}

.polling-location-text {
    flex: 1;
    min-width: 200px;
}

.polling-icon-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 80px;
    min-height: 100%;
}

.polling-link img.map-icon {
    width: 40px;
    height: auto;
    display: block;
}
.precinct-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(300px, 1fr));
    gap: 2rem;
    align-items: stretch;
}


/* ###### Section Styling #### */
.district-section {
    background-color: #f4f4f4; /* Light gray background for contrast */
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

/* Title Styling */
.district-section h2 {
    font-size: 1.8rem;
    font-weight: bold;
    color: #333; /* Dark color for text */
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}


.member-card img {
    width: 220px;
    height: 220px;
    border-radius: 50%;
    margin-right: 15px;
}

.member-card .member-info {
    flex: 1;
}

.member-card .member-name {
    font-size: 1.2rem;
    font-weight: bold;
}

.member-card .member-position {
    color: #666;
    font-size: 0.9rem;
}

/* Polling Location */
.polling-location {
    font-size: 0.9rem;
    color: #777;
}

.polling-location a {
    text-decoration: none;
    color: #007bff;
    font-weight: bold;
}



/* ###### General Layout Tweaks #### */


/* Image Size Adjustment */
.precinct-photo img {
    width: 120px; /* Adjust width */
    height: 120px; /* Adjust height */
    border-radius: 50%;
    object-fit: cover;
    margin-right: 20px;
}

/* ################# Section Title Styling #################### */
section h2 {
    font-size: 2rem;
    font-weight: bold;
    color: #1d3557; /* Dark blue for better contrast */
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding-bottom: 10px;
    border-bottom: 2px solid #ddd; /* Underline effect */
}

/* ################# Introduction Text Styling #################### */
.intro-text {
    font-size: 1.2rem;
    line-height: 1.6;
    color: #444;
    margin-bottom: 30px; /* Adds space before member cards */
}

/* ################# Member Card Styling #################### */
.member-card {
    background-color: #fff;
    padding: 20px;
    margin-bottom: 30px;
    display: flex;
    flex-direction: row;
    gap: 20px;
    align-items: center;
    border: none;
}

.member-card-image img {
    width: 220px;
    height: 220px;
    border-radius: 50%;
    object-fit: cover;
    object-position: top;
    margin-right: 20px;
}

/* Member Info Section */
.member-card-info {
    text-align: left;
}

.member-card-info h3 {
    font-size: 1.6rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
}

.member-card-info .bio {
    font-size: 0.95rem;
    color: #777;
    line-height: 1.4;
}

/* ################# Layout Adjustment for Mobile #################### */
@media (max-width: 768px) {
    .member-card {
        flex-direction: column; /* Stack elements vertically on mobile */
        padding: 15px;
    }

    .member-card-image img {
        width: 100px;
        height: 100px;
    }

    .member-card-info h3 {
        font-size: 1.4rem;
    }

    .member-card-info .bio {
        font-size: 0.85rem;
    }
}



/* Container styles */
/*.layout {*/
    /*max-width: 1000px;*/
    /*margin: 0 auto;*/
    /*background-color: #fff;*/
    /*border-radius: 8px;*/
    /*box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);*/
    /*overflow: hidden;*/
/*}*/

/*.layout__region {*/
    /*padding: 30px;*/
/*}*/

/* Header styles */
h2 {
    color: #b22234; /* Patriotic red */
    font-size: 28px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #3c3b6e; /* Patriotic blue */
    font-weight: 700;
}

/* Content styles */
p {
    font-size: 16px;
    margin-bottom: 20px;
    line-height: 1.7;
}



/* Republican theme colors */
.republican-theme {
    background-color: #f8f8ff;
    border-left: 5px solid #b22234;
    padding: 20px;
    margin: 20px 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .layout__region {
        padding: 20px;
    }

    h2 {
        font-size: 24px;
    }

    p {
        font-size: 15px;
    }
}

/* Example application - you can add these classes to your HTML */
.leadership-card {
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 20px;
    margin-bottom: 25px;
    transition: transform 0.2s;
    background-color: white;
}

.leadership-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.district-15-members article > div > div:nth-child(1) {
    background: linear-gradient(180deg, rgba(0, 48, 135, 0.05), #FFFFFF);
    padding: 40px 20px;
    margin: 0 0;
    border-left: 5px solid #25285B;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    text-align: left;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}
.district-15-members article > div > div:nth-child(1) h2 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 2.5rem;
    color: #003087;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}
.district-15-members article > div > div:nth-child(1) h2::after {
    content: '';
    display: block;
    width: 50%;
    height: 3px;
    background: #25285B;
    position: absolute;
    bottom: -6px;
    left: 0;
}
#block-id15-content > article > div > div:nth-child(2) > div > div > h2 {
    margin-top: 70px;
}
.site-header {
    padding: 10px 0;
}
.logo-area img {
    max-height: 92px;
}








/* ##########################################################
   ###### EVENT PAGE LAYOUT – POLISHED & PROFESSIONAL ######
   ########################################################## */

.event-page {
    margin-block: 2rem 4rem;
}

/* Layout grid */
.event-layout {
    display: grid;
    grid-template-columns: minmax(48ch, 1fr) 320px;
    gap: clamp(1.25rem, 5vw, 4rem);
    align-items: start;
}

/* Left main column */
.event-main img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    margin-bottom: 1.25rem;
}

.event-description {
    background: #fff;
    padding: 1rem 1.25rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
    line-height: 1.6;
}

/* Event header */
.event-page header {
    margin-bottom: 1.5rem;
}

.event-page h1 {
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    font-weight: 700;
    color: #25285B;
    margin-bottom: 0.4rem;
}

/* Meta / date-time styling */
/* Fresh event date line — no boxes, no left bars */
.event-date {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    color: #222;
    margin: 0.25rem 0 0.5rem 0;
    line-height: 1.4;
    background: none;
    border: none;
    padding: 0;
}

/* Calendar icon in red */
.event-date::before {
    content: "🗓️";
    font-size: 1rem;
    margin-right: 6px;
    color: #c8102e;
    vertical-align: middle;
}

/* Optional subtle divider under the date for structure */
.event-date {
    padding-bottom: 6px;
    /*border-bottom: 1px solid #e0e0e0;*/
    margin-bottom: 0.75rem;
}


/* Schedule or paragraph lists inside description */
.event-description ul {
    list-style: none;                /* remove default bullets */
    margin: 1rem 0;
    padding: 0;
    border-left: none;               /* kill the blue bar */
    background: #f9fafc;             /* subtle off-white background */
    border: 1px solid #e1e5ec;       /* light neutral border */
    border-radius: 10px;
    padding: 1.5rem 2rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.event-description li {
    margin-bottom: 0.4rem;
}

.event-description strong {
    color: #b30000;
}

/* Sidebar card */
.event-sidebar {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    padding: 1.5rem;
}

.event-contact {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.event-contact a {
    color: #25285B;
    font-weight: 500;
    text-decoration: none;
}

.event-contact a:hover {
    text-decoration: underline;
}
.event-contact-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #25285B;
    border-bottom: 2px solid #c8102e;
    padding-bottom: 0.25rem;
    margin-bottom: 0.5rem;
}
.event-contact-line {
    display: flex;
    align-items: center;
    font-size: 0.95rem;
    line-height: 1.3;
}

/* applies to both phone and email icons */
.contact-icon {
    width: 20px;
    height: 20px;
    fill: #25285B;
    flex-shrink: 0;
    display: block;
    margin-left: -3px;      /* keeps phone icon visually flush with card edge */
    padding-right: 6px;     /* ✅ consistent space between icon and text */
    /*transform: translateY(1px);*/
    shape-rendering: geometricPrecision;
}




.event-sidebar {
    padding: 1.25rem 1.25rem 1.5rem;
}


/* Donate button */
.donate-button {
    display: block;
    width: 100%;
    text-align: center;
    background-color: #c8102e;
    color: #fff;
    border: none;
    padding: 0.75rem 1rem;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.donate-button:hover {
    background-color: #9b0000;
}

/* Modal inherits existing donate_modal library */

/* Responsive tweaks */
@media (max-width: 800px) {
    .event-layout {
        grid-template-columns: 1fr;
    }
    .event-sidebar {
        margin-top: 2rem;
    }
}

/* ##########################################################
   ###### END EVENT PAGE LAYOUT ######
   ########################################################## */



















/* ###### COLORBOX FIXES + DONATE POPUP ###### */
#cboxOverlay {
    background: rgba(0, 0, 0, 0.75) !important;
    z-index: 99998 !important;
}

/* Box and inner wrapper */
#colorbox,
#cboxWrapper,
#cboxContent {
    z-index: 99999 !important;
}

#colorbox,
#cboxLoadedContent {
    background: #fff !important;
    border-radius: 8px;
    overflow: hidden !important;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.3);
}

/* Keep hidden content in DOM but invisible until triggered */
.donate-hidden {
    position: absolute;
    left: -9999px;
    width: 0;
    height: 0;
    overflow: hidden;
}

/* Ensure iframe is visible and fills popup area */
#cboxLoadedContent iframe {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    border: none !important;
    background: #fff !important;
}

/* Force iframe’s container to have height */
#cboxContent,
#cboxLoadedContent {
    min-height: 600px;
}

/* Close button styling */
#cboxClose {
    top: 10px !important;
    right: 15px !important;
    background: transparent !important;
    color: #000 !important;
    font-size: 30px !important;
    font-weight: bold;
    opacity: 0.8;
    text-shadow: 0 1px 3px rgba(255, 255, 255, 0.6);
}

#cboxClose:hover {
    opacity: 1;
    color: #c00 !important;
}

/* Handle long iframes on small screens */
@media (max-width: 768px) {
    #colorbox,
    #cboxLoadedContent iframe {
        height: 80vh !important;
    }
}








/* ==========================================================
   ###### DONATE MODAL SECTION ######
   Handles the display, animation, and layout for the
   event donation popup (Anedot embed).
   ========================================================== */

/* -- Overlay base (hidden by default) -- */
.donate-modal {
    display: none;                  /* Hidden on page load */
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.75);
    justify-content: center;
    align-items: center;
    opacity: 0;                     /* For fade-in animation */
    pointer-events: none;           /* Prevent interaction while hidden */
    transition: opacity 0.3s ease-in-out;
}

/* -- Active state (shown when button clicked) -- */
.donate-modal.active {
    display: flex;
    opacity: 1;
    pointer-events: auto;
}

/* -- Modal content wrapper -- */
.donate-modal-content {
    background: #fff;
    border-radius: 8px;
    width: 90%;
    max-width: 900px;
    height: 80%;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
    overflow: hidden;
    position: relative;
    animation: fadeInScale 0.3s ease-out;
}

/* -- Embedded iframe (Anedot form) -- */
.donate-modal iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

/* -- Close button (X) -- */
.donate-close {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 30px;
    color: #444;
    cursor: pointer;
    z-index: 2;
    line-height: 1;
    transition: color 0.2s;
}

.donate-close:hover {
    color: #000;
}

/* -- Optional: subtle zoom on open -- */
@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ==========================================================
   ###### END DONATE MODAL SECTION ######
   ========================================================== */

















/* ###### CONTACT SECTION (HEADER + INTRO + MAP) ###### */

/* tokens */
:root{
    --contact-gap: clamp(1rem, 6vw, 8rem);
    --contact-inner-max: 1200px;
    --contact-left-gap: 1.25rem;       /* content offset from the vertical bar */
}



/* inner wrapper so title and grid share the same left edge */
.contact-inner{
    background: linear-gradient(180deg, rgba(0, 48, 135, 0.05), #FFFFFF);
    padding: 40px 20px;
    margin: 0 0;
    border-left: 5px solid #25285B;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    text-align: left;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}



/* ===== H2 TITLE — matched to home/members ===== */
.contact-title{
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 2.5rem;
    color: #003087;
    margin: 0 0 20px 0;
    position: relative;        /* anchor for underline stack */
    display: inline-block;
    line-height: 1.15;
    padding-bottom: 10px;      /* room for the thin rule */
}


/* Short, thicker bar — also aligned to the vertical bar */
.contact-title::after{
    content:'';
    position:absolute;
    left: 0;   /* align to the bar */
    bottom:-5px;                                /* your verified offset */
    width:50%;
    height:3px;
    background:#25285B;
    border-radius: 2px;
}
/* ===== EVENTS PAGE HEADER – reuse contact layout ===== */
.contact-card .contact-inner {
    background: linear-gradient(180deg, rgba(0, 48, 135, 0.05), #ffffff);
    padding: 40px 20px;
    border-left: 5px solid #25285B;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    text-align: left;
    max-width: 1200px;
    margin: 0 auto 40px auto;
}

.contact-card .contact-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 2.5rem;
    color: #003087;
    margin: 0 0 20px 0;
    position: relative;
    display: inline-block;
    line-height: 1.15;
    padding-bottom: 10px;
}

/* Fix underline gap to match other headers */
.contact-card .contact-title::after {
    content: '';
    display: block;
    width: 50%;
    height: 3px;
    background: #25285B;
    position: absolute;
    bottom: -6px; /* <- this creates that small visible gap */
    left: 0;
    border-radius: 2px;
}


/* two-column layout under the title: text | map(~280px) */
.contact-top{
    display:grid;
    grid-template-columns: minmax(32ch, 48ch) minmax(240px, 280px);
    column-gap: var(--contact-gap);
    align-items:start;
    width:100%;
    margin:0;
}

.contact-text p{
    font-size:1.05rem;
    line-height:1.7;
    margin:0;
    color:#1b2b49;
}

/* map column locked near 280px */
.contact-map{
    width:100%;
    max-width:280px;
    justify-self:start;
}
.contact-card {
    margin-bottom: 50px;
}
.contact-map img{
    display:block;
    width:100%;
    height:auto;
    border-radius:8px;
    box-shadow:0 2px 6px rgba(0,0,0,.1);
    transition: transform .2s ease;
}
.contact-map img:hover{ transform: scale(1.02); }
.contact-map small{
    display:block;
    margin-top:6px;
    font-size:.8rem;
    color:#555;
    text-align:center;
}

/* mobile stack */
@media (max-width: 768px){
    .contact-card{ padding:1.25rem; }
    .contact-inner{ padding-left:.9rem; }
    .contact-inner::before{ top:.6rem; bottom:.8rem; width:5px; }
    .contact-top{
        grid-template-columns:1fr;
        row-gap:1rem;
    }
    .contact-map{ max-width:100%; justify-self:center; }
}

/* ===== FORM STYLES (unchanged) ===== */
.webform-submission-contact-district-15-form{ max-width:100%; }
.webform-submission-contact-district-15-form label{ display:block; font-weight:600; margin-bottom:4px; }
.webform-submission-contact-district-15-form input,
.webform-submission-contact-district-15-form select,
.webform-submission-contact-district-15-form textarea{
    width:100%; border-radius:6px; padding:10px 12px; border:1px solid #ccc;
    margin-bottom:15px; font-size:1rem;
}
.webform-submission-contact-district-15-form .form-item-name-first,
.webform-submission-contact-district-15-form .form-item-name-last,
.webform-submission-contact-district-15-form .form-item-phone,
.webform-submission-contact-district-15-form .form-item-email{
    display:inline-block; width:48%; vertical-align:top;
}
.webform-submission-contact-district-15-form .form-item-name-first,
.webform-submission-contact-district-15-form .form-item-phone{ margin-right:3%; }
@media (max-width: 768px){
    .webform-submission-contact-district-15-form .form-item-name-first,
    .webform-submission-contact-district-15-form .form-item-name-last,
    .webform-submission-contact-district-15-form .form-item-phone,
    .webform-submission-contact-district-15-form .form-item-email{
        width:100%; margin-right:0;
    }
}
.webform-submission-contact-district-15-form textarea{ min-height:140px; resize:vertical; }
.webform-submission-contact-district-15-form input[type="submit"]{
    background:#c8102e; color:#fff; border:none; padding:12px 32px;
    font-size:1rem; font-weight:600; border-radius:6px; cursor:pointer;
    display:inline-block; margin:20px auto 0 auto; text-align:center; width:auto;
    transition: background-color .3s ease, transform .2s ease;
}
.webform-submission-contact-district-15-form input[type="submit"]:hover{
    background:#a60d24; transform: translateY(-1px);
}
.webform-submission-contact-district-15-form input[type="submit"]:active{
    transform: translateY(1px);
}
@media (max-width: 768px){
    .webform-submission-contact-district-15-form input[type="submit"]{ width:100%; display:block; }
}
.captcha__title, .captcha__description{ display:none !important; }
.captcha{ margin:20px 0; }

/* ===== MODAL / LIGHTBOX (unchanged) ===== */
.visually-hidden{
    position:absolute !important;
    width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0;
}
.contact-modal{ position:fixed; inset:0; display:none; align-items:center; justify-content:center; z-index:9999; }
.contact-modal.is-open{ display:flex; }
.contact-modal__backdrop{ position:absolute; inset:0; background:rgba(0,0,0,.55); backdrop-filter: blur(1px); }
.contact-modal__dialog{
    position:relative; z-index:1; max-width:none; max-height:90vh; padding:0; margin:0 1rem;
    border-radius:10px; box-shadow:0 10px 30px rgba(0,0,0,.35); overflow:hidden; background:#fff;
}
.contact-modal__dialog img{ display:block; width:auto; height:auto; max-width:95vw; max-height:90vh; }
.contact-modal__close{
    position:absolute; top:.25rem; right:.5rem; width:38px; height:38px; border:none; border-radius:50%;
    background:rgba(255,255,255,.92); color:#111; font-size:28px; line-height:1; cursor:pointer; box-shadow:0 2px 6px rgba(0,0,0,.2);
}
.contact-modal__close:hover{ background:#fff; }

/* ###### END CONTACT SECTION (HEADER + INTRO + MAP) ###### */



