/* =========================================
   MENU CHUNG CHO TẤT CẢ CÁC TRANG
   ========================================= */

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    z-index: 1000;
}

.logo {
    background-color: #c0392b;
    color: white;
    padding: 0 25px;
    text-align: center;
    text-decoration: none;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.logo strong {
    font-family: 'Times New Roman', Times, serif;
    font-size: 30px;
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: 2px;
}

.logo span {
    font-family: Georgia, 'Times New Roman', Times, serif;
    font-size: 15px;
    text-transform: uppercase;
    margin-top: 2px;
    letter-spacing: 2px;
}

.menu-checkbox {
    display: none;
}

.menu-toggle {
    display: none;
    font-size: 30px;
    cursor: pointer;
    color: #555;
    transition: color 0.3s ease, background-color 0.3s ease, transform 0.3s ease;
    padding: 8px;
    border-radius: 8px;
}

.menu-toggle:hover {
    color: #c0392b;
    background-color: rgba(192, 57, 43, 0.08);
    transform: scale(1.05);
}

.menu-checkbox:checked+.menu-toggle {
    color: #c0392b;
    background-color: rgba(192, 57, 43, 0.12);
}

.menu-checkbox:checked+.menu-toggle:hover {
    background-color: rgba(192, 57, 43, 0.18);
}

.nav-container {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 25px;
}

.nav-links a {
    text-decoration: none;
    color: #666;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 10px 15px;
    border-radius: 4px;
    position: relative;
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: inline-block;
    line-height: 1.4;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #c0392b;
    transition: width 0.3s ease;
    border-radius: 1px;
}

.nav-links a:hover {
    color: #c0392b;
    transform: translateY(-2px);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-links a.active {
    color: #fff;
    background-color: #c0392b;
    box-shadow: 0 6px 16px rgba(192, 57, 43, 0.4);
    transform: translateY(-2px);
}

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

@media screen and (max-width: 900px) {
    .menu-toggle {
        display: block;
    }

    .nav-container {
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background-color: #fff;
        flex-direction: column;
        align-items: flex-start;
        padding: 20px 5%;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        display: none;
    }

    .menu-checkbox:checked~.nav-container {
        display: flex;
    }

    .nav-links {
        flex-direction: column;
        width: 100%;
        gap: 0;
    }

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

    .nav-links a {
        position: relative;
        display: block;
        width: 100%;
        padding: 20px 0;
        border-bottom: 1px solid #f0f0f0;
        transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    }

    .nav-links a::after {
        content: "";
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;
        height: 2px;
        background-color: #c0392b;
        transform: scaleX(0);
        transform-origin: left;
        transition: transform 0.25s ease;
    }

    .nav-links a:hover {
        color: #c0392b;
        transform: translateY(-2px);
    }

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

    .nav-links a.active {
        background-color: #c0392b;
        color: #fff;
        border-left: 4px solid #a02f20;
    }

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