:root {
    --primary-color: #C02828;
    --primary-hover: #A02222;
    --accent-color: #F1C40F;
    --text-light: #FFFFFF;
    --text-dark: #333333;
    --transition-speed: 0.3s;
}

header {
    background: linear-gradient(135deg, var(--primary-color), #8A1F1F);
    color: var(--text-light);
    padding: 5px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 1300px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.logo img {
    height: 45px;
}

.logo-text {
    font-weight: bold;
    font-size: 1.5em;
    letter-spacing: 1px;
    color: var(--text-light);
}

nav {
    flex: 1;
    display: flex;
    justify-content: center;
}

nav ul {
    display: flex;
    gap: 30px;
    list-style: none;
    margin: 0;
    padding: 0;
}

nav ul li a {
    color: var(--text-light);
    text-decoration: none;
    padding: 10px;
    position: relative;
    font-weight: 500;
}

nav ul li a::after {
    content: '';
    position: absolute;
    height: 2px;
    width: 0;
    left: 0;
    bottom: 0;
    background-color: var(--accent-color);
    transition: width var(--transition-speed) ease;
}

nav ul li a:hover::after {
    width: 100%;
}

nav ul li a:hover {
    color: var(--accent-color);
}

.auth-section {
    display: flex;
    align-items: center;
    gap: 12px;
}

.auth-section a {
    background-color: rgba(255, 255, 255, 0.15);
    padding: 8px 16px;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-light);
    text-decoration: none;
    transition: all var(--transition-speed) ease;
}

.auth-section a:hover {
    background-color: var(--accent-color);
    color: var(--text-dark);
    transform: translateY(-2px);
}

.auth-section span {
    color: var(--text-light);
}

.auth-section strong {
    color: var(--accent-color);
}

/* Hamburger button */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-light);
    border-radius: 2px;
    transition: all 0.3s ease;
}

@media (max-width: 768px) {
    nav {
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background: linear-gradient(135deg, var(--primary-color), #8A1F1F);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease-in-out;
    }

    nav.active {
        max-height: 300px; /* tinggi dropdown */
    }

    nav ul {
        flex-direction: column;
        align-items: center;
        padding: 15px 0;
        gap: 15px;
    }

    .menu-toggle {
        display: flex;
    }

    .auth-section {
        flex-direction: column;
        gap: 8px;
    }
}

.badge-notif {
    background: red;
    color: white;
    font-size: 12px;
    padding: 3px 7px;
    border-radius: 50%;
    margin-left: 6px;
    font-weight: bold;
}