/* ==========================================================
   SSPKM – header v2 (loaded last, overrides earlier header looks)
   slim top bar  +  white nav bar with brand, pill menu,
   CTA "Admission", outlined "Student Login", card dropdowns
   ========================================================== */

header .brand-text {
    display: none;
    text-decoration: none;
    line-height: 1.15;
}

header .brand-text strong {
    display: block;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: .04em;
    background: linear-gradient(90deg, var(--brand), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

header .brand-text span {
    display: block;
    font-size: 11px;
    font-weight: 500;
    color: var(--muted);
    letter-spacing: .02em;
    margin-top: 2px;
}

/* ---------------- slim top bar ---------------- */
header .top-header {
    background: #0b1f3a !important;
    padding: 0 !important;
    border-bottom: 0 !important;
}

header .top-header::after {
    height: 1px;
    opacity: .9;
}

header .top-header>[class*='col-'] {
    min-height: 34px !important;
}

header .top-header a.tb-chip {
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    padding: 0 18px 0 0 !important;
    margin: 0 18px 0 0 !important;
    font-size: 12.5px !important;
    font-weight: 400 !important;
    color: #c9d7ea !important;
    position: relative;
    transform: none !important;
}

header .top-header a.tb-chip+a.tb-chip::before {
    content: "";
    position: absolute;
    left: -18px;
    top: 50%;
    width: 1px;
    height: 14px;
    margin-top: -7px;
    background: rgba(255, 255, 255, .2);
}

header .top-header a.tb-chip:hover {
    background: transparent !important;
    color: #fff !important;
}

header .top-header a.tb-chip i {
    color: var(--accent-2) !important;
}

header .top-header a.soc-btn {
    width: 24px;
    height: 24px;
    font-size: 11px;
    background: transparent;
    border: 0;
    margin-left: 4px;
    color: #c9d7ea !important;
}

header .top-header a.soc-btn:hover {
    color: #fff !important;
}

/* ---------------- main bar ---------------- */
header {
    background: #fff !important;
    box-shadow: 0 6px 30px rgba(11, 31, 58, .08) !important;
}

/* header must be a positioned box so z-index works above banners on inner pages
   (low specificity on purpose: home's #header{position:fixed} and .sticky{position:fixed} still win) */
header {
    position: relative;
    z-index: 1500;
}

header .row.logo {
    position: relative;
}

header .row.logo::after {
    /* bottom accent hairline */
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--brand-2) 20%, var(--accent) 80%, transparent);
    opacity: .55;
    pointer-events: none;
}

.sticky {
    box-shadow: 0 10px 34px rgba(11, 31, 58, .16) !important;
}

.sticky+section {
    padding-top: 112px;
}

@media (min-width:769px) {
    #slider {
        margin-top: 112px !important;
    }
}

/* header is 34px bar + 78px nav */

@media (min-width:768px) {
    header .row.logo {
        display: flex;
        align-items: center;
        margin: 0;
        padding: 0 32px;
        min-height: 78px;
        transition: min-height .3s var(--ease);
    }

    .sticky .row.logo {
        min-height: 64px;
    }

    header .row.logo>.col-md-2 {
        width: auto;
        flex: 0 0 auto;
        float: none;
        padding: 0;
    }

    header .row.logo>.col-md-2>.row {
        display: flex;
        align-items: center;
        margin: 0;
    }

    header .row.logo>.col-md-2>.row>[class*='col-'] {
        width: auto;
        float: none;
        padding: 0;
    }

    header .row.logo>.col-md-2>.row>.col-md-5 {
        margin-right: 0;
    }

    header .row.logo>.col-md-2>.row>.col-md-7 {
        padding-left: 12px;
    }

    header .logo img {
        width: 74px !important;
        margin: 0 !important;
        transition: width .3s var(--ease), transform .5s var(--ease);
    }

    .sticky .logo img {
        width: 62px !important;
    }

    header .row.logo>.col-md-10 {
        flex: 1 1 auto;
        width: auto;
        float: none;
        padding: 0;
        text-align: right !important;
    }

    header ul.pc-nav {
        display: flex !important;
        justify-content: flex-end;
        align-items: center;
        gap: 2px;
        margin: 0 !important;
        padding: 0;
    }

    header ul.pc-nav>li {
        display: block;
        position: relative;
    }

    header ul.pc-nav>li>a {
        display: block;
        margin: 0 !important;
        padding: 10px 16px !important;
        font-size: 15px;
        font-weight: 500;
        border: 0 !important;
        border-radius: 50px;
        color: #1b2430 !important;
        background: transparent;
        transition: background .25s, color .25s, box-shadow .25s, transform .25s var(--ease);
    }

    header ul.pc-nav>li>a::after {
        display: none !important;
    }

    header ul.pc-nav>li.submenu>a::before {
        content: "\f107";
        font-family: "Font Awesome 5 Free";
        font-weight: 900;
        float: right;
        margin: 2px 0 0 7px;
        font-size: 11px;
        opacity: .55;
        transition: transform .3s var(--ease);
    }

    header ul.pc-nav>li.submenu:hover>a::before {
        transform: rotate(180deg);
    }

    /* top-level item stays highlighted while its dropdown is open (pointer is inside the dropdown) */
    header ul.pc-nav>li>a:hover,
    header ul.pc-nav>li:hover>a:not(.active) {
        background: rgba(45, 95, 156, .10) !important;
        color: var(--brand) !important;
    }

    header ul.pc-nav>li:last-child:hover>a {
        background: var(--brand) !important;
        color: #fff !important;
    }

    header ul.pc-nav>li>a.active {
        background: linear-gradient(135deg, var(--brand), var(--brand-2)) !important;
        color: #fff !important;
        box-shadow: 0 8px 18px rgba(45, 95, 156, .32);
    }

    /* Student Login = outlined button */
    header ul.pc-nav>li:last-child {
        margin-left: 6px;
    }

    header ul.pc-nav>li:last-child>a {
        box-shadow: inset 0 0 0 1.5px var(--brand);
        color: var(--brand) !important;
    }

    header ul.pc-nav>li:last-child>a:hover {
        background: var(--brand) !important;
        color: #fff !important;
    }

    /* ---- dropdown cards ---- */
    header ul.pc-nav li.submenu>ul {
        top: calc(100% + 10px) !important;
        left: 50% !important;
        min-width: 260px;
        padding: 8px !important;
        margin-left: -130px;
        border-radius: 16px !important;
        background: #fff !important;
        box-shadow: 0 22px 50px rgba(11, 31, 58, .18) !important;
        border: 1px solid rgba(11, 31, 58, .06) !important;
        overflow: visible !important;
        z-index: 200 !important;
    }

    header ul.pc-nav li.submenu>ul::before {
        /* hover bridge + notch */
        content: "";
        position: absolute;
        left: 0;
        right: 0;
        top: -14px;
        height: 14px;
    }

    header ul.pc-nav li.submenu>ul::after {
        content: "";
        position: absolute;
        top: -6px;
        left: 50%;
        width: 12px;
        height: 12px;
        margin-left: -6px;
        background: #fff;
        transform: rotate(45deg);
        border-left: 1px solid rgba(11, 31, 58, .06);
        border-top: 1px solid rgba(11, 31, 58, .06);
    }

    header ul.pc-nav li.submenu>ul li {
        display: block;
        position: relative;
    }

    header ul.pc-nav li.submenu>ul li a {
        display: block;
        margin: 0 !important;
        padding: 11px 14px !important;
        border-radius: 10px;
        border: 0 !important;
        font-size: 14px;
        font-weight: 500;
        color: #1b2430 !important;
        background: transparent !important;
        transition: background .2s, color .2s, padding .25s var(--ease) !important;
    }

    /* the page that is open right now (set by modern-current.js) - always marked inside the dropdown */
    header ul.pc-nav li.submenu>ul li>a.is-current,
    header ul.pc-nav li.submenu>ul li>a.has-current {
        background: rgba(45, 95, 156, .12) !important;
        color: var(--brand) !important;
        font-weight: 700;
        box-shadow: none;
    }

    header ul.pc-nav li.submenu>ul li>a.is-current::before {
        content: "\f00c";
        font-family: "Font Awesome 5 Free";
        font-weight: 900;
        font-size: 11px;
        color: var(--accent);
        position: absolute;
        right: 14px;
        top: 50%;
        margin-top: -7px;
    }

    header ul.pc-nav li.submenu>ul li>a.is-current {
        position: relative;
        padding-right: 36px !important;
    }

    /* an item whose sub-menu is open stays softly highlighted ... */
    header ul.pc-nav li.submenu>ul li:hover>a {
        background: rgba(45, 95, 156, .12) !important;
        color: var(--brand) !important;
        padding-left: 20px !important;
        box-shadow: none;
    }

    /* ... and the item under the pointer gets the strong highlight */
    header ul.pc-nav li.submenu>ul li>a:hover {
        background: linear-gradient(90deg, var(--brand), var(--brand-2)) !important;
        color: #fff !important;
        padding-left: 22px !important;
        box-shadow: 0 8px 18px rgba(45, 95, 156, .30);
    }

    header ul.pc-nav li.submenu>ul li>a:hover::after {
        opacity: 1;
    }

    header ul.pc-nav li.subsubmenu>a::after {
        content: "\f054";
        font-family: "Font Awesome 5 Free";
        font-weight: 900;
        float: right;
        font-size: 9px;
        margin-top: 4px;
        opacity: .5;
    }

    header ul.pc-nav li.subsubmenu>ul {
        top: -8px !important;
        left: 100% !important;
        margin-left: 8px;
        min-width: 180px;
        padding: 8px !important;
        border-radius: 16px !important;
        box-shadow: 0 22px 50px rgba(11, 31, 58, .18) !important;
        background: #fff !important;
    }

    header ul.pc-nav li.subsubmenu>ul::before {
        content: "";
        position: absolute;
        left: -12px;
        top: 0;
        bottom: 0;
        width: 12px;
    }

    header ul.pc-nav li.subsubmenu>ul::after {
        display: none;
    }
}

/* brand text only where there is room (otherwise the menu links get squeezed and break inside words) */
@media (min-width:1400px) {
    header .brand-text {
        display: block;
    }
}

/* menu links never break inside a word; tighter spacing on mid-size screens */
@media (min-width:768px) {
    header ul.pc-nav>li>a {
        white-space: nowrap;
    }
}

@media (min-width:992px) and (max-width:1399px) {
    header ul.pc-nav>li>a {
        padding: 10px 11px !important;
        font-size: 14px;
    }
}

@media (min-width:1400px) and (max-width:1599px) {
    header ul.pc-nav>li>a {
        padding: 10px 12px !important;
        font-size: 14.5px;
    }
}

@media (min-width:768px) and (max-width:991px) {
    header .row.logo {
        padding: 0 14px;
    }

    header ul.pc-nav>li>a {
        padding: 8px 9px !important;
        font-size: 13px;
    }

    header ul.pc-nav li.submenu>ul {
        left: 0 !important;
        margin-left: 0;
    }
}

/* ---------------- mobile (<768px) ---------------- */
@media (max-width:767px) {
    header .top-header>[class*='col-'] {
        min-height: 30px !important;
    }

    header .top-header a.tb-chip {
        margin-right: 0 !important;
        padding-right: 0 !important;
    }

    header .brand-text {
        display: block;
        margin-top: 14px;
    }

    header .brand-text strong {
        font-size: 17px;
    }

    header .brand-text span {
        font-size: 9.5px;
        line-height: 1.25;
    }
}

/* full-bleed header: remove the container-fluid side gutters so the dark top bar reaches both screen edges */
header>.container-fluid {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

header .top-header {
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 24px !important;
    padding-right: 24px !important;
}

@media (max-width:767px) {
    header .top-header {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }
}

/* phone: slim top bar = call link on the left, social icons on the right */
@media (max-width:767px) {
    header .top-header {
        display: flex !important;
        align-items: center;
        justify-content: space-between;
        flex-wrap: nowrap;
        margin: 0 !important;
        padding: 0 12px !important;
    }

    header .top-header>[class*='col-'] {
        width: auto !important;
        float: none !important;
        padding: 0 !important;
        min-height: 36px !important;
        display: flex !important;
        align-items: center;
    }

    header .top-header>.hidden-xs:first-child {
        display: flex !important;
    }

    /* un-hide the phone chip on phones */
    header .top-header>.hidden-xs:first-child a.tb-chip.hidden-xs {
        display: none !important;
    }

    /* e-mail stays hidden: no room */
    header .top-header a.tb-chip {
        margin: 0 !important;
        padding: 0 !important;
        font-size: 13px !important;
        font-weight: 500 !important;
        color: #fff !important;
    }

    header .top-header .social {
        justify-content: flex-end !important;
        margin-left: auto;
    }

    header .top-header a.soc-btn {
        width: 28px !important;
        height: 28px !important;
        margin-left: 7px !important;
    }

    header .top-header a.soc-btn i {
        font-size: 13px !important;
    }
}

/* top bar social icons: clear round buttons with brand colour on hover */
header .top-header a.soc-btn {
    width: 32px;
    height: 32px;
    margin-left: 8px;
    font-size: 14px;
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .28);
    color: #fff !important;
}

header .top-header a.soc-btn i {
    font-size: 14px;
    line-height: 1;
}

header .top-header a.soc-btn:hover {
    transform: translateY(-3px);
    border-color: transparent;
    color: #fff !important;
    box-shadow: 0 8px 16px rgba(0, 0, 0, .35);
}

header .top-header a.soc-fb:hover {
    background: #1877f2;
}

header .top-header a.soc-ig:hover {
    background: linear-gradient(45deg, #f9a03c, #e1306c 55%, #833ab4);
}

header .top-header a.soc-yt:hover {
    background: #ff0000;
}