
/* =========================================================
   MAIN HEADER / NAVBAR
========================================================= */

.main-navbar {

    position: fixed;

    top: 0;
    left: 0;
    right: 0;

    width: 100%;

    height: 104px;

    padding: 0 !important;
    margin: 0;

    background:
        linear-gradient(
            90deg,
            rgba(20, 48, 115, 0.84),
            rgba(35, 65, 135, 0.72),
            rgba(20, 48, 115, 0.84)
        ) !important;

    backdrop-filter:
        blur(18px)
        saturate(135%);

    -webkit-backdrop-filter:
        blur(18px)
        saturate(135%);

    border-bottom:
        1px solid rgba(255,255,255,0.18);

    box-shadow:
        0 8px 30px rgba(0,0,0,0.20);

    z-index: 1050;
}


/* =========================================================
   HEADER INNER
========================================================= */

.header-inner {

    width: 100%;

    height: 104px;

    padding-left: 22px;
    padding-right: 35px;

    display: flex;

    align-items: center;

    justify-content: space-between;
}


/* =========================================================
   LOGO
========================================================= */

.header-brand {
    display: flex !important;
    align-items: center;
    height: 100%;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    flex-shrink: 0;
    text-decoration: none;
}

.header-logo {
    display: block;
    width: 365px !important;
    height: auto !important;
    max-height: 86px;
    object-fit: contain;

    filter: none !important;
    transform: none !important;
    transition: none !important;
}



/* =========================================================
   RIGHT SIDE
========================================================= */

.header-right {

    display: flex;

    align-items: center;

    justify-content: flex-end;

    gap: 20px;

    margin-left: auto;

    height: 100%;
}


/* =========================================================
   CBSE AFFILIATION — LINE CLOSE TO LOGO
========================================================= */

.header-accreditation {
    display: flex;
    align-items: center;
    height: 100%;

    padding: 0;
    margin: 0;
    white-space: nowrap;
}

/* Tall yellow divider immediately after logo */
.accreditation-line {
    width: 3px;
    height: 62px;

    display: block;
    flex-shrink: 0;

    margin-left: 0px;
    margin-right: 20px;

    border-radius: 6px;

    background: linear-gradient(
        to bottom,
        #FFE98A,
        #FAE279
    );

    box-shadow:
        0 0 12px rgba(250, 226, 121, 0.35);
}


/* CBSE text */
.accreditation-text {
    display: flex;
    align-items: center;
    line-height: 1;
}

/* Small A */
.accreditation-text small {
    display: block;
    margin-bottom: 5px;

    color: rgba(255,255,255,0.78);

    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
    line-height: 1;

    text-transform: uppercase;

    transition: color 0.25s ease;
}


/* Main affiliation text */
.accreditation-text strong {
    display: block;

    color: #ffffff;

    font-size: 16px;
    font-weight: 600;
    letter-spacing: 1.0px;
    line-height: 1.15;

    text-transform: uppercase;

    text-shadow: 0 1px 5px rgba(0,0,0,0.28);

    transition:
        color 0.25s ease,
        text-shadow 0.25s ease;
}


/* Same yellow hover effect */
.header-accreditation:hover .accreditation-text strong {
    color: #FAE279;

    text-shadow:
        0 0 10px rgba(250,226,121,0.18);
}

.header-accreditation:hover .accreditation-text small {
    color: #FAE279;
}

/* =========================================================
   EMAIL + PHONE
========================================================= */

.header-contact-item {

    display: flex;

    align-items: center;

    gap: 10px;

    color: #ffffff !important;

    text-decoration: none !important;

    white-space: nowrap;

    transition:
        color 0.25s ease,
        opacity 0.25s ease;
}


.header-contact-item:hover {

    color: #FAE279 !important;

    opacity: 1;
}


/* =========================================================
   CONTACT ICON
========================================================= */

.contact-icon {

    width: 28px;
    height: 28px;

    display: flex;

    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    color: #FAE279;
}


.contact-icon svg {

    width: 24px;
    height: 24px;

    display: block;
}


/* =========================================================
   EMAIL
========================================================= */

.header-email {

    max-width: 250px;
}


.header-email .header-contact-text {

    font-size: 14px;

    font-weight: 600;

    letter-spacing: 0.15px;
}


/* =========================================================
   PHONE
========================================================= */

.header-phone .header-contact-text {

    font-size: 18px;

    font-weight: 700;

    letter-spacing: 0.4px;
}


/* =========================================================
   SEPARATORS
========================================================= */

.header-separator {
    width: 1px;
    height: 42px;

    display: block;
    flex-shrink: 0;

    margin: 0 0;

    background: rgba(255,255,255,0.35);
}


.hamburger-separator {
    width: 1px;
    height: 42px;
    margin-left: 0;
    margin-right: 0;
}


/* =========================================================
   PREMIUM HAMBURGER
========================================================= */

.premium-toggler {

    width: 55px;

    height: 55px;

    padding: 0 !important;
    margin: 0 !important;

    display: flex !important;

    align-items: center;
    justify-content: center;

    border: none !important;

    outline: none !important;

    box-shadow: none !important;

    background: transparent !important;

    cursor: pointer;

    flex-shrink: 0;
}


/* Remove Bootstrap icon */

.premium-toggler .navbar-toggler-icon {

    display: none !important;
}


/* =========================================================
   HAMBURGER LINES
========================================================= */

.hamburger-lines {

    width: 39px;
    height: 30px;

    display: flex;

    flex-direction: column;

    justify-content: space-between;

    align-items: flex-end;
}


.hamburger-lines span {

    display: block;

    width: 39px;
    height: 4px;

    background: #FFD21F;

    border-radius: 5px;

    transition:
        width 0.25s ease,
        transform 0.25s ease,
        opacity 0.25s ease;
}


.hamburger-lines span:nth-child(2) {

    width: 31px;
}


.premium-toggler:hover
.hamburger-lines span:nth-child(2) {

    width: 39px;
}


.premium-toggler:hover
.hamburger-lines span:nth-child(1) {

    width: 32px;
}


.premium-toggler:hover
.hamburger-lines span:nth-child(3) {

    width: 32px;
}


/* =========================================================
   OFFCANVAS
========================================================= */

.main-offcanvas {

    width: 470px !important;

    max-width: 92vw;

    height: 100vh;

    background:
        linear-gradient(
            145deg,
            #172f78 0%,
            #10245e 50%,
            #0c1d4d 100%
        ) !important;

    color: #ffffff;

    border-left:
        1px solid rgba(255,255,255,0.18);

    box-shadow:
        -20px 0 60px rgba(0,0,0,0.35);

    z-index: 1060;
}


/* =========================================================
   OFFCANVAS HEADER
========================================================= */

.premium-menu-header {

    min-height: 104px;

    padding: 22px 30px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    border-bottom:
        1px solid rgba(255,255,255,0.10);
}


.menu-small-title {

    display: block;

    color:
        rgba(255,255,255,0.55);

    font-size: 9px;

    font-weight: 700;

    letter-spacing: 1.6px;

    margin-bottom: 4px;
}


.offcanvas-title {

    margin: 0 !important;

    color: #ffffff;

    font-size: 27px;

    line-height: 1;

    font-weight: 700;

    letter-spacing: 0.3px;
}


/* =========================================================
   GOLD HEADER LINE
========================================================= */

.menu-gold-line {

    width: 54px;

    height: 4px;

    margin-left: 30px;

    margin-top: -2px;

    background: #FAE279;

    border-radius: 10px;

    box-shadow:
        0 0 12px rgba(250,226,121,0.45);
}


/* =========================================================
   PREMIUM CLOSE BUTTON
========================================================= */

.premium-close {

    width: 42px;
    height: 42px;

    padding: 0;

    border:
        1px solid rgba(255,255,255,0.20);

    border-radius: 50%;

    background:
        rgba(255,255,255,0.05);

    display: flex;

    align-items: center;
    justify-content: center;

    position: relative;

    cursor: pointer;

    transition:
        background 0.25s ease,
        border-color 0.25s ease,
        transform 0.25s ease;
}


.premium-close:hover {

    background: #FAE279;

    border-color: #FAE279;

    transform: rotate(90deg);
}


.premium-close span {

    position: absolute;

    width: 19px;
    height: 2px;

    background: #ffffff;

    border-radius: 3px;
}


.premium-close span:first-child {

    transform: rotate(45deg);
}


.premium-close span:last-child {

    transform: rotate(-45deg);
}


.premium-close:hover span {

    background: #172f78;
}


/* =========================================================
   MENU BODY
========================================================= */

.premium-menu-body {

    padding:
        22px 22px 25px 22px !important;

    overflow-y: auto;

    scrollbar-width: thin;

    scrollbar-color:
        rgba(250,226,121,0.55)
        transparent;
}


.premium-menu-body::-webkit-scrollbar {

    width: 5px;
}


.premium-menu-body::-webkit-scrollbar-track {

    background: transparent;
}


.premium-menu-body::-webkit-scrollbar-thumb {

    background:
        rgba(250,226,121,0.45);

    border-radius: 10px;
}


/* =========================================================
   MENU GROUP
========================================================= */

.menu-group {

    margin-bottom: 10px;

    border-radius: 12px;

    overflow: hidden;

    background:
        linear-gradient(
            135deg,
            rgba(34,67,145,0.68),
            rgba(19,44,105,0.65)
        );

    border:
        1px solid rgba(111,157,255,0.23);

    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.04),
        0 5px 15px rgba(0,0,0,0.08);

    transition:
        border-color 0.25s ease,
        box-shadow 0.25s ease;
}


.menu-group:hover {

    border-color:
        rgba(250,226,121,0.38);

    box-shadow:
        0 7px 20px rgba(0,0,0,0.12),
        inset 0 1px 0 rgba(255,255,255,0.05);
}


/* =========================================================
   PARENT MENU BUTTON
========================================================= */

.menu-parent {

    width: 100%;

    min-height: 58px;

    padding: 0 17px;

    border: none;

    background: transparent;

    color: #ffffff;

    display: flex;

    align-items: center;

    justify-content: space-between;

    cursor: pointer;

    text-align: left;

    font-family: inherit;

    font-size: 15px;

    font-weight: 600;

    letter-spacing: 0.25px;

    transition:
        background 0.25s ease,
        color 0.25s ease;
}


.menu-parent:hover {

    background:
        rgba(250,226,121,0.07);

    color: #FAE279;
}


.menu-parent-left {

    display: flex;

    align-items: center;

    gap: 14px;

    min-width: 0;
}


/* =========================================================
   MENU ICON
========================================================= */

.menu-icon {

    width: 34px;
    height: 34px;

    border-radius: 9px;

    display: flex;

    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    color: #FAE279;

    background:
        rgba(250,226,121,0.07);

    border:
        1px solid rgba(250,226,121,0.16);

    transition:
        background 0.25s ease,
        transform 0.25s ease;
}


.menu-icon svg {

    width: 20px;
    height: 20px;
}


.menu-parent:hover .menu-icon {

    background:
        rgba(250,226,121,0.15);

    transform: scale(1.04);
}


/* =========================================================
   CHEVRON
========================================================= */

.menu-chevron {

    width: 9px;
    height: 9px;

    border-right:
        2px solid #ffffff;

    border-bottom:
        2px solid #ffffff;

    transform: rotate(45deg);

    margin-right: 4px;

    margin-top: -4px;

    transition:
        transform 0.3s ease,
        border-color 0.25s ease;
}


.menu-parent[aria-expanded="true"] {

    background:
        rgba(250,226,121,0.08);

    color: #FAE279;
}


.menu-parent[aria-expanded="true"]
.menu-chevron {

    transform: rotate(225deg);

    border-color: #FAE279;

    margin-top: 4px;
}


/* =========================================================
   SUBMENU
========================================================= */

.submenu-wrapper {

    padding:
        0 10px 10px 10px;

    background:
        rgba(4,16,52,0.25);
}


.submenu-inner {

    padding: 8px;

    border-radius: 9px;

    background:
        rgba(4,17,52,0.34);

    border:
        1px solid rgba(112,160,255,0.20);

    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.03);
}


.submenu-item {

    min-height: 38px;

    padding: 8px 10px;

    display: flex;

    align-items: center;

    gap: 11px;

    color:
        rgba(255,255,255,0.88);

    text-decoration: none;

    font-size: 13.5px;

    font-weight: 500;

    letter-spacing: 0.15px;

    border-radius: 7px;

    border-bottom:
        1px solid rgba(255,255,255,0.055);

    transition:
        color 0.22s ease,
        background 0.22s ease,
        padding-left 0.22s ease;
}


.submenu-item:last-child {

    border-bottom: none;
}


.submenu-item:hover {

    color: #FAE279;

    background:
        rgba(250,226,121,0.075);

    padding-left: 15px;
}


.submenu-dot {

    width: 6px;
    height: 6px;

    min-width: 6px;

    border-radius: 50%;

    background: #FAE279;

    box-shadow:
        0 0 7px rgba(250,226,121,0.45);
}


/* =========================================================
   SIMPLE MENU ITEMS
========================================================= */

.simple-menu-item {

    margin-bottom: 10px;

    border-radius: 12px;

    background:
        linear-gradient(
            135deg,
            rgba(34,67,145,0.68),
            rgba(19,44,105,0.65)
        );

    border:
        1px solid rgba(111,157,255,0.23);

    overflow: hidden;

    transition:
        border-color 0.25s ease,
        background 0.25s ease;
}


.simple-menu-item:hover {

    border-color:
        rgba(250,226,121,0.38);
}


.simple-menu-link {

    min-height: 58px;

    padding: 0 17px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    color: #ffffff;

    text-decoration: none;

    font-size: 15px;

    font-weight: 600;

    transition:
        color 0.25s ease,
        background 0.25s ease;
}


.simple-menu-link:hover {

    color: #FAE279;

    background:
        rgba(250,226,121,0.07);
}


/* =========================================================
   SIMPLE CHEVRON
========================================================= */

.simple-chevron {

    width: 9px;
    height: 9px;

    border-top:
        2px solid #ffffff;

    border-right:
        2px solid #ffffff;

    transform: rotate(45deg);

    margin-right: 4px;

    transition:
        transform 0.25s ease,
        border-color 0.25s ease;
}


.simple-menu-link:hover
.simple-chevron {

    border-color: #FAE279;

    transform:
        translateX(3px)
        rotate(45deg);
}


/* =========================================================
   OFFCANVAS FOOTER
========================================================= */

.premium-menu-footer {

    padding: 18px 25px;

    display: flex;

    flex-direction: column;

    gap: 7px;

    border-top:
        1px solid rgba(255,255,255,0.10);

    background:
        rgba(4,16,48,0.30);
}


.premium-menu-footer a {

    color:
        rgba(255,255,255,0.62);

    text-decoration: none;

    font-size: 12px;

    transition:
        color 0.2s ease;
}


.premium-menu-footer a:hover {

    color: #FAE279;
}


/* =========================================================
   OFFCANVAS BACKDROP
========================================================= */

.offcanvas-backdrop.show {

    opacity: 0.72 !important;

    background-color:
        #061536 !important;

    backdrop-filter: blur(3px);

    -webkit-backdrop-filter: blur(3px);
}


/* =========================================================
   DESKTOP
========================================================= */

@media (min-width: 992px) {

    .main-navbar {

        height: 104px;
    }


    .header-inner {

        height: 104px;

        padding-left: 22px;
        padding-right: 35px;
    }


    .header-logo {

        width: 365px !important;

        max-height: 86px;
    }


    .header-right {

        gap: 20px;
    }


    .header-email .header-contact-text {

        font-size: 14px;
    }


    .header-phone .header-contact-text {

        font-size: 18px;
    }

}


/* =========================================================
   TABLET
========================================================= */

@media (min-width: 768px)
       and (max-width: 991px) {

    .main-navbar {
        height: 90px;
    }

    .header-inner {
        height: 90px;
        padding-left: 20px;
        padding-right: 20px;
    }

    .header-logo {
        width: 300px !important;
        max-height: 73px;
    }

    .header-right {
        gap: 15px;
        margin-left: auto;
    }

    /* Hide CBSE, yellow line, email, phone and separators */
    .header-accreditation,
    .accreditation-line,
    .header-email,
    .header-phone,
    .header-separator {
        display: none !important;
    }

    /* Keep hamburger visible */
    .premium-toggler {
        display: flex !important;
    }

    .hamburger-separator {
        display: none !important;
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 767px) {

    .main-navbar {
        height: 78px;

        background:
            linear-gradient(
                90deg,
                rgba(18,45,108,0.95),
                rgba(35,65,135,0.91),
                rgba(18,45,108,0.95)
            ) !important;

        backdrop-filter:
            blur(14px)
            saturate(130%);

        -webkit-backdrop-filter:
            blur(14px)
            saturate(130%);
    }


    .header-inner {
        width: 100%;
        height: 78px;

        padding-left: 12px;
        padding-right: 12px;

        display: flex;
        align-items: center;
        justify-content: space-between;
    }


    /* Mobile logo */
    .header-logo {
        width: 235px !important;
        max-height: 62px;
    }


    /* Keep right side at the far right */
    .header-right {
        display: flex;
        align-items: center;
        justify-content: flex-end;

        gap: 8px;

        margin-left: auto;
    }


    /* =====================================================
       HIDE DESKTOP-ONLY CONTENT
    ===================================================== */

    /* Hide CBSE text */
    .header-accreditation {
        display: none !important;
    }

    /* Hide BIG YELLOW LINE */
    .accreditation-line {
        display: none !important;
    }

    /* Hide email */
    .header-email {
        display: none !important;
    }

    /* Hide phone */
    .header-phone {
        display: none !important;
    }

    /* Hide white separators */
    .header-separator {
        display: none !important;
    }


    /* =====================================================
       MOBILE HAMBURGER — ALWAYS VISIBLE
    ===================================================== */

    .premium-toggler {
        display: flex !important;

        width: 48px;
        height: 48px;

        padding: 0 !important;
        margin: 0 !important;
    }


    .hamburger-lines {
        width: 32px;
        height: 25px;
    }


    .hamburger-lines span {
        width: 32px;
        height: 3px;
    }


    .hamburger-lines span:nth-child(2) {
        width: 26px;
    }


    /* =====================================================
       OFFCANVAS
    ===================================================== */

    .main-offcanvas {
        width: 90% !important;
        max-width: 390px;
    }


    .premium-menu-header {
        min-height: 88px;
        padding: 18px 20px;
    }


    .premium-menu-body {
        padding: 18px 15px 20px !important;
    }


    .menu-parent {
        min-height: 54px;
        padding: 0 13px;
    }


    .menu-parent-left {
        gap: 11px;
    }


    .menu-icon {
        width: 31px;
        height: 31px;
    }


    .submenu-wrapper {
        padding-left: 7px;
        padding-right: 7px;
    }


    .submenu-item {
        font-size: 13px;
    }

}


/* =========================================================
   VERY SMALL MOBILE
========================================================= */

@media (max-width: 400px) {

    .header-inner {
        padding-left: 8px;
        padding-right: 8px;
    }

    .header-logo {
        width: 205px !important;
    }

    .header-right {
        gap: 4px;
    }

    .premium-toggler {
        width: 46px;
        height: 46px;
    }

    .main-offcanvas {
        width: 94% !important;
    }

}