.clearfix::after {
    display: none !important;
}

/* Header Styles */
#head {
    background: var(--white);
    border-bottom: 1px solid var(--gray-light);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

.head_inline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

@media (max-width:768px) {
    .head_inline {
        display: flex;
    }
}

#logo img {
    height: 30px;
    width: auto;
}

.switch {
    display: none;
    /* display: flex; */
    gap: 0.5rem;
}

.switch li {
    list-style: none;
}

.switch a {
    display: block;
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    color: var(--gray-dark);
    background: var(--gray-light);
    border-radius: var(--border-radius);
    transition: var(--transition);
    font-weight: 500;
}

.switch .active a,
.switch a:hover {
    background: var(--main-color);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.head_menu {
    display: flex;
    gap: 1rem;
    align-items: center;
}

/* Hamburger Button */
.hamburger {
    display: none;
    width: 40px;
    height: 40px;
    position: relative;
    border: none;
    background: transparent;
    cursor: pointer;
    padding: 0;
}

.hamburger span {
    position: absolute;
    left: 8px;
    right: 8px;
    height: 2px;
    background: var(--gray-dark);
    transition: var(--transition);
}

.hamburger span:nth-child(1) {
    top: 12px;
}

.hamburger span:nth-child(2) {
    top: 19px;
}

.hamburger span:nth-child(3) {
    top: 26px;
}

.hamburger.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Responsive: collapse menu */
@media (max-width: 768px) {
    .switch {
        display: none;
    }

    .head_menu {
        display: none;
    }

    .hamburger {
        display: block;
    }

    #menu {
        display: none;
    }

    #menu.open {
        display: block;
        position: fixed;
        width: 100%;
        height: 100%;
        z-index: 999;
    }

    #menu ul {
        flex-direction: column;
        padding: 0;
    }

    #menu a {
        text-align: left;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, .2);
    }
}

.head_menu li {
    list-style: none;
}

.head_menu a {
    text-decoration: none;
    color: var(--gray-dark);
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    transition: var(--transition);
    font-size: 0.9rem;
}

.head_menu .login a {
    background: var(--button-color);
    color: var(--white);
    font-weight: bold;
}

.head_menu .login a:hover {
    background: #d66013;
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.head_menu .nuser a,
.head_menu .cuser a {
    border: 2px solid var(--main-color);
    color: var(--main-color);
    font-weight: 500;
}

.head_menu .nuser a:hover,
.head_menu .cuser a:hover {
    background: var(--main-color);
    color: var(--white);
    transform: translateY(-2px);
}

/* Menu Navigation */
#menu {
    background: linear-gradient(135deg, var(--main-color) 0%, #1a4bb8 100%);
    box-shadow: var(--shadow);
}

#menu ul {
    display: flex;
    justify-content: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

#menu li {
    list-style: none;
    flex: 1;
}

#menu a {
    display: block;
    padding: 1rem;
    text-align: center;
    color: var(--white);
    text-decoration: none;
    transition: var(--transition);
    border-right: 1px solid rgba(255, 255, 255, 0.2);
    font-weight: 500;
}

#menu li:last-child a {
    border-right: none;
}

#menu a:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}


@media (max-width:768px) {
    .head_inline {
        gap: 1rem;
        padding: 1rem;
    }

    .switch,
    .head_menu {
        flex-wrap: wrap;
        justify-content: center;
    }

    #menu ul {
        flex-direction: column;
        padding: 0;
    }

    #menu a {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    }
}