* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* =========================
        Navbar
========================= */

#navbar {
    position: sticky;
    top: 0;
    width: 100%;
    background: white;
    z-index: 1000;
    box-shadow: 0 2px 12px rgba(0, 0, 0, .08);
    transition: .35s;
}


/* Thin Blue Line */

.top-line {
    height: 5px;
    background: #1c4eb4;
}


/* Container */

.nav-container {

    width: 82%;
    max-width: 1400px;
    margin: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 92px;
    transition: .35s;
}


/* =========================
        Logo
========================= */

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 62px;
    transition: .35s;
}


/* =========================
        Navigation
========================= */

.nav-links {
    display: flex;
    list-style: none;
    gap: 48px;
    align-items: center;
}


.nav-links a {
    position: relative;
    text-decoration: none;
    color: #23478f;
    font-family: 'B KOODB';
    font-size: 22px;
    font-weight: 700;
    transition: .3s;
    padding-bottom: 4px;
}


/* Underline Animation */

.nav-links a::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    width: 0%;
    height: 2px;
    background: #2d68e3;
    transition: width .35s;
}


.nav-links a:hover {
    color: #2d68e3;
}


.nav-links a:hover::after {
    width: 100%;
}


/* =========================
    Shrink Navbar
========================= */

#navbar.shrink .nav-container {
    height: 66px;
}


#navbar.shrink .logo img {
    height: 46px;
}


/* ===================================
        Mobile Navbar
=================================== */

.hamburger {
    display: none;
    width: 40px;
    height: 40px;
    border: none;
    background: none;
    cursor: pointer;
    position: relative;
}


.hamburger span {
    position: absolute;
    width: 28px;
    height: 3px;
    background: #1c4eb4;
    left: 6px;
    transition: .35s;
}


.hamburger span:nth-child(1) {
    top: 10px;
}

.hamburger span:nth-child(2) {
    top: 18px;
}

.hamburger span:nth-child(3) {
    top: 26px;
}


/* X Animation */

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg);
    top: 18px;
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg);
    top: 18px;
}


/* ===================================
        Responsive Navbar
=================================== */

@media (max-width: 900px) {

    .nav-container {
        height: 72px;
    }

    .logo img {
        height: 52px;
    }

    /* Put logo left and hamburger right */

    .nav-container {
        flex-direction: row-reverse;
    }

    .hamburger {
        display: block;
    }

    nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: white;
        overflow: hidden;
        max-height: 0;
        transition: max-height .35s ease;
        box-shadow: 0 8px 18px rgba(0, 0, 0, .08);
    }

    nav.open {
        max-height: 400px;
    }

    .nav-links {
        flex-direction: column;
        gap: 0;
    }

    .nav-links li {
        width: 100%;
        border-bottom: 1px solid #ececec;
    }

    .nav-links a {
        display: block;
        padding: 18px 25px;
        font-size: 18px;
    }

}