﻿
body, html {
    margin: 0;
    font-family: system-ui, sans-serif;
}

.header {
    background: var(--WHITE);
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    height: 10rem;
}

.mini-header {
    position: fixed; /* 🔹 Dính cố định màn hình */
    top: 0; /* 🔹 Cố định ở mép trên */
    left: 0;
    width: 100%;
    z-index: 1000; /* 🔹 Luôn nằm trên nội dung khác */
    background-color: #fff; /* hoặc dùng var(--bgwhite) nếu bạn có biến màu */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transform: translateY(-100%);
    opacity: 0;
    transition: transform 0.4s ease, opacity 0.4s ease;
    backdrop-filter: blur(8px); /* tùy chọn: mờ nền nhẹ */
}

    .mini-header.active {
        transform: translateY(0);
        opacity: 1;
    }


.header-container {
    max-width: 1500px;
}

.right-info {
/*    padding-left: 5vw;*/
}

.logo {
    width: 10rem;
}

.btn-yellow {
    background: #ffca28;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 600;
}

.btn-blue {
    background: #2196f3;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 600;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
}

.main-nav {
    background: white;
    border-top: 1px solid #eee;
}

    .main-nav ul {
        display: flex;
        justify-content: center;
        list-style: none;
        margin: 0;
        padding: 0.5rem;
        flex-wrap: wrap;
    }

    .main-nav li {
        margin: 0 1rem;
    }

    .main-nav a {
        text-decoration: none;
        color: #000;
        font-weight: 500;
    }

/* Tablet (992px) */
@media (max-width: 992px) {
    .contact {
        display: none;
    }
}

/* ══════════ MOBILE SIDEBAR MENU ══════════ */
.mobile-sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
}

.mobile-sidebar {
    position: absolute;
    top: 0;
    left: 0;
    width: 85vw;
    max-width: 360px;
    height: 100vh;
    background: #fff;
    overflow-y: auto;
    animation: slideInLeft 0.3s ease;
}

@keyframes slideInLeft {
    from { transform: translateX(-100%); }
    to { transform: translateX(0); }
}

.mobile-sidebar-header {
    border-bottom: 1px solid #eee;
}

.mobile-sidebar-logo {
    width: 8rem;
}

.mobile-sidebar-icon {
    width: 2.2rem;
    height: 2.2rem;
    object-fit: contain;
    aspect-ratio: 1 / 1;
}

.mobile-sidebar-menu {
    padding: 0.5rem 0;
}

.mobile-menu-item {
    border-bottom: 1px solid #f0f0f0;
}

.mobile-menu-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 1.5rem;
    font-size: 1.5rem;
    font-weight: 600;
    cursor: pointer;
    user-select: none;
}

.mobile-menu-title:active {
    background: #f5f5f5;
}

.mobile-menu-arrow {
    font-size: 1.4rem;
    color: #999;
    transition: transform 0.2s;
    display: inline-block;
}

.mobile-menu-arrow.expanded {
    transform: rotate(180deg);
}

.mobile-submenu {
    padding-left: 1rem;
}

.mobile-submenu-group {
    border-top: 1px solid #f5f5f5;
}

.mobile-submenu-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 1.5rem;
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--BLUE, #1976d2);
    cursor: pointer;
    user-select: none;
}

.mobile-submenu-title:active {
    background: #f9f9f9;
}

.mobile-submenu-list {
    list-style: none;
    margin: 0;
    padding: 0 0 0.5rem 2rem;
}

.mobile-submenu-list li {
    padding: 0.5rem 1rem;
    font-size: 1.2rem;
    color: #333;
    cursor: pointer;
}

.mobile-submenu-list li:active {
    color: var(--BLUE, #1976d2);
    background: #f5f5f5;
}

/* Mobile (768px) */
@media (max-width: 768px) {
    .actions {
        display: none;
    }

    .menu-toggle {
        display: block;
    }

    .main-nav {
        display: none;
        flex-direction: column;
        text-align: center;
    }

        .main-nav.active {
            display: flex;
        }

        .main-nav ul {
            flex-direction: column;
        }

        .main-nav li {
            margin: 0.5rem 0;
        }
}
