/* Nguyenhaithinh.com - Global Theme CSS (Header, Footer, Typography, Utilities) */
@import "./home.css?v=20260926-03";

html, body {
    font-family: 'Bona Nova', serif;
    overflow-x: hidden;
    max-width: 100vw;
    width: 100%;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

*, *::before, *::after {
    box-sizing: border-box;
}

/* ==========================================================================
   NHÓM 1: GLOBAL HEADER
   Section 1.1: header-top (Hotline, Email)
   ========================================================================== */
.header-top {
    background-color: #006837;
    padding: 8px 0;
    overflow: hidden;
    width: 100%;
}

.header-top .top_menu h3 {
    display: none;
}

.header-top ul.level-1 {
    display: flex;
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
    list-style: none;
    align-items: center;
    gap: 16px;
}

.header-top ul.level-1 li {
    display: inline-flex;
    margin: 0;
    padding: 0;
}

.header-top ul.level-1 li a {
    color: #ffffff;
    font-size: 14px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: opacity 0.2s ease;
    word-break: break-all;
}

.header-top ul.level-1 li a:hover {
    opacity: 0.85;
    color: #ffffff;
}

.header-top ul.level-1 li a i {
    color: #ffffff;
    font-size: 14px;
}

/* ==========================================================================
   Section 1.2: header-main (Logo, Tên công ty, Menu chính)
   ========================================================================== */
.section-header {
    background-color: #ffffff;
    padding: 12px 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    position: relative;
    width: 100%;
}

.section-header .row {
    align-items: center;
}

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

.section-header .Logo {
    flex-shrink: 0;
}

.section-header .Logo img {
    max-height: 52px;
    object-fit: contain;
    display: block;
}

.section-header .ten-cong-ty {
    margin: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.section-header .ten-cong-ty p {
    margin: 0 0 2px 0;
    font-size: 10.5px;
    font-weight: 700;
    color: #e67e22;
    text-align: left;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 0.2px;
    white-space: nowrap;
}

.section-header .ten-cong-ty h2 {
    margin: 0;
    font-size: 13.5px;
    font-weight: 800;
    color: #006837;
    text-align: left;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.section-header-menu {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.section-header-menu .box-wrap {
    width: 100%;
}

.menu-main {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.menu-main .btn-menu {
    display: none;
}

.menu-main .main_menu h3 {
    display: none;
}

.menu-main ul.level-1 {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 18px;
}

.menu-main ul.level-1 > li {
    position: relative;
    padding: 10px 0;
}

.menu-main ul.level-1 > li > a {
    color: #333333;
    text-decoration: none;
    font-family: 'Bona Nova', serif;
    font-weight: 700;
    font-size: 15px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: color 0.2s ease;
    white-space: nowrap;
}

.menu-main ul.level-1 > li > a:hover,
.menu-main ul.level-1 > li.active > a {
    color: #e67e22;
}

.menu-main .menu-caret {
    display: inline-block;
    width: 7px;
    height: 7px;
    margin-left: 8px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg) translateY(-2px);
    transform-origin: center;
    transition: transform 160ms ease;
}

.menu-main ul.level-1 > li:hover > a .menu-caret,
.menu-main ul.level-1 > li.active > a .menu-caret {
    transform: rotate(225deg) translateY(-1px);
}

/* Dropdown Level 2 */
.menu-main ul.level-2 {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: #ffffff;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
    border-radius: 4px;
    padding: 8px 0;
    list-style: none;
    margin: 0;
    z-index: 1000;
    border-top: 3px solid #006837;
}

.menu-main ul.level-1 > li:hover > ul.level-2 {
    display: block;
}

.menu-main ul.level-2 > li {
    position: relative;
    padding: 0;
}

.menu-main ul.level-2 > li > a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 9px 18px;
    color: #333333;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.2s ease, color 0.2s ease;
}

.menu-main ul.level-2 > li > a:hover {
    background-color: #f4f6f8;
    color: #006837;
}

.menu-main ul.level-2 .menu-caret {
    margin-left: 12px;
    transform: rotate(-45deg);
}

.menu-main ul.level-2 > li:hover > a .menu-caret {
    transform: rotate(135deg);
}

/* Dropdown Level 3 */
.menu-main ul.level-3 {
    display: none;
    position: absolute;
    top: 0;
    left: 100%;
    min-width: 220px;
    background: #ffffff;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
    border-radius: 4px;
    padding: 8px 0;
    list-style: none;
    margin: 0;
    z-index: 1001;
    border-top: 3px solid #006837;
}

.menu-main ul.level-2 > li:hover > ul.level-3 {
    display: block;
}

.menu-main ul.level-3 > li > a {
    display: block;
    padding: 9px 18px;
    color: #333333;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.2s ease, color 0.2s ease;
}

.menu-main ul.level-3 > li > a:hover {
    background-color: #f4f6f8;
    color: #006837;
}

/* ==========================================================================
   Responsive Menu cho Tablet & Mobile (< 1080px)
   ========================================================================== */
@media (max-width: 1080px) {
    .section-header .row {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        justify-content: space-between !important;
    }

    /* Khối chứa Brand (Logo + Tên công ty) nằm bên trái */
    .section-header .row > [class*="col-"]:first-child {
        flex: 1 1 auto !important;
        width: auto !important;
        max-width: calc(100% - 56px) !important;
        padding-right: 8px !important;
    }

    .section-header .brand-wrap {
        display: flex !important;
        align-items: center !important;
        gap: 10px !important;
        min-width: 0 !important;
    }

    .section-header .Logo {
        flex-shrink: 0 !important;
    }

    .section-header .ten-cong-ty {
        min-width: 0 !important;
        overflow: hidden !important;
    }

    .section-header .ten-cong-ty p {
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }

    .section-header .ten-cong-ty h2 {
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }

    /* Khối Menu (Nút hamburger) inline bên phải */
    .section-header-menu {
        flex: 0 0 auto !important;
        width: auto !important;
        max-width: none !important;
        padding-left: 0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: flex-end !important;
    }

    .menu-main {
        display: flex !important;
        align-items: center !important;
        justify-content: flex-end !important;
    }

    .menu-main .btn-menu {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        width: 42px;
        height: 42px;
        background: #006837;
        color: #ffffff;
        border-radius: 6px;
        font-size: 20px;
        cursor: pointer;
        text-decoration: none;
        transition: all 0.2s ease;
        flex-shrink: 0;
    }

    .menu-main .btn-menu:hover {
        background: #e67e22;
        color: #ffffff;
    }

    .menu-main .main_menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        width: 100%;
        background: #ffffff;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
        border-top: 3px solid #006837;
        z-index: 9999;
        padding: 10px 20px 20px;
    }

    .menu-main .main_menu.open {
        display: block !important;
    }

    .menu-main .main_menu h3 {
        display: block !important;
        font-size: 14px;
        color: #64748b;
        text-transform: uppercase;
        letter-spacing: 1px;
        margin: 10px 0 8px;
        padding-bottom: 6px;
        border-bottom: 1px solid #e2e8f0;
    }

    .menu-main ul.level-1 {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 0 !important;
        width: 100% !important;
    }

    .menu-main ul.level-1 > li {
        width: 100% !important;
        padding: 8px 0 !important;
        border-bottom: 1px solid #f1f5f9;
    }

    .menu-main ul.level-1 > li > a {
        display: flex !important;
        justify-content: space-between;
        font-size: 15px;
        padding: 6px 0;
    }

    .menu-main ul.level-1 > li:hover > a .menu-caret,
    .menu-main ul.level-1 > li.active > a .menu-caret {
        transform: rotate(45deg) translateY(-2px);
    }

    .menu-main ul.level-2 {
        position: static !important;
        box-shadow: none !important;
        border-top: none !important;
        padding: 4px 0 4px 15px !important;
        background: #f8fafc;
        border-radius: 4px;
        margin-top: 6px;
    }

    .menu-main ul.level-3 {
        position: static !important;
        box-shadow: none !important;
        border-top: none !important;
        padding: 4px 0 4px 15px !important;
        background: #f1f5f9;
        border-radius: 4px;
        margin-top: 4px;
    }
}

@media (max-width: 576px) {
    .section-header {
        padding: 8px 0;
    }
    .section-header .row > [class*="col-"]:first-child {
        max-width: calc(100% - 48px) !important;
        padding-right: 6px !important;
    }
    .section-header .brand-wrap {
        gap: 8px !important;
    }
    .section-header .Logo img {
        max-height: 40px !important;
    }
    .section-header .ten-cong-ty p {
        font-size: 8.5px !important;
    }
    .section-header .ten-cong-ty h2 {
        font-size: 11px !important;
    }
    .menu-main .btn-menu {
        width: 36px !important;
        height: 36px !important;
        font-size: 17px !important;
    }
    .header-top ul.level-1 {
        justify-content: center;
        gap: 8px;
    }
    .header-top ul.level-1 li a {
        font-size: 12.5px;
    }
}

/* ==========================================================================
   NHÓM 3: GLOBAL FOOTER (footer-info, footer-support, footer-bottom)
   ========================================================================== */
.section-footer-master {
    background-color: #18181b;
    color: #e5e7eb;
    padding: 55px 0 25px 0;
    border-top: 4px solid #006837;
    font-family: 'Bona Nova', serif;
    width: 100%;
    box-sizing: border-box;
}

.section-footer-master .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.section-footer-master .row {
    display: flex;
    flex-wrap: wrap;
    margin-left: -15px;
    margin-right: -15px;
}

/* Cột 1: Thông tin công ty */
.footer-info {
    padding: 0 25px 25px 15px;
}

/* Cột 2: Thông tin hỗ trợ */
.footer-support {
    padding: 0 15px 25px 25px;
}

/* Cột 3: Bản quyền chân trang */
.footer-bottom {
    padding: 22px 15px 0;
    margin-top: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    text-align: center;
    width: 100%;
}

/* Thông tin công ty: Tiêu đề */
.footer-info-content .footer-company-sub {
    font-size: 13px;
    font-weight: 700;
    color: #e67e22;
    text-transform: uppercase;
    margin: 0 0 6px;
    letter-spacing: 0.6px;
}

.footer-info-content .footer-company-name {
    font-size: 23px;
    font-weight: 800;
    color: #ffffff;
    text-transform: uppercase;
    margin: 0 0 20px;
    letter-spacing: 0.6px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

/* Thông tin công ty: Các dòng thông tin liên hệ */
.footer-info-content p {
    margin: 0 0 12px;
    font-size: 15px;
    line-height: 1.65;
    color: #d1d5db;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.footer-info-content p i.fa {
    color: #22c55e;
    font-size: 15px;
    margin-top: 4px;
    width: 18px;
    text-align: center;
    flex-shrink: 0;
}

.footer-info-content p strong {
    color: #f9fafb;
    font-weight: 600;
    min-width: 85px;
    flex-shrink: 0;
}

.footer-info-content a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.footer-info-content a:hover {
    color: #e67e22;
    text-decoration: underline;
}

/* Mạng xã hội: Social Badges */
.footer-social {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 22px;
}

.footer-social .social-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 6px;
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.25s ease;
}

.footer-social .social-link i {
    font-size: 16px;
}

.footer-social .social-link:hover,
.footer-social .social-link.facebook:hover {
    background: #1877f2;
    border-color: #1877f2;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(24, 119, 242, 0.4);
}

.footer-social .social-link.youtube:hover {
    background: #e02424;
    border-color: #e02424;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(224, 36, 36, 0.4);
}

/* Thông tin hỗ trợ: Tiêu đề khối */
.footer-support-content .footer-block-title {
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
    text-transform: uppercase;
    margin: 0 0 22px;
    position: relative;
    padding-bottom: 12px;
    letter-spacing: 0.5px;
}

.footer-support-content .footer-block-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 45px;
    height: 3px;
    background-color: #006837;
    border-radius: 2px;
}

/* Thông tin hỗ trợ: Danh sách liên kết */
.footer-links-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-links-list li {
    margin: 0 0 13px;
}

.footer-links-list a {
    color: #9ca3af;
    font-size: 15px;
    text-decoration: none;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.footer-links-list a::before {
    content: '›';
    color: #006837;
    font-size: 18px;
    font-weight: bold;
    line-height: 1;
    transition: transform 0.2s ease, color 0.2s ease;
}

.footer-links-list a:hover {
    color: #ffffff;
    transform: translateX(6px);
}

.footer-links-list a:hover::before {
    color: #e67e22;
    transform: translateX(2px);
}

/* Bản quyền chân trang */
.footer-bottom p {
    margin: 0;
    font-size: 14px;
    color: #9ca3af;
    line-height: 1.6;
    letter-spacing: 0.3px;
}

/* Responsive: Mobile & Tablet */
@media (max-width: 767px) {
    .section-footer-master {
        padding: 40px 0 20px;
    }

    .footer-info,
    .footer-support {
        padding-left: 15px;
        padding-right: 15px;
    }

    .footer-support {
        margin-top: 15px;
    }
}

