/* ===================================
   GLOBAL
=================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
}

body {
    font-family: 'Outfit', sans-serif;
    overflow-x: hidden;
}


/* ===================================
   MOBILE MENU BODY LOCK
=================================== */

body.mobile-menu-open {
    overflow: hidden !important;
    height: 100vh !important;
    touch-action: none;
}


/* ===================================
   COLORS
=================================== */

:root {
    --primary: #FDB515;
    --secondary: #0D2346;
    --white: #ffffff;
    --border: #E9ECEF;
    --text: #1A1A1A;
    --light: #F8F9FB;
}


/* ===================================
   HEADER
=================================== */

.main-header {
    width: 100%;
    background: #ffffff;
    border-bottom: 1px solid #f1f1f1;

    position: sticky;
    top: 0;

    /*
     * Keep header below Bootstrap offcanvas
     * and backdrop when mobile menu is open.
     */
    z-index: 1020;
}

.main-header .container {
    width: 100%;
}

.navbar {
    min-height: 95px;
}


/* ===================================
   LOGO
=================================== */

.navbar-brand {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.navbar-brand img {
    height: 60px;
    width: auto;
    display: block;
    transition: .3s;
}

.navbar-brand img:hover {
    transform: scale(1.02);
}


/* ===================================
   NAV MENU
=================================== */

.navbar-nav {
    gap: 25px;
}

.nav-link {
    font-size: 16px;
    font-weight: 500;
    color: var(--secondary);
    position: relative;
    text-decoration: none;
}

.nav-link:hover {
    color: var(--primary);
}

.nav-link.active {
    color: var(--primary);
}

.nav-link.active::after {
    content: '';

    position: absolute;

    left: 0;
    bottom: -8px;

    width: 100%;
    height: 3px;

    background: var(--primary);

    border-radius: 50px;
}


/* ===================================
   DROPDOWN
=================================== */

.dropdown-menu {
    border: none;
    border-radius: 15px;

    box-shadow: 0 15px 40px rgba(0, 0, 0, .08);

    padding: 12px;
}

.dropdown-item {
    padding: 10px 15px;
    border-radius: 10px;
    font-weight: 500;
}

.dropdown-item:hover {
    background: #f7f7f7;
    color: var(--primary);
}


/* ===================================
   LOGIN BUTTON
=================================== */

.login-btn {
    display: flex;
    align-items: center;
    gap: 10px;

    text-decoration: none;

    border: 1px solid #dcdcdc;

    color: var(--secondary);

    padding: 14px 24px;

    border-radius: 14px;

    font-weight: 500;

    transition: .3s;
}

.login-btn:hover {
    background: var(--secondary);
    color: #ffffff;
}


/* ===================================
   MOBILE TOGGLER
=================================== */

.main-header .navbar-toggler {
    display: none;

    width: 44px;
    height: 44px;

    padding: 0;

    margin-left: auto;

    border: none;
    outline: none;

    box-shadow: none !important;

    background: transparent;

    align-items: center;
    justify-content: center;

    flex-direction: column;

    gap: 5px;

    cursor: pointer;

    position: relative;

    z-index: 1021;
}

.main-header .navbar-toggler:focus,
.main-header .navbar-toggler:active {
    border: none;
    outline: none;
    box-shadow: none !important;
}

.main-header .navbar-toggler .toggler-line {
    display: block;

    width: 22px;
    height: 2px;

    background: var(--secondary);

    border-radius: 10px;

    transition: .25s ease;
}

.main-header .navbar-toggler:hover .toggler-line {
    background: var(--primary);
}


/* ===================================
   OFFCANVAS BACKDROP
=================================== */

/*
 * Bootstrap creates this automatically.
 * It must cover the original header too.
 */

.offcanvas-backdrop {
    z-index: 1040 !important;

    background-color: rgba(13, 35, 70, .78) !important;
}

.offcanvas-backdrop.show {
    opacity: 1 !important;
}


/* ===================================
   MOBILE OFFCANVAS
=================================== */

#mobileMenu.offcanvas {
    width: 320px;
    max-width: 88vw;

    height: 100vh;

    background: #ffffff;

    z-index: 1055 !important;

    border: none;

    box-shadow: -12px 0 40px rgba(0, 0, 0, .12);

    overflow: hidden;
}

#mobileMenu.offcanvas-end {
    top: 0;
    right: 0;
    bottom: 0;

    transform: translateX(100%);
}

#mobileMenu.offcanvas.show {
    transform: translateX(0);
}


/* ===================================
   MOBILE OFFCANVAS HEADER
=================================== */

#mobileMenu .offcanvas-header {
    min-height: 85px;

    display: flex;

    align-items: center;
    justify-content: space-between;

    border-bottom: 1px solid #efefef;

    padding: 15px 20px;

    background: #ffffff;
}


/* ===================================
   MOBILE LOGO
=================================== */

.mobile-logo {
    display: flex;
    align-items: center;

    text-decoration: none;

    flex-shrink: 0;
}

.mobile-logo img {
    width: auto;
    height: 55px;

    max-width: 150px;

    object-fit: contain;

    display: block;
}


/* ===================================
   CUSTOM MOBILE CLOSE BUTTON
=================================== */

.mobile-menu-close {
    width: 38px;
    height: 38px;

    padding: 0;
    margin: 0;

    border: none;
    outline: none;

    background: transparent;

    display: flex;

    align-items: center;
    justify-content: center;

    position: relative;

    cursor: pointer;

    flex-shrink: 0;
}

.mobile-menu-close:focus,
.mobile-menu-close:active {
    border: none;
    outline: none;
    box-shadow: none;
}

.mobile-menu-close span {
    position: absolute;

    width: 19px;
    height: 2px;

    background: var(--secondary);

    border-radius: 10px;

    transition: .25s ease;
}

.mobile-menu-close span:first-child {
    transform: rotate(45deg);
}

.mobile-menu-close span:last-child {
    transform: rotate(-45deg);
}

.mobile-menu-close:hover span {
    background: var(--primary);
}


/* ===================================
   OFFCANVAS BODY
=================================== */

#mobileMenu .offcanvas-body {
    padding: 25px;

    overflow-y: auto;
    overflow-x: hidden;

    -webkit-overflow-scrolling: touch;
}


/* ===================================
   MOBILE MENU
=================================== */

.mobile-menu {
    list-style: none;

    padding: 0;
    margin: 0;
}

.mobile-menu li {
    margin-bottom: 20px;
}

.mobile-menu li:last-child {
    margin-bottom: 0;
}

.mobile-menu li a {
    display: block;

    text-decoration: none;

    color: var(--secondary);

    font-size: 18px;
    font-weight: 500;

    transition: color .25s ease;
}

.mobile-menu li a:hover {
    color: var(--primary);
}


/* ===================================
   MOBILE BUTTON
=================================== */

.mobile-btn {
    margin-top: 30px;
}


/* ===================================
   MOBILE LOGIN
=================================== */

.mobile-login-btn {
    width: 100%;

    display: flex;

    align-items: center;
    justify-content: center;

    gap: 8px;

    text-align: center;
    text-decoration: none;

    background: var(--primary);

    color: #ffffff;

    padding: 14px;

    border-radius: 12px;

    font-weight: 600;
}

.mobile-login-btn:hover {
    background: var(--secondary);
    color: #ffffff;
}


/* ===================================
   DESKTOP PROFILE
=================================== */

.header-btn {
    position: relative;
}

.profile-dropdown {
    position: relative;
}

.profile-btn {
    display: flex;
    align-items: center;

    gap: 10px;

    border: 1px solid #dcdcdc;

    background: #ffffff;

    color: var(--secondary);

    padding: 12px 18px;

    border-radius: 14px;

    font-family: inherit;

    font-size: 16px;
    font-weight: 600;

    cursor: pointer;

    transition:
        background-color .3s ease,
        color .3s ease,
        border-color .3s ease;
}

.profile-icon {
    width: 34px;
    height: 34px;

    background: var(--primary);

    color: #ffffff;

    border-radius: 50%;

    display: inline-flex;

    align-items: center;
    justify-content: center;

    flex-shrink: 0;
}

.profile-arrow {
    margin-left: 2px;

    font-size: 14px;

    transition: transform .3s ease;
}

.profile-dropdown.open .profile-btn {
    background: var(--secondary);
    color: #ffffff;

    border-color: var(--secondary);
}

.profile-dropdown.open .profile-arrow {
    transform: rotate(180deg);
}


/* ===================================
   DESKTOP PROFILE MENU
=================================== */

.profile-menu {
    position: absolute;

    top: calc(100% + 12px);
    right: 0;

    width: 238px;

    background: #ffffff;

    border: 1px solid rgba(13, 35, 70, .06);

    border-radius: 18px;

    padding: 14px;

    box-shadow: 0 20px 50px rgba(13, 35, 70, .16);

    opacity: 0;
    visibility: hidden;

    transform: translateY(-8px);

    pointer-events: none;

    z-index: 99999;

    transition:
        opacity .25s ease,
        visibility .25s ease,
        transform .25s ease;
}

.profile-menu.show {
    opacity: 1;

    visibility: visible;

    transform: translateY(0);

    pointer-events: auto;
}

.profile-menu a {
    display: flex;

    align-items: center;

    gap: 14px;

    min-height: 48px;

    padding: 11px 12px;

    text-decoration: none;

    color: var(--secondary);

    font-size: 16px;
    font-weight: 500;

    border-radius: 11px;

    transition:
        background-color .25s ease,
        color .25s ease;
}

.profile-menu a i {
    width: 22px;

    flex-shrink: 0;

    text-align: center;

    font-size: 18px;

    color: var(--secondary);

    transition: color .25s ease;
}

.profile-menu a:hover {
    background: #f7f9fc;
    color: var(--primary);
}

.profile-menu a:hover i {
    color: var(--primary);
}


/* ===================================
   MOBILE PROFILE
=================================== */

.mobile-profile-box {
    width: 100%;

    margin-top: 20px;
}

.mobile-profile-toggle {
    width: 100%;

    border: none;

    background: var(--primary);

    color: #ffffff;

    padding: 14px 16px;

    border-radius: 12px;

    font-family: inherit;

    font-weight: 800;

    display: flex;

    align-items: center;
    justify-content: center;

    gap: 10px;

    cursor: pointer;
}

.mobile-profile-icon {
    width: 28px;
    height: 28px;

    background: #ffffff;

    color: var(--primary);

    border-radius: 50%;

    display: inline-flex;

    align-items: center;
    justify-content: center;
}

.mobile-profile-arrow {
    transition: .3s ease;
}

.mobile-profile-arrow.rotate {
    transform: rotate(180deg);
}


/* ===================================
   MOBILE PROFILE MENU
=================================== */

.mobile-profile-menu {
    display: none;

    background: #ffffff;

    border-radius: 14px;

    margin-top: 12px;

    padding: 10px;

    box-shadow: 0 15px 35px rgba(0, 0, 0, .08);
}

.mobile-profile-menu.show {
    display: block;
}

.mobile-profile-menu a {
    display: flex;

    align-items: center;

    gap: 12px;

    color: var(--secondary);

    text-decoration: none;

    font-weight: 700;

    padding: 13px 14px;

    border-radius: 10px;
}

.mobile-profile-menu a i {
    width: 22px;

    text-align: center;

    color: var(--secondary);
}

.mobile-profile-menu a:hover {
    background: #f7f9fc;

    color: var(--primary);
}

.mobile-profile-menu a:hover i {
    color: var(--primary);
}


/* ===================================
   TABLET
=================================== */

@media (max-width: 991px) {

    .navbar {
        min-height: 85px;
    }

    .navbar-collapse {
        display: none !important;
    }

    .main-header .navbar-toggler {
        display: flex;
    }

    .navbar-brand img {
        height: 55px;
        width: auto;
    }

    #mobileMenu.offcanvas {
        width: 320px;
        max-width: 88vw;
    }

}


/* ===================================
   MOBILE
=================================== */

@media (max-width: 576px) {

    .navbar {
        min-height: 80px;
    }

    .navbar-brand img {
        height: 48px;
    }

    .main-header .navbar-toggler {
        width: 42px;
        height: 42px;
    }

    .main-header .navbar-toggler .toggler-line {
        width: 21px;
        height: 2px;
    }

    #mobileMenu.offcanvas {
        width: 280px;
        max-width: 88vw;
    }

    #mobileMenu .offcanvas-header {
        min-height: 80px;

        padding: 14px 18px;
    }

    .mobile-logo img {
        height: 50px;
        max-width: 145px;
    }

    .mobile-menu-close {
        width: 36px;
        height: 36px;
    }

    .mobile-menu-close span {
        width: 18px;
    }

    #mobileMenu .offcanvas-body {
        padding: 22px;
    }

    .mobile-menu li a {
        font-size: 16px;
    }

}


/* ===================================
   VERY SMALL MOBILE
=================================== */

@media (max-width: 399px) {

    #mobileMenu.offcanvas {
        width: 275px;
        max-width: 90vw;
    }

    .mobile-logo img {
        height: 48px;
        max-width: 140px;
    }

}


/* ===================================
   DESKTOP RESET
=================================== */

@media (min-width: 992px) {

    .main-header .navbar-toggler {
        display: none !important;
    }

    #mobileMenu.offcanvas {
        display: none !important;

        visibility: hidden !important;
        opacity: 0 !important;

        transform: translateX(100%) !important;

        pointer-events: none !important;
    }

    .offcanvas-backdrop {
        display: none !important;

        visibility: hidden !important;

        opacity: 0 !important;

        pointer-events: none !important;
    }

    body.mobile-menu-open {
        overflow-x: hidden !important;
        overflow-y: auto !important;
        height: auto !important;
        touch-action: auto;
    }

}