/* ================= Cấu hình biến màu sắc ================= */
:root {
    --primary-color: #0b4582;
    --secondary-color: #123d82;
    --accent-red: #ff0000;
    --accent-orange: #ff9800;
    --text-dark: #2f3640;
    --bg-light: #f5f6fa;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

.site-header {
    background-color: #ffffff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 9999;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* Giảm padding từ 12px xuống 6px để bù đắp cho logo to hơn */
    padding: 6px 20px;
}

/* Cập nhật Brand Logo để chứa hình ảnh và chữ */
.brand-logo a {
    font-size: 26px;
    font-weight: 800;
    color: var(--primary-color);
    text-decoration: none;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 12px; /* Khoảng cách giữa logo và chữ */
}

.site-logo {
    /* Tăng kích thước thêm 20% (45px * 1.2 = 54px) */
    height: 54px; 
    width: auto;
    object-fit: contain;
}

/* Nút Hamburger (Mobile) */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    padding: 5px;
}
.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--text-dark);
    border-radius: 2px;
    transition: 0.3s;
}

/* Lớp nền mờ */
.nav-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(3px);
    z-index: 10000;
}

/* ================= MENU DESKTOP ================= */
.menu-list {
    display: flex;
    list-style: none;
    gap: 5px;
}
.menu-list > li {
    position: relative;
}
.menu-list > li > a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 15px;
    padding: 15px 15px;
    display: block;
    position: relative;
}

.arrow-icon {
    font-size: 10px;
    margin-left: 5px;
}

.menu-list > li > a::after {
    content: '';
    position: absolute;
    bottom: 8px; 
    left: 15px;
    right: 15px;
    height: 2px;
    background-color: var(--accent-red);
    transform: scaleX(0);
    transition: transform 0.3s ease;
    transform-origin: bottom right;
}
.menu-list > li:hover > a::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

.submenu-box {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #ffffff;
    min-width: 250px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    list-style: none;
    border-radius: 8px;
    padding: 8px 0;
    overflow: hidden;
    border: 1px solid #eee;
}

.submenu-box li a {
    padding: 12px 20px;
    font-weight: 500;
    color: var(--text-dark);
    text-decoration: none;
    display: block;
    transition: all 0.2s ease;
    font-size: 14px;
}
.submenu-box li a:hover {
    background-color: var(--accent-orange);
    color: #ffffff !important;
    padding-left: 25px; 
}

/* ================= GIAO DIỆN MOBILE ================= */
@media (max-width: 991px) {
    .mobile-menu-toggle { display: flex; }

    .side-navigation {
        position: fixed;
        top: 0;
        left: -100%;
        width: 80%;
        max-width: 350px;
        height: 100vh;
        background-color: #ffffff;
        z-index: 10001;
        overflow-y: auto;
        transition: left 0.4s cubic-bezier(0.77,0.2,0.05,1);
        display: flex;
        flex-direction: column;
        box-shadow: 10px 0 20px rgba(0,0,0,0.1);
    }
    .side-navigation.active { left: 0; }

    .menu-list {
        flex-direction: column;
        gap: 0;
        padding: 20px 0;
    }
    .menu-list > li > a {
        padding: 15px 20px;
        border-bottom: 1px solid #f8f8f8;
    }
    .menu-list > li > a::after { display: none; }

    .submenu-box {
        position: static;
        box-shadow: none;
        border-radius: 0;
        background-color: #fafafa;
        padding: 0;
        border: none;
    }
    .submenu-box li a {
        padding-left: 40px;
    }
}