/* ─────────────────────────────────────────────
       TOKENS
    ───────────────────────────────────────────── */
:root {
    --white: #ffffff;
    --blue: #002E5F;
    --red: #FA2929;
    --gray-bg: #f2f2f2;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', sans-serif;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    user-select: none;
    color: var(--blue);
}

/* ═══════════════════════════════════════════
       NAVBAR
    ═══════════════════════════════════════════ */
.site-navbar {
    background: var(--white);
    padding: 12px 40px;
    position: relative;
    z-index: 2;
    border-bottom: 1px solid rgba(0, 0, 0, 0.07);
}

/* Logo + controls sit together on the LEFT, nothing on the right */
.navbar-inner {
    display: flex;
    align-items: center;
    gap: 20px;
    /* gap between logo and controls */
}

/* PNG logo */
.logo-img {
    height: 65px;
    width: auto;
    display: block;
}

nav.navbar{
    max-width: 1360px;
    margin: 0 auto;
}

/* Controls group: Donate + socials */
.nav-controls {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-left: 20px;
}


.nav-link{
    color: var(--blue);
}

.navbar-nav .nav-link.active{
    color: var(--blue);
    font-weight: 700;
}

.btn-donate {
    background: var(--red);
    color: #fff !important;
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    display: inline-block;
    letter-spacing: 1.3px;
    text-transform: uppercase;
    border: none;
    border-radius: 0px;
    padding: 10px 20px;
    text-decoration: none;
    line-height: 1;
    transition: background 0.2s;
    white-space: nowrap;
}

.btn-donate:hover {
    background: #d41f1f;
}

.nav-social {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--red);
    color: var(--white);
    font-size: 1rem;
    text-decoration: none;
    transition: color 0.2s;
    line-height: 1;
}

.nav-social:hover {
    background: #d41f1f;
}

/* ═══════════════════════════════════════════
       HERO
    ═══════════════════════════════════════════ */
.hero-section {
    position: relative;
    background-color: var(--blue);
    /* background-image: url('images/Jack-Miller-Background.png'); */
    background-size: cover;
    background-position: center;
    overflow: visible;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(100deg,
            rgba(0, 46, 95, 0.98) 0%,
            rgba(0, 46, 95, 0.95) 40%,
            rgba(0, 46, 95, 0.65) 65%,
            rgba(0, 46, 95, 0.20) 100%);
    z-index: 1;
}

.hero-container {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    /* min-height: 480px; */
    padding-left: 48px;
    padding-right: 0;
    max-width: 1360px;
    margin: 0 auto;
}

.hero-left {
    flex: 0 0 52%;
    max-width: 52%;
    padding: 56px 0 52px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 28px;
}

.hero-headline {
    font-family: 'Roboto Slab', serif;
    font-size: clamp(2.4rem, 3.5vw, 2.75rem);
    font-weight: 800;
    color: #C6D0DB;
    text-transform: uppercase;
    line-height: 1.15;
    margin: 0;
    text-align: center;
}

.hero-headline span {
    color: var(--white);
    font-size: clamp(6rem, 6vw, 6.55rem);
    margin-top: 6px;
}


/* General Component Styling */


/* Typography styles to match the slab-serif look */


/* Left Section: Form Elements */
.form-heading {
    margin-top: 0px;
    margin-bottom: 1rem;
    font-weight: 900;
    font-size: 1.6rem;
    letter-spacing: 0.5px;
}

.custom-input {
    border-radius: 0;
    border: 1px solid #8e9db0;
    color: #0d325a;
    font-size: 0.85rem;
    padding: 0.4rem 0.75rem;
}

.custom-input::placeholder {
    color: #3b5f83;
    font-weight: 600;
}

.custom-input:focus {
    box-shadow: none;
    border-color: #0d325a;
}

/* Custom Square Checkbox with Inner Red Box */
.custom-checkbox {
    display: flex;
    align-items: center;
}

.custom-checkbox .form-check-input {
    border-radius: 0;
    width: 1.1rem;
    height: 1.1rem;
    margin-top: 0.15rem;
    background-color: #f1f2f5;
    border: none;
    box-shadow: inset 0 0 0 1px #e2e8f0;
    cursor: pointer;
    flex-shrink: 0;
}

.custom-checkbox .form-check-input:checked {
    background-color: #f1f2f5;
    background-image: none;
    position: relative;
    border: none;
}

.custom-checkbox .form-check-input:checked::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background-color: #e52424; /* Red inner square */
}

.custom-checkbox .form-check-label {
    color: #0d325a;
    font-weight: 600;
    font-size: 0.7rem;
    margin-left: 0.4rem;
    cursor: pointer;
    line-height: 1.3;
}

.btn-submit {
    background-color: #3f6083;
    color: #ffffff;
    border-radius: 0;
    font-weight: bold;
    font-size: 1rem;
    letter-spacing: 1px;
    padding: 0.34rem 0.5rem;
    margin-top: 11px;
    border: none;
}

.btn-submit:hover {
    background-color: #2b4562;
    color: #ffffff;
}

/* Right Section: Banner Elements */
.right-banner {
    background-color: #3f6083;
}

.primary-heading {
    font-weight: 900;
    font-size: 2.2rem;
    line-height: 1.1;
    letter-spacing: 1px;
}

.early-voting {
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Minor responsive adjustments */
@media (max-width: 991.98px) {
    .primary-heading {
        font-size: 1.8rem;
    }
}


/* ── Get Involved Card ── */
.gi-card {
    background: var(--white);
    border-radius: 0px;
    padding: 26px 30px 28px;
    max-width: 440px;
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.22);
}

.gi-card-title {
    font-family: 'Roboto Slab', serif;
    font-size: 1.65rem;
    font-weight: 800;
    color: var(--red);
    text-transform: uppercase;
    letter-spacing: 1.2px;
    text-align: center;
    margin-bottom: 20px;
}

.gi-input {
    display: block;
    width: 100%;
    border: none;
    border-bottom: 1.5px solid #ccc;
    border-radius: 0;
    background: transparent;
    padding: 5px 0 6px;
    font-family: 'Outfit', sans-serif;
    font-size: 0.82rem;
    color: #333;
    margin-bottom: 14px;
    outline: none;
    transition: border-color 0.2s;
}

.gi-input::placeholder {
    color: #aaa;
}

.gi-input:focus {
    border-bottom-color: var(--blue);
}

.gi-checks {
    display: grid;
    grid-template-columns: 5fr 6fr;
    gap: 8px 10px;
    margin-bottom: 22px;
}

.gi-check-label {
    display: flex;
    align-items: flex-start;
    gap: 7px;
    font-size: 0.78rem;
    color: #333;
    cursor: pointer;
    line-height: 1.35;
}

.gi-check-label input[type="checkbox"] {
    accent-color: var(--blue);
    width: 13px;
    height: 13px;
    flex-shrink: 0;
    margin-top: 2px;
}

.btn-gi-submit {
    background: var(--red);
    color: #fff;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 0.78rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    border: none;
    border-radius: 0px;
    padding: 10px 26px;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-gi-submit:hover {
    background: #d41f1f;
}

/* ── Person image ── */
.hero-right {
    flex: 0 0 40%;
    max-width: 40%;
    display: flex;
    justify-content: center;
    /* align-items: flex-end; */
}

.hero-person {
    display: block;
    transform: translateY(-90px);
    margin-bottom: -90px;
    height: 500px;
    pointer-events: none;
    width: auto;
    object-fit: contain;
    object-position: bottom center;
    /* filter: drop-shadow(-10px 0 28px rgba(0, 0, 0, 0.4)); */
    position: relative;
    z-index: 3;
}

/* ═══════════════════════════════════════════
       ISSUES STRIP  (white bg)
    ═══════════════════════════════════════════ */
.issues-section {
    background: var(--white);
    padding: 48px 64px;
    max-width: 1000px;
    margin: 0 auto;
}

.issues-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px 40px;
}

.issue-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.issue-icon {
    color: var(--red);
    font-size: 1rem;
    flex-shrink: 0;
    margin-top: 3px;
}

.issue-text {
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: var(--blue);
    line-height: 1.5;
    margin: 0;
}

/* ═══════════════════════════════════════════
       MEET JACK  (light gray bg)
    ═══════════════════════════════════════════ */
.meet-section {
    background: var(--gray-bg);
    padding: 56px 64px;
}

.meet-inner {
    display: flex;
    align-items: flex-start;
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
}

.meet-img {
    flex-shrink: 0;
    width: 40%;
    display: block;
}

.meet-content {
    flex: 1;
}

.meet-heading {
    font-family: 'Roboto Slab', serif;
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--blue);
    text-transform: uppercase;
    margin: 0 0 16px 0;
    line-height: 1;
}

.meet-content p {
    font-family: 'Outfit', sans-serif;
    font-size: 1.1rem;
    color: var(--blue);
    line-height: 1.4;
    margin-bottom: 12px;
}

.meet-content p:last-child {
    margin-bottom: 0;
}
/* Footer Section Styling */
.footer-section {
    background-color: var(--red); /* Uses your defined CSS variable */
    color: #ffffff;
    
}

.footer-logo {
    max-width: 220px; /* Adjust this value based on your actual image dimensions */
    height: auto;
}

/* Social Icons */
.footer-socials a {
    color: #ffffff;
    text-decoration: none;
    font-size: 1.2rem;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.3s ease;
}

.footer-socials a:hover {
    opacity: 0.8;
}

/* Donate Button */
.btn-donate-footer {
    background-color: #ffffff;
    color: var(--red);
    
    font-weight: 900;
    font-size: 1rem;
    letter-spacing: 0.5px;
    padding: 0.6rem 2.5rem;
    border-radius: 0; /* Square edges as seen in the design */
    border: none;
    transition: background-color 0.3s ease, opacity 0.3s ease;
}

.btn-donate-footer:hover {
    background-color: #f8f9fa;
    color: var(--red);
    opacity: 0.9;
}

/* Privacy Policy Link */
.privacy-link {
    color: #ffffff;
    font-size: 0.8rem;
    text-decoration: none;
    opacity: 0.9;
}

.privacy-link:hover {
    text-decoration: underline;
    color: #ffffff;
    opacity: 1;
}


/* issues page */
/* Section Title - Red Color */
.section-title {
    color: var(--red);
    font-weight: 700;
    font-size: 2.95rem;
}

/* Icon Styling */
.plan-icon {
    color: var(--red);
    font-size: 1.2rem;
    margin-right: 20px;
    /* Extra bold look for the checkmark */
    -webkit-text-stroke: 1px var(--red); 
}

/* Plan Headings - Blue Color (Assume var(--blue) or standard navy) */
.plan-heading {
    color: var(--blue); /* Replace with var(--blue) if defined */
    font-size: 1.5rem;
    margin-bottom: 15px;
    text-transform: uppercase;
    font-family: 'Roboto Slab';
    font-weight: 900;
}

/* Plan Description Text */
.plan-text {
    color: var(--blue);
    font-size: 1.1rem;
    line-height: 1.5;
    margin-bottom: 0;
    margin-bottom: 10px;
}

/* Image Styling */
.plan-image {
    width: 100%;
    object-fit: cover;
    /* Optional: maintain aspect ratio similar to image */
    aspect-ratio: 16 / 9; 
}

/* Responsive adjustments */
@media (max-width: 991.98px) {
    .section-title {
        font-size: 2.5rem;
    }
    
    .plan-heading {
        font-size: 1.5rem;
    }
    
    .plan-list {
        margin-bottom: 2rem;
    }
    .plan-item{
        width: 85%;
        margin-left: auto;
        margin-right: auto;
    }
}

/* ═══════════════════════════════════════════
       RESPONSIVE – TABLET  (≤991px)
    ═══════════════════════════════════════════ */
@media (max-width: 991px) {
    .site-navbar {
        padding: 12px 24px;
    }

    .hero-container {
        padding-left: 24px;
        min-height: 420px;
    }

    .hero-left {
        flex: 0 0 56%;
        max-width: 56%;
    }

    .hero-right {
        flex: 0 0 44%;
        max-width: 44%;
    }

    .hero-person {
        height: 440px;
        transform: translateY(-44px);
    }

    .issues-section {
        padding: 40px 32px;
    }

    .issues-grid {
        gap: 18px 28px;
    }

    .meet-section {
        padding: 48px 32px;
    }

    .meet-inner {
        gap: 28px;
    }

    .meet-img {
        width: 40%;
    }
}

/* ═══════════════════════════════════════════
       RESPONSIVE – MOBILE  (≤767px)
    ═══════════════════════════════════════════ */
@media (max-width: 767px) {
    .site-navbar {
        padding: 12px 16px;
    }

    .navbar-inner {
        gap: 14px;
        flex-direction: column;
        padding: 20px 0;
    }

    .logo-img {
        /* height: auto;
        width: 70%;
        margin: auto; */
    }

    .nav-controls {
        margin: 0;
    }

    /* Hero */
    .hero-section {
        /* overflow: hidden; */
    }

    .hero-overlay {
        background: linear-gradient(180deg,
                rgba(0, 46, 95, 0.40) 0%,
                rgba(0, 46, 95, 0.95) 45%,
                rgba(0, 46, 95, 0.98) 100%);
    }

    .gi-card-title {
        font-size: 1.95rem;
    }

    .hero-container {
        flex-direction: column-reverse;
        align-items: center;
        padding: 0;
        min-height: unset;
    }

    .hero-headline {
    font-size: 1.5rem;
}

.hero-headline span {
    font-size: 16vw;
}

    .hero-right {
        order: -1;
        flex: none;
        max-width: 100%;
        width: 100%;
        justify-content: center;
    }

    .hero-person {
        /* transform: translateY(0); */
        /* height: 100%; */
        width: 180%;
        left: 15%;
        /* object-fit: cover;
                object-position: top center;
                filter: none; */
        margin-bottom: -40px;
        transform: translateY(-40px);
    }

    .meet-person.hero-person {
        height: auto;
        width: 260%;
        left: -12%;
        margin-bottom: -70px;
        transform: translateY(-70px);
    }

    .form-heading{
        margin-top: 20px;
    }

    .hero-left {
        flex: none;
        max-width: 100%;
        width: 100%;
        padding: 24px 20px 40px;
        align-items: center;
        text-align: center;
    }

    .gi-card {
        max-width: 100%;
        width: 100%;
    }

    .gi-checks {
        grid-template-columns: 1fr;
    }

    .btn-gi-submit {
        width: 100%;
    }

    /* Issues */
    .issues-section {
        padding: 32px 20px;
    }

    .issues-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    /* Meet Jack */
    .meet-section {
        padding: 36px 20px;
    }

    .meet-inner {
        flex-direction: column;
        align-items: center;
        gap: 24px;
    }

    .meet-img {
        width: 100%;
        height: 100%;
    }

    .meet-heading {
        font-size: 2.3rem;
        text-align: center;
    }

    .meet-content {
        text-align: center;
    }

    /* Primary banner */
    .primary-banner {
        padding: 40px 24px;
    }

    .primary-banner-text {
        font-size: 1.9rem;
    }

    /* Footer */
    .site-footer {
        padding: 22px 20px;
        gap: 14px;
    }

    .footer-logo {
        max-width: 180px;
    }
}
/* ── Centered hero variant (endorsements page) ── */
.hero-container--centered {
    justify-content: center;
}

.hero-container--centered .hero-left {
    flex: 0 0 100%;
    max-width: 100%;
    align-items: center;
    text-align: center;
}

/* ── Endorsements section ── */
.endorse-section {
    background: var(--white);
    padding: 56px 64px;
}

.endorse-inner {
    max-width: 1000px;
    margin: 0 auto;
}

.endorse-header {
    text-align: center;
    margin-bottom: 26px;
}

.endorse-heading {
    font-family: 'Roboto Slab', serif;
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--blue);
    text-transform: uppercase;
    margin: 0;
    line-height: 1.1;
}

.endorse-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px 40px;
}

.endorse-col {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.endorse-item {
    padding: 12px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.endorse-item:last-child {
    border-bottom: none;
}

.endorse-name {
    margin: 0;
    font-family: 'Outfit', sans-serif;
    font-size: 1.02rem;
    font-weight: 800;
    color: var(--blue);
    line-height: 1.2;
}

.endorse-title {
    margin: 3px 0 0 0;
    font-family: 'Outfit', sans-serif;
    font-size: 0.92rem;
    font-weight: 600;
    color: rgba(0, 46, 95, 0.72);
    font-style: italic;
    line-height: 1.25;
}

@media (max-width: 991px) {
    .endorse-section {
        padding: 48px 32px;
    }

    .endorse-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 18px 28px;
    }

    .endorse-heading {
        font-size: 2rem;
    }
}

@media (max-width: 767px) {
    .endorse-section {
        padding: 36px 20px;
    }

    .endorse-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .endorse-heading {
        font-size: 2rem;
    }

    .endorse-item {
        padding: 10px 0;
    }

    .endorse-name,
    .endorse-title {
        text-align: center;
    }
}

/* ═══════════════════════════════════════════════════════════════
   MOBILE OPTIMIZATIONS — appended, desktop styles unchanged
   Targets: max-width 767px (phones) + 768-991px (small tablets)
   ═══════════════════════════════════════════════════════════════ */

/* ─── NAVBAR MOBILE ─────────────────────────────────────────── */
@media (max-width: 767px) {

    /* Ensure navbar doesn't overflow */
    .navbar {
        padding-top: 8px !important;
        padding-bottom: 8px !important;
    }

    .container-fluid.px-lg-5 {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }

    /* Logo sizing on mobile */
    .logo-img {
        height: 50px !important;
        width: auto;
    }

    /* Mobile menu: clean spacing */
    #navbarMain {
        padding-top: 12px;
        padding-bottom: 12px;
        border-top: 1px solid rgba(0,46,95,0.1);
        margin-top: 8px;
    }

    #navbarMain .navbar-nav {
        gap: 4px;
    }

    #navbarMain .nav-link {
        padding: 10px 4px;
        font-size: 1rem;
        font-weight: 600;
        border-bottom: 1px solid rgba(0,46,95,0.07);
    }

    /* Donate button: full width in mobile menu */
    #navbarMain .btn-donate {
        display: block;
        text-align: center;
        padding: 12px 20px;
        margin-top: 10px;
        font-size: 1rem;
    }

    /* Put socials in a row at bottom of menu */
    #navbarMain .navbar-nav {
        flex-direction: column;
    }
}

/* ─── HERO MOBILE ────────────────────────────────────────────── */
@media (max-width: 767px) {

    .hero-section {
        overflow: hidden;
    }

    /* Stack: image on top, text below */
    .hero-container {
        flex-direction: column !important;
        padding: 0 !important;
        min-height: unset !important;
        align-items: center !important;
    }

    .hero-right {
        order: -1 !important;
        flex: none !important;
        max-width: 100% !important;
        width: 100% !important;
        justify-content: center !important;
        overflow: hidden;
        height: 260px;
        position: relative;
    }

    /* Fixed hero image — constrained, centered, no overflow */
    .hero-person {
        position: absolute !important;
        bottom: 0 !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        width: auto !important;
        height: 280px !important;
        max-width: none !important;
        margin-bottom: 0 !important;
        object-fit: contain;
        object-position: bottom center;
    }

    /* meet-jack / issues hero image — same fix */
    .meet-person.hero-person {
        height: 260px !important;
        width: auto !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        margin-bottom: 0 !important;
    }

    /* Gradient: dark at bottom so text is readable */
    .hero-overlay {
        background: linear-gradient(180deg,
            rgba(0,46,95,0.25) 0%,
            rgba(0,46,95,0.90) 55%,
            rgba(0,46,95,0.98) 100%) !important;
    }

    .hero-left {
        flex: none !important;
        max-width: 100% !important;
        width: 100% !important;
        padding: 28px 20px 36px !important;
        align-items: center !important;
        text-align: center !important;
        gap: 16px !important;
    }

    .hero-headline {
        font-size: 1.3rem !important;
        text-align: center !important;
    }

    .hero-headline span {
        font-size: clamp(3.2rem, 14vw, 5rem) !important;
        display: block;
        line-height: 1.05;
    }
}

/* ─── GET INVOLVED / CAMPAIGN SECTION ───────────────────────── */
@media (max-width: 767px) {

    .campaign-section .row.g-0 {
        flex-direction: column !important;
    }

    /* Form area */
    .campaign-section .col-lg-7 {
        width: 100% !important;
        max-width: 100% !important;
        padding: 28px 20px !important;
    }

    /* Ballot banner */
    .campaign-section .col-lg-5.right-banner {
        width: 100% !important;
        max-width: 100% !important;
        padding: 32px 20px !important;
    }

    .primary-heading {
        font-size: 2rem !important;
    }

    .early-voting {
        font-size: 0.95rem !important;
    }

    /* Form layout: single column */
    .campaign-section .col-lg-4 {
        width: 100% !important;
        max-width: 100% !important;
        margin-bottom: 16px !important;
    }

    .campaign-section .col-lg-8 {
        width: 100% !important;
        max-width: 100% !important;
    }

    /* Checkbox columns: single column */
    .campaign-section .col-md-6 {
        width: 100% !important;
        max-width: 100% !important;
    }

    .form-heading {
        font-size: 1.4rem !important;
        text-align: center !important;
        margin-bottom: 18px !important;
    }

    /* Larger touch targets for inputs */
    .custom-input {
        padding: 0.6rem 0.75rem !important;
        font-size: 1rem !important;
        margin-bottom: 10px !important;
    }

    /* Larger checkboxes */
    .custom-checkbox .form-check-input {
        width: 1.3rem !important;
        height: 1.3rem !important;
    }

    .custom-checkbox .form-check-label {
        font-size: 0.85rem !important;
    }

    .btn-submit {
        padding: 0.75rem 0.5rem !important;
        font-size: 1rem !important;
    }
}

/* ─── MEET JACK PAGE ─────────────────────────────────────────── */
@media (max-width: 767px) {

    .meet-section {
        padding: 32px 20px !important;
    }

    .meet-inner {
        flex-direction: column !important;
        gap: 0 !important;
    }

    /* Photo shown inline via d-block d-md-none already in HTML */
    .meet-img.d-block.d-md-none {
        width: 100% !important;
        border-radius: 2px;
        margin-bottom: 20px !important;
    }

    .meet-content p {
        font-size: 1rem !important;
        line-height: 1.6 !important;
    }
}

/* ─── ISSUES PAGE ────────────────────────────────────────────── */
@media (max-width: 767px) {

    .plan-section .container {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }

    .section-title {
        font-size: 1.8rem !important;
        margin-bottom: 2rem !important;
        line-height: 1.2;
    }

    .plan-item {
        width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        margin-bottom: 2rem !important;
    }

    .plan-heading {
        font-size: 1.15rem !important;
        margin-bottom: 8px !important;
    }

    .plan-text {
        font-size: 0.97rem !important;
        line-height: 1.55 !important;
    }

    .plan-icon {
        font-size: 1rem !important;
        margin-right: 12px !important;
        margin-top: 3px !important;
    }

    /* Mobile images shown between items */
    .plan-image {
        border-radius: 2px;
    }
}

/* ─── ENDORSEMENTS PAGE ─────────────────────────────────────── */
@media (max-width: 767px) {

    .endorse-section {
        padding: 32px 20px !important;
    }

    .endorse-heading {
        font-size: 1.75rem !important;
    }

    .endorse-grid {
        grid-template-columns: 1fr !important;
        gap: 0 !important;
    }

    .endorse-col {
        gap: 0 !important;
    }

    .endorse-item {
        padding: 12px 0 !important;
    }

    .endorse-name {
        font-size: 1rem !important;
        text-align: left !important;
    }

    .endorse-title {
        text-align: left !important;
    }
}

/* ─── FOOTER MOBILE ──────────────────────────────────────────── */
@media (max-width: 767px) {

    .footer-section {
        padding-top: 36px !important;
        padding-bottom: 36px !important;
    }

    .footer-logo {
        max-width: 180px !important;
    }

    .footer-socials {
        gap: 20px !important;
    }

    .footer-socials a {
        font-size: 1.4rem !important;
    }

    .btn-donate-footer {
        padding: 0.75rem 2.5rem !important;
        font-size: 1rem !important;
    }
}

/* ─── SMALL TABLET (768px–991px) ────────────────────────────── */
@media (min-width: 768px) and (max-width: 991px) {

    .hero-container {
        padding-left: 32px;
    }

    .hero-person {
        height: 400px;
        transform: translateY(-60px);
        margin-bottom: -60px;
    }

    .meet-person.hero-person {
        height: 380px;
    }

    .hero-headline {
        font-size: 1.6rem;
    }

    .hero-headline span {
        font-size: clamp(3.8rem, 8vw, 5.5rem);
    }

    .plan-section .container {
        padding-left: 28px;
        padding-right: 28px;
    }
}

/* ─── GLOBAL TOUCH IMPROVEMENTS ─────────────────────────────── */
@media (max-width: 991px) {

    /* Ensure tap targets are large enough */
    .btn-donate,
    .btn-submit,
    .btn-donate-footer {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .nav-social {
        width: 40px;
        height: 40px;
    }

    /* Prevent text overflow */
    * {
        word-break: break-word;
    }

    /* No horizontal scroll */
    body {
        overflow-x: hidden;
    }
}

/* ─── Mobile nav social icons row ─── */
@media (max-width: 991px) {
    .navbar-nav li.nav-item.d-flex.d-lg-none {
        padding: 10px 4px 4px;
        align-items: center;
    }

    .navbar-nav li.nav-item.d-flex.d-lg-none .nav-social {
        width: 38px;
        height: 38px;
        font-size: 0.95rem;
    }
}

/* ═══════════════════════════════════════════════════════════════
   FIXES – Round 2
   ═══════════════════════════════════════════════════════════════ */

/* ─── FIX 1: Hero photos – better mobile scaling ────────────── */
@media (max-width: 767px) {

    /* Taller container so the photo has room to breathe */
    .hero-right {
        height: 320px !important;
    }

    /* Photo: fill the container height, auto width, stay centered */
    .hero-person {
        height: 100% !important;
        width: auto !important;
        max-width: 90% !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        position: absolute !important;
        bottom: 0 !important;
        object-fit: contain !important;
        object-position: bottom center !important;
        margin-bottom: 0 !important;
    }

    /* meet-jack / issues pages use same class — same treatment */
    .meet-person.hero-person {
        height: 100% !important;
        width: auto !important;
        max-width: 90% !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
    }
}

/* ─── FIX 2: "ENDORSEMENTS" nav link – never wrap ───────────── */
.nav-link {
    white-space: nowrap !important;
}

/* On mobile menu, allow slightly smaller text so long words still fit */
@media (max-width: 767px) {
    #navbarMain .nav-link {
        font-size: 0.9rem !important;
        letter-spacing: 0.02em;
    }
}

/* ─── FIX 3: Endorsements grid – center all items on mobile ─── */
@media (max-width: 767px) {

    /* Single-column grid already applied; center every item */
    .endorse-grid {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
    }

    .endorse-col {
        width: 100% !important;
        align-items: center !important;
    }

    .endorse-item {
        text-align: center !important;
        width: 100% !important;
    }

    .endorse-name,
    .endorse-title {
        text-align: center !important;
    }
}

/* ═══════════════════════════════════════════════════════════════
   FINAL OVERRIDES – hero photo scaling + social icon fix
   ═══════════════════════════════════════════════════════════════ */

@media (max-width: 767px) {

    /* Hero layout: image on top, text below */
    .hero-container {
        flex-direction: column-reverse !important;
        padding: 0 !important;
        min-height: unset !important;
        align-items: stretch !important;
    }

    /* Image container: tall enough to show the photo properly */
    .hero-right {
        order: -1 !important;
        flex: none !important;
        max-width: 100% !important;
        width: 100% !important;
        height: 420px !important;
        position: relative !important;
        overflow: hidden !important;
    }

    /* Photo: fills the container, anchored to bottom so face shows */
    .hero-person {
        position: absolute !important;
        bottom: 0 !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        height: 100% !important;
        width: auto !important;
        max-width: none !important;
        object-fit: contain !important;
        object-position: bottom center !important;
        margin: 0 !important;
    }

    /* meet-jack / issues pages have wider photos — let them fill */
    .meet-person.hero-person {
        height: 100% !important;
        width: auto !important;
        max-width: none !important;
    }

    /* Text block below image */
    .hero-left {
        flex: none !important;
        max-width: 100% !important;
        width: 100% !important;
        padding: 28px 20px 36px !important;
        align-items: center !important;
        text-align: center !important;
    }
}

/* ═══════════════════════════════════════════════════════════════
   FIXES – Round 3
   ═══════════════════════════════════════════════════════════════ */

/* ─── Endorsements: scale text to fit one line ───────────────── */
@media (max-width: 767px) {

    .endorse-name {
        font-size: 0.8rem !important;
        font-weight: 800 !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }

    .endorse-title {
        font-size: 0.72rem !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }

    /* Give each item a max-width so ellipsis kicks in cleanly */
    .endorse-item {
        max-width: 100% !important;
        overflow: hidden !important;
    }
}

/* ─── Index hero: center the person image ───────────────────── */
@media (max-width: 767px) {

    /* The index page hero (not meet-person) uses .home-hero-person below */
    .hero-right:not(:has(.meet-person)) .hero-person:not(.home-hero-person),
    .hero-person:not(.meet-person):not(.home-hero-person) {
        left: 50% !important;
        transform: translateX(-50%) !important;
        margin-left: 0 !important;
    }
}

/* ═══════════════════════════════════════════════════════════════
   FIXES – Round 4
   ═══════════════════════════════════════════════════════════════ */

/* ─── Index hero: final position override (must stay last) ───── */
@media (max-width: 767px) {
    .home-hero-person {
        left: 57% !important;
        transform: translateX(-50%) !important;
        margin-left: 0 !important;
        object-position: center bottom !important;
    }
}

/* ─── Endorsements hero banner: scale to single line ─────────── */
@media (max-width: 767px) {
    .hero-container--centered .hero-headline span {
        font-size: clamp(2rem, 11vw, 4rem) !important;
        white-space: nowrap !important;
    }
}

/* ─── Endorsements body text: slightly larger ───────────────── */
@media (max-width: 767px) {
    .endorse-name {
        font-size: 0.92rem !important;
    }

    .endorse-title {
        font-size: 0.82rem !important;
    }
}
