/* Navigation Styles */
.navbar>.container-fluid {
    align-items: center;
    justify-content: space-between;
}

.navbar-toggler {
    border: none;
}

.navbar-left,
.navbar-right {
    display: flex;
    align-items: center;
    width: 50%;
}

.navbar-right {
    display: flex;
    gap: 30px;
    justify-content: end;
}

.navbar-right div {
    height: 19px;
    border-left: 1px solid var(--text-title);
}

.navbar-right a {
    font-size: 16px;
    color: var(--text-title);
    font-weight: 400;
    text-decoration: none;
}

.navbar-right button {
    border: none;
    background: none;
}

.navbar {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 0.5rem 1rem;
    height: 70px;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--deep-blue) !important;
    padding: 0.25rem 0;
}

.navbar-logo {
    max-height: 80px;
    height: auto;
    width: auto;
    max-width: 200px;
    object-fit: contain;
}

.navbar-brand img {
    max-height: 80px;
    width: auto;
}

.navbar-nav .nav-link {
    padding: 0.5rem 1rem;
    color: var(--text-title) !important;
    font-weight: 500;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: var(--deep-blue) !important;
}

.navbar-nav .nav-link.active {
    color: var(--deep-blue) !important;
}

.dropdown-menu {
    border: 1px solid var(--light-sky);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.dropdown-item {
    color: var(--text-title);
    transition: background-color 0.3s ease;
}

.dropdown-item:hover {
    background-color: var(--light-sky);
    color: var(--deep-blue);
}

@media (max-width: 991px) {
    .navbar-brand {
        margin-top: -18px;
    }

    .navbar-collapse {
        background-color: #fff;
        padding: 1rem;
        margin-top: 0.5rem;
        border-radius: 0.25rem;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    }

    .navbar-nav {
        text-align: center;
    }

    .navbar-right a,
    .navbar-left a.tb-btn-nav {
        display: none;
    }

    .navbar-right div {
        display: none;
    }
}

/* ===== DESKTOP ===== */
.tb-side {
    position: fixed;
    top: 0;
    left: 0;
    width: 258px;
    height: 100vh;
    background: #fff;
    border-right: 1px solid #eee;
    display: flex;
    flex-direction: column;
    z-index: 1000;
    padding: 0 20px;
    transition: transform 0.3s ease;
}

/* Overlay */
.tb-side-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    opacity: 0;
    visibility: hidden;
    transition: 0.3s ease;
    z-index: 999;
}

.tb-btn-close {
    margin: 23px 0 43px 0;
    text-align: left;
}

.tb-side .tb-btn {
    border-radius: inherit;
    justify-content: left;
    border-bottom: 1px solid #E8E5E1;
}

.tb-side-footer {
    width: 100%;
    display: contents;
}

.tb-side-footer a {
    justify-content: center;
    margin-bottom: 30px;
    text-decoration: none;
    color: var(--text-title);
}

.tb-side {
    display: none;
}

/* ===== MOBILE ===== */
@media (max-width: 991px) {
    .tb-main {
        margin-left: 0;
    }

    .tb-side {
        display: flex;
    }

    .tb-side {
        transform: translateX(-100%);
    }

    .tb-side.show {
        transform: translateX(0);
    }

    .tb-side.show+.tb-side-overlay {
        opacity: 1;
        visibility: visible;
    }

    .tb-submenu-toggle {
        display: none;
    }

    .tb-main {
        margin-left: 0;
    }

    /* Hamburger hiện trên mobile */
    .tb-toggle {
        display: block;
    }
}

.breadcrumb-item {
    margin-top: 5px;
}

.tb-nav-item {
    position: relative;
    display: inline-block;
}

.tb-submenu {
    border-radius: 4px;
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    min-width: 180px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    z-index: 999;
}

.tb-submenu a {
    display: block;
    padding: 10px;
    font-size: 16px;
    color: #333;
    min-height: 39px;
    border-bottom: 1px solid #E8E5E1;
    padding: 5px 20px;
    text-decoration: none;

}

.tb-submenu a:hover {
    background: #f5f5f5;
}

/* 👇 hover vào cha thì hiện submenu */
.tb-btn-nav:hover .tb-submenu {
    display: block;
}

.tb-nav-item {
    display: flex;
    align-items: center;
}

.tb-nav-item span {
    cursor: pointer;
}