/* ========================================= */
/* NAVBAR */
/* ========================================= */

.custom-navbar {
    background: #eef3fb;
    border-bottom: 1px solid #d4e0f7;
    position: sticky;
    top: 0;
    z-index: 9999;
}

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

.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 30px;
}

/* ========================================= */
/* BRAND */
/* ========================================= */

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: #0f172a;
}

.brand:hover {
    color: #0f172a;
    opacity: 0.9;
}

.brand img {
    height: 46px;
    width: 46px;
    object-fit: contain;
    border-radius: 50%;
    border: 3px solid #ffffff;
}

.brand-text {
    font-size: 15px;
    font-weight: 800;
    color: #0f172a;
    display: block;
    line-height: 1.2;
}

.brand-sub {
    font-size: 10.5px;
    color: #3b82f6;
    letter-spacing: 0.5px;
    display: block;
}

/* ========================================= */
/* TOGGLER */
/* ========================================= */

.nav-toggler {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 42px;
    height: 42px;
    background: transparent;
    border: none;
    cursor: pointer;
}

.nav-toggler span {
    width: 26px;
    height: 2.5px;
    background: #1e3a8a;
    border-radius: 20px;
    transition: 0.3s ease;
    display: block;
}

/* TOGGLER ANIMATION */

.nav-toggler.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggler.open span:nth-child(2) {
    opacity: 0;
}

.nav-toggler.open span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

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

.menu {
    display: flex;
    align-items: center;
    gap: 5px;
}

.menu a {
    padding: 9px 18px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    color: #334155;
    border: none;
    background: transparent;
    transition: 0.2s ease;
    letter-spacing: 0.2px;
}

.menu a:hover {
    background: #d4e0f7;
    color: #1e3a8a;
}

/* ACTIVE LINK */

.menu a.active {
    background: #1e3a8a;
    color: #ffffff;
}

.menu a.active:hover {
    background: #1e40af;
    color: #ffffff;
}

/* ========================================= */
/* SUB BAR */
/* ========================================= */

.sub-bar {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 6px 30px 10px;
    background: #eef3fb;
}

/* ========================================= */
/* SOCIAL LINKS */
/* ========================================= */

.social-links {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.social-links a {
    color: #64748b;
    text-decoration: none;
    font-size: 11.5px;
    font-weight: 600;
    transition: 0.2s ease;
}

.social-links a:hover {
    color: #1e3a8a;
}

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

@media (max-width: 768px) {

    .top-bar {
        padding: 14px 18px;
    }

    .nav-toggler {
        display: flex;
        z-index: 10001;
    }

    .menu {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #eef3fb;
        flex-direction: column;
        align-items: center;
        gap: 8px;
        padding: 0;
        max-height: 0;
        overflow: hidden;
        transition: all 0.4s ease;
        border-top: 1px solid #d4e0f7;
    }

    .menu a {
        width: 85%;
        text-align: center;
        opacity: 0;
        transform: translateY(-8px);
        transition: 0.3s ease;
        border-radius: 50px;
    }

    .custom-navbar.nav-open .menu {
        max-height: 500px;
        padding: 16px 0;
    }

    .custom-navbar.nav-open .menu a {
        opacity: 1;
        transform: translateY(0);
    }

    .sub-bar {
        padding: 8px 16px;
        justify-content: center;
    }

    .social-links {
        gap: 12px;
        justify-content: center;
    }

    .social-links a {
        font-size: 11px;
    }

    .brand img {
        height: 38px;
        width: 38px;
    }

    .brand-text {
        font-size: 13px;
    }

    .brand-sub {
        font-size: 10px;
    }
}