/* =========================================================
   START: TOP BAR & HEADER
========================================================= */

/* ==================== TOP BAR ==================== */

.topbar {
    background: #04101f;
    color: #c3d0df;
    font-size: 12px;
    border-bottom: 1px solid #1b2c42;
}

.topbar-inner {
    min-height: 38px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-contact {
    display: flex;
    align-items: center;
    gap: 22px;
}

.top-contact a {
    color: #d6e1ee;
    transition: 0.25s ease;
}

.top-contact a:hover {
    color: #ffffff;
}

.top-contact i {
    color: #54c9ff;
    margin-right: 5px;
}

.top-open {
    color: #e5edf6;
}

.top-open i {
    color: #54c9ff;
    margin-right: 5px;
}

.top-open span {
    color: #f26522;
    padding: 0 8px;
}

/* ==================== MAIN HEADER ==================== */

.main-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #ffffff;
    box-shadow: 0 6px 24px rgba(7, 21, 40, 0.08);
    border-bottom: 1px solid #edf1f5;
}

.navbar {
    min-height: 76px;
    padding-top: 0;
    padding-bottom: 0;
    background: #ffffff;
}

/* ==================== LOGO ==================== */

.navbar-brand {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.navbar-brand img {
    width: 118px;
    height: 64px;
    object-fit: contain;
    display: block;
}

/* ==================== NAVBAR ==================== */

.navbar-nav {
    align-items: center;
}

.navbar-nav > li {
    display: flex;
    align-items: center;
}

.nav-link {
    position: relative;
    color: #172235 !important;
    font-size: 15px;
    font-weight: 700;
    padding: 28px 14px !important;
    transition: 0.25s ease;
}

.nav-link::after {
    content: "";
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 17px;
    height: 2px;
    border-radius: 10px;
    background: #1688d9;
    transform: scaleX(0);
    transform-origin: center;
    transition: 0.25s ease;
}

.nav-link:hover,
.nav-link.active {
    color: #1688d9 !important;
}

.nav-link:hover::after,
.nav-link.active::after {
    transform: scaleX(1);
}

/* ==================== NAV ACTIONS ==================== */

.nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: 20px;
    flex-shrink: 0;
}

/* ==================== LOGIN ==================== */

.login-link {
    color: #172235;
    font-size: 15px;
    font-weight: 700;
    padding: 10px 8px;
    transition: 0.25s ease;
}

.login-link:hover {
    color: #1688d9;
}

/* ==================== REGISTER ==================== */

.btn-register {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 9px 16px;
    border: 1px solid #1688d9;
    border-radius: 8px;
    color: #1688d9;
    background: #ffffff;
    font-size: 14px;
    font-weight: 800;
    transition: 0.25s ease;
}

.btn-register:hover {
    background: #1688d9;
    border-color: #1688d9;
    color: #ffffff;
    transform: translateY(-1px);
}

/* ==================== ENROLL BUTTON ==================== */

.btn-enroll {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 42px;
    padding: 9px 17px;
    border-radius: 8px;
    background: #f26522;
    color: #ffffff;
    font-size: 14px;
    font-weight: 800;
    box-shadow: 0 7px 18px rgba(242, 101, 34, 0.2);
    transition: 0.25s ease;
}

.btn-enroll:hover {
    background: #d95317;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 9px 22px rgba(242, 101, 34, 0.26);
}

.btn-enroll i {
    font-size: 13px;
}

/* ==================== MOBILE TOGGLER ==================== */

.navbar-toggler {
    width: 44px;
    height: 42px;
    padding: 0;
    border: 1px solid #dfe6ee;
    border-radius: 8px;
    background: #ffffff;
    color: #071528;
    font-size: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: none !important;
}

.navbar-toggler:hover {
    border-color: #1688d9;
    color: #1688d9;
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 3px rgba(22, 136, 217, 0.1) !important;
}

/* =========================================================
   RESPONSIVE - LARGE TABLET / SMALL DESKTOP
========================================================= */

@media (max-width: 1399px) {
    .nav-link {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }

    .nav-link::after {
        left: 10px;
        right: 10px;
    }

    .nav-actions {
        gap: 7px;
        margin-left: 10px;
    }

    .btn-register,
    .btn-enroll {
        padding-left: 13px;
        padding-right: 13px;
    }
}

/* =========================================================
   RESPONSIVE - NAVBAR COLLAPSE
========================================================= */

@media (max-width: 1199px) {
    .navbar {
        min-height: 70px;
    }

    .navbar-brand img {
        width: 110px;
        height: 58px;
    }

    .navbar-collapse {
        padding: 12px 0 18px;
        border-top: 1px solid #edf1f5;
        background: #ffffff;
    }

    .navbar-nav {
        align-items: stretch;
        margin-bottom: 12px;
    }

    .navbar-nav > li {
        display: block;
    }

    .nav-link {
        padding: 11px 0 !important;
        color: #172235 !important;
        border-bottom: 1px solid #f0f3f6;
    }

    .nav-link::after {
        display: none;
    }

    .nav-link:hover,
    .nav-link.active {
        color: #1688d9 !important;
    }

    .nav-actions {
        width: 100%;
        margin: 12px 0 0;
        padding-top: 5px;
        display: flex;
        align-items: center;
        justify-content: flex-start;
        gap: 10px;
    }

    .login-link {
        padding: 10px 8px;
    }
}

/* =========================================================
   RESPONSIVE - MOBILE
========================================================= */

@media (max-width: 767px) {
    .topbar-inner {
        min-height: auto;
        padding: 8px 0;
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }

    .top-contact {
        width: 100%;
        gap: 14px;
        flex-wrap: wrap;
    }

    .top-contact a {
        font-size: 11px;
    }

    .top-open {
        font-size: 11px;
        line-height: 1.4;
    }

    .navbar {
        min-height: 65px;
    }

    .navbar-brand img {
        width: 100px;
        height: 55px;
    }

    .nav-actions {
        flex-wrap: wrap;
    }

    .btn-register,
    .btn-enroll {
        min-height: 40px;
        padding: 8px 13px;
        font-size: 13px;
    }
}

/* =========================================================
   RESPONSIVE - SMALL MOBILE
========================================================= */

@media (max-width: 575px) {
    .topbar .container-fluid {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }

    .top-contact {
        flex-direction: column;
        gap: 3px;
    }

    .top-open {
        font-size: 10px;
    }

    .top-open span {
        padding: 0 4px;
    }

    .navbar .container-fluid {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }

    .navbar-brand img {
        width: 92px;
        height: 52px;
    }

    .navbar-toggler {
        width: 41px;
        height: 40px;
        font-size: 23px;
    }

    .nav-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .login-link,
    .btn-register,
    .btn-enroll {
        width: 100%;
        text-align: center;
        justify-content: center;
    }
}

/* ==================== END: TOP BAR & HEADER ==================== */
