.header {
    font-family: Arial, sans-serif;
    font-size: 18px;
    background-color: rgba(17, 24, 39, 1);
}
.logo {
    display: flex;
    align-items: center;
    margin-left: 20px;
}
.logo img {
    max-width: 100px;
    max-height: 100px;
    width: 100%;
    height: auto;
}

.name-company {
    font-size: 2rem;
    white-space: nowrap;
}

/* Responsive: nhỏ màn hình giảm size logo và font chữ */
@media (max-width: 576px) {
    .logo img {
        max-width: 60px;
        max-height: 60px;
    }

    .logo {
        margin-left: 0px;
    }

    .name-company {
        font-size: 1.1rem;
    }

    .top-bar {
        font-size: 14px;
    }

    .navbar-toggler {
        width: 32px;
        height: 32px;
        padding: 2px;
    }
}

/* Rất nhỏ: logo nhỏ hơn, tên có thể xuống dòng */
@media (max-width: 360px) {
    .logo {
        flex-direction: column;
        align-items: flex-start;
        margin-left: 0px;
    }

    .logo img {
        margin-bottom: 4px;
    }

    .name-company {
        white-space: normal;
        font-size: 1rem;
    }
}

.name-company {
    font-family: 'Times New Roman', Times, serif;
}

/* Navbar */
.navbar {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    padding: 0 1rem;
}
.navbar, .offcanvas {
    color: white;
}
.navbar .dropdown-menu .dropdown-item {
    padding: 10px 20px; 
    margin-bottom: 5px; 
    border-radius: 4px;
}

.navbar .dropdown-menu .dropdown-item:last-child {
    margin-bottom: 0;
}

.navbar .nav-link,
.offcanvas .nav-link,
.navbar .dropdown-menu .dropdown-item,
.offcanvas .dropdown-menu .dropdown-item,
.navbar-brand h2 {
    color: white !important;
    position: relative;
    text-decoration: none;
}


.navbar .dropdown-menu {
    background-color: rgba(17, 24, 39, 1) !important;
    border: none;
}

.offcanvas {
    background-color: rgba(17, 24, 39, 1);
}

.navbar .dropdown-menu .dropdown-item::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 0;
    width: 0%;
    height: 2px;
    background-color: #ccc;
    transition: width 0.3s ease-in-out;
}
.navbar .dropdown-menu .dropdown-item:hover::after {
    width: 100%;
}
.submenu {
    list-style: none;
    padding-left: 1rem;
    display: none;
    transition: all 0.3s ease;
}

.submenu-toggle {
    background: none;
    border: none;
    color: white;
    text-align: left;
    width: 100%;
    padding: 0.5rem 0;
    font-size: 1rem;
}
.submenu-toggle::after {
    content: '▼';
    float: right;
    font-size: 0.7rem;
    transition: transform 0.3s ease;
}
.submenu-toggle.active::after {
    transform: rotate(180deg);
}

.navbar .nav-link:hover,
.offcanvas .nav-link:hover,
.navbar .dropdown-menu .dropdown-item:hover,
.offcanvas .dropdown-menu .dropdown-item:hover {
    background-color: transparent !important;
    color: #ccc !important;
}

#offcanvasMenuLabel {
    color: white;
}

/* Menu chính */
.menu-main {
    flex-grow: 1;
    display: flex !important;
    justify-content: flex-end;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.navbar-toggler {
    display: none;
}

/* Responsive toggle */
@media (max-width: 1105px) {
    .menu-main {
        display: none !important;
        opacity: 0;
        visibility: hidden;
    }
    .navbar-toggler {
        display: block !important;
    }
}

@media (width: 1024px) {
    .navbar-toggler {
        display: none !important;
    }

    .menu-main {
        display: block !important;
        opacity: 1 !important;
        visibility: visible !important;
        font-size: 14px;
    }
}
