/* ============================================ */
/* HEADER / NAVIGATION - FULLY RESPONSIVE */
/* ============================================ */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: var(--white);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    border-bottom: 1px solid var(--border-light);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    height: 70px;
}

.logo {
    width: 180px;
    flex-shrink: 0;
}

.logo img {
    width: 100%;
    height: auto;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-dark);
    width: 44px;
    height: 44px;
    border-radius: 8px;
    transition: background 0.2s;
}

.menu-toggle:hover {
    background: var(--bg-light);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 28px;
    align-items: center;
    margin: 0;
    padding: 0;
    height: 100%;
}

.nav-menu>li {
    position: relative;
    height: 70px;
    display: flex;
    align-items: center;
}

.nav-menu>li>a {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    padding: 0 5px;
    display: flex;
    align-items: center;
    gap: 6px;
    height: 100%;
    position: relative;
    letter-spacing: 0.3px;
}

.nav-menu>li>a:hover {
    color: var(--brand-primary);
}

.nav-menu>li>a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--brand-primary);
    transform: scaleX(0);
    transition: transform 0.3s;
}

.nav-menu>li>a:hover::after,
.nav-menu>li.menu-item-has-children:hover>a::after {
    transform: scaleX(1);
}

.menu-item-has-children>a i {
    font-size: 12px;
    transition: transform 0.3s;
}

.menu-item-has-children:hover>a i {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: -20px;
    background: var(--white);
    min-width: 260px;
    box-shadow: var(--shadow-lg);
    border-radius: var(--radius-card);
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: all 0.3s;
    list-style: none;
    padding: 10px 0;
    z-index: 100;
    border: 1px solid var(--border-light);
}

.menu-item-has-children:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    position: relative;
}

.dropdown-menu a {
    padding: 10px 24px;
    white-space: nowrap;
    font-size: 14px;
    font-weight: 400;
    transition: all 0.2s;
    color: var(--text-dark);
    display: block;
    text-decoration: none;
}

.dropdown-menu a:hover {
    background: var(--bg-light);
    color: var(--brand-primary);
    padding-left: 28px;
}

.dropdown-menu .menu-item-has-children>.dropdown-menu {
    position: absolute;
    top: -1px;
    left: 100%;
    min-width: 240px;
    opacity: 0;
    visibility: hidden;
}

.dropdown-menu .menu-item-has-children:hover>.dropdown-menu {
    opacity: 1;
    visibility: visible;
}

.submenu-caret {
    margin-left: 8px;
    font-size: 11px;
}

/* ========== MOBILE MENU - FULL WIDTH COLLAPSIBLE ========== */
@media (max-width: 991px) {
    .menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .nav-menu {
        display: none;
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        height: calc(100vh - 70px);
        background: var(--white);
        flex-direction: column;
        align-items: stretch;
        padding: 0;
        margin: 0;
        overflow-y: auto;
        z-index: 999;
        gap: 0;
        box-shadow: var(--shadow-lg);
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-menu>li {
        height: auto;
        width: 100%;
        display: block;
        border-bottom: 1px solid var(--border-light);
    }

    .nav-menu>li>a {
        width: 100%;
        justify-content: space-between;
        padding: 16px 24px;
        background: var(--white);
        height: auto;
        font-size: 16px;
        font-weight: 600;
    }

    .nav-menu>li>a::after {
        display: none;
    }

    .menu-item-has-children>a i {
        float: right;
    }

    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        background: #f8fafc;
        padding: 0;
        margin: 0;
        width: 100%;
        display: none;
        border-top: 1px solid var(--border-light);
    }

    .nav-menu li.menu-open>.dropdown-menu {
        display: block;
    }

    .dropdown-menu li {
        width: 100%;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }

    .dropdown-menu a {
        white-space: normal;
        padding: 14px 24px 14px 44px;
        background: #f8fafc;
    }

    .dropdown-menu a:hover {
        background: #eef2f6;
        padding-left: 50px;
    }

    .dropdown-menu .menu-item-has-children>.dropdown-menu {
        position: static;
        left: 0;
        top: 0;
        display: none;
        background: #f1f5f9;
        padding-left: 0;
    }

    .dropdown-menu .menu-item-has-children.menu-open>.dropdown-menu {
        display: block;
    }

    .dropdown-menu .dropdown-menu a {
        padding: 12px 24px 12px 64px;
        background: #f1f5f9;
    }

    .menu-item-has-children.menu-open>a i {
        transform: rotate(180deg);
    }

    .dropdown-menu .menu-item-has-children.menu-open>a .submenu-caret {
        transform: rotate(90deg);
    }
}


.page-template-school-search #content .panel .row .c1 .entry {
    position: relative;
}

#masthead .brand {
    width: 180px;
}

#masthead .home-page .menu {
    margin-top: 0;
    margin-bottom: 0;
}

#masthead .home-page .menu a {
    font-size: 14px;
    letter-spacing: 0.3px;
    font-family: 'Poppins', sans-serif;
}

#masthead .home-page .menu a:focus {
    outline: none;
    text-decoration: none;
}

#masthead .home-page .menu {
    margin-right: 0;
}



header::after {
    clear: both;
    content: '';
}


#masthead.site-header {
    height: 70px;
    top: 0;
    width: 100%;
    position: fixed !important;
    z-index: 9999;
    box-shadow: var(--shadow-sm) !important;
    background-color: var(--white) !important;
    border-bottom: 1px solid var(--border-light);
}

@media (max-width: 991px) {
    .page-template-school-search #masthead {
        z-index: 9998;
    }
}

@media (max-width: 991px) {
    .page-template-school-search #menu-toggle {
        position: fixed;
        z-index: 99999 !important;
    }
}

.page-template-school-search #masthead .home-page {
    background-color: transparent !important;
}

#masthead .menu>li>a {
    text-transform: inherit;
}

.logo {
    width: 220px !important;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    display: flex;
    align-items: center;
    height: 100%;
}

#masthead .brand {
    height: 70px !important;
    width: 220px !important;
}

#masthead .logo img {
    display: block;
    max-height: 100%;
    width: 100%;
    margin-bottom: 0;
    padding: 0;
}

.page-template-school-search #content .panel .row .c1 .entry {
    padding-top: 70px !important;
}

@media (max-width: 767px) {
    .page-template-school-search #content .panel .row .c1 .entry {
        padding-top: 20px !important;
    }
}

#hm-panel-1 .container.l1 {
    padding: 0 !important;
}

.robo-gallery-slider-wrap {
    position: relative;
    width: 100vw;
    left: 50%;
    margin-left: -50vw;
}

.robo-gallery-slider-wrap .robo-gallery-slider-container,
.robo-gallery-slider-wrap .swiper,
.robo-gallery-slider-wrap .swiper-container {
    touch-action: pan-y;
}

.robo-gallery-slider-wrap .swiper-slide {
    background-position: 50% 50%;
    background-size: cover;
    background-repeat: no-repeat;
}

/* Larger screens: cap slider height to laptop scale (791/1500 × 100 = 52.73vw, max 480px) */
@media (min-width: 768px) {
    .robo-gallery-slider-wrap .robo-gallery-slider-container,
    .robo-gallery-slider-wrap .swiper,
    .robo-gallery-slider-wrap .swiper-container {
        max-height: 480px !important;
    }

    .robo-gallery-slider-wrap .swiper-slide {
        height: 52.73vw;
        max-height: 480px;
    }
}

.robo-gallery-slider-wrap::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.2) 100%);
    pointer-events: none;
    z-index: 99;
}

.slider-text {
    z-index: 999 !important;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.slider-text p {
    display: flex;
}

@media (max-width: 768px) {
    .slider-text p {
        display: block;
    }
}



.slider-text p .btn:hover {
    color: var(--white);
}

.filter-card-wrapper {
    z-index: 999;
}

.robo-gallery-slider-wrap .swiper-button-prev,
.robo-gallery-slider-wrap .swiper-button-next {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.3s ease;
    z-index: 10;
}

.robo-gallery-slider-wrap .swiper-button-prev::after,
.robo-gallery-slider-wrap .swiper-button-next::after {
    font-size: 18px;
    font-weight: 700;
}

.slider-arrow {
    display: none;
}

.robo-gallery-slider-wrap .swiper-button-prev {
    left: 30px !important;
}

.robo-gallery-slider-wrap .swiper-button-next {
    right: 30px !important;
}

.robo-gallery-slider-wrap .swiper-button-prev.swiper-button-disabled,
.robo-gallery-slider-wrap .swiper-button-next.swiper-button-disabled {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

.vc-slider .vc-slider-viewport,
.vc-slider .vc-slider-track {
    touch-action: pan-y;
}

.vc-slider .vc-nav {
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 44px !important;
    height: 44px !important;
    border-radius: 50% !important;
    background: rgba(0, 0, 0, 0.45) !important;
    color: #fff !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer;
    z-index: 110 !important;
    pointer-events: auto !important;
    touch-action: manipulation;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.vc-slider .vc-prev {
    left: 0px !important;
}

.vc-slider .vc-next {
    right: 20px !important;
    left: auto !important;
}

.vc-slider .vc-nav.arrow-hidden,
.vc-slider .vc-nav:disabled {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

@media (max-width: 767px) {

    .robo-gallery-slider-wrap .swiper-button-prev,
    .robo-gallery-slider-wrap .swiper-button-next {
        width: 38px;
        height: 38px;
    }

    .robo-gallery-slider-wrap .swiper-button-prev::after,
    .robo-gallery-slider-wrap .swiper-button-next::after {
        font-size: 16px;
    }

    .robo-gallery-slider-wrap .swiper-button-prev {
        left: 30px !important;
    }

    .robo-gallery-slider-wrap .swiper-button-next {
        right: 30px !important;
    }

    .vc-slider .vc-nav {
        width: 40px !important;
        height: 45px !important;
    }

    .vc-slider .vc-prev {
        left: 0px !important;
    }

    .vc-slider .vc-next {
        right: 0px !important;
        left: auto !important;
    }
}




/* Main wrapper becomes a flex row */
#search-box {
    display: flex;
    align-items: flex-end;
    gap: 16px;
    flex-wrap: wrap;
    /* allows wrapping on small screens */
}

/* Each field group */
#search-school,
#search-program,
#search-program .form-group,
#search-program-go {
    display: flex;
    flex-direction: column;
}

/* Make inputs/selects same height */
#search-box input,
#search-box select,
#search-box button {
    height: 44px;
    font-size: 14px;
}

/* Control widths */
#search-school {
    flex: 1 1 280px;
}

.school-year-search,
.plan-search {
    flex: 1 1 220px;
}

/* Button alignment */
#search-program-go {
    justify-content: flex-end;
}

/* Optional: ensure labels don't break layout */
#search-box label {
    display: flex;
    flex-direction: column;
    font-weight: 600;
}


/* One row layout */
.filter-card-wrapper .filter-row {
    display: flex;
    align-items: flex-end;
    gap: 16px;
    flex-wrap: wrap;
}

/* Items */
.filter-card-wrapper .filter-item {
    flex: 1 1 220px;
    display: flex;
    flex-direction: column;
}

/* Inputs, selects, button */
.filter-card-wrapper input,
.filter-card-wrapper select,
.filter-card-wrapper button {
    height: 44px;
    font-size: 14px;
}

/* Button */
.filter-search-btn {
    height: 44px;
    white-space: nowrap;
}

/* Error hidden by default */
#go-error {
    display: none;
    margin-top: 12px;
    color: #fff;
    background: #22498C;
    padding: 8px 12px;
}

/* Mobile */
@media (max-width: 768px) {
    .filter-card-wrapper .filter-row {
        flex-direction: column;
    }

    .filter-search-btn {
        width: 100%;
    }
}

.filter-item .filter-search-btn.btn-go {
    width: 210px;
}



.filter-card-wrapper .filter-row {
    display: flex;
    align-items: flex-end;
    gap: 16px;
    flex-wrap: wrap;
}

/* Each item column */
.filter-card-wrapper .filter-item {
    display: flex;
    flex-direction: column;
    flex: 1 1 220px;
    min-width: 200px;
}

/* Make Plan Year + Plan Type sit side-by-side */
#search-program {
    display: flex;
    gap: 16px;
    flex: 2 1 420px;
}

/* Plan Year & Plan Type each take half */
#search-program>label,
#search-program>select {
    flex: 1;
}

/* Uniform control height */
.filter-card-wrapper input,
.filter-card-wrapper select,
.filter-card-wrapper button {
    height: 44px;
    font-size: 14px;
}

/* Button alignment */
#search-program-go {
    flex: 0 0 auto;
}

#go-portal {
    height: 44px;
    padding: 0 20px;
    white-space: nowrap;
}


/* ===============================
   MAIN ROW – ALL INPUTS INLINE
   =============================== */

.filter-card-wrapper .filter-row {
    display: grid;
    grid-template-columns: 2fr 3fr 2fr;
    gap: 16px;
    align-items: end;
}

/* School name */
#search-school {
    display: flex;
    flex-direction: column;
}



#search-program {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 16px;
    row-gap: 6px;
}

/* place labels above selects */
#search-program label {
    grid-row: 1;
}

#search-program select {
    grid-row: 2;
}



#search-program-go {
    align-self: end;
}

#go-portal {
    height: 44px;
    padding: 0 22px;
    white-space: nowrap;
}

/* ===============================
   Uniform control height
   =============================== */

.filter-card-wrapper input,
.filter-card-wrapper select {
    height: 44px;
    font-size: 14px;
}

.homepage .ui-widget-content {
    z-index: 999 !important;
}

.ui-autocomplete .ui-menu-item {
    font-size: 14px !important;
    font-weight: normal !important;
}


/* =====================================================
   FILTER – FORCE SINGLE LINE (NO WRAP EVER)
   ===================================================== */

.filter-card-wrapper .filter-row {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: flex-end;
    gap: 16px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* Prevent items from shrinking into chaos */
.filter-card-wrapper .filter-item,
#search-program-go {
    flex: 0 0 auto;
}

/* School field */
#search-school {
    min-width: 280px;
}


#search-program {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    min-width: 590px;
}

/* Labels in first row, selects in second */
#search-program label {
    grid-row: 1;
}

#search-program select {
    grid-row: 2;
}

/* Button */
#search-program-go {
    white-space: nowrap;
}

#go-portal {
    height: 48px;
    padding: 0 24px;
}

/* Consistent control sizing */
.filter-card-wrapper input,
.filter-card-wrapper select,
.filter-card-wrapper button {
    height: 48px;
    font-size: 14px;
}

/* =====================================================
   FILTER – HARD LOCK SINGLE LINE (FINAL OVERRIDE)
   ===================================================== */

/* Kill all previous layout logic */
.filter-card-wrapper .filter-row {
    display: flex !important;
    flex-wrap: nowrap !important;
    /* NEVER wrap */
    align-items: flex-end !important;
    gap: 16px !important;
    overflow-x: auto !important;
    /* scroll on small screens */
    overflow-y: hidden !important;
    -webkit-overflow-scrolling: touch;
}

/* Prevent any item from shrinking */
.filter-card-wrapper .filter-item,
#search-program-go {
    flex: 0 0 auto !important;
}

.form-control {
    box-shadow: none;
    border-color: var(--border-light) !important;
}

/* Plan year + plan type stay together */
#search-program {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 0 16px !important;

}

/* Labels top, selects bottom */
#search-program label {
    grid-row: 1;
}

#search-program select {
    grid-row: 2;
}

/* Button */
#search-program-go {
    white-space: nowrap;
}

#go-portal {
    height: 48px;
    padding: 0 24px;
}

/* Uniform control size */
.filter-card-wrapper input,
.filter-card-wrapper select,
.filter-card-wrapper button {
    height: 48px;
    font-size: 14px;
}

@media only screen and (max-width: 767px) {
    .page-template-school-search #search-program {
        max-width: 100%;
        min-width: 280px !important;
        width: 100%;
        margin: auto;
        display: block !important;

    }

    #go-portal {
        width: 100%;
    }
}


/* =====================================
   FIX: Placeholder looks too dark & bold
   ===================================== */

#search-school input::placeholder {
    color: #9aa0a6;
    /* light neutral gray */
    font-weight: 400;
    /* normal */
    font-family: 'Roboto', sans-serif;
}

/* Browser-specific fallbacks */
#search-school input::-webkit-input-placeholder {
    color: #9aa0a6;
    font-weight: 400;
}

#search-school input::-moz-placeholder {
    color: #9aa0a6;
    font-weight: 400;
}

#search-school input:-ms-input-placeholder {
    color: #9aa0a6;
    font-weight: 400;
}

#content .spotlight-grid {
    padding: 70px 0 !important;
}

#content .spotlight-grid.panel .row .c1 .entry {
    padding-top: 0 !important;
}

.spotlight-grid .row {
    display: flex;
    flex-wrap: wrap;
}

.spotlight-grid .columns {
    display: flex;
}

.spotlight-grid .entry {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
}

.spotlight-grid .item {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 100%;
    height: 100%;
    min-height: 340px;
    /* adjust if needed */
}

.spotlight-grid .item p {
    flex-grow: 1;
}

.spotlight-grid .item .button,
.spotlight-grid .item .btn,
.spotlight-grid .item a.button {
    margin-top: auto;
}

.feature-section .row {
    margin-left: 0;
    margin-right: 0;
}

.homepage .ui-widget-content {
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-lg);
    list-style: none;
    padding: 8px 13px;
    border: none;

}

.ui-menu-item-wrapper {
    font-weight: normal;
}

.ui-state-active,
.ui-widget-content .ui-state-active {
    border-color: var(--brand-blue) !important;
    background-color: var(--brand-blue) !important;
    color: var(--white) !important;
}

.ui-menu .ui-menu-item-wrapper {
    padding: 6px 12px !important;
}


@media only screen and (max-width: 480px) {
    #masthead .home-page .logo img {
        width: 100% !important;
    }
}


/* multilevel menu css start */

/* =====================================================
   WORDPRESS MENU → EXISTING NAV CSS MAPPING
   ===================================================== */

/* Main menu = nav-menu */
#main-menu-home,
#main-menu-home.menu {
    display: flex;
    list-style: none;
    gap: 23px;
    align-items: center;
    height: 100%;
}



/* Top-level items */
#main-menu-home>li {
    position: relative;
    height: 70px;
    display: flex;
    align-items: center;
}

/* Top-level links */
#main-menu-home>li>a {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    padding: 0 5px;
    display: flex;
    align-items: center;
    height: 100%;
}

/* Hover underline */
#main-menu-home>li>a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--brand-primary);
    transform: scaleX(0);
    transition: transform 0.3s;
}

#main-menu-home>li:hover>a::after {
    transform: scaleX(1);
}

/* =====================================================
   FIRST LEVEL DROPDOWN (sub-menu)
   ===================================================== */

#main-menu-home .sub-menu {
    position: absolute;
    top: 100%;
    left: -20px;
    min-width: 275px;
    background: var(--white);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-lg);
    padding: 10px 0;
    list-style: none;
    border: 1px solid var(--border-light);
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: all 0.3s;
    z-index: 100;
}

/* Keep long top-level dropdowns compact (e.g., Student Products) */
#main-menu-home>li>.sub-menu {
    max-height: min(68vh, 460px);
    /* overflow-y: auto; */
    /* overscroll-behavior: contain; */
}

/* Show dropdown */
#main-menu-home li.menu-item-has-children:hover>.sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Dropdown links */
#main-menu-home .sub-menu li a {
    display: block;
    padding: 10px 24px;
    font-size: 14px;
    color: var(--text-dark);
    text-decoration: none;
    transition: all 0.2s;
}

#main-menu-home .sub-menu li a:hover {
    background: var(--bg-light);
    color: var(--brand-primary);
    padding-left: 28px;
    border-radius: 6px;
}

/* =====================================================
   SECOND LEVEL DROPDOWN (sub-menu inside sub-menu)
   ===================================================== */

#main-menu-home .sub-menu .sub-menu {
    top: -1px;
    left: 100%;
    min-width: 240px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(0);
}

#main-menu-home .sub-menu li.menu-item-has-children:hover>.sub-menu {
    opacity: 1;
    visibility: visible;
    top: 0px;
    overflow: visible;
}

/* =====================================================
   MOBILE MENU SUPPORT (USES YOUR EXISTING LOGIC)
   ===================================================== */

@media (max-width: 991px) {

    #main-menu-home {
        display: none;
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        height: calc(100vh - 70px);
        flex-direction: column;
        background: var(--white);
        overflow-y: auto;
        box-shadow: var(--shadow-lg);
    }


    #main-menu-home.active {
        display: flex;
    }

    #main-menu-home>li {
        height: auto;
        border-bottom: 1px solid var(--border-light);
        display: block;
    }

    #main-menu-home>li>a {
        padding: 16px 24px;
        font-size: 16px;
        justify-content: space-between;
    }

    /* Mobile dropdown */
    #main-menu-home .sub-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        display: none;
        background: #f8fafc;
        max-height: 52vh;
        overflow-y: auto;
    }

    #main-menu-home li.menu-open>.sub-menu {
        display: block;
    }

    #main-menu-home .sub-menu a {
        padding: 14px 24px 14px 44px;
    }

    #main-menu-home .sub-menu .sub-menu a {
        padding-left: 64px;
        background: #f1f5f9;
    }
}

#menu-toggle>.navigation {
    z-index: 99999 !important;
}

/* =====================================================
   MENU ARROWS FOR ITEMS WITH SUB-MENUS
   ===================================================== */

/* Desktop + mobile arrow */
#main-menu-home li.menu-item-has-children>a {
    position: relative;
    padding-right: 18px;
}

/* Arrow caret */
#main-menu-home li.menu-item-has-children>a::before {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    width: 7px;
    height: 7px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: translateY(-50%) rotate(45deg);
    transition: transform 0.3s ease;
}

/* Rotate arrow on hover (desktop) */
@media (min-width: 992px) {
    #main-menu-home li.menu-item-has-children:hover>a::before {
        transform: translateY(-50%) rotate(-135deg);
    }
}

/* Rotate arrow when open (mobile) */
#main-menu-home li.menu-item-has-children.menu-open>a::before {
    transform: translateY(-50%) rotate(-135deg);
}



/* Default state */
#main-menu-home>li>a {
    color: var(--text-dark);
    transition: color 0.25s ease;
}

/* Hover state (desktop) */
#main-menu-home>li:hover>a {
    color: var(--brand-primary);
}

/* Ensures arrow inherits hover color */
#main-menu-home li.menu-item-has-children>a::before {
    border-color: currentColor;

}

#masthead .menu li:hover>.sub-menu {
    padding-right: 0;
    max-width:100%;
   
}

@media (min-width: 992px) {

    #main-menu-home .sub-menu,
    #main-menu .sub-menu {
        min-width: 300px;
        width: max-content;
        height: auto;
        max-height: none;
        overflow: visible;
    }

    #main-menu-home .sub-menu li,
    #main-menu .sub-menu li {
        position: relative;
    }

    /* 3rd level menu */
    #main-menu-home .sub-menu .sub-menu,
    #main-menu .sub-menu .sub-menu {
        position: absolute;
        top: 0;
        left: 100%;
        min-width: 280px;
        width: max-content;
        height: auto;
        max-height: 420px;
        overflow-y: auto;
        overflow-x: hidden;
        white-space: nowrap;
        z-index: 9999;
        display: block;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        background: #fff;
        transform: translateY(0);
    }

    #main-menu-home .sub-menu li.menu-item-has-children:hover>.sub-menu,
    #main-menu-home .sub-menu li.menu-item-has-children:focus-within>.sub-menu,
    #main-menu .sub-menu li.menu-item-has-children:hover>.sub-menu,
    #main-menu .sub-menu li.menu-item-has-children:focus-within>.sub-menu {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    #main-menu-home .sub-menu a,
    #main-menu .sub-menu a {
        display: block;
        padding: 12px 16px;
        line-height: 21px;
        white-space: normal;
        word-break: break-word;
        box-sizing: border-box;
    }

    #main-menu-home .sub-menu li.menu-item-has-children>a,
    #main-menu .sub-menu li.menu-item-has-children>a {
        position: relative;
        display: block;
        padding-right: 34px;
        line-height:21px;
    }

    #main-menu-home .sub-menu li.menu-item-has-children>a::before,
    #main-menu .sub-menu li.menu-item-has-children>a::before {
        right: 12px;
        top: 18px;
        transform: rotate(-45deg);
    }
}

#main-menu-home .sub-menu li.menu-item-has-children>a {
    padding-right: 28px;
}

#main-menu-home .sub-menu li.menu-item-has-children>a::before {
    right: 12px;
}


/* =====================================================
   MOBILE MENU – USE SAME STYLES AS DESKTOP MENU
   TARGET: #mobile-menu DOM
   ===================================================== */

/* Base mobile menu wrapper */
.navigation-overlay {
    position: fixed;
    inset: 0;
    background: var(--white);
    z-index: 9998;
    overflow-y: auto;
}

/* Root UL */
#mobile-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* Top-level items */
#mobile-menu>li {
    border-bottom: 1px solid var(--border-light);
}

/* Top-level links */
#mobile-menu>li>a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
    text-decoration: none;
}

/* Hover / active */
#mobile-menu>li>a:hover {
    color: var(--brand-primary);
    background: var(--bg-light);
}

/* ===============================
   SUB-MENU (LEVEL 1)
   =============================== */

#mobile-menu .sub-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: none;
    background: #f8fafc;
}

/* Show submenu when open */
#mobile-menu li.menu-open>.sub-menu {
    display: block;
}

/* Submenu items */
#mobile-menu .sub-menu li {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

/* Submenu links */
#mobile-menu .sub-menu li>a {
    display: block;
    padding: 14px 24px 14px 44px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-dark);
    text-decoration: none;
}

/* Hover */
#mobile-menu .sub-menu li>a:hover {
    background: #eef2f6;
    color: var(--brand-primary);
    padding-left: 50px;
}

/* ===============================
   SUB-SUB MENU (LEVEL 2)
   =============================== */

#mobile-menu .sub-menu .sub-menu {
    display: none;
    background: #f1f5f9;
}

/* Open state */
#mobile-menu .sub-menu li.menu-item-has-children.menu-open>.sub-menu {
    display: block;
}

/* Level 2 links */
#mobile-menu .sub-menu .sub-menu a {
    padding: 12px 24px 12px 64px;
    font-size: 13.5px;
}

/* Hover */
#mobile-menu .sub-menu .sub-menu a:hover {
    background: #e5edf4;
}

/* ===============================
   CARET ARROWS (MATCH DESKTOP)
   =============================== */

#mobile-menu li.menu-item-has-children>a {
    position: relative;
    padding-right: 32px;
}

/* Arrow */
#mobile-menu li.menu-item-has-children>a::after {
    content: '';
    position: absolute;
    right: 20px;
    top: 50%;
    width: 8px;
    height: 8px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: translateY(-50%) rotate(45deg);
    transition: transform 0.3s ease;
}

/* Rotate arrow when open */
#mobile-menu li.menu-item-has-children.menu-open>a::after {
    transform: translateY(-50%) rotate(-135deg);
}

/* Active link */
#mobile-menu .current-menu-item>a {
    color: var(--brand-primary);
    font-weight: 700;
}

#mobile-menu>li {
    padding: 7px 0;
}

.navigation-overlay {

    padding-top: 40px;
    padding-bottom: 40px;

}

#menu-toggle>.navigation {
    color: #1c81c2;
    font-size: 1.6rem;
    font-weight: 700;
    line-height: 24px;
    letter-spacing: 1px;
    text-transform: uppercase;
    position: relative;
    padding-left: 21px;
    text-decoration: none;
    float: right
}

.navigation-overlay {
    display: none;
    background-color: var(--white);
    display: none;
    position: fixed;
    z-index: 98;
    top: 0;
    right: 0;
    left: 0;
    bottom: 0;
    padding-top: 60px;
    padding-bottom: 70px;
    overflow-x: hidden;
    overflow-y: auto
}

#mobile-menu>li>a {
    text-transform: inherit;
}

.navigation-overlay.behaved #mobile-menu {
    opacity: 1;
    -moz-transform: scale(1);
    -o-transform: scale(1);
    -ms-transform: scale(1);
    -webkit-transform: scale(1);
    transform: scale(1);
    -webkit-transition-delay: 100ms;
    -moz-transition-delay: 100ms;
    -ms-transition-delay: 100ms;
    -o-transition-delay: 100ms;
    transition-delay: 100ms;
    border-top: 1px solid var(--border-light);
}





/* #mobile-menu .sub-menu {
  display: none !important;
}


#mobile-menu li.menu-open > .sub-menu {
  display: block !important;
} */


/* Base state */
#mobile-menu .sub-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
    display: block !important;
}

/* Open state */
#mobile-menu li.menu-open>.sub-menu {
    max-height: 1000px;
    /* large enough for content */
}

/* Optional polish */
#mobile-menu a {
    display: block;
    padding: 14px 20px;
}

body.menu-open {
    overflow-x: hidden;
    overflow-y: auto;
    padding-right: var(--scrollbar-width, 0px);
}

.page-template-subpage-layout1 #masthead .home-page {
    display: block !important;
}

#masthead .default {
    display: none !important;
}

/* School search template switches headers */
.page-template-school-search #masthead .default {
    display: none !important;
}

.page-template-school-search #masthead .home-page {
    display: block !important;
}

/* =====================================================
   MENU TOGGLE BUTTON & BAR ANIMATION (Legacy Exact)
   ===================================================== */

#menu-toggle {
    position: fixed;
    top: 18px;
    right: 20px;
    z-index: 99999 !important;
    background: transparent;
}

.mobile-menu-toggle {
    display: none;
}

@media (max-width: 991px) {
    .mobile-menu-toggle {
        display: block;
    }
}

/* Anchor contains bars */
#menu-toggle a {
    position: relative;
    width: 24px;
    height: 22px;
    display: block;
}

/* Bars */
#menu-toggle a>.bar {
    position: absolute;
    left: 0;
    width: 24px;
    height: 3px;
    background-color: #1c81c2;
    transition:
        top 0.1s linear,
        transform 0.15s linear,
        opacity 0.1s linear;
}

/* Bar positions */
#menu-toggle a>span:nth-child(1) {
    top: 3px;
}

#menu-toggle a>span:nth-child(2) {
    top: 11px;
}

#menu-toggle a>span:nth-child(3) {
    top: 19px;
}

/* Hover micro‑movement */
#menu-toggle a:hover>span:first-child {
    top: 0;
}

#menu-toggle a:hover>span:nth-child(3) {
    top: 22px;
}

/* Active / behaved = CLOSE ICON */
#menu-toggle a.behaved>span:first-child {
    top: 10px;
    transform: rotate(135deg);
}

#menu-toggle a.behaved>span:nth-child(2) {
    opacity: 0;
}

#menu-toggle a.behaved>span:nth-child(3) {
    top: 10px;
    transform: rotate(-135deg);
}

/* =====================================================
   NAVIGATION OVERLAY (Legacy System)
   ===================================================== */

.navigation-overlay {
    position: fixed;
    inset: 0;
    background-color: var(--white);
    z-index: 9998;
    padding-top: 60px;
    padding-bottom: 70px;
    overflow-y: auto;
    display: none;
}

/* Show overlay when active */
.navigation-overlay.behaved {
    display: none;
}

.navigation-overlay.active.behaved {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
}

.navigation-overlay.active.behaved #mobile-menu {
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 6px;
    box-sizing: border-box;
}

.navigation-overlay.active.behaved {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
}

.navigation-overlay.active.behaved #mobile-menu {
    height: calc(100vh - 80px);
    margin-top: 80px;
    overflow-y: auto;
    overflow-x: hidden;
    box-sizing: border-box;
}


/* =====================================================
   MOBILE MENU → SCALE IN EFFECT
   ===================================================== */

#mobile-menu {
    transform: scale(2);
    opacity: 0;
    transition: transform 500ms cubic-bezier(0.77, 0, 0.175, 1),
        opacity 300ms ease;
}

/* When overlay active */
.navigation-overlay.behaved #mobile-menu {
    transform: scale(1);
    opacity: 1;
    transition-delay: 100ms;
}

.navigation-overlay.active.behaved {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
}

.navigation-overlay.active.behaved #mobile-menu {
    height: calc(100vh - 80px);
    margin-top: 0px;
    overflow-y: auto;
    overflow-x: hidden;
    box-sizing: border-box;
}

/* =====================================================
   BODY / PAGE LOCK (Legacy)
   ===================================================== */

body.behaved {
    overflow-x: hidden;
    overflow-y: auto;
    background-color: #fff;
}

/* Optional page scale (disable if undesired) */
#page.behaved {
    transform: scale(0.9);
    transition: transform 500ms cubic-bezier(0.77, 0, 0.175, 1);
}

#masthead .mainheader {
    display: flex;
    align-items: center;
    justify-content: space-between;
}


/* Base submenu styling */
/* Base submenu styling */
.navigation .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    display: none;
    z-index: 1000;
}

/* Show submenu on hover (desktop) */
@media (min-width: 992px) {
    .menu-item-has-children:hover>.sub-menu {
        display: block;
    }
}

/* Nested submenus (second level+) */
.navigation .sub-menu .sub-menu {
    top: 0;
    left: 100%;
}

/* Flip (first level) */
.submenu-left {
    left: auto !important;
    right: 0;
}

.sub-menu.submenu-left>li>.sub-menu {
    left: auto !important;
    right: 100% !important;
}

.no-sub-banner .site-breadcrumbs {
    margin-top: 70px;

}

.rt-team-container .img-responsive {
    max-width: 150px !important;
}

/* Desktop submenu fix: keep 2nd/3rd level menus from being height-clamped */
@media (min-width: 992px) {

    #main-menu-home .sub-menu,
    #main-menu .sub-menu {
        min-width: 280px;
        max-width: 360px;
        width: 100%;
        height: auto !important;
        max-height: none !important;
        overflow: visible !important;
    }

    #main-menu-home .sub-menu li,
    #main-menu .sub-menu li {
        position: relative;
    }

    #main-menu-home .sub-menu .sub-menu,
    #main-menu .sub-menu .sub-menu {
        position: absolute;
        top: 0;
        left: 100%;
        min-width: 280px;
        max-width: 360px;
        width: 100%;
        height: auto !important;
        max-height: 420px !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        white-space: normal;
        z-index: 9999;
        display: block;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        background: #fff;
        transform: translateY(0);
    }

    #main-menu-home .sub-menu li.menu-item-has-children:hover>.sub-menu,
    #main-menu-home .sub-menu li.menu-item-has-children:focus-within>.sub-menu,
    #main-menu .sub-menu li.menu-item-has-children:hover>.sub-menu,
    #main-menu .sub-menu li.menu-item-has-children:focus-within>.sub-menu {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    #main-menu-home .sub-menu a,
    #main-menu .sub-menu a {
        display: block;
        padding: 12px 16px;
        line-height: 1.4;
        white-space: normal;
        word-break: break-word;
        box-sizing: border-box;
    }

    #main-menu-home .sub-menu li.menu-item-has-children>a,
    #main-menu .sub-menu li.menu-item-has-children>a {
        position: relative;
        display: block;
        padding-right: 34px;
    }

    #main-menu-home .sub-menu li.menu-item-has-children>a::before,
    #main-menu .sub-menu li.menu-item-has-children>a::before {
        right: 12px;
        top: 18px;
        transform: rotate(-45deg);
    }
}
