/* navbar.css */

/* Navigation Styles */
.navbar {
    background-color: #d2691e;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    box-sizing: border-box;
    min-height: 60px;
    height: 60px; /* Set tinggi eksplisit agar konsisten */
    font-size: 1rem; /* Ukuran font dasar untuk navbar */
}

.navbar .nav-brand {
    display: flex;
    align-items: center;
    color: white;
    /* font-size: 1.5em; <-- Hapus ini jika ada, agar mengikuti font-size .navbar */
    font-weight: 600;
    text-decoration: none;
    line-height: 1;
}

.navbar-logo {
    height: 50px;
    border-radius: 150%;
    object-fit: cover;
    margin-right: 10px;
    vertical-align: middle;
}

.nav-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
}

.nav-links li {
    margin-left: 30px;
}

.nav-links li a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    /* font-size: 1.1rem; <-- Hapus ini jika ada, agar mengikuti font-size .navbar */
    transition: color 0.3s ease;
    line-height: 1;
}

.nav-links li a:hover {
    color: #f8ecd4;
}

/* Hamburger Menu Styles */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 35px;
    height: 30px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.hamburger span {
    width: 100%;
    height: 4px;
    background: #fff;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
}

/* Media Queries for Navbar */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 60px; /* Harus sesuai dengan tinggi navbar */
        left: 0;
        width: 100%;
        background: #d2691e;
        padding: 10px 0;
        z-index: 999;
        box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        margin: 5px 0;
        text-align: center;
    }

    .nav-links li a {
        font-size: 1.1rem; /* Biarkan ini untuk ukuran teks di mobile menu */
        padding: 8px 0;
        display: block;
    }
}

@media (max-width: 480px) {
    .nav-brand {
      font-size: 1.2rem;
    }
}