/* General Body and Container Styles */
body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    color: #333;
    margin: 0;
    padding: 0;
    background-color: #f4f7f6; /* Light grey background */
}

.wrapper {
    display: flex;
    max-width: 1200px;
    margin: 20px auto;
    background: #fff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
}

.clearfix::after {
    content: "";
    display: table;
    clear: both;
}

/* Top Bar Styles */
.top-bar {
    background-color: #003366; /* Dark blue, common in politics */
    color: white;
    padding: 10px 0;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.top-bar-content {
    display: flex;
    align-items: center;
    max-width: 1200px;
    padding: 0 20px;
    box-sizing: border-box;
}

.top-bar-logo {
    align-content: center;
}

.logo-divider {
    width: 1px;
    background-color: rgba(255, 255, 255, 0.3);
    height: auto;
    margin-left: 15px;
}

/* Left Column - Candidate Profile */
.left {
    width: 300px; /* Fixed width for the left column */
    background-color: #e0e6ed; /* Lighter blue/grey for contrast */
    padding: 20px;
    box-sizing: border-box;
    text-align: center;
    border-right: 1px solid #d0d6dc;
    flex-shrink: 0; /* Prevent shrinking */
}

.name-hero {
    margin-bottom: 20px;
}

.name-hero .nav {
    list-style: none;
    padding: 0;
    margin-bottom: 30px;
    border-bottom: 1px solid #ccc;
    padding-bottom: 15px;
}

.name-hero .nav li {
    margin-bottom: 10px;
}

.name-hero .nav a {
    text-decoration: none;
    color: #003366; /* Dark blue for navigation links */
    font-weight: 700;
    font-size: 1.1em;
    display: block;
    padding: 8px 0;
    transition: color 0.3s ease, background-color 0.3s ease;
}

.name-hero .nav a:hover,
.name-hero .nav a:focus {
    color: #cc0000; /* A strong red for hover, indicating action/impact */
    background-color: rgba(0, 51, 102, 0.05);
    border-radius: 4px;
}

.me-img {
    width: 100%;
    height: 0; /* Placeholder, actual image is within .name-text */
    padding-bottom: 100%; /* For square aspect ratio if used as background */
    background-size: cover;
    background-position: center;
    border-radius: 50%;
    margin: 0 auto 20px;
    overflow: hidden; /* Ensure image within name-text is contained */
}

.name-text img {
    width: 180px; /* Control image size */
    /*height: 180px; Control image size */
    border-radius: 5px;
    object-fit: cover;
    border: 4px solid #003366; /* Border matching primary color */
    margin-bottom: 15px;
}

.name-text h1 {
    font-family: 'Lora', serif;
    font-size: 2.2em;
    margin: 10px 0;
    color: #003366;
}

.name-text p {
    font-size: 1em;
    margin: 5px 0;
    color: #555;
}

.name-text p em {
    font-style: normal;
    font-weight: 600;
    color: #cc0000; /* Highlight the candidate's role */
}

.name-text .fa {
    padding: 10px;
    font-size: 24px;
    width: 40px;
    text-align: center;
    text-decoration: none;
    margin: 5px 2px;
    border-radius: 50%;
    color: white;
    transition: background-color 0.3s ease;
}

.fa-facebook { background: #3B5998; }
.fa-twitter { background: #55ACEE; }
.fa-linkedin { background: #007bb5; }
.fa-instagram {background: #d6249f;}

.fa:hover {
    opacity: 0.8;
}

/* Right Column - Content Sections */
.right {
    flex-grow: 1; /* Allow right column to take remaining space */
    padding: 40px;
    box-sizing: border-box;
}

.inner {
    max-width: 800px; /* Constrain text width for readability */
    margin: 0 auto;
}

section {
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

section:last-of-type {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

section h1 {
    font-family: 'Lora', serif;
    font-size: 2.5em;
    color: #003366; /* Primary campaign color */
    margin-top: 0;
    margin-bottom: 20px;
    border-left: 5px solid #cc0000; /* Accent color */
    padding-left: 15px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.05);
}

section p {
    font-size: 1.1em;
    margin-bottom: 15px;
    line-height: 1.7;
    color: #444;
}

section p i {
    font-style: italic;
    color: #666;
    font-size: 1.05em;
}

/* Skill Set / Value List Styles */
.skill-set {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.skill-set li {
    background-color: #cc0000; /* Red accent for strong emphasis */
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Footer Styles */
.handmade {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    font-size: 0.9em;
    color: #777;
}

.handmade a {
    color: #003366; /* Match primary color for links */
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.handmade a:hover {
    color: #cc0000; /* Accent on hover */
}

.handmade .fa {
    font-size: 20px;
    width: 36px;
    height: 36px;
    line-height: 36px;
    margin: 5px;
    border-radius: 50%;
    color: white;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    transition: background-color 0.3s ease;
}

/* --- About Page Specific Styles --- */

.intro-quote {
    font-family: 'Lora', serif;
    font-size: 1.4em;
    font-style: italic;
    color: #cc0000; /* Use your accent color */
    padding: 10px 0;
    margin: 20px 0 30px;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    text-align: center;
}

.bio-section {
    margin-bottom: 40px;
}

.bio-section h2 {
    font-family: 'Lora', serif;
    font-size: 2em;
    color: #003366;
    margin-bottom: 20px;
    text-align: center;
    border-bottom: 2px solid #003366;
    padding-bottom: 5px;
}

.bio-detail-container {
    display: flex;
    align-items: center;
    gap: 30px;
    padding: 20px;
    background-color: #f7fbfd;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.bio-detail-container.reverse {
    flex-direction: row-reverse;
}

.bio-text {
    flex: 2; /* Takes up more space for the text */
}

.bio-icon-block {
    flex: 1; /* Takes up less space for the icon */
    min-width: 120px;
    max-width: 150px;
    text-align: center;
}

.bio-icon-block i {
    font-size: 4em;
    color: #cc0000; /* Accent color for the icon */
    margin-bottom: 10px;
    border: 3px solid #cc0000;
    border-radius: 50%;
    padding: 15px;
    background-color: white;
}

.bio-icon-block p {
    font-weight: bold;
    color: #003366;
    margin: 0;
}

/* Responsive adjustment for the bio details */
@media (max-width: 768px) {
    .bio-detail-container,
    .bio-detail-container.reverse {
        flex-direction: column; /* Stack details vertically on smaller screens */
        text-align: center;
    }
    .bio-icon-block {
        order: -1; /* Move the icon block to the top when stacked */
        margin-bottom: 15px;
    }
}

/* --- Donation Page Specific Styles --- */
.donation-section h1,
.donation-options h2,
.thank-you-section h2,
.disclosure-section h2 {
    text-align: center;
    margin-bottom: 25px;
    font-size: 2.2em; /* Slightly smaller for sub-headings */
    border-left: none; /* Remove border for centered headings */
    padding-left: 0;
}

.donation-options {
    background-color: #fcfcfc;
    border: 1px solid #e0e6ed;
    border-radius: 8px;
    padding: 30px;
    margin-top: 30px;
    margin-bottom: 40px;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.03);
}

.donation-method {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px dashed #e0e6ed;
}

.donation-method:last-of-type {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.donation-method h3 {
    font-family: 'Lora', serif;
    font-size: 1.8em;
    color: #003366;
    margin-top: 0;
    margin-bottom: 15px;
    text-align: center;
}

.donate-button {
    display: inline-block;
    background-color: #cc0000; /* Red accent for strong call to action */
    color: white;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease, transform 0.2s ease;
    margin-top: 15px;
    margin-bottom: 20px;
    text-align: center;
    width: auto; /* Allow button to size naturally */
}

.donate-button:hover {
    background-color: #a80000;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.qr-code-container {
    text-align: center;
    margin: 20px auto 10px;
    padding: 15px;
    background-color: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    max-width: 250px; /* Adjust as needed */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.qr-code {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

.qr-caption {
    font-size: 0.9em;
    color: #666;
    margin-top: 10px;
}

address {
    font-style: normal;
    font-weight: 600;
    margin-top: 10px;
    line-height: 1.5;
    color: #333;
}

.small-text {
    font-size: 0.9em;
    color: #777;
    line-height: 1.4;
    margin-top: 10px;
}

.thank-you-section {
    background-color: #e0e6ed; /* Lighter blue/grey, distinct from main content */
    padding: 30px;
    border-radius: 8px;
    margin-top: 40px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    text-align: center;
}

.thank-you-section p {
    font-size: 1.15em;
    color: #333;
    margin-bottom: 15px;
}

.thank-you-section .signature {
    font-family: 'Shadows Into Light', cursive; /* Use a script-like font for signature */
    font-size: 2.5em;
    margin-top: 20px;
    margin-bottom: 0;
    color: #003366;
    line-height: 1;
}

.thank-you-section .signature-title {
    font-size: 1em;
    color: #555;
    margin-top: 5px;
}

.disclosure-section {
    background-color: #fff8e1; /* Light yellow background for caution */
    border: 1px solid #ffe0b2;
    padding: 20px;
    border-radius: 8px;
    margin-top: 40px;
}

.disclosure-section h2 {
    color: #e65100; /* Orange/brown color for warnings */
}

/* --- Styles for Policy Pillars on Stance Page --- */

.policy-pillar {
    background-color: #fcfcfc;
    border: 1px solid #e0e6ed;
    border-left: 5px solid #003366; /* Strong left border for emphasis */
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* Align text to the left within the pillar */
}

.policy-pillar h2 {
    font-family: 'Lora', serif;
    font-size: 2em;
    color: #003366;
    margin-top: 0;
    margin-bottom: 15px;
    text-align: left; /* Ensure heading is left-aligned */
    border-left: none; /* Remove section H1 border if any applies */
    padding-left: 0;
}

.policy-pillar p {
    font-size: 1.05em;
    line-height: 1.7;
    margin-bottom: 10px;
    color: #444;
}

.policy-icon {
    font-size: 3em; /* Large icon size */
    color: #cc0000; /* Accent color for icons */
    margin-bottom: 15px;
    padding: 10px;
    border: 2px solid #cc0000;
    border-radius: 50%;
    width: 60px; /* Make it a fixed size circle */
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    background-color: white;
}

/* Adjust for smaller screens where the policy pillar might need less padding */
@media (max-width: 600px) {
    .policy-pillar {
        padding: 20px;
    }
    .policy-pillar h2 {
        font-size: 1.8em;
    }
    .policy-icon {
        font-size: 2.5em;
        width: 50px;
        height: 50px;
    }
}

/* --- Homepage Pillars Overview Styling --- */
.homepage-pillars-overview {
    background-color: #f7fbfd; /* Slightly different background for distinction */
    border: 1px solid #e0e6ed;
    border-radius: 8px;
    padding: 30px;
    margin-top: 40px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.homepage-pillars-overview h1 {
    text-align: center;
    border-left: none; /* Remove border for centered heading */
    font-size: 2.2em;
    margin-bottom: 25px;
}

.homepage-pillars-overview ul {
    list-style: none;
    padding: 0;
    margin-top: 20px;
}

.homepage-pillars-overview li {
    font-size: 1.1em;
    margin-bottom: 12px;
    padding-left: 25px;
    position: relative;
    color: #333;
}

.homepage-pillars-overview li::before {
    content: "\f00c"; /* Font Awesome checkmark icon */
    font-family: 'FontAwesome';
    position: absolute;
    left: 0;
    color: #003366; /* Primary color for the checkmark */
    font-size: 0.9em;
    top: 5px; /* Adjust vertical alignment */
}

/* --- FAQ Page Specific Styles --- */

.faq-container {
    margin-top: 30px;
    background-color: #fcfcfc;
    border: 1px solid #e0e6ed;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.faq-item {
    margin-bottom: 10px;
    border: 1px solid #eee;
    border-radius: 5px;
    overflow: hidden; /* Important for max-height transition */
}

.faq-question {
    background-color: #f5f5f5;
    color: #003366; /* Primary campaign blue */
    padding: 15px 20px;
    border: none;
    width: 100%;
    text-align: left;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s ease;
    box-sizing: border-box; /* Include padding in width */
}

.faq-question:hover,
.faq-question.active {
    background-color: #e0e6ed; /* Lighter background on hover/active */
}

.faq-question .fa {
    font-size: 0.8em; /* Smaller icon */
    transition: transform 0.3s ease;
}

/* Optional: Rotate icon when active (already handled by JS toggling classes) */
/* .faq-question.active .fa {
    transform: rotate(180deg);
} */

.faq-answer {
    padding: 0 20px;
    background-color: #fff;
    max-height: 0; /* Initially hidden */
    overflow: hidden;
    transition: max-height 0.3s ease-out; /* Smooth transition for expand/collapse */
}

.faq-answer p {
    padding-bottom: 15px; /* Spacing for paragraphs inside answer */
    font-size: 1em;
    line-height: 1.6;
    color: #444;
}

.faq-answer h3 {
    font-size: 1.1em;
    color: #003366;
    margin-top: 15px;
    margin-bottom: 5px;
    border-left: none; /* Remove section H1 border if any applies */
    padding-left: 0;
}

/* --- Stance Page Quote Styling --- */
.madison-quote {
    font-family: 'Lora', serif; /* Use the serif font for the quote */
    font-size: 1.4em; /* Make the quote text larger */
    font-style: italic;
    color: #444; /* Slightly darker grey for good contrast */
    margin: 30px 0 30px 20px; /* Adjust margins for spacing */
    padding: 15px 20px;
    border-left: 4px solid #cc0000; /* Accent color on the left border */
    background-color: #fcfcfc; /* Light background for the quote block */
    box-shadow: 0 2px 5px rgba(0,0,0,0.05); /* Subtle shadow */
    line-height: 1.5;
    text-align: left; /* Ensure the quote text aligns left */
}

.madison-quote footer {
    font-size: 0.8em; /* Smaller font for the attribution */
    text-align: right; /* Align attribution to the right */
    display: block; /* Ensure it's on its own line */
    margin-top: 10px;
    color: #666; /* Lighter color for attribution */
}

/* Responsive adjustment for the quote */
@media (max-width: 600px) {
    .madison-quote {
        font-size: 1.2em;
        margin: 20px 0; /* Less margin on smaller screens */
        padding: 10px 15px;
    }
}

/* --- Responsive Video Container Styles --- */

.video-container {
    position: relative;
    width: 100%; /* Default to 100% width (for mobile stacking) */
    /* 16:9 Aspect Ratio */
    padding-bottom: 56.25%; 
    height: 0;
    overflow: hidden;
    margin: 15px 0; /* Adjusted margin for better spacing within the duo wrapper */
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* --- New styles for side-by-side video display on desktop --- */

@media (min-width: 768px) {
    /* Flexbox wrapper to place videos side-by-side */
    .video-duo {
        display: flex;
        justify-content: space-between;
        gap: 20px; /* Space between the two videos */
        margin: 25px 0; /* Add margin above and below the whole duo block */
    }

    /* Override the video container properties for side-by-side layout */
    .video-duo .video-container {
        width: calc(50% - 10px); /* Take up 50% width minus half the gap */
        margin: 0; /* Remove vertical margin when side-by-side */
    }
}

/* --- External Link Call-Out Style for Stance Page --- */

.external-link-callout {
    text-align: center;
    padding: 15px 20px;
    margin: 20px auto;
    background-color: #e0e6ed; /* Light background for visibility */
    border: 1px solid #d0d6dc;
    border-radius: 5px;
    font-size: 1.1em;
    line-height: 1.5;
}

.external-link-callout strong {
    color: #cc0000; /* Accent color for emphasis */
}

.external-link-button {
    display: inline-block;
    background-color: #003366; /* Primary campaign color */
    color: white;
    padding: 8px 15px;
    margin-left: 10px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 700;
    transition: background-color 0.3s ease;
}

.external-link-button:hover {
    background-color: #cc0000; /* Red accent on hover */
}

.external-link-button .fa {
    margin-left: 5px;
}

/* Responsive Adjustments */
@media (max-width: 900px) {
    .wrapper {
        flex-direction: column;
        margin: 10px auto;
        border-radius: 0;
        box-shadow: none;
    }

    .left {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #d0d6dc;
        padding-top: 30px;
        padding-bottom: 30px;
    }

    .name-hero .nav {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        border-bottom: none;
        padding-bottom: 0;
    }

    .name-hero .nav li {
        margin: 5px 10px;
    }

    .name-hero .nav a {
        padding: 5px 10px;
        font-size: 1em;
    }

    .right {
        padding: 30px 20px;
    }

    section h1 {
        font-size: 2em;
        padding-left: 10px;
    }

    .top-bar-content {
        padding: 0 10px;
    }

    .top-bar-logo {
        height: 100px;
    }
}

@media (max-width: 600px) {
    .name-text h1 {
        font-size: 1.8em;
    }

    section h1 {
        font-size: 1.7em;
    }

    .name-text p {
        font-size: 0.9em;
    }

    .skill-set li {
        font-size: 0.8em;
        padding: 6px 12px;
    }
}