/* --- GLOBAL & HEAD/NAVBAR CSS --- */
:root {
    --primary-teal: #00cba0;
    --primary-dark: #00a878;
    --secondary-blue: #0092ca;
    --dark-blue: #1e3d7b;
    --darker-blue: #12264e;
    --light-bg: #f8fafc;
    --text-color: #334155;
    --border-color: #e2e8f0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
}

body {
    background-color: var(--light-bg);
    color: var(--text-color);
    line-height: 1.6;
}

/* --- TOP BAR --- */
.top-bar {
    background: var(--darker-blue);
    color: #cbd5e1;
    font-size: 13px;
    width: 100%;
}

.top-bar-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 8px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

.top-bar-info {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.top-bar-info span, 
.top-bar-social span {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
}

.top-bar-info i,
.top-bar-social i {
    color: var(--primary-teal);
    margin-right: 6px;
}

/* Ẩn bớt chứng nhận ISO trên màn hình nhỏ nếu cần thiết để tránh tràn dòng */
@media screen and (max-width: 768px) {
    .top-bar {
        display: none; /* Hoặc ẩn top-bar trên mobile như cấu hình hiện tại */
    }
}

/* --- HEADER & NAVBAR --- */
header {
    background: #ffffff;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px; /* Cố định padding đồng nhất với container nội dung trang */
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo-hexagon {
    width: 45px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary-teal), var(--secondary-blue));
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 900;
    font-size: 16px;
}

.brand-text h1 {
    font-size: 15px;
    font-weight: 800;
    color: var(--dark-blue);
    text-transform: uppercase;
    line-height: 1.2;
}

.brand-text p {
    font-size: 10px;
    color: var(--secondary-blue);
    font-weight: 700;
    letter-spacing: 0.5px;
}

/* Mặc định ẩn nút Hamburger trên Desktop */
.menu-toggle {
    display: none;
    font-size: 24px;
    color: var(--dark-blue);
    cursor: pointer;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 5px;
    align-items: center;
}

.nav-item {
    padding: 8px 16px;
    color: var(--dark-blue);
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    border-radius: 6px;
    transition: all 0.3s ease;
    cursor: pointer;
    display: inline-block;
}

.nav-item:hover, .nav-item.active {
    background: var(--primary-teal);
    color: #ffffff;
}

/* Submenu Style */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #ffffff;
    min-width: 320px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    border-radius: 8px;
    padding: 10px 0;
    list-style: none;
    display: none;
    z-index: 1100;
    border: 1px solid var(--border-color);
}

.dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-menu li a {
    display: block;
    padding: 10px 20px;
    color: var(--dark-blue);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.2s;
}

.dropdown-menu li a:hover {
    background: var(--light-bg);
    color: var(--primary-dark);
    padding-left: 25px;
}

/* --- RESPONSIVE CHO MOBILE (Dưới 992px) --- */
@media screen and (max-width: 992px) {
    .top-bar {
        display: none; /* Ẩn top bar trên màn hình nhỏ để tiết kiệm không gian */
    }

    .menu-toggle {
        display: block; /* Hiện nút hamburger */
    }

    .brand-text h1 {
        font-size: 13px;
    }

    .brand-text p {
        font-size: 9px;
    }

    .logo-hexagon {
        width: 38px;
        height: 34px;
        font-size: 14px;
    }

    /* Biến menu thành dạng trượt dọc */
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        flex-direction: column;
        background-color: #ffffff;
        width: 100%;
        height: calc(100vh - 70px);
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        transition: 0.3s ease-in-out;
        align-items: flex-start;
        padding: 20px 30px;
        overflow-y: auto;
        gap: 15px;
    }

    /* Khi kích hoạt class active, menu trượt ra */
    .nav-menu.active {
        left: 0;
    }

    .nav-item {
        width: 100%;
        padding: 10px 15px;
    }

    /* Xử lý dropdown trên mobile */
    .dropdown-menu {
        position: static;
        box-shadow: none;
        border: none;
        padding-left: 15px;
        display: block;
        background: var(--light-bg);
        margin-top: 5px;
        border-radius: 6px;
    }

    .dropdown:hover .dropdown-menu {
        display: block;
    }
}