/* ============================================
   DESKTOP / BASE STYLES
   (This styling applies to all screens, but primarily defines the desktop view)
   ============================================ */
.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 16px;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: #feeb03;
    z-index: 1000;
}

@media (min-width: 992px) {
    .header-brand {
        margin-left: 105px;
    }

    .nav-list {
        margin-right: 105px;
    }
}

.header-brand {
    text-decoration: none;
    color: #121212;
}

.header-brand .nav-logo-text {
    font-size: 20px;
    font-family: 'roboto', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
}

.header-brand:hover {
    text-decoration: none;
    color: #000;
}

/* Sidebar structure */
.custom-nav {
    display: flex;
    align-items: center;
}

.sidebar-header {
    display: none;
    /* Only show on mobile */
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    border-bottom: 1px solid #eee;
}

.close-sidebar {
    background: none;
    border: none;
    font-size: 32px;
    cursor: pointer;
    line-height: 1;
    color: #333;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
}

.nav-item {
    position: relative;
    margin: 0 10px;
}

.nav-link {
    text-decoration: none;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-family: 'roboto', sans-serif;
    color: #777;
    font-weight: 600;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px 5px;
    display: flex;
    align-items: center;
}

.nav-item.active .nav-link,
.nav-link:hover {
    color: #121212;
}

/* Custom Dropdown */
.custom-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    min-width: 120px;
    z-index: 1001;
    border-radius: 4px;
    padding: 10px 0;
}

.custom-dropdown-menu.show {
    display: block;
}

.custom-dropdown-item {
    display: block;
    padding: 10px 20px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    font-family: 'roboto', sans-serif;
}

.custom-dropdown-item:hover {
    background: #f5f5f5;
    text-decoration: none;
    color: #000;
}

/* Hamburger Button */
.hamburger-btn {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 999;
}

.hamburger-btn span {
    width: 28px;
    height: 2px;
    background: #333;
    border-radius: 10px;
    transition: all 0.3s linear;
    position: relative;
}

/* Sidebar overlay */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* ============================================
   MOBILE (BURGER MENU & SIDEBAR) STYLES
   (This styling applies only to screens < 992px)
   ============================================ */
@media (max-width: 991.98px) {
    .header-container {
        padding: 15px 20px;
        justify-content: center;
        display: flex;
        align-items: center;
    }

    .header-brand {
        margin: 0 !important;
        text-align: center;
    }

    .hamburger-btn {
        display: flex;
        position: absolute;
        right: 20px;
        border: 1px solid rgba(0, 0, 0, 0.1);
        padding: 12px 11px;
        border-radius: 8px;
        height: auto;
        width: auto;
    }

    .custom-nav {
        position: fixed;
        top: 0;
        right: -300px;
        width: 300px;
        height: 100vh;
        background: #fff;
        flex-direction: column;
        align-items: stretch;
        z-index: 1000;
        transition: right 0.3s ease;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        overflow-y: auto;
    }

    .sidebar-header {
        display: flex;
    }

    .nav-list {
        flex-direction: column;
        align-items: flex-start;
        padding: 20px;
    }

    .nav-item {
        margin: 10px 0;
        width: 100%;
    }

    .custom-dropdown-menu {
        position: static;
        box-shadow: none;
        border-left: 2px solid #feeb03;
        margin-left: 10px;
        display: none;
    }

    .nav-link {
        font-size: 16px;
        width: 100%;
    }

    /* Open state */
    body.sidebar-open {
        overflow: hidden;
    }

    body.sidebar-open .custom-nav {
        right: 0;
    }

    body.sidebar-open .sidebar-overlay {
        display: block;
        opacity: 1;
    }
}