.header-area {
    padding: 6px 0;
}

.header-area .header-menu .primary-menu {
    justify-content: flex-end;
}

.pathway-menu-icon {
    display: inline-flex;
    flex: 0 0 20px;
    justify-content: center;
    color: var(--colorForestGreen);
}

.header-enquiry-btn {
    background: var(--colorBrightMariGold) !important;
    border-color: var(--colorBrightMariGold) !important;
    color: var(--colorCharcoalDarkGreen) !important;
}

.header-secondary-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 16px;
    border: 1px solid var(--colorForestGreen);
    border-radius: var(--school-button-radius, 8px);
    background: #ffffff;
    color: var(--colorForestGreen);
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.header-cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    line-height: 1;
    white-space: nowrap;
}

.parents-student-login-link {
    color: var(--colorForestGreen);
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: all 0.2s ease;
    line-height: 1;
}

.parents-student-login-link:hover {
    color: var(--colorCharcoalDarkGreen);
    border-bottom-color: var(--colorCharcoalDarkGreen);
}

.sub-header .parents-student-login-link,
.sub-header .parents-student-login-link i {
    color: var(--colorForestGreen) !important;
}

.sub-header .parents-student-login-link:hover,
.sub-header .parents-student-login-link:hover i {
    color: var(--colorCharcoalDarkGreen) !important;
}

.header-exam-cart-link {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.header-exam-cart-count {
    position: absolute;
    top: 0;
    right: 0;
    transform: translate(45%, -45%);
    min-width: 18px;
    height: 18px;
    border-radius: 999px;
    background: #dc2626 !important;
    color: #ffffff !important;
    font-size: 10px;
    line-height: 1;
    font-weight: 700;
    text-align: center;
    padding: 0 5px;
    border: 2px solid #ffffff;
    z-index: 9;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.header-mobile-cart-link {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    background: #ffffff;
    justify-content: center;
    color: var(--color-2);
    border: 1px solid #d9e3f0;
}

.header-mobile-cart-link i {
    font-size: 18px;
}

.header-area .off-menu nav a.mobile-primary-link {
    display: flex;
    align-items: center;
    gap: 6px;
    min-height: 48px;
    padding: 10px 12px;
    border-radius: 8px;
    color: var(--colorForestGreen);
    font-size: 16px;
    font-weight: 700;
    line-height: 1.5;
    text-decoration: none;
}

.mobile-primary-link > i,
.mobile-primary-link > .header-exam-cart-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 24px;
    width: 24px;
    font-size: 18px;
}

.header-area .off-menu nav a.mobile-primary-link[aria-current="page"] {
    background: #dfefed;
}

.header-area .off-menu nav a.mobile-primary-link:focus-visible {
    outline: 2px solid var(--colorForestGreen);
    outline-offset: 2px;
}

@media (max-width: 991.98px) {
    .school-topbar {
        padding: 6px 0;
    }

    .school-topbar > .container > .row {
        align-items: center;
        justify-content: space-between;
        flex-wrap: nowrap;
    }

    .school-topbar > .container > .row > div {
        flex: 0 0 auto;
        width: auto;
        max-width: 100%;
    }

    .school-topbar .right-sub {
        margin-top: 0;
    }

    .school-topbar .right-sub ul {
        flex-wrap: nowrap;
        gap: 8px;
    }

    .school-topbar .topbar-home-link {
        justify-content: center;
        width: 44px;
        color: var(--colorForestGreen);
        border-radius: 8px;
    }

    .school-topbar .topbar-home-link:focus-visible {
        outline: 2px solid var(--colorForestGreen);
        outline-offset: 2px;
    }

    .school-topbar .sub-header-left ul {
        align-items: center;
        margin-bottom: 0;
    }

    .school-topbar .sub-header-left ul li a {
        display: inline-flex;
        align-items: center;
        min-height: 44px;
        font-size: 14px;
        line-height: 1;
        white-space: nowrap;
    }

    .school-topbar .sub-header-left ul li a i {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 18px;
        height: 18px;
        font-size: 18px;
        line-height: 1;
    }
}

@media (min-width: 992px) {
    .school-topbar {
        padding: 4px 0;
    }

    .sub-header > .container > .row {
        align-items: center;
    }

    .sub-header .right-sub ul {
        align-items: center;
        gap: 16px;
    }

    .sub-header .topbar-home-link,
    .sub-header .parents-student-login-link {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-height: 36px;
    }

    .sub-header .topbar-home-link {
        width: 36px;
        border-radius: 8px;
        color: var(--colorForestGreen);
    }

    .sub-header .topbar-home-link i {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 20px;
        height: 20px;
        font-size: 20px;
        line-height: 1;
    }

    .sub-header .topbar-home-link:hover,
    .sub-header .topbar-home-link:focus-visible {
        background: #dfefed;
        color: var(--colorCharcoalDarkGreen);
    }

    .header-area .header-menu {
        margin: 0 !important;
        padding: 0 !important;
    }

    .header-area .primary-menu {
        flex-wrap: wrap;
        column-gap: 24px;
        row-gap: 4px;
    }

    .header-area .primary-menu > li {
        padding: 0;
    }

    .header-area .primary-menu > li > a {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        min-height: 44px;
        color: var(--colorForestGreen);
        font-weight: 700;
        white-space: nowrap;
    }

    .header-menu-icon {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 20px;
        font-size: 16px;
        flex-shrink: 0;
    }

    .header-area .primary-menu > li > a:focus-visible,
    .sub-header .topbar-home-link:focus-visible {
        outline: 2px solid var(--colorForestGreen);
        outline-offset: 4px;
        border-radius: 4px;
    }

    .header-area .primary-menu > li > .header-exam-cart-link {
        justify-content: center;
        width: 44px;
        font-size: 18px;
    }

    .header-area .header-cta-btn {
        margin-bottom: 0 !important;
    }

    @media (min-width: 992px) and (max-width: 1199px) {
        .header-area .primary-menu {
            column-gap: 12px;
        }

        .header-area .primary-menu > li > a {
            gap: 6px;
            font-size: 14px;
        }
    }

    .header-pathway-submenu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        min-width: 220px;
        padding: 8px;
        border-radius: 8px;
        border: 1px solid #dce8df;
        background: #ffffff;
        box-shadow: 0 8px 24px rgba(13, 34, 29, 0.1);
        z-index: 9999;
    }

    .header-pathway-item > .header-pathway-submenu:not([hidden]) {
        display: block;
    }

    .header-pathway-submenu > li {
        padding: 0;
    }

    .header-pathway-submenu > li > a {
        display: block;
        padding: 10px 12px;
    }
}

.header-pathway-item {
    position: relative;
}

.header-pathway-toggle {
    border: 0;
    background: transparent;
    color: #197a39;
    padding: 8px 6px;
    font-size: 12px;
    cursor: pointer;
}

.header-pathway-toggle[aria-expanded="true"] i {
    transform: rotate(180deg);
}

.header-pathway-submenu[hidden] {
    display: none !important;
}

.sub-header.school-topbar {
    background: #123f32;
    border-bottom-color: #416759;
}

.sub-header.school-topbar a,
.sub-header.school-topbar a i {
    color: #e4f0e9 !important;
}

.sub-header.school-topbar a:hover,
.sub-header.school-topbar a:hover i,
.sub-header.school-topbar a:focus-visible,
.sub-header.school-topbar a:focus-visible i {
    color: #ffce75 !important;
}

.sub-header.school-topbar a:focus-visible {
    outline: 2px solid #ffce75;
    outline-offset: 2px;
}

.sub-header.school-topbar .topbar-home-link:hover,
.sub-header.school-topbar .topbar-home-link:focus-visible {
    background: #245343;
}

.header-pathway-submenu > li > a {
    border-radius: 6px;
    color: #213926;
    text-decoration: none;
}

.header-pathway-submenu > li > a:hover,
.header-pathway-submenu > li > a:focus-visible {
    background: #edf6ef;
    color: #197a39;
}

.header-pathway-submenu > li > a:focus-visible,
.header-pathway-toggle:focus-visible {
    outline: 2px solid #197a39;
    outline-offset: 2px;
}

@media (max-width: 991.98px) {
    .header-area .off-menu nav .header-pathway-item {
        display: grid;
        grid-template-columns: minmax(0, 1fr) 44px;
        align-items: center;
    }

    .header-area .off-menu nav .header-pathway-toggle {
        width: 44px;
        min-height: 48px;
    }

    .header-area .off-menu nav .header-pathway-submenu {
        grid-column: 1 / -1;
    }

    .header-pathway-submenu:not([hidden]) {
        display: block;
        padding: 0 16px 8px;
    }

    .header-pathway-submenu a {
        display: block;
        padding: 8px;
    }
}
