/* ============================================================
   1. GLOBAL RESET AND TYPOGRAPHY
   ============================================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box; 
    text-decoration: none;
    list-style: none;
}

body {
    font-family: 'Public Sans', -apple-system, sans-serif;
    color: #1D2330;
    background-color: #F4F5F7; 
}

h1, h2, h3, h4 {
    font-family: 'Oswald', Impact, sans-serif;
    text-transform: uppercase;
    font-weight: 700;
}

/* ============================================================
   2. MAIN NAVIGATION HEADER
   ============================================================ */
.main-header {
    background-color: #FFFFFF;
    padding: 1rem 5%; 
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #EEEEEE; 
    position: relative;
    z-index: 100;
}

.header-logo h1 {
    font-size: 1.5rem;
    letter-spacing: -0.5px;
    color: #0A1128; 
}

.header-nav ul {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.header-nav ul li a {
    font-size: 0.95rem;
    color: #1D2330;
    font-weight: 600;
    transition: color 0.2s ease;
}

.header-nav ul li a:hover {
    color: #0A1128;
}

/* Red Donate Button in Header */
.donate-btn-item {
    margin-left: 1rem;
}

.donate-btn-link {
    background-color: #E5383B; 
    color: #FFFFFF !important;
    padding: 0.8rem 2.2rem;
    font-family: 'Oswald', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    border: 2px solid #0A1128; 
    box-shadow: 4px 4px 0px #0A1128; 
    transition: all 0.2s ease;
}

.donate-btn-link:hover {
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0px #0A1128;
}

/* ============================================================
   3. CAMPAIGN HERO SECTION (The Brick Streets Background)
   ============================================================ */
.campaign-hero {
    position: relative;
    width: 100%;
    min-height: 80vh; 
    display: flex;
    align-items: center; 
    padding: 4rem 5%;
    
    /* 1. Ensure this background-color exists */
    background-color: #0A1128; 
    
    /* 2. ADD THIS BACK: The gradient blend + your photo */
    background-image: 
        linear-gradient(to right, rgba(10, 17, 40, 0.95) 0%, rgba(10, 17, 40, 0.6) 50%, rgba(10, 17, 40, 0.2) 100%),
        url('brick_streets.jpg'); 
        
    /* 3. ADD THIS BACK: Ensures the photo is visible and focused correctly */
    background-position: center 30%; 
    background-size: cover;
    background-repeat: no-repeat;
}

/* Ensure your left-aligned text block is limited in width so it doesn't cross over the figures */
.text-block-container {
  max-width: 600px;
  /* (Keep other text styling: font-sizes, margins, etc.) */
}

.hero-content-wrapper {
    max-width: 800px; 
    position: relative;
    z-index: 10; 
}

.hero-headline {
    color: #FFFFFF;
    font-size: 4rem;
    line-height: 1.05;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}

.hero-paragraph {
    color: #FFFFFF;
    font-size: 1.25rem;
    line-height: 1.6;
    margin-bottom: 2.5rem;
}

.hero-btn {
    background-color: #E5383B;
    color: #FFFFFF; 
    padding: 1rem 2rem; 
    border: 3px solid #0A1128;
    box-shadow: 4px 4px 0px #0A1128; 
    display: inline-block;
    transition: all 0.2s ease;
    font-family: 'Oswald', sans-serif;
    font-weight: 700;
    font-size: 1.2rem;
    text-transform: uppercase;
    cursor: pointer;
    text-decoration: none;
}

/* Hover effect to match the Donate button */
.hero-btn:hover,
.hero-btn:focus {
    background-color: #0A1128;
    color: #FFFFFF;
    box-shadow: 4px 4px 0px #E5383B; 
}

/* ============================================================
   4. CANDIDATE BIO BOXES (REVISED)
   ============================================================ */
.candidates-section {
    background-color: #F4F5F7;
    padding: 5rem 5%;
}

.candidates-header h2 {
    font-size: 3rem;
    color: #0A1128;
    margin-bottom: 0.5rem;
}

.candidates-main-line {
    width: 300px;
    height: 4px;
    background-color: #0A1128;
    border: none;
    margin-bottom: 3rem;
}

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

.candidate-card {
    background-color: #FFFFFF;
    border: 3px solid #0A1128;
    display: flex;
    flex-direction: column; /* Ensures content stacks top-to-bottom */
}

.candidate-card img {
    width: 100%;
    display: block;
    border-bottom: 3px solid #0A1128;
}

.candidate-info {
    padding: 1.5rem;
    /* 1. Add flexbox to this container */
    display: flex;
    flex-direction: column;
    flex-grow: 1; /* Ensures the whole card stretches evenly */
    text-align: center;
}

.candidate-info h3 {
    font-size: 2rem;
    color: #0A1128;
    margin-bottom: 0.5rem;
}

/* NEW: Bio Text Styling */
/* Styling for the biography paragraph inside the card */
.bio-text {
    font-family: 'Public Sans', sans-serif; /* Applies the new font */
    font-size: 1rem;
    line-height: 1.6; /* Slightly increased for better readability with Public Sans */
    color: #4B5563; 
    margin: 1rem 0;
    padding: 0 1rem;
    text-align: left; /* Forces the text to align left */
}

/* NEW: Read More Link Styling */
.read-more {
    font-family: 'Oswald', sans-serif; 
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
    color: #E5383B;
    border-bottom: 2px solid #E5383B;
    transition: all 0.2s ease;
    text-decoration: none;
    
    /* 1. Stops the button from stretching full-width */
    display: inline-block; 
    
    /* 2. Keeps it perfectly centered */
    align-self: center; 
    
    /* 3. Pushes it to the bottom */
    margin-top: auto; 
}
   
.read-more:hover {
    color: #0A1128;
    border-bottom-color: #0A1128;
}

/* ============================================================
   5. DUTIES OF THE BOARD SECTION
   ============================================================ */
.board-duties-section {
    background-color: #0A1128; /* The dark slate background */
    padding: 5rem 5%;
}

.board-duties-container {
    max-width: 1200px;
    margin: 0 auto;
}

.duties-header h2 {
    font-size: 3.5rem;
    color: #FFFFFF;
    margin-bottom: 1rem;
    letter-spacing: -0.5px;
}

/* The primary red line beneath the main title */
.duties-main-line {
    width: 45%;
    max-width: 450px;
    height: 4px;
    background-color: #E5383B;
    border: none;
    margin-bottom: 2.5rem;
}

.duties-intro {
    font-size: 1.15rem;
    line-height: 1.7;
    color: #D1D5DB; /* Slightly muted white/gray for readability */
    max-width: 800px;
    margin-bottom: 4rem;
}

/* The 3-column grid for the individual duties */
.duties-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem 2rem; /* 3rem vertical gap, 2rem horizontal gap */
}

/* The red lines above each specific duty */
.duty-item-line {
    width: 100%;
    height: 3px;
    background-color: #E5383B;
    border: none;
    margin-bottom: 1.5rem;
}

.duty-item h3 {
    font-size: 1.5rem;
    color: #FFFFFF;
    margin-bottom: 1rem;
    letter-spacing: 0.5px;
}

.duty-item p {
    font-size: 1.05rem;
    line-height: 1.6;
    color: #D1D5DB;
}

/* ============================================================
   6. FOOTER SECTION
   ============================================================ */
.site-footer {
    background-color: #0A1128; 
    border-top: 4px solid #E5383B; /* The red line across the top */
    text-align: center;
    padding: 3rem 1rem; /* Gives it plenty of vertical breathing room */
}

.site-footer p {
    font-family: 'Public Sans', sans-serif;
    font-size: 0.9rem;
    color: #9CA3AF; /* A muted gray so it doesn't distract from main content */
    letter-spacing: 1px;
    text-transform: uppercase;
    margin: 0;
}


/* ============================================================
   7. RESPONSIVE DESIGN (Mobile Adjustments)
   ============================================================ */
@media screen and (max-width: 900px) {
    .hero-headline { font-size: 3rem; }
    .hero-paragraph { font-size: 1.15rem; }
    
    /* Drops the candidate and duties grids from 3 columns down to 2 */
    .candidates-grid, .duties-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 700px) {
    .main-header {
        flex-direction: column;
        gap: 1rem;
        padding: 1.5rem;
    }
    .header-nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1.5rem;
    }
    .donate-btn-item { margin-left: 0; margin-top: 1rem; }
    .hero-headline { font-size: 2.2rem; }
    
    /* Drops grids down to 1 single column for phones */
    .candidates-grid, .duties-grid {
        grid-template-columns: 1fr;
    }
    .duties-main-line { width: 80%; }
}

/* ============================================================
   GOOGLE FORM MODAL (POP-UP)
   ============================================================ */
/* The dark background overlay */
.modal {
    display: none; /* Hidden by default */
    position: fixed; 
    z-index: 2000; /* Sits on top of everything, including your header */
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    overflow: auto; 
    background-color: rgba(10, 17, 40, 0.85); /* Your dark blue, slightly transparent */
}

/* The white box containing the form */
.modal-content {
    background-color: #F4F5F7;
    margin: 5% auto; /* Centered with a small margin at the top */
    padding: 1rem;
    border: 3px solid #0A1128;
    width: 90%;
    max-width: 800px;
    position: relative;
    box-shadow: 8px 8px 0px #E5383B; /* Red shadow for extra branding */
}

/* The 'X' Close Button */
.close-btn {
    color: #0A1128;
    float: right;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
    margin-bottom: 10px;
    transition: color 0.2s ease;
}

.close-btn:hover,
.close-btn:focus {
    color: #E5383B; /* Turns red on hover */
    text-decoration: none;
}

/* ============================================================
   NAVIGATION & HEADER
   ============================================================ */
.site-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    position: relative; /* Crucial for positioning the dropdown */
    background-color: #FFFFFF; /* Ensure it has a solid background */
}

/* Default Desktop Menu Layout */
.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links a {
    font-family: 'Oswald', sans-serif;
    font-weight: 600;
    color: #0A1128;
    text-decoration: none;
    font-size: 1.1rem;
}

/* ============================================================
   DONATE BUTTON (Overrides default nav link styles)
   ============================================================ */
.nav-links a.donate-btn {
    background-color: #E5383B;
    color: #FFFFFF; /* White text so it pops against the red */
    padding: 0.5rem 1.5rem;
    border: 3px solid #0A1128;
    box-shadow: 4px 4px 0px #0A1128; /* Re-adds the dark shadow from your original design */
    display: inline-block;
    transition: all 0.2s ease;
}

/* Optional hover effect */
.nav-links a.donate-btn:hover,
.nav-links a.donate-btn:focus {
    background-color: #0A1128;
    color: #FFFFFF;
    box-shadow: 4px 4px 0px #E5383B; /* Swaps the shadow color when hovered */
}

/* Hide Hamburger Button on Desktop */
.hamburger {
    display: none;
    font-size: 2rem;
    background: none;
    border: none;
    cursor: pointer;
    color: #0A1128;
}

/* ============================================================
   MOBILE RESPONSIVENESS (Screens smaller than 768px)
   ============================================================ */
@media (max-width: 768px) {
    /* Show the hamburger icon */
    .hamburger {
        display: block;
    }

    /* Hide the normal menu and prepare the dropdown layout */
    .nav-links {
        display: none; /* Hidden by default */
        flex-direction: column;
        position: absolute;
        top: 100%; /* Pushes it right below the header */
        left: 0;
        width: 100%;
        background-color: #FFFFFF;
        box-shadow: 0px 8px 16px rgba(0,0,0,0.1); /* Adds a slight shadow so it pops over the hero image */
        padding: 1rem 0;
        text-align: center;
        z-index: 1000;
        border-top: 2px solid #E5383B; /* Adds a nice campaign red line to separate it */
    }

    /* Space out the links in the dropdown */
    .nav-links li {
        margin: 1rem 0;
    }

    /* This class is added via JavaScript when the button is clicked */
    .nav-links.active {
        display: flex;
    }
}

/* ============================================================
   PRESET DONATION SECTION
   ============================================================ */
.donate-preset-section {
    background-color: #FFFFFF; 
    text-align: center; /* Centers the H2 title */
    padding: 4rem 2rem; /* Adds generous padding to the top and bottom of the white section */
    border-top: 2px solid #E5383B; 
    display: block; 
}

.donate-preset-section h2 {
    font-family: 'Oswald', sans-serif;
    color: #0A1128; 
    font-size: 2.5rem;
    margin-top: 0;
    margin-bottom: 3rem; /* Adds a nice gap between the title and the row of buttons */
    text-transform: uppercase;
}

.preset-buttons {
    display: flex;
    justify-content: center; /* Forces the buttons to the middle of the page */
    align-items: center;
    flex-wrap: wrap; 
    gap: 2rem; /* Adds 2rem of empty space between every single button so the shadows don't overlap */
    margin: 0 auto;
    max-width: 1200px; /* Keeps them from stretching too far apart on giant monitors */
}

/* ============================================================
   IN THE NEWS PAGE
   ============================================================ */
/* Header Banner */
.news-hero {
    background-color: #0A1128 !important;
    color: #FFFFFF !important;
    text-align: center;
    padding: 4rem 2rem;
    border-bottom: 3px solid #E5383B;
    margin-bottom: 3rem;
}

.news-hero h2 {
    font-family: 'Oswald', sans-serif;
    font-size: 3rem;
    color: #FFFFFF !important;
    margin: 0 0 0.5rem 0;
    text-transform: uppercase;
}

.news-hero p {
    font-size: 1.2rem;
    color: #E0E0E0;
    margin: 0;
}

/* Page Container (Centers the cards on the screen) */
.news-container {
    max-width: 850px;
    margin: 0 auto 5rem auto;
    padding: 0 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

/* Individual Article Cards */
.news-card {
    background-color: #FFFFFF;
    border: 3px solid #0A1128;
    box-shadow: 6px 6px 0px #0A1128;
    padding: 2rem;
    text-align: left;
    transition: box-shadow 0.2s ease;
}

.news-card:hover {
    box-shadow: 6px 6px 0px #E5383B;
}

.news-source {
    font-family: 'Oswald', sans-serif;
    color: #E5383B;
    font-weight: 700;
    font-size: 1.1rem;
    text-transform: uppercase;
    margin-bottom: 0.25rem;
}

.news-card h3 {
    font-family: 'Oswald', sans-serif;
    color: #0A1128;
    font-size: 1.75rem;
    line-height: 1.2;
    margin: 0 0 0.25rem 0;
}

.news-date {
    font-size: 0.9rem;
    color: #555555;
    margin: 0 0 1.25rem 0;
    font-style: italic;
}

.news-excerpt {
    font-family: 'Public Sans', sans-serif;
    font-size: 1.05rem;
    color: #111111;
    line-height: 1.6;
    margin: 0 0 1.75rem 0;
}
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2.5rem;
}
