/* --- Variables & Reset --- */
:root {
    --primary-teal: #009C95; /* Matched from logo background */
    --dark-navy: #1A2238;    /* Matched from logo text */
    --cream: #F9F7F2;        /* Matched from logo border/warmth */
    --white: #ffffff;
    --text-color: #333333;
    --accent-hover: #007a75;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
}

h1, h2, h3 { font-weight: 800; color: var(--dark-navy); text-transform: uppercase; letter-spacing: -0.5px; }
a { text-decoration: none; transition: 0.3s; }

.container { width: 90%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.section-padding { padding: 80px 0; }
.text-center { text-align: center; }

/* --- Navigation --- */
/* Add this to style.css */

.logo-img {
    max-height: 100px; /* Adjust this number to make the logo bigger or smaller */
    width: auto;      /* Keeps the aspect ratio correct so it doesn't stretch */
    display: block;   /* Removes extra space below the image */
}

/* Optional: Make the footer logo slightly larger if you want */
.footer-logo .logo-img {
    max-height: 80px;
    margin: 0 auto 15px auto; /* Centers the logo in the footer */
}
header { background: var(--white); box-shadow: 0 2px 10px rgba(0,0,0,0.1); position: sticky; top: 0; z-index: 1000; padding: 1rem 0; }
.nav-container { display: flex; justify-content: space-between; align-items: center; }

.logo { font-size: 1.8rem; font-weight: 900; color: var(--primary-teal); letter-spacing: 1px; }
.logo-highlight { color: var(--dark-navy); }

.nav-links { display: flex; list-style: none; align-items: center; }
.nav-links li { margin-left: 30px; }
.nav-links a { color: var(--dark-navy); font-weight: 600; font-size: 0.95rem; }
.nav-links a:hover { color: var(--primary-teal); }

.btn-donate {
    background-color: var(--primary-teal);
    color: var(--white) !important;
    padding: 10px 25px;
    border-radius: 5px;
    text-transform: uppercase;
    font-weight: bold;
}
.btn-donate:hover { background-color: var(--accent-hover); }

.hamburger { display: none; font-size: 1.5rem; cursor: pointer; color: var(--dark-navy); }

/* --- Hero Section --- */
.hero {
    height: 50vh;
    background: linear-gradient(135deg, rgba(26, 34, 56, 0.9), rgba(0, 156, 149, 0.8)), url('https://upload.wikimedia.org/wikipedia/commons/5/59/State_Capitol_with_new_Minnesota_State_Flag_11.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    position: relative;
    color: var(--white);
}

.hero-content { position: relative; z-index: 2; max-width: 800px; }
.hero h1 { font-size: 3.5rem; color: var(--white); margin-bottom: 20px; line-height: 1.2; text-shadow: 2px 2px 4px rgba(0,0,0,0.3); }
.hero-sub { font-size: 1.2rem; margin-bottom: 30px; font-weight: 300; opacity: 0.9; }

.btn { padding: 15px 35px; border-radius: 5px; font-weight: bold; text-transform: uppercase; display: inline-block; }
.btn-primary { background: var(--primary-teal); color: var(--white); border: none; margin-right: 15px; }
.btn-primary:hover { background: var(--accent-hover); }
.btn-outline { background: transparent; border: 2px solid var(--white); color: var(--white); }
.btn-outline:hover { background: var(--white); color: var(--dark-navy); }
.btn-navy { background: var(--dark-navy); color: var(--white); border: none; width: 100%; margin-top: 10px; cursor: pointer; }
.btn-navy:hover { opacity: 0.9; }

/* New Teal Outline Button */
.btn-outline-teal {
    background: transparent;
    border: 2px solid var(--primary-teal);
    color: var(--primary-teal);
    padding: 13px 30px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    transition: 0.3s;
}

.btn-outline-teal:hover {
    background: var(--primary-teal);
    color: white;
}

/* Map Styling */
.map-container {
    position: relative;
    max-width: 600px;
    max-height: 250px;
    margin: 30px auto;
    border: 5px solid var(--white);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-radius: 10px;
    overflow: hidden;
}

.district-img {
    width: 100%;
    display: block;
    transition: transform 0.5s ease;
}

.map-container:hover .district-img {
    transform: scale(1.05);
}

.map-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(26, 34, 56, 0.4); /* Navy tint */
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: 0.3s;
    color: white;
    font-weight: bold;
}

.map-container:hover .map-overlay {
    opacity: 1;
}

.map-info {
    margin-top: 20px;
}

/* --- About Section --- */
.bg-cream { background-color: var(--cream); }
.two-col { display: flex; gap: 50px; align-items: center; }
.about-image { flex: 1; }
.about-text { flex: 1; }

.img-placeholder {
    width: 100%;
    height: 400px;
    background-color: #ddd;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #666;
    border-radius: 10px;
    font-size: 1.2rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.section-heading { font-size: 2.5rem; margin-bottom: 20px; color: var(--dark-navy); }
.about-text p { margin-bottom: 15px; font-size: 1.1rem; }

/* --- Issues Section --- */
/* Learn More Button */
.btn-learn {
    background: transparent;
    border: 2px solid var(--primary-teal);
    color: var(--primary-teal);
    padding: 8px 20px;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
    margin-top: 15px;
    transition: 0.3s;
}

.btn-learn:hover {
    background: var(--primary-teal);
    color: white;
}

/* Modal Background Overlay */
.modal {
    display: none; 
    position: fixed; 
    z-index: 2000; 
    left: 0; top: 0;
    width: 100%; height: 100%;
    background-color: rgba(26, 34, 56, 0.9); /* Navy Overlay */
}

/* Modal Box */
.modal-content {
    background-color: var(--white);
    margin: 5% auto;           /* Reduced top margin to give more space */
    padding: 40px;
    border-radius: 12px;
    width: 90%;                /* Wider for mobile compatibility */
    max-width: 700px;
    position: relative;
    border-top: 8px solid var(--primary-teal);

    /* --- THE FIX --- */
    max-height: 85vh;          /* Box will never exceed 85% of screen height */
    overflow-y: auto;          /* Adds a scrollbar inside the box if needed */
    box-shadow: 0 5px 30px rgba(0,0,0,0.3);
}

.close-btn {
    position: sticky;          /* Keeps the X visible even when scrolling down */
    top: -20px;                /* Adjusted for the sticky position */
    float: right;
    font-size: 2.5rem;
    cursor: pointer;
    color: var(--dark-navy);
    line-height: 1;
    z-index: 100;              /* Keeps it above the text */
}

.policy-detail-list {
    margin-top: 20px;
    padding-left: 20px;
}

.policy-detail-list li {
    margin-bottom: 15px;
    font-size: 1.1rem;
}
.section-sub { font-size: 1.2rem; color: #666; margin-bottom: 50px; }
.issues-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }

.issue-card {
    background: var(--white);
    border: 1px solid #eee;
    padding: 30px;
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-top: 5px solid var(--primary-teal);
}
.issue-card:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0,0,0,0.1); }

.icon-box {
    background: var(--cream);
    color: var(--primary-teal);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.issue-card h3 { font-size: 1.3rem; margin-bottom: 15px; }
.policy-list { list-style: none; margin-top: 15px; }
.policy-list li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 10px;
    font-size: 0.95rem;
    color: #555;
}
.policy-list li::before {
    content: "•";
    color: var(--primary-teal);
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* --- Volunteer/CTA --- */
/* Ensure the container is a flexbox and centers everything */
./* 1. Clear out the container */
.cta-group {
    display: flex !important;
    justify-content: center;
    align-items: center;
    gap: 15px;      /* This is the ONLY space that will exist between buttons */
    margin: 30px 0;
    padding: 0;
    flex-wrap: wrap; 
}

/* 2. Standardize the buttons */
.cta-group .btn {
    margin: 0 !important;   /* Kill any hidden margins */
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-width: 180px;       /* Forces them to be the same width */
    height: 50px;           /* Forces them to be the same height */
    padding: 0 20px;        /* Side padding only */
    font-weight: bold;
    text-decoration: none;
    border-radius: 4px;
    box-sizing: border-box; /* Ensures padding doesn't grow the button */
}

/* --- Footer --- */
footer { background: var(--dark-navy); color: var(--white); padding: 50px 0; text-align: center; }
.footer-logo { font-size: 2rem; font-weight: 900; margin-bottom: 10px; color: var(--primary-teal); }
.social-links { margin-top: 20px; }
.social-links a { color: var(--white); font-size: 1.5rem; margin: 0 10px; }
.social-links a:hover { color: var(--primary-teal); }

/* --- Mobile Responsiveness --- */
@media (max-width: 768px) {
    .hamburger { display: block; }
    .nav-links {
        position: fixed; right: -100%; top: 70px; height: 100vh; background: var(--white);
        flex-direction: column; width: 60%; transition: 0.3s; padding-top: 20px; box-shadow: -2px 0 5px rgba(0,0,0,0.1);
    }
    .nav-links.active { right: 0; }
    .nav-links li { margin: 20px 0; }
    
    .hero h1 { font-size: 2.5rem; }
    .two-col { flex-direction: column; }
    .img-placeholder { height: 250px; }
}
/* Ensure the button container allows 3 buttons to sit side-by-side */
.cta-group {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap; /* This makes them stack on phones so they don't overlap */
    margin-top: 25px;
}

/* Base style for the new District Button */
.btn-district {
    display: inline-block;
    padding: 12px 24px;
    border: 2px solid var(--white);
    color: var(--white);
    text-decoration: none;
    font-weight: bold;
    border-radius: 4px;
    transition: 0.3s ease;
    background: transparent;
}

/* Hover effect */
.btn-district:hover {
    background: var(--white);
    color: #ffffff;
}

/* Make sure the text is visible if your background is dark */
.hero-content .btn-district {
    background-color: #5ec4b6; /* Your Campaign Teal */
    color: #1a2238;           /* Dark Navy text for maximum contrast */
    border: none;
    padding: 14px 28px;       /* Slightly larger for a bold look */
    box-shadow: 0 4px 6px rgba(0,0,0,0.2);
}

.hero-content .btn-district:hover {
    background-color: #ffffff; /* Turns white on hover */
    color: #1a2238;
    transform: translateY(-2px); /* Subtle lift effect */
}
}
/* Container for all hero buttons */
.cta-group {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 30px;
}

/* Base style for ALL hero buttons */
.cta-group .btn {
    padding: 14px 28px;
    border-radius: 5px;
    font-weight: 800;
    text-transform: uppercase;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    border: none;
}

/* PRIMARY BUTTON: Join the Campaign (Bright Teal) */
.btn-primary {
    background-color: #009C95; /* Your Logo Teal */
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(0, 156, 149, 0.3);
}

.btn-primary:hover {
    background-color: #007a75;
    transform: translateY(-2px);
}

/* SECONDARY BUTTONS: Issues & Map (Off-White/Light Gray) */
/* We use a light color here so they are readable but don't compete with the Teal */
.btn-outline, .btn-district {
    background-color: rgba(255, 255, 255, 0.9);
    color: #1a2238; /* Dark Navy text */
}

.btn-outline:hover, .btn-district:hover {
    background-color: #ffffff;
    color: #009C95; /* Swaps to Teal text on hover */
    transform: translateY(-2px);
}
#signupForm {
    position: relative;
    z-index: 10;
}

input, button {
    cursor: pointer; /* This lets you see if the browser 'sees' the element */
}
/* Fix the horizontal row for inputs */
.form-row {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    flex-wrap: wrap; /* Stacks them on mobile */
}

.form-row input, .form-row select {
    flex: 1; /* Makes all boxes equal width */
    min-width: 200px;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
}

/* Fix the Submit Button */
.btn-submit {
    width: 25%;
    background-color: #1A2238; /* Your Campaign Navy */
    color: #ffffff;
    padding: 18px;
    border: none;
    border-radius: 4px;
    font-weight: 900;
    font-size: 1.1rem;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background 0.3s;
}

.btn-submit:hover {
    background-color: #009C95; /* Turns Teal on hover */
}
/* This adds the white space between the form and the footer */
.signup-form {
    margin-bottom: 60px; /* Adjust this number to make the gap larger or smaller */
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* Keeps button on the left as seen in your screenshot */
}

/* Ensure the button has its own spacing if needed */
.btn-submit {
    margin-top: 10px;
    padding: 15px 40px; /* Gives the button a nice professional width */
    width: auto;         /* Ensures it only takes up as much space as the text needs */
}
.profile-photo {
    width: 100%;
    height: auto;
    border-radius: 8px; /* Gives soft rounded corners */
    box-shadow: 0 4px 15px rgba(0,0,0,0.1); /* Adds a subtle depth */
    display: block;
}

.about-image {
    /* Ensures the container stays aligned */
    flex: 1;
    max-width: 500px; 
}
.lang-links {
    display: flex;
    gap: 8px;
    margin: 0 10px;
    align-items: center;
}

.lang-btn {
    font-size: 0.8rem;
    font-weight: bold;
    padding: 2px 6px;
    border: 1px solid var(--primary-teal); /* Use your campaign teal */
    border-radius: 4px;
    text-decoration: none;
    color: var(--primary-teal);
}

.lang-btn:hover {
    background-color: var(--primary-teal);
    color: white;
}
.lang-links {
    display: flex;
    gap: 5px; /* Reduced gap slightly to save space */
    margin: 0 8px;
    align-items: center;
    white-space: nowrap; /* Prevents buttons from jumping to the next line */
}

.lang-btn {
    font-size: 0.75rem; /* Slightly smaller to fit all three comfortably */
    padding: 2px 4px;
    /* ... keep your other styles ... */
}
@media (max-width: 768px) {
    /* 1. Stop the header from floating over the content */
    header {
        position: relative !important; 
        padding: 10px 0;
        box-shadow: none;
    }

    /* 2. Fix the logo clipping */
    .logo-img {
        max-height: 65px !important;
        width: auto;
        margin: 0 auto;
    }

    /* 3. Give the Hero Section room to breathe */
    .hero {
        height: auto !important;      /* Forces section to grow with text */
        min-height: 500px;            /* Ensures it still looks like a Hero section */
        padding: 60px 20px !important; /* Pushes text down so it doesn't touch the logo */
        display: block !important;    /* Switches from flexbox to standard stacking */
    }

    .hero-content {
        text-align: center;
        max-width: 100%;
    }

    /* 4. Shrink the headline so it doesn't take up the whole screen */
    .hero h1 {
        font-size: 2.1rem !important;
        line-height: 1.1;
        margin-bottom: 15px;
    }

    .hero-sub {
        font-size: 1rem;
        margin-bottom: 25px;
    }

    /* 5. Stack buttons so they don't overlap horizontally */
    .cta-group {
        flex-direction: column;
        gap: 12px;
    }

    .cta-group .btn {
        width: 100%;
        margin-right: 0 !important;
    }
}
/* Container for the pop-up content */
#caucus-popup-content {
    background: #fff;
    width: 90%;
    max-width: 600px; /* Limits size on desktop */
    margin: 50px auto;
    position: relative;
    padding: 0; /* Removed padding so image goes edge-to-edge */
    border-radius: 8px;
    overflow: hidden; /* Clips the image corners to the border-radius */
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

/* Makes the image responsive */
.caucus-img {
    width: 100%;
    height: auto;
    display: block;
}

/* Styling the close button so it's visible over the image */
.caucus-close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 28px;
    color: #fff; /* White to stand out against the blue background */
    cursor: pointer;
    z-index: 10;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

/* Button area at the bottom */
.caucus-footer {
    padding: 20px;
    text-align: center;
    background-color: #fff;
}
.ice-alert-bar {
    background-color: #c9302c; /* Urgent Red */
    color: white;
    padding: 12px 0;
    border-bottom: 3px solid #9d2522;
}

.alert-flex {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.alert-tag {
    background: white;
    color: #c9302c;
    font-weight: 900;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    text-transform: uppercase;
}

.alert-text {
    margin: 0;
    font-weight: 500;
    font-size: 1.1rem;
}

.alert-btn {
    background: transparent;
    color: white;
    border: 2px solid white;
    padding: 5px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: 0.3s;
}

.alert-btn:hover {
    background: white;
    color: #c9302c;
}

/* Mobile Responsive Adjustments */
@media (max-width: 768px) {
    .alert-flex {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    .alert-text {
        font-size: 1rem;
    }
}