.top-header {
    background: #1F3165;
    padding: 15px 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.top-header.hide {
    transform: translateY(-100%);
    opacity: 0;
}

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

.mobile-logo {
    display: none;
}

.course-nav {
    background: #DDDDDD;
    position: relative;
    top: 0px;
    z-index: 999;
    transition: transform 0.35s ease, box-shadow 0.3s ease;
}

.course-nav.sticky {
    position: fixed;
    top: 0px;
    left: 0;
    width: 100%;
    transform: translateY(-100%);
    animation: slideDown 0.35s ease forwards;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
    }

    to {
        transform: translateY(0);
    }
}

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

.header-nav {
    flex: 1;
    position: relative;
}

.header-nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.header-nav li {
    margin: 0;
    padding: 0;
}

.header-nav li a {
    display: block;
    padding: 13px 20px;
    text-decoration: none;
    font-size: 18px;
    color: #444;
    text-transform: uppercase;
    white-space: nowrap;
}

.header-nav a:hover,
.header-nav a.active {
    background: #F1F1F1;
    color: #365594;
}

.header-nav a.active {
    color: #365594;
}

.more-menu {
    display: none !important;
}

.header-brn {
    display: none;
}

.course-nav.sticky .header-brn {
    display: block;
}

.course-nav.sticky .header-nav li a {
    padding: 21px 20px;
}

.mobile-enquire,
.mobile-dropdown {
    display: none;
}

@media (max-width: 1270px) {

    .course-nav {
        position: sticky;
        top: 80px;
        z-index: 1030;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    }

    .course-nav.sticky {
        position: sticky !important;
        transform: none !important;
        animation: none !important;
        width: auto !important;
        left: auto !important;
          top: 80px;
    }




    .top-header.hide {
        transform: none !important;
        opacity: 1 !important;
    }

    .top-header {
        background: #fff;
    }

    .desktop-logo {
        display: none;
    }

    .mobile-logo {
        display: block;
    }

    .nav-flex {
        flex-direction: column;
        align-items: stretch;
    }

    #nav-active-tab {
        flex: 1 1 80%;
    }

    .desktop-menu {
        display: none;
    }

    .mobile-enquire {
        display: flex;
        justify-content: flex-end;
        align-items: center;
    }

    .mobile-enquire .cta-pill {
        font-size: 14px;
        padding: 10px 14px;
    }

    .more-menu {
        display: flex !important;
        flex: 0 0 20%;
        justify-content: center;
        align-items: center;
        height: 48px;
        padding: 13px 20px;
        background: #DDDDDD;
        cursor: pointer;
        font-size: 14px;
        color: #365594;
    }

    .more-menu.active {
        background: #F1F1F1;
    }

    .mobile-dropdown {
        position: absolute;
        top: 48px;
        right: 0;
        background: #DDDDDD;
        z-index: 998;
        display: none;
    }

    .mobile-dropdown.show {
        display: block;
    }

    .mobile-dropdown a {
        display: block;
        padding: 13px 20px;
        text-decoration: none;
        color: #00374E;
        font-size: 14px;
    }

    .mobile-dropdown a:hover {
        background: #F1F1F1;
        color: #365594;
    }

    .header-brn {
        display: none !important;
    }

    .header-nav li a {
        font-size: 14px;
        max-width: 60%;
        line-height: 22px;
    }

    .cta-pill.pdp-btn svg {
        height: 11px;
    }

    .cta-pill.pdp-btn {
        min-width: unset;
        padding: 5px 16px;
    }

    .course-nav.sticky .header-nav li a {
        padding: 13px 20px;

    }


}

.course-nav.btn-only .header-nav {
    display: none;
}

.course-nav.btn-only .header-brn {
    display: flex !important;
    justify-content: center;
}

.course-nav.btn-only .nav-flex {
    justify-content: center;
}

.header-brn .pdp-btn svg {
    height: 11px;
}
@media (max-width: 1270px) {

    .top-header {
        position: sticky;
        top: 0px;
        z-index: 1040;
    }

    .course-nav {
        position: sticky;
        top: 80px; /* height of top-header */
        z-index: 1030;
    }

}