@import url('https://fonts.googleapis.com/css2?family=Nunito+Sans:wght@400;700;900&family=Roboto:wght@400;500;700&display=swap');

        :root {
            /* Base colors */
            --primary-color: #003087;
            --primary-darker: #32486D;
            --button-blue: #00529B;
            --link-blue: #206EFF;
            --svg-blue: #0E5191;
            --red-accent: #E63F46;
            --light-blue-bg: #F2F5FF;
            --lighter-blue: #F2F5FF;
            --text-color: #333;
            --white: #ffffff;

            /* Layout */
            --max-width: 700px;
            --container-max-width: 1200px;
            --pill-radius: 48px;
            --section-padding: 37px;

            /* Navigation */
            --primary-blue: #003087;
            --top-nav-gradient-start: #00529B;
            --top-nav-gradient-end: #294F7C;
            --nav-red-accent: #EE3A43;
            --border-color: #e0e0e0;
            --nav-max-width: 1440px;

            /* Footer */
            --footer-bg: #070707;
            --footer-bottom-bg: #444444;
            --footer-text-muted: #ccc;

            /* Hero */
            --hero-fallback-bg: #1b3a5c;
        }

                * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'Roboto', sans-serif;
            font-size: 18px;
            font-weight: 400;
            line-height: 32px;
            color: var(--text-color);
        }

        .main-content {
            max-width: var(--max-width);
            margin: 40px auto;
            padding: 0 20px;
        }

        .page-title {
            color: var(--primary-darker);
            font-size: 28px;
            font-weight: 700;
            margin-bottom: 30px;
            position: relative;
            padding-left: 24px;
            text-transform: uppercase;
        }

        .page-title::before {
            content: '';
            position: absolute;
            left: 0;
            top: 50%;
            transform: translateY(-50%);
            width: 20px;
            height: 8px;
            background-color: var(--red-accent);
        }

        a {
            color: var(--link-blue);
            text-decoration: none;
            font-family: Arial, sans-serif;
        }

        a:hover {
            text-decoration: underline;
        }

        
        .background-container {
            background-color: var(--light-blue-bg);
            padding: 37px 0 37px 37px;
            margin-bottom: 40px;
        }

        .text-section {
            margin-bottom: 40px;
        }

        .text-section p {
            margin-bottom: 16px;
        }

        .text-section p:last-child {
            margin-bottom: 0;
        }

                .content-section {
            margin-bottom: 40px;
            line-height: 1.7;
        }

        .content-section p {
            margin-bottom: 50px;
        }
/* ============================================================
   NAVIGATION
   ============================================================ */

/* ============================================
   Top Navigation
   ============================================ */

.top-nav {
    background: linear-gradient(to right, var(--top-nav-gradient-start), var(--top-nav-gradient-end));
    color: white;
    padding: 0;
    height: 80px;
    position: relative;
}

.top-nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: var(--nav-max-width);
    margin: 0 auto;
    padding: 0 20px;
    height: 80px;
}

.dod-logo-container {
    width: 202px;
    height: 100%;
    position: relative;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    flex-shrink: 0;
    padding-bottom: 15px;
}

.chevron-background {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 69.9056625366211px;
    height: 65px;
}

.dod-seal {
    width: 50px;
    height: 50px;
    position: relative;
    z-index: 2;
}

.top-nav-right {
    display: flex;
    align-items: center;
    height: 100%;
}

.top-nav-links {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.top-nav-links li {
    position: relative;
}

.top-nav-links li:not(:last-child)::after {
    content: '|';
    color: rgba(255, 255, 255, 0.5);
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
}

.top-nav-links a {
    color: white;
    text-decoration: none;
    font-size: 14px;
    transition: opacity 0.2s;
    padding: 0 15px;
    display: block;
    line-height: 80px;
}

.top-nav-links a:hover {
    opacity: 0.8;
}

.search-login {
    display: flex;
    gap: 15px;
    align-items: center;
    margin-left: 20px;
}

/* Search toggle */
.search-toggle {
    position: relative;
    display: flex;
    align-items: center;
}

.search-open {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
}

.search-open img {
    width: 19px;
    height: 16px;
}

.search-toggle.active .search-open {
    display: none;
}

.search-form {
    display: none;
    align-items: center;
    background: white;
    border: 1px solid #B7B7B7;
    border-radius: 4px;
    padding: 6px 8px 6px 12px;
    gap: 8px;
}

.search-toggle.active .search-form {
    display: flex;
}

.search-input {
    background: transparent;
    border: none;
    outline: none;
    color: #333;
    font-size: 14px;
    width: 200px;
}

.search-input::placeholder {
    color: #B7B7B7;
}

.search-submit {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
}

.search-submit img {
    width: 19px;
    height: 16px;
}

.search-close {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    margin-left: 4px;
    align-items: center;
}

.search-toggle.active .search-close {
    display: flex;
}

.search-close img {
    width: 16px;
    height: 16px;
}

.login-button {
    background-color: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 20px;
    color: white;
    padding: 6px 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
    transition: background-color 0.2s;
}

.login-button:hover {
    background-color: rgba(255, 255, 255, 0.3);
}

.request-assistance-btn {
    background-color: var(--nav-red-accent);
    border: none;
    border-radius: 20px;
    color: white;
    padding: 6px 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color 0.2s, opacity 0.2s;
}

.request-assistance-btn:hover {
    opacity: 0.85;
}

/* User menu */
.login-logged-in {
    position: relative;
}

.user-name-btn {
    max-width: 180px;
}

.user-display-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: var(--white);
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    min-width: 220px;
    list-style: none;
    z-index: 200;
    padding: 8px 0;
}

.user-dropdown.active {
    display: block;
}

.user-dropdown li {
    border-bottom: 1px solid var(--border-color);
}

.user-dropdown li:last-child {
    border-bottom: none;
}

.user-dropdown a {
    display: block;
    padding: 10px 20px;
    color: var(--text-color);
    text-decoration: none;
    font-size: 14px;
    transition: background-color 0.2s;
}

.user-dropdown a:hover {
    background-color: var(--light-blue-bg);
}

.user-dropdown-logout a {
    color: var(--red-accent);
}

.notif-count {
    background: var(--red-accent);
    color: var(--white);
    border-radius: 10px;
    font-size: 11px;
    padding: 1px 6px;
    margin-left: 4px;
    vertical-align: middle;
}

/* ============================================
   Main Navigation
   ============================================ */

.main-nav {
    background-color: var(--white);
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.main-nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: var(--nav-max-width);
    margin: 0 auto;
    padding: 10px 20px;
    position: relative;
}

.esgr-logo {
    height: 118px;
    z-index: 101;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 101;
}

.menu-toggle span {
    width: 28px;
    height: 3px;
    background-color: var(--primary-blue);
    transition: all 0.3s ease;
    border-radius: 2px;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

.main-nav-links {
    display: flex;
    list-style: none;
    gap: 20px;
    margin: 0;
}

.main-nav-links>li {
    position: relative;
}

.main-nav-links>li>a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    padding: 20px 0;
    display: block;
    position: relative;
    transition: color 0.2s;
    white-space: nowrap;
    text-align: center;
}

.nav-line-2 {
    display: block;
}

.main-nav-links>li>a:hover {
    color: var(--primary-blue);
}

.main-nav-links>li>a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 6px;
    background-color: var(--nav-red-accent);
    transition: width 0.3s ease;
    transform: translateX(-5%) translateY(15px);
}

.main-nav-links>li:hover>a::after {
    width: 110%;
}

/* Dropdown Menu */
.dropdown-menu {
    position: absolute;
    top: calc(100% + 3px);
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    background-color: transparent;
    min-width: 280px;
    padding: 0;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    filter: drop-shadow(0px 4px 4px 0px rgba(0, 0, 0, 0.25));
}

.main-nav-links>li:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(38px);
}

/* SVG Pennant Shape Background */
.dropdown-menu::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('/Portals/_default/Skins/TestTheme/bg-dropdown-pennant.svg');
    background-size: 100% 100%;
    background-repeat: no-repeat;
    z-index: -1;
}

.dropdown-menu-content {
    padding: 20px 0 50px 0;
    position: relative;
    z-index: 1;
}

/* Dropdown separators */
.dropdown-menu-content li {
    position: relative;
}

.dropdown-menu-content li:not(.stars-decoration)::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 22px;
    right: 22px;
    height: 1px;
    background-color: #D9D9D966;
}

.dropdown-menu-content li:last-child::after {
    display: none;
}

.dropdown-menu a {
    color: var(--white);
    text-decoration: none;
    padding: 10px 25px;
    display: block;
    font-size: 14px;
    transition: background-color 0.2s;
}

.dropdown-menu a:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Stars Decoration */
.stars-decoration {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px 0 0 0;
    margin-top: 8px;
}

.stars-decoration .star {
    display: none;
}

.stars-decoration::before {
    content: "";
    width: 51px;
    height: 18px;
    background-image: url('/Portals/_default/Skins/TestTheme/bg-dropdown-stars.svg');
    background-repeat: no-repeat;
    background-position: center;
}

.mobile-back-item,
.mobile-social-item {
    display: none;
}

/* ============================================
   Mobile Styles (max-width: 992px)
   ============================================ */

@media (max-width: 992px) {

    /* --- Top Nav mobile --- */
    .top-nav {
        height: auto;
        padding: 10px 0;
    }

    .top-nav-container {
        height: auto;
        flex-wrap: wrap;
    }

    .dod-logo-container {
        width: auto;
        height: auto;
        padding-bottom: 0;
        align-items: center;
    }

    .chevron-background {
        position: absolute;
        top: 50%;
        transform: translateX(-50%) translateY(-50%);
    }

    .top-nav-links a {
        line-height: normal;
        padding: 5px 12px;
    }

    .search-login {
        margin-left: 10px;
    }

    /* --- Main Nav mobile --- */
    .esgr-logo {
        position: relative;
        z-index: 102;
    }

    .menu-toggle {
        display: flex;
        position: relative;
        z-index: 102;
    }

    /* Mobile menu panel */
    .main-nav-links {
        position: fixed;
        top: -100vh;
        left: 0;
        height: 80vh; /* fallback; overridden by JS when opened */
        width: 100%;
        background-color: var(--white);
        flex-direction: column;
        gap: 0;
        padding: 0;
        transition: top 0.4s ease;
        overflow-y: auto;
        z-index: 100;
        border-top: 1px solid var(--border-color);
    }

    /* Back button */
    .mobile-back-item {
        display: none;
        border-bottom: 1px solid var(--border-color);
    }

    .main-nav-links > li {
        width: 100%;
        border-bottom: 1px solid var(--border-color);
    }

    .main-nav-links > li > a {
        padding: 15px 20px;
        font-size: 16px;
        font-weight: 700;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .nav-line-2 {
        display: contents;
    }

    /* Right chevron */
    .main-nav-links > li > a::after {
        display: block;
        content: '›';
        position: static;
        width: auto;
        height: auto;
        background-color: transparent;
        background: none;
        transition: none;
        transform: none;
        color: var(--primary-blue);
        font-size: 22px;
        font-weight: 300;
        line-height: 1;
        flex-shrink: 0;
    }

    .mobile-back-btn {
        background: none;
        border: none;
        cursor: pointer;
        display: flex;
        align-items: center;
        gap: 8px;
        padding: 15px 20px;
        font-size: 16px;
        color: var(--primary-blue);
        width: 100%;
        font-weight: 500;
        text-align: left;
    }

    /* Social icons */
    .mobile-social-item {
        display: block;
        border-bottom: none;
        padding: 24px 20px;
        margin-top: auto;
    }

    .mobile-social-icons {
        display: flex;
        gap: 12px;
        align-items: center;
    }

    .mobile-social-link {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        flex-shrink: 0;
        text-decoration: none;
        background: none;
        border-radius: 0;
        overflow: hidden;
    }

    .mobile-social-link img {
        width: 40px;
        height: 40px;
        display: block;
    }

    /* ---- Drill-down submenu state ---- */

    .main-nav-links.submenu-open .mobile-back-item {
        display: block;
    }

    .main-nav-links.submenu-open > li:not(.mobile-back-item):not(.mobile-social-item):not(.active) {
        display: none;
    }

    .main-nav-links.submenu-open > li.active > a {
        display: none;
    }

    .main-nav-links.submenu-open > li.active .dropdown-menu {
        max-height: none;
        overflow: visible;
    }

    /* Cancel desktop hover transform on mobile to prevent off-screen shift */
    .main-nav-links > li:hover .dropdown-menu {
        transform: none;
    }

    /* Mobile Dropdown */
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        min-width: 100%;
        padding: 0;
        background-color: var(--white);
        box-shadow: none;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        filter: none;
    }

    .dropdown-menu::before {
        display: none;
    }

    .dropdown-menu-content {
        padding: 0;
    }

    .dropdown-menu a {
        color: var(--text-color);
        padding: 15px 20px;
        font-size: 16px;
    }

    .dropdown-menu a:hover {
        background-color: rgba(0, 48, 135, 0.05);
    }

    .stars-decoration {
        display: none;
    }

    .nav-overlay {
        display: none;
    }
}

/* ============================================
   Smaller Mobile (max-width: 768px)
   ============================================ */

@media (max-width: 768px) {

    /* --- Top Nav smaller mobile --- */
    .top-nav {
        height: auto;
        padding: 0;
    }

    .top-nav-container {
        display: grid;
        grid-template-columns: 85px 1fr;
        grid-template-rows: auto auto;
        align-items: center;
        gap: 0;
        padding: 0 16px 12px;
        height: auto;
    }

    .dod-logo-container {
        grid-row: 1 / 3;
        grid-column: 1;
        width: 61px;
        height: 83px;
        flex-shrink: 0;
        padding-bottom: 0;
        align-self: start;
        align-items: flex-start;
        justify-content: center;
    }

    .chevron-background {
        width: 61px;
        height: 65px;
        top: 0;
        left: 50%;
        transform: translateX(-50%);
    }

    .dod-seal {
        width: 41px;
        height: 41px;
        margin-top: 5px;
    }

    .top-nav-right {
        grid-column: 2;
        grid-row: 1 / 3;
        display: flex;
        flex-direction: column;
        align-items: flex-end;
        gap: 8px;
        height: auto;
        padding-top: 12px;
    }

    .top-nav-links {
        margin-bottom: 0;
    }

    .top-nav-links a {
        font-size: 16px;
        padding: 0 12px;
        line-height: normal;
    }

    .top-nav-links li:not(:last-child)::after {
        color: rgba(255, 255, 255, 0.4);
    }

    .search-login {
        margin-left: 0;
        gap: 16px;
        align-items: center;
    }

    .search-open img,
    .search-submit img {
        width: 24px;
        height: 20px;
    }

    .search-input {
        width: 140px;
    }

    .login-button {
        border: 2px solid white;
        background-color: transparent;
        padding: 6px 20px;
        font-size: 16px;
        border-radius: 24px;
    }

    .login-button:hover {
        background-color: rgba(255, 255, 255, 0.15);
    }

    .request-assistance-btn {
        padding: 6px 16px;
        font-size: 16px;
        border-radius: 24px;
    }

    .user-name-btn {
        border: 2px solid white;
        background-color: transparent;
        padding: 6px 20px;
        font-size: 16px;
        border-radius: 24px;
        max-width: 200px;
    }

    .user-dropdown {
        right: -16px;
        min-width: 200px;
    }

    /* --- Main Nav smaller mobile --- */
    .esgr-logo {
        height: 50px;
    }
}

/* ============================================================
   FOOTER
   ============================================================ */

/* ===== Main Footer ===== */
.footer-main {
    background-color: var(--footer-bg);
    padding: 30px 0;
    color: white;
}

.footer-main-container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
}

.footer-links-section,
.footer-section {
    position: relative;
}

.footer-section:not(:last-child)::after {
    content: '';
    position: absolute;
    right: -20px;
    top: 0;
    height: 100%;
    width: 1px;
    background-image: url('/Portals/_default/Skins/TestTheme/bg-footer-vertical-divider.svg');
    background-repeat: repeat-y;
    background-position: center;
    background-color: transparent;
}

.footer-links-section::after {
    content: '';
    position: absolute;
    right: -20px;
    top: 0;
    height: 100%;
    width: 1px;
    background-image: url('/Portals/_default/Skins/TestTheme/bg-footer-vertical-divider.svg');
    background-repeat: repeat-y;
    background-position: center;
    background-color: transparent;
}

.footer-links-section {
    width: 50%;
    display: flex;
    flex-wrap: wrap;
    gap: 15px 20px;
}

.footer-links-row {
    display: contents;
}

.footer-links-row a {
    color: white;
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    font-weight: 600;
    line-height: 100%;
    transition: opacity 0.2s;
}

.footer-links-row a:hover {
    opacity: 0.8;
}

.footer-section h3 {
    margin-bottom: 15px;
    font-family: Arial;
    font-size: 20px;
    font-weight: 700;
    line-height: 100%;
    color: white;
}

.service-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.service-badge {
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-badge img {
    height: 30px;
    width: auto;
    object-fit: contain;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-link {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s;
}

.social-link:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.social-link img {
    width: 16px;
    height: 16px;
}

/* ===== Stars Banner ===== */
.stars-banner {
    background-color: #00529B;
    height: 42px;
    width: 100%;
    position: relative;
    overflow: visible;
}

.stars-banner-container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 28px;
    position: relative;
}

.stars-left,
.stars-right {
    display: flex;
    gap: 28px;
}

.stars-left {
    margin-right: 65px; /* clears half of 74px seal arch + 28px gap */
}

.stars-right {
    margin-left: 65px; /* clears half of 74px seal arch + 28px gap */
}

.star-icon {
    width: 17px;
    height: 17px;
    display: block;
}

.stars-banner-line {
    flex: 1;
    height: 1px;
    min-width: 0;
    max-width: 120px;
}

.us-seal-container {
    position: absolute;
    top: -27px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 74px;
}

.seal-arch {
    display: block;
    position: relative;
    z-index: 5;
}

.us-seal {
    height: 53px;
    width: 53px;
    position: relative;
    margin-top: -30px;
    z-index: 10;
}

/* ===== Footer Bottom ===== */
.footer-bottom {
    background-color: var(--footer-bottom-bg);
    padding: 15px 0;
    width: 100%;
    display: block;
    font: 16px Arial, Helvetica, sans-serif;
}

.footer-bottom-container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-section-divider {
    display: none;
    width: 100%;
    height: 2px;
}

.link-pipe {
    color: #818181;
    user-select: none;
    display: none;
}

.footer-bottom-links {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.footer-bottom-links a {
    color: var(--footer-text-muted);
    text-decoration: none;
}

.footer-bottom-links a:hover {
    text-decoration: underline;
}

.copyright {
    color: var(--footer-text-muted);
}

/* ===== Back to Top Button ===== */
.back-to-top {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 1000;
    display: none;
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    line-height: 0;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.3));
    transition: opacity 0.3s ease, bottom 0.2s ease;
}

.back-to-top img {
    width: 56px;
    height: 56px;
    display: block;
}

.back-to-top:hover {
    opacity: 0.85;
}

.back-to-top:focus-visible {
    outline: 3px solid #ffffff;
    outline-offset: 4px;
    border-radius: 50%;
}

/* ===== Footer Responsive ===== */
@media (max-width: 992px) {
    .footer-main-container {
        flex-direction: column;
        gap: 24px;
    }

    .footer-links-section {
        width: 100%;
    }

    .footer-section::after,
    .footer-links-section::after {
        display: none;
    }

    .footer-section-divider {
        display: block;
    }
}

@media (max-width: 768px) {
    .footer-links-row {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 10px 20px;
        justify-content: center;
    }

    .footer-links-row a {
        text-align: center;
    }

    .link-pipe {
        display: inline;
        padding: 0 12px;
    }

    .footer-bottom-links {
        justify-content: center;
        text-align: center;
        gap: 0;
        align-items: center;
    }

    .copyright {
        text-align: center;
    }
}

/* ============================================================
   HOMEPAGE / HERO BANNER
   ============================================================ */

.hero-section {
    --hero-image-width: 680px;
    position: relative;
    height: 500px;
    background-image: url('/Portals/_default/Skins/TestTheme/herobanners/1/Desktop/bg-homepage-hero.jpg');
    background-size: contain;
    background-position: top center;
    background-repeat: no-repeat;
    background-color: var(--hero-fallback-bg);
}

.hero-inner {
    position: relative;
    height: 100%;
    width: var(--hero-image-width);
    max-width: 100%;
    margin: 0 auto;
}

.hero-cta {
    position: absolute;
    bottom: 30px;
    left: 0px;
    background-color: transparent;
    color: white;
    border: 2px solid white;
    padding: 12px 30px;
    font-weight: 500;
    text-decoration: none;
    font-size: 20px;
    border-radius: var(--pill-radius);
    z-index: 2;
}

.hero-section .hero-inner a,
.hero-section .hero-inner a:visited {
    color: white;
}

.hero-section .hero-inner .hero-cta:hover {
    background-color: white;
    color: var(--top-nav-gradient-start);
}

.homepage-page .main-content {
    max-width: 800px;
}

.section-title {
    color: var(--text-color);
    font-size: 22px;
    margin-bottom: 15px;
    position: relative;
    padding-left: 24px;
    text-transform: uppercase;
    font-weight: 600;
}

.section-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 8px;
    background-color: var(--nav-red-accent);
}

.homepage-page .content-section {
    margin-bottom: 30px;
    line-height: 1.6;
}

.homepage-page .content-section p {
    max-width: 100%;
    margin-bottom: 15px;
    font-size: 14px;
}

.link-more {
    color: var(--top-nav-gradient-start);
    text-decoration: none;
    font-weight: 500;
}

.link-more:hover {
    text-decoration: underline;
}

.crisis-line {
    display: block;
    margin: 40px auto;
    max-width: 100%;
    width: 300px;
}

@media (max-width: 992px) {
    .hero-section {
        background-image: url('/Portals/_default/Skins/TestTheme/herobanners/1/Tablet/bg-homepage-hero-1024.jpg');
    }
}

@media (max-width: 768px) {
    .hero-section {
        background-image: url('/Portals/_default/Skins/TestTheme/herobanners/1/Mobile/bg-homepage-hero-800.jpg');
        height: 300px;
    }

    .hero-cta {
        bottom: 20px;
        left: 20px;
        font-size: 16px;
        padding: 10px 24px;
    }
}

/* ============================================================
   STATE SELECTOR
   ============================================================ */

.main-content:has(.state-selector-wrapper) {
    max-width: var(--container-max-width);
}

.state-selector-wrapper {
    max-width: var(--container-max-width);
    margin: 0 auto;
}

.state-selector-dropdown {
    margin-bottom: 24px;
}

.state-selector-label {
    display: block;
    font-family: 'Nunito Sans', sans-serif;
    font-weight: 900;
    font-size: 20px;
    line-height: 27px;
    text-transform: uppercase;
    color: var(--primary-darker);
    margin-bottom: 10px;
}

.state-select {
    width: 100%;
    padding: 14px 48px 14px 20px;
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    color: var(--text-color);
    background-color: var(--white);
    border: 2px solid var(--primary-color);
    border-radius: 30px;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1L7 7L13 1' stroke='%23003087' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round' fill='none'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 20px center;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.state-select:hover {
    border-color: var(--button-blue);
}

.state-select:focus {
    outline: none;
    border-color: var(--button-blue);
    box-shadow: 0 0 0 3px rgba(0, 48, 135, 0.15);
}

.state-selector-map {
    width: 100%;
    max-width: var(--container-max-width);
    display: block;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .state-selector-label {
        font-size: 18px;
    }

    .state-selector-map {
        margin-top: 10px;
    }
}

/* ============================================================
   STATE PAGE
   ============================================================ */

.state-banner {
    max-width: var(--container-max-width);
    margin: 0 auto 30px;
    padding: 0 20px;
}

.state-banner img {
    width: 100%;
    aspect-ratio: 3 / 1;
    object-fit: cover;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.state-page .main-content {
    max-width: 900px;
    margin: 0 auto 50px;
}

.state-title {
    color: var(--text-color);
    font-family: 'Nunito Sans', sans-serif;
    font-weight: 900;
    font-size: 28px;
    line-height: 100%;
    text-transform: uppercase;
    margin-bottom: 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.state-title-text {
    position: relative;
    padding-left: 32px;
}

.state-title-text::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 8px;
    background-color: var(--nav-red-accent);
}

.quick-buttons {
    background-color: white;
    color: var(--primary-color);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
}

.quick-buttons svg {
    width: 16px;
    height: 16px;
}

.contact-button,
.links-button {
    background-color: white;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    border-radius: var(--pill-radius);
    padding: 8px 20px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
    text-decoration: none;
}

.contact-button:hover,
.links-button:hover {
    background-color: var(--primary-color);
    color: white;
}

.section-separator {
    border-top: 1px solid var(--primary-darker);
    margin: 0;
}

.collapsible-section {
    margin-bottom: 0;
}

.collapsible-section.expanded + .section-separator {
    margin-bottom: 40px;
}

.collapsible-section:not(.expanded) + .section-separator {
    margin-bottom: 0;
}

.collapsible-header {
    background-color: transparent;
    padding: 10px 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Nunito Sans', sans-serif;
    font-weight: 900;
    font-size: 22px;
    text-transform: uppercase;
    transition: background-color 0.2s, padding 0.2s;
}

.collapsible-section.expanded .collapsible-header {
    background-color: var(--lighter-blue);
    padding: 10px var(--section-padding);
}

.collapsible-header:hover .collapsible-icon {
    opacity: 0.8;
}

.collapsible-icon {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    transition: opacity 0.2s;
}

.collapsible-content {
    background-color: var(--lighter-blue);
    padding: var(--section-padding);
    display: block;
}

.collapsible-content.collapsed {
    display: none;
}

.leadership-table {
    width: 100%;
    border-collapse: collapse;
}

.leadership-table tr {
    border-bottom: 1px solid var(--border-color);
}

.leadership-table tr:last-child {
    border-bottom: none;
}

.leadership-table td {
    padding: 12px 10px;
    vertical-align: top;
    font-family: Arial, sans-serif;
    font-size: 18px;
    line-height: 36px;
}

.leadership-table td:first-child {
    width: 300px;
    font-weight: 700;
}

.leadership-table td:last-child {
    font-weight: 400;
}

.committee-description {
    margin-top: 30px;
}

.committee-description p {
    font-family: Arial, sans-serif;
    font-weight: 400;
    font-size: 18px;
    line-height: 32px;
    margin-bottom: 20px;
}

.state-image {
    display: block;
    margin: 25px auto;
    max-width: 100%;
    border-radius: 5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.committee-description a {
    color: var(--link-blue);
    text-decoration: none;
}

.committee-description a:hover {
    text-decoration: underline;
}

.committee-description .volunteer-button {
    display: inline-block;
    color: white;
    background-color: var(--primary-color);
    border: 1px solid var(--primary-color);
    border-radius: var(--pill-radius);
    padding: 14px 83px;
    font-size: 20px;
    font-weight: 500;
    cursor: pointer;
    align-items: center;
    gap: 10px;
    transition: all 0.3s;
    text-decoration: none;
    margin: 20px 0;
}

.volunteer-button:hover {}

.flex-container {
    display: flex;
    gap: 20px;
}

.column {
    flex: 1;
}

.contact-details .contact-person,
.contact-details .contact-address,
.contact-details .contact-phone,
.contact-details .contact-email {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
    align-items: flex-start;
}

.contact-details .icon-container {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-details .icon-container img {
    display: block;
}

.contact-separator {
    border: none;
    border-top: 1px solid var(--border-color);
    margin: 10px 0 25px;
}

.contact-details h3 {
    margin: 0 0 5px 0;
    font-family: Arial, sans-serif;
    font-weight: 700;
    font-size: 20px;
    line-height: 36px;
    text-transform: uppercase;
}

.contact-details p {
    margin: 0;
    font-family: Arial, sans-serif;
    font-weight: 400;
    font-size: 18px;
    line-height: 36px;
}

.contact-details a {
    color: var(--link-blue);
    text-decoration: none;
}

.contact-details a:hover {
    text-decoration: underline;
}

.related-links-list ul {
    list-style: none;
    padding-left: 0;
}

.related-links-list li {
    margin-bottom: 10px;
    padding-left: 20px;
    position: relative;
    display: flex;
    align-items: flex-start;
}

.related-links-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--text-color);
    line-height: 36px;
}

.related-links-list a {
    color: var(--link-blue);
    text-decoration: none;
    font-family: Arial, sans-serif;
    font-weight: 400;
    font-size: 18px;
    line-height: 36px;
}

.related-links-list a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .flex-container {
        flex-direction: column;
    }

    .leadership-table td {
        display: block;
        width: 100% !important;
    }

    .leadership-table td:first-child {
        border-bottom: none;
        padding-bottom: 0;
    }

    .leadership-table td:last-child {
        padding-top: 5px;
        padding-bottom: 15px;
    }

    .quick-buttons {
        flex-direction: column;
        align-items: flex-start;
    }

    .state-title {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
}

/* ============================================
   Breadcrumb
   ============================================ */

.breadcrumb-nav {
    background: #fff;
}

.breadcrumb {
    max-width: 1440px;
    margin: 0 auto;
    padding: 10px 20px;
    display: flex;
    gap: 8px;
    align-items: center;
    font-size: 14px;
    flex-wrap: wrap;
}

.breadcrumb a {
    color: var(--primary-color);
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb .separator {
    color: #999;
}

.breadcrumb span[aria-current="page"],
.breadcrumb > span:last-child {
    color: var(--text-color);
}
