/* =========================================================
   RESET
========================================================= */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family:
        Arial,
        Helvetica,
        sans-serif;
    color: #172033;
    background: #f5f8fc;
}

a {
    color: inherit;
}

.container {
    width: min(1180px, calc(100% - 40px));
    margin: auto;
}


/* =========================================================
   TOP BAR
========================================================= */

.top-bar {
    background: linear-gradient(
        90deg,
        #087dcc,
        #08a6a5,
        #05b957
    );

    color: #fff;
    font-size: 14px;
}

.top-bar-inner {
    min-height: 40px;

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

    gap: 20px;
}


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

.main-header {
    background: #fff;

    border-bottom:
        1px solid #e4e9f0;

    position: relative;
    z-index: 1000;
}

.header-inner {
    min-height: 92px;

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

    gap: 30px;
}


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

.brand a {
    display: flex;
    align-items: center;

    text-decoration: none;
}

.brand img {
    display: block;

    width: 150px;
    height: 75px;

    object-fit: contain;
}


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

.main-nav {
    display: flex;
    align-items: center;

    gap: 28px;
}

.main-nav > a,
.nav-dropdown > button {

    background: none;
    border: 0;

    color: #071a38;

    font-size: 15px;
    font-weight: 700;

    text-decoration: none;

    cursor: pointer;

    padding: 10px 0;
}

.main-nav > a:hover,
.nav-dropdown > button:hover {
    color: #0878d1;
}


/* =========================================================
   DROPDOWN
========================================================= */

.nav-dropdown {
    position: relative;
}

.nav-dropdown > button {
    font-family: inherit;
}

.dropdown-menu {

    position: absolute;

    top: calc(100% + 8px);
    left: 50%;

    transform:
        translateX(-50%)
        translateY(8px);

    width: 235px;

    background: #fff;

    border:
        1px solid #e3e8ef;

    border-radius: 10px;

    box-shadow:
        0 12px 30px
        rgba(0,0,0,.12);

    padding: 8px;

    opacity: 0;
    visibility: hidden;

    transition: .2s;

}

.nav-dropdown:hover .dropdown-menu {

    opacity: 1;
    visibility: visible;

    transform:
        translateX(-50%)
        translateY(0);
}

.dropdown-menu a {

    display: block;

    padding: 11px 13px;

    border-radius: 7px;

    color: #25364d;

    font-size: 14px;

    text-decoration: none;
}

.dropdown-menu a:hover {

    background: #f0f6ff;

    color: #0878d1;
}


/* =========================================================
   DASHBOARD / REGISTER / LOGOUT
========================================================= */

.nav-dashboard {
    color: #0878d1 !important;
}

.nav-logout {
    color: #e11d32 !important;
}

.nav-register {

    background: #0878d1;

    color: #fff !important;

    padding:
        9px 15px !important;

    border-radius: 7px;
}

.nav-register:hover {

    background: #065eaa;

    color: #fff !important;
}


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

.mobile-menu-btn {

    display: none;

    border: 0;

    background: transparent;

    font-size: 27px;

    cursor: pointer;

    color: #071a38;
}


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

.mobile-menu {

    display: none;

    background: #fff;

    border-bottom:
        1px solid #e4e9f0;

    box-shadow:
        0 8px 20px
        rgba(0,0,0,.08);

    position: relative;

    z-index: 999;
}

.mobile-menu a {

    display: block;

    padding: 15px 22px;

    text-decoration: none;

    font-weight: 600;

    border-bottom:
        1px solid #f0f2f5;
}

.mobile-menu a:hover {

    background: #f4f8fd;

    color: #0878d1;
}

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


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 950px) {

    .main-nav {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

}


@media (max-width: 600px) {

    .container {
        width:
            calc(100% - 24px);
    }

    .top-bar-inner {

        min-height: 36px;

        font-size: 11px;

        gap: 8px;
    }

    .top-bar-inner span:last-child {
        display: none;
    }

    .header-inner {

        min-height: 76px;
    }

    .brand img {

        width: 120px;
        height: 62px;
    }

}
/* =========================================================
   INNOSPHERE MAIN NAVIGATION
========================================================= */

.main-header {
    background: #ffffff;
    border-bottom: 1px solid #e5edf4;
    position: relative;
    z-index: 1000;
}

.header-inner {
    min-height: 92px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.brand {
    flex: 0 0 auto;
}

.brand a {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.brand img {
    display: block;
    width: 150px;
    height: 75px;
    object-fit: contain;
}


/* =========================================================
   MAIN NAV
========================================================= */

.main-nav {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end;
    gap: 28px;
    flex-wrap: nowrap !important;
    width: auto;
    margin-left: auto;
}

.main-nav > a,
.main-nav > .nav-dropdown {
    flex: 0 0 auto;
}


/* Normal links */

.main-nav > a {
    display: inline-flex;
    align-items: center;
    height: 92px;
    padding: 0;
    color: #061f42;
    background: transparent;
    border: 0;
    text-decoration: none;
    font-size: 15px;
    font-weight: 700;
    white-space: nowrap;
    transition: color .2s ease;
}

.main-nav > a:hover {
    color: #087bd1;
}

.main-nav > a.active {
    color: #087bd1;
}


/* =========================================================
   DROPDOWN
========================================================= */

.nav-dropdown {
    position: relative;
    flex: 0 0 auto;
}

.nav-dropdown-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    height: 92px;
    padding: 0;
    margin: 0;
    border: 0;
    background: transparent;
    color: #061f42;
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    white-space: nowrap;
    cursor: pointer;
}

.nav-dropdown-btn:hover {
    color: #087bd1;
}

.nav-dropdown-btn span {
    font-size: 9px;
    line-height: 1;
}


/* Dropdown box */

.nav-dropdown-menu {
    position: absolute;
    top: calc(100% - 1px);
    left: 50%;
    transform: translateX(-50%) translateY(8px);

    min-width: 230px;

    padding: 8px;

    background: #ffffff;

    border: 1px solid #dfe8f0;

    border-radius: 10px;

    box-shadow:
        0 15px 35px rgba(12, 48, 80, .14);

    opacity: 0;
    visibility: hidden;

    pointer-events: none;

    transition:
        opacity .18s ease,
        transform .18s ease,
        visibility .18s ease;

    z-index: 2000;
}


/* Desktop hover */

.nav-dropdown:hover > .nav-dropdown-menu,
.nav-dropdown.open > .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}


/* Dropdown links */

.nav-dropdown-menu a {
    display: block;

    padding: 11px 13px;

    color: #183b5c;

    background: #ffffff;

    border-radius: 6px;

    text-decoration: none;

    font-size: 13px;

    font-weight: 600;

    line-height: 1.35;

    white-space: nowrap;
}

.nav-dropdown-menu a:hover {
    background: #eef7ff;
    color: #087bd1;
}


/* =========================================================
   REGISTER
========================================================= */

.register-menu {
    min-width: 190px;
}

.register-btn {
    color: #061f42;
}


/* =========================================================
   DASHBOARD
========================================================= */

.nav-dashboard {
    color: #087bd1 !important;
}

.nav-dashboard:hover {
    color: #0565ae !important;
}


/* =========================================================
   LOGOUT
========================================================= */

.nav-logout {
    color: #e11d48 !important;
}

.nav-logout:hover {
    color: #be123c !important;
}


/* =========================================================
   TOP BAR
========================================================= */

.top-bar {
    background:
        linear-gradient(
            90deg,
            #087bd1,
            #09a0a7,
            #08b866
        );

    color: #ffffff;

    min-height: 40px;
}

.top-bar-inner {
    min-height: 40px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 20px;

    font-size: 13px;

    font-weight: 600;
}

.top-bar-inner span {
    white-space: nowrap;
}


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

@media (max-width: 1050px) {

    .header-inner {
        gap: 15px;
    }

    .main-nav {
        gap: 17px;
    }

    .main-nav > a,
    .nav-dropdown-btn {
        font-size: 14px;
    }

}


@media (max-width: 850px) {

    .header-inner {
        flex-direction: column;
        padding-top: 10px;
        padding-bottom: 10px;
    }

    .brand img {
        width: 130px;
        height: 65px;
    }

    .main-nav {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap !important;
        gap: 8px 18px;
    }

    .main-nav > a {
        height: 42px;
    }

    .nav-dropdown-btn {
        height: 42px;
    }

    .top-bar-inner {
        justify-content: center;
    }

    .top-bar-inner span:last-child {
        display: none;
    }

}


@media (max-width: 600px) {

    .main-nav {
        gap: 4px 12px;
    }

    .main-nav > a,
    .nav-dropdown-btn {
        font-size: 13px;
    }

    .nav-dropdown-menu {
        left: 0;
        transform: translateY(8px);
    }

    .nav-dropdown:hover > .nav-dropdown-menu,
    .nav-dropdown.open > .nav-dropdown-menu {
        transform: translateY(0);
    }

}