@font-face {
    font-family: 'Montserrat-Regular.ttf';
    src: url('./fonts/Montserrat/static/Montserrat-Regular.ttf') format('ttf');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Montserrat-Bold';
    src: url('./fonts/Montserrat/static/Montserrat-Bold.ttf') format('ttf');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

*, *::before, *::after {
    box-sizing: border-box;
}
:root {
    --font-base: 'Montserrat-Regular', sans-serif;
    --font-heading: 'Montserrat-Bold', sans-serif;
    --primary-color: #0092D7;
    --primary-color-hover: #1565c0;
    --secondary-color: #43a047;
    --accent-color: #ff5722;
    --background-color: #ffffff;
    --background-alt: #e6e6e6;
    --text-color: #333333;
    --heading-color: #111111;
    --border-color: #dddddd;
    --border-radius: 8px;
    --box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    --transition-speed: 0.3s;
    --z-header: 1000;
    --z-overlay: 2000;
    --z-modal: 3000;
}
html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-base, 'Montserrat-Regular'), sans-serif;
    font-weight: 400;
    color: var(--text-color, #333);
    background-color: var(--background-color, #fff);
    line-height: 1.6;
}



img, video {
    max-width: 100%;
    height: auto;
}

a {
    color: var(--primary-color, #1e88e5);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--primary-color-hover, #1565c0);
    text-decoration: none;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading, 'Montserrat-Bold'), sans-serif;
    font-weight: 700;
    color: var(--heading-color, #111);
    line-height: 1.3;
}
.main-bg{
    background-color: var(--primary-color);
}
/* --- Header --- */
.header {
    background-color: var(--primary-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    position: relative;
    z-index: var(--z-header, 1000);
    font-family: var(--font-base, 'Roboto', sans-serif);
}

.header .header-top {
    padding: 10px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.header .header-logo img {
    height: auto;
    max-height: 70px;
    width: auto;
}

.header-top_right {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.header .right-form {
    display: flex;
    align-items: center;
}

.header .right-form .input-group {
    display: flex;
    border: 1px solid var(--border-color, #ddd);
    border-radius: 6px;
    overflow: hidden;
}

.header .right-form input[type="text"] {
    padding: 6px 10px;
    border: none;
    outline: none;
    font-size: 14px;
    min-width: 180px;
}

.header .right-form button {
    background: #ffffff;
    border-radius: 0px;
    border: none;
    padding: 6px 10px;
    cursor: pointer;
    font-size: 16px;
}
/* --- CSS CHO OFF-CANVAS MENU --- */

/* Lớp phủ mờ phía sau menu */
.offcanvas-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6); /* Độ mờ của lớp phủ */
    z-index: 1000;
    visibility: hidden; /* Mặc định ẩn đi */
    opacity: 0;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* Khung chính của menu trượt ra */
.offcanvas-menu-wrapper {
    position: fixed;
    top: 0;
    left: -300px; /* Mặc định ẩn ngoài màn hình bên trái */
    width: 300px; /* Độ rộng của menu */
    height: 100%;
    background-color: #ffffff; /* Màu nền menu */
    z-index: 1001;
    display: flex;
    flex-direction: column;
    transition: left 0.4s ease; /* Hiệu ứng trượt */
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
}

/* --- TRẠNG THÁI KHI MENU MỞ (thêm class 'show-offcanvas' vào body) --- */

body.show-offcanvas .offcanvas-overlay {
    visibility: visible;
    opacity: 1;
}

body.show-offcanvas .offcanvas-menu-wrapper {
    left: 0; /* Di chuyển menu vào trong màn hình */
}


/* --- CÁC THÀNH PHẦN BÊN TRONG MENU --- */

/* Phần header của menu (chứa tiêu đề và nút đóng) */
.offcanvas-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #e0e0e0;
    background-color: #f8f9fa;
}

.offcanvas-title {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.offcanvas-close {
    font-size: 24px;
    color: #333;
    text-decoration: none;
    opacity: 0.7;
}
.offcanvas-close:hover {
    opacity: 1;
}

/* Phần nội dung menu */
.offcanvas-menu-content {
    flex-grow: 1;
    overflow-y: auto; /* Cho phép cuộn nếu menu quá dài */
}

/* Style cho các mục menu được copy sang */
.offcanvas-menu-content .menu {
    list-style: none;
    padding: 10px 0;
    margin: 0;
}

.offcanvas-menu-content .menu-item {
    border-bottom: 1px solid #f0f0f0;
}

.offcanvas-menu-content .menu-item a {
    display: block;
    padding: 12px 20px;
    color: #333;
    text-decoration: none;
    transition: background-color 0.2s;
}

.offcanvas-menu-content .menu-item a:hover {
    background-color: #f1f1f1;
}

/* Style cho menu con (sub-menu) */
.offcanvas-menu-content .menu-item.has-sub {
    position: relative;
}

.offcanvas-menu-content .sub-menu {
    display: none; /* Mặc định ẩn menu con */
    padding-left: 20px;
    background-color: #f8f9fa;
}

.offcanvas-menu-content .sub-menu .menu-item a {
    color: #555;
    font-size: 0.9em;
}

/* Nút bấm để xổ menu con */
.submenu-toggle {
    position: absolute;
    right: 0;
    top: 0;
    width: 50px;
    height: 46px; /* Bằng chiều cao của thẻ a */
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    font-size: 16px;
}

.submenu-toggle::before {
    content: '+'; /* Dấu cộng khi menu đóng */
}

.menu-item.has-sub.open > .submenu-toggle::before {
    content: '−'; /* Dấu trừ khi menu mở */
}
.header-top_right .btn-warning {
    background-color: var(--accent-color, #ff5722);
    color: #fff;
    border: none;
    padding: 8px 14px;
    border-radius: var(--border-radius, 8px);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
    cursor: pointer;
}

.header-top_right a[href^="tel:"] {
    color: var(--primary-color, #1e88e5);
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.menu-toggle {
    background: none;
    border: none;
    font-size: 22px;
    padding: 6px 10px;
    cursor: pointer;
}

/* --- Navigation & Menu --- */
body.mobile-menu-open {
    overflow: hidden;
}

.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1030;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.menu-overlay.active {
    opacity: 1;
    visibility: visible;
}
.main-nav .menu{
    list-style: none;
    display: flex;
    position: relative;
    align-items: center;
    justify-content: flex-end;
    margin-bottom: 0px;
    align-content: center;
}
ul.menu .menu-item{
    margin-bottom: 0px;
    padding: 10px 17px;
    transition: all .3s;
    position: relative;
}
ul.menu .menu-item:hover{
    background-color: #ffffff;
}
ul.menu .menu-item:hover .menu-item_link{
    color: var(--primary-color);
}

.main-nav .menu-item_link{
    color: #ffffff;
    text-transform: uppercase;
}

.menu-item_link:hover {
    color: var(--primary-color-hover, #1565c0);
}

.menu-item.has-sub > .menu-item_link::after {
    content: "\f0d7";
    font-size: 10px;
    margin-left: 4px;
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
}

.menu-item .sub-menu {
    display: none;
    list-style: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 180px;
    background: #fff;
    border: 1px solid var(--border-color, #ddd);
    box-shadow: var(--box-shadow, 0 2px 8px rgba(0, 0, 0, 0.08));
    z-index: 1001;
    padding: 8px 0;
    flex-direction: column;
}

.menu-item .sub-menu .menu-item {
    padding: 0;
}

.menu-item .sub-menu .menu-item_link {
    padding: 8px 16px;
    display: block;
    white-space: nowrap;
    color: var(--primary-color);
}

.menu-item.has-sub:hover > .sub-menu {
    display: flex;
}
.main-nav{
    display:flex;
    align-items: center;
}

/* --- Responsive & Mobile Menu --- */
@media (max-width: 768px) {
    .header-top_right {
        justify-content: flex-end;
        width: 100%;
    }
}

/* --- General --- */
.box-shadow {
    box-shadow: var(--box-shadow);
}

.box-radius {
    border-radius: var(--border-radius);
}

@keyframes slideDown {
    from { transform: translateY(-100%); }
    to   { transform: translateY(0); }
}

.bottom-contact {
    position: fixed;
    right: 0;
    background-color: #ffffff;
    border: 1px solid #ededed;
    top: 60%;
    display: flex;
    flex-direction: column;
    padding: 10px;
    z-index: var(--z-overlay);
    border-radius: 8px 0px 0px 8px;
}

.bottom-contact .bottom-contact_link {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.gotop {
    position: fixed;
    right: 20px;
    bottom: 20px;
    background-color: var(--primary-color);
    color: #fff;
    padding: 10px 17px;
    border-radius: 50%;
    font-size: 18px;
    box-shadow: var(--box-shadow);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: var(--z-overlay);
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.gotop.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    border-top: 1px solid #ddd;
    z-index: 9999;
}

.mobile-bottom-nav .nav-item {
    flex: 1;
    text-decoration: none;
    color: var(--primary-color, #1e88e5);
    font-size: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    border-right: 1px solid #ededed;
}

.mobile-bottom-nav .logo-item {
    flex: 0 0 auto;
    margin: 0 8px;
    font-size: 22px;
    color: var(--primary-color, #1e88e5);
}

.mobile-bottom-nav .nav-item i {
    font-size: 18px;
}

.footer-wrapper {
    background: url('../images/setting/bg-footer.jpg') center center / cover no-repeat;
    padding: 40px 0;
    border-top: 1px solid var(--border-color);
}

.footer-wrapper .footer-item {
    margin-bottom: 24px;
}

.footer-wrapper .footer-item_title {
    font-weight: 700;
    margin-bottom: 12px;
    font-size: 22px;
    color: #ffffff;
}

.footer-wrapper .footer-item_list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-wrapper .footer-item_list .item_list {
    margin-bottom: 8px;
    font-size: 14px;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-wrapper .footer-item_list .item_list a {
    color: #ffffff;
    text-decoration: none;
}

.footer-wrapper .footer-form input[type="text"] {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    margin-bottom: 8px;
}

.footer-wrapper .footer-form button {
    padding: 10px 16px;
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.footer-wrapper .footer-form button:hover {
    background-color: var(--primary-color-hover);
}

.copyright {
    padding: 12px 0;
    font-size: 14px;
    color: var(--text-color);
    border-top: 1px solid var(--border-color);
    background-color: #f9f9f9;
}

.section {
    padding: 2rem;
}

.section .section-title {
    text-align: center;
    text-transform: uppercase;
    color: var(--primary-color);
    margin-bottom: 0.7rem;
    font-weight: 700;
    font-size: 2.8rem;
}
/* ================================================= */
/* === SỬA LỖI HIỂN THỊ CHO OFF-CANVAS MENU === */
/* ================================================= */

/* Ghi đè lại display:flex của menu desktop thành dạng khối (dọc) */
.offcanvas-menu-content .menu {
    display: block; /* Hoặc flex và flex-direction: column */
}

/* Ghi đè lại padding của các mục menu desktop */
.offcanvas-menu-content ul.menu .menu-item {
    padding: 0;
}

/* Đảm bảo các menu con không bị ảnh hưởng bởi style desktop */
.offcanvas-menu-content .menu-item .sub-menu {
    position: static; /* Bỏ position:absolute của sub-menu desktop */
    border: none;
    box-shadow: none;
    min-width: unset;
}