/* ===============================================
   BTS Navbar - White Theme + Blue Text
   ================================================ */

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
    background: #ffffff;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 52px;
    z-index: 1000;
    box-shadow: 0 2px 12px rgba(0, 57, 128, 0.10);
    transition: none;
    border-bottom: 1px solid #DDE4EF;
}

/* Scrolled sama persis — navbar tidak berubah saat scroll */
.navbar.scrolled {
    background: #ffffff;
    height: 52px;
    box-shadow: 0 2px 12px rgba(0, 57, 128, 0.10);
}

/* ===============================================
   LOGO
   ================================================ */
.navbar .logo {
    display: flex;
    align-items: center;
    height: 100%;
    flex-shrink: 0;
    text-decoration: none;
}

.navbar .logo img {
    height: auto;
    width: 120px;
    max-height: 46px;
    object-fit: contain;
    transition: opacity 0.3s ease;
}

.navbar .logo:hover img {
    opacity: 0.85;
}

/* ===============================================
   NAV LINKS (DESKTOP)
   ================================================ */
.navbar .nav-links {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 2px;
    padding: 0;
    margin: 0;
}

.navbar .nav-links li {
    position: relative;
}

.navbar .nav-links a {
    display: block;
    padding: 6px 12px;
    color: #0D1B33;
    font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
    font-size: 0.82rem;
    font-weight: 500;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.25s ease;
    white-space: nowrap;
}

.navbar .nav-links a:hover {
    color: #0057B8;
    background: rgba(0, 87, 184, 0.07);
}

.navbar .nav-links li.active > a,
.navbar .nav-links a.active {
    color: #0057B8;
    font-weight: 600;
    background: rgba(0, 87, 184, 0.08);
}

.navbar .nav-links a::after {
    content: '';
    position: absolute;
    bottom: 1px;
    left: 12px;
    right: 12px;
    height: 2px;
    background: #0057B8;
    border-radius: 2px;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.25s ease;
}

.navbar .nav-links a:hover::after {
    transform: scaleX(1);
}

/* ===============================================
   HAMBURGER
   ================================================ */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    padding: 6px;
    border-radius: 6px;
    transition: background 0.2s ease;
    flex-shrink: 0;
}

.menu-toggle:hover {
    background: rgba(0, 87, 184, 0.08);
}

.menu-toggle .bar {
    width: 22px;
    height: 2.5px;
    background-color: #0057B8;
    border-radius: 2px;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
    display: block;
}

.menu-toggle span {
    width: 22px;
    height: 2.5px;
    background-color: #0057B8;
    border-radius: 2px;
    display: block;
}

.menu-toggle.active .bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.menu-toggle.active .bar:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}
.menu-toggle.active .bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ===============================================
   MOBILE (max 768px)
   ================================================ */
@media (max-width: 768px) {
    .navbar {
        height: 52px;
        padding: 0 16px;
    }

    .navbar.scrolled {
        height: 52px;
    }

    .menu-toggle {
        display: flex !important;
    }

    .navbar .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 52px;
        left: 0;
        right: 0;
        background: #ffffff;
        padding: 12px 16px 20px;
        gap: 2px;
        box-shadow: 0 12px 32px rgba(0, 57, 128, 0.12);
        border-bottom: 2px solid #DDE4EF;
    }

    .navbar .nav-links.active {
        display: flex !important;
    }

    .navbar .nav-links li { width: 100%; }

    .navbar .nav-links a {
        padding: 10px 14px;
        font-size: 0.9rem;
        border-radius: 8px;
        color: #0D1B33 !important;
    }

    .navbar .nav-links a:hover {
        background: rgba(0, 87, 184, 0.08);
        color: #0057B8 !important;
    }

    .navbar .nav-links a::after { display: none; }

    .navbar .logo img {
        height: auto;
        width: 90px;
    }
}

@media (max-width: 480px) {
    .navbar { padding: 0 12px; }
    .navbar .logo img { height: auto; width: 80px; }
}
