/* ==========================================================================
   Nav CTA Box — card inside a top-level dropdown (desktop Primary Menu)
   Markup: inc/functions/nav-cta-box.php
   ========================================================================== */

/* Reserve room on the right of the dropdown for the card */
.desktop-nav .main-nav > li > .sub-menu:has(> .nav-cta-box) {
    padding-right: calc(300px + 4rem) !important;
    min-height: 22rem;
}

.desktop-nav .main-nav > li > .sub-menu > li.nav-cta-box {
    position: absolute !important;
    top: 2rem;
    right: 2rem;
    bottom: 2rem;
    width: 300px;
    padding: 0 !important;
    margin: 0;
    list-style: none;
}

.nav-cta-box__inner {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    height: 100%;
    padding: 2.5rem;
    background: #34505f;
    border-radius: 1.5rem;
    box-sizing: border-box;
    white-space: normal;
}

.desktop-nav .nav-cta-box .nav-cta-box__eyebrow {
    margin: 0;
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    line-height: 1.3;
    text-transform: uppercase;
    color: #a9d8c3;
}

.desktop-nav .nav-cta-box .nav-cta-box__heading {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 500;
    line-height: 1.25;
    color: #fff;
}

.desktop-nav .main-nav .nav-cta-box a.nav-cta-box__button {
    display: block !important;
    margin-top: auto;
    padding: 1rem 1.5rem !important;
    background: #fff;
    border-radius: 999px;
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.3;
    text-align: center;
    white-space: normal;
    text-decoration: none;
    color: #1f466f !important;
    transition: background 0.2s ease;
}

.desktop-nav .main-nav .nav-cta-box a.nav-cta-box__button:hover,
.desktop-nav .main-nav .nav-cta-box a.nav-cta-box__button:focus-visible {
    background: #a9d8c3;
    color: #1f466f !important;
}

.desktop-nav .main-nav .nav-cta-box a.nav-cta-box__button:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 3px;
}

/* Narrower desktops */
@media (max-width: 1300px) {
    .desktop-nav .main-nav > li > .sub-menu:has(> .nav-cta-box) {
        padding-right: calc(250px + 3rem) !important;
    }

    .desktop-nav .main-nav > li > .sub-menu > li.nav-cta-box {
        width: 250px;
    }

    .nav-cta-box__inner {
        padding: 1.75rem;
    }

    .desktop-nav .nav-cta-box .nav-cta-box__heading {
        font-size: 1.25rem;
    }
}
