/* global.css */

/* === FONT FACE === */
@font-face {
    font-family: 'MYRIADPRO-REGULAR';
    src: url('./fonts/Myriad/MYRIADPRO-REGULAR.woff') format('woff');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'MYRIADPRO-BOLD';
    src: url('./fonts/Myriad/MYRIADPRO-BOLD.woff') format('woff');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}
/* === CSS RESET === */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-base, 'MYRIADPRO-REGULAR'), sans-serif;
    font-weight: 400;
    color: var(--text-color, #333);
    background-color: var(--background-color, #fff);
    line-height: 1.6;
}
:root {
    /* === FONT === */
    --font-base: 'MYRIADPRO-REGULAR', sans-serif;
    --font-heading: 'MYRIADPRO-BOLD', sans-serif;

    /* === MÃ€U CÆ  Báº¢N === */
    --primary-color: #343a40;
    --primary-color-hover: #1565c0;
    --secondary-color: #43a047;
    --accent-color: #ff5722;

    /* === MÃ€U Ná»€N & TEXT === */
    --background-color: #ffffff;
    --background-alt: #e6e6e6;
    --text-color: #333333;
    --heading-color: #111111;

    /* === BORDER & SHADOW === */
    --border-color: #dddddd;
    --border-radius: 8px;
    --box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);

    /* === TRANSITION === */
    --transition-speed: 0.3s;

    /* === Z-INDEX === */
    --z-header: 1000;
    --z-overlay: 2000;
    --z-modal: 3000;
}
/* === MEDIA === */
img, video {
    max-width: 100%;
    height: auto;
    display: block;
}

/* === LINK === */
a {
    color: #343a40;
    text-decoration: none;
    transition: color 0.2s ease;
}
ul li{
    list-style: none;
}
a:hover {
    color: var(--primary-color-hover, #1565c0);
    text-decoration: none;
}

/* === HEADINGS === */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading, 'MYRIADPRO-BOLD'), sans-serif;
    font-weight: 700;
    color: var(--heading-color, #111);
    line-height: 1.3;
}
/* === Header Layout === */
/* === HEADER CHUNG === */
/* ========================================
   HEADER CHUNG
======================================== */
.header {
    background-color: #ffffff;
    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 TOP (Logo, TÃ¬m kiáº¿m, Äáº·t háº¹n, SÄT)
======================================== */
.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;
}

/* --- TÃ¬m kiáº¿m --- */
.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: transparent;
    border: none;
    padding: 6px 10px;
    cursor: pointer;
    font-size: 16px;
}

/* --- Äáº·t háº¹n & Gá»i Ä‘iá»‡n --- */
.header-top_right {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.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;
}

/* ========================================
   NÃšT TOGGLE MENU MOBILE
======================================== */
.menu-toggle {
    background: none;
    border: none;
    font-size: 22px;
    padding: 6px 10px;
    cursor: pointer;
}

/* ========================================
   MAIN NAV (MENU CHÃNH)
======================================== */
.main-nav {
    background-color: var(--primary-color);
    border-top: 1px solid var(--border-color, #ddd);
}

.main-nav .menu {
    list-style: none;
    display: flex;
    gap: 20px;
    margin: 0;
    position: relative;
    justify-content: center;
}

.main-nav .menu-item {
    position: relative;
}
.main-nav .menu-item:hover {
    background-color: #ffffff;
}
.main-nav .menu-item:hover > .menu-item_link{
    color: var(--primary-color-hover);
}

.menu-item_link {
    color: #ffffff;
    text-decoration: none;
    font-weight: 700;
    padding: 10px 12px;
    display: inline-block;
    transition: color 0.3s ease;
}

.menu-item_link:hover {
    color: var(--primary-color-hover, #1565c0);
}

/* ========================================
   MENU ÄA Cáº¤P (SUB MENU)
======================================== */
.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);
}

/* --- Hover má»Ÿ submenu --- */
.menu-item.has-sub:hover > .sub-menu {
    display: flex;
}
.box-shadow {
    box-shadow: var(--box-shadow);
}
.box-radius {
    border-radius: var(--border-radius);
}

/* ========================================
   RESPONSIVE (MOBILE)
======================================== */
@media (max-width: 768px) {
    .main-nav .menu {
        flex-direction: column;
        align-items: flex-start;
        display: none; /* toggle qua JS */
    }

    .main-nav.active .menu {
        display: flex;
    }

    .header-top_right {
        justify-content: flex-end;
        width: 100%;
    }
}

/* Animation */
@keyframes slideDown {
    from { transform: translateY(-100%); }
    to   { transform: translateY(0); }
}
.bottom-contact {
    position: fixed;
    left: 0;
    background-color: #ffffff;
    border: 1px solid #ededed;
    bottom: 20px;
    display: flex;
    flex-direction: column;
    padding: 10px;
    z-index: var(--z-overlay);
    border-radius: 0px 8px 8px 0px;
}

.bottom-contact .bottom-contact_link {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    /* gap: 8px; */
    /* background-color: var(--primary-color); */
    color: #fff;
    /* padding: 8px 12px; */
    /* border-radius: var(--border-radius); */
    text-decoration: none;
    font-weight: 500;
    /* box-shadow: var(--box-shadow); */
    transition: background-color 0.3s ease;
}

.bottom-contact .bottom-contact_link:hover {
    /* background-color: var(--primary-color-hover); */
}

.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-color: var(--background-alt);
    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: 16px;
    color: var(--heading-color);
}

.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: var(--text-color);
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-wrapper .footer-item_list .item_list a {
    color: var(--text-color);
    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: 5em;
}
.section .section-title{
    text-align: center;
    text-transform: uppercase;
    color: var(--primary-color);
    margin-bottom: 1.2rem;
}