.nav-links ul#menu-primary-menu {
    display: contents;
}
.nav-links ul {
    list-style-type: none;
}
.mobile-menu ul#menu-primary-menu-1 {
    list-style-type: none;
    padding-left: 0;
}
/* Show desktop, hide mobile by default */
/* Parent menu item */
.story-page-url {
    position: relative;
}
.story-page-url .sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #0c2a55;
    min-width: 220px;
    padding: 10px 0;
    z-index: 999;
}
.story-page-url:hover > .sub-menu {
    display: block;
}
.story-page-url .sub-menu li {
    list-style: none;
}
.story-page-url .sub-menu li a {
    display: block;
    padding: 10px 20px;
    color: #ffffff8c;
    text-decoration: none;
}
.story-page-url .sub-menu li a:hover {
    background: unset;
    color: #ffffff;
}
.story-page-url .sub-menu-toggle {
    display: none;
}
.story-page-url > a::after {
    content: "▼";
    font-size: 10px;
    margin-left: 6px;
}
.nav-cta a {
    background: var(--forest) !important;
    color: white !important;
    padding: 0.55rem 1.25rem;
    border-radius: 3px;
}
.blog_hidden_post{
    display:none !important;
}
.team_hidden{
    display:none !important;
}
.team_popup_overlay{
    position:fixed;
    inset:0;
    background:rgba(0,0,0,.7);
    z-index:9999;
    display:flex;
    justify-content:center;
    align-items:center;
    opacity:0;
    visibility:hidden;
    transition:.3s;
}
.team_popup_overlay.active{
    opacity:1;
    visibility:visible;
}
.team_popup{
    width:min(1000px,90%);
    max-height:90vh;
    overflow:auto;
    background:#fff;
    border-radius:20px;
    padding:20px;
    position:relative;
}
.team_popup_close{
    position:absolute;
    top:10px;
    right:10px;
    width:40px;
    height:40px;
    border:none;
    cursor:pointer;
    font-size:28px;
    background:none;
}
.team_popup_inner{
    display:grid;
    grid-template-columns:350px 1fr;
    gap:40px;
}
.team_popup_image img{
    width:100%;
    border-radius:20px;
}
.team_popup_title {
    margin-bottom: 10px;
    font-size: 32px;
    font-weight: 500;
}
.team_popup_role{
    font-weight:700;
    margin-bottom:5px;
}
.team_popup_location{
    margin-bottom:20px;
}
.team_popup_open{
    overflow:hidden;
}
.team_popup_loader{
    min-height:300px;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:20px;
}
nav.mobile-menu, .mobile-menu {
    display: none;
}
.nav-cta a.nav-link {
    background: var(--forest) !important;
    color: white !important;
    padding: 0.55rem 1.25rem;
    border-radius: 3px;
}
.footer-brand a {
    color: #a8cce0;
    text-decoration: none;
}
section#block-7, section#block-8 {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.3);
    line-height: 1.7;
    font-weight: 300;
}
.footer-col nav {
    position: unset;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0;
    backdrop-filter: blur(8px);
    border-bottom: 0px solid rgba(168,204,224,0.1);
}
.footer-col h2.widget-title {
    font-family: 'DM Sans';
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.25);
    margin-bottom: 0.5rem;
}
.footer-col li a {
    display: block;
    font-family: 'DM Sans' !important;
    font-size: 0.85rem !important;
    color: rgba(255, 255, 255, 0.5) !important;
    text-decoration: none;
    margin-bottom: 0.1rem;
    font-weight: 300 !important;
    transition: color 0.15s;
}
.footer-col li a:hover {
    color: #ffffff !important;
}
.hero-mobile {
    display: none;
}
.current-menu-item a.nav-link {
    color: #a8cce0;
}
em {
    font-style: italic;
    color: var(--mint);
}
.contactf7 span.wpcf7-not-valid-tip {
    font-size: 12px;
}
.contactf7 .wpcf7 form .wpcf7-response-output {
    font-size: 12px;
    margin: 1em 0.5em 1em;
    padding: 0.2em 1em;
    border: 2px solid #00a0d2;
}
.contactf7 input.wpcf7-form-control.wpcf7-submit.has-spinner.form-submit:hover {
    width: 100%;
    background: var(--forest);
    color: white;
    padding: 1rem;
    border-radius: 3px;
    border: none;
    font-family: var(--sans);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: opacity 0.2s;
    margin-top: 0.5rem;
}
.contactf7 .wpcf7-spinner {
    background-color: #a8cce0;
    top: -36px;
    left: 340px;
}
.contactf7 .wpcf7-spinner::before {
    background-color: #2d5c3a;
}
p.team_card_role {
    cursor: pointer;
}



/* ---------------------------------------------------
                    RESPONSIVE CSS
-----------------------------------------------------*/

/* BELOW 1440px → switch */
@media (max-width: 1366px) {
    nav.desktop-menus {
        display: none;
    }
    nav.mobile-menu, .mobile-menu {
        display: flex;
    }

    /* Hamburger */
    .nav-menu-btn {
        background: none; border: none; cursor: pointer;
        display: flex; flex-direction: column; gap: 5px; padding: 4px;
    }
    .nav-menu-btn span {
        display: block; width: 22px; height: 1.5px;
        background: rgba(255,255,255,0.7);
        transition: all 0.2s;
    }

    /* Mobile drawer */
    .nav-drawer {
        position: fixed; top: 0; right: -100%; bottom: 0;
        width: 75%; 
        max-width: 280px;
        background: #0d2040;
        z-index: 200;
        padding: 5rem 2rem 2rem;
        transition: right 0.3s ease;
        border-left: 1px solid rgba(168,204,224,0.1);
    }
    .nav-drawer.open { right: 0; }
    .nav-drawer a {
        font-family: 'DM Sans';
        display: block;
        color: rgba(255,255,255,0.7);
        text-decoration: none;
        font-size: 0.9rem;
        font-weight: 400;
        letter-spacing: 0.05em;
        padding: 0.85rem 0;
        border-bottom: 1px solid rgba(255,255,255,0.06);
        transition: color 0.15s;
    }
    .nav-drawer a:hover { color: white; }
    .nav-drawer .drawer-cta {
        display: block;
        margin-top: 1.5rem;
        background: var(--forest);
        color: white !important;
        text-align: center;
        padding: 0.9rem;
        border-radius: 3px;
        border-bottom: none;
        font-weight: 500;
        letter-spacing: 0.04em;
    }
    .nav-overlay {
        display: none;
        position: fixed; inset: 0; z-index: 150;
        background: rgba(0,0,0,0.4);
    }
    .nav-overlay.open { display: block; }
    .drawer-close {
        position: absolute; top: 1.25rem; right: 1.25rem;
        background: none; border: none; cursor: pointer;
        color: rgba(255,255,255,0.5); font-size: 1.4rem; line-height: 1;
    }
    .drawer-close {
        top: 1.6rem;
        right: 3.3rem;
    }
}

@media (max-width: 1280px) {
    ul.dropdown-menu {
        margin-left: 20px;
    }
    .story-page-url > a::after {
        display: none;
        content: "▼";
        font-size: 10px;
        margin-left: 6px;
    }
    .dropdown-menu .nav-drawer a {
        padding: 0.65rem 0;
    }
}

@media (max-width: 1024px) {
    .mobile-menu img.custom-logo, .hero-mobile img.custom-logo {
        width: 110px;
    }
}
@media (max-width: 768px) {
    .drawer-close {
        top: 1.4rem;
        right: 1.9rem;
    }
}

@media (max-width: 767px) {
    .team_popup{
        padding:25px;
    }
    .team_popup_inner{
        grid-template-columns:1fr;
    }
}

@media (max-width: 414px) {
    .hero-desktop {
        display: none;
    }
    .hero-mobile {
        display: block;
    }
    .footer-col li a {
        font-size: 0.82rem !important;
        margin-bottom: 0rem;
    }
    .footer-col h2.widget-title {
        font-size: 0.65rem;
        margin-bottom: 0.5rem;
    }
    section#block-7, section#block-8 {
        font-size: 0.8rem !important;
    }
    .nav-cta a.nav-link {
        padding: 0.9rem;
        text-align: center;
        margin-top: 1.5rem;
    }
    .footer-bottom {
        column-gap: 30px;
    }
    .drawer-close {
        top: 1.3rem;
        right: 1.8rem;
    }
}
