/*
Theme Name: VISAMINHQUAN
Theme URI: https://visaminhquan.ddev.site
Author: Nhựt Nguyễn
Author URI: https://visaminhquan.ddev.site
Description: Theme WordPress tùy chỉnh cho Visa Minh Quan. Theme hiện đại, responsive và dễ sử dụng.
Version: 1.0
Requires at least: 6.0
Tested up to: 6.9
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: visaminhquan
Tags: custom-menu, custom-logo, featured-images, threaded-comments, translation-ready, blog, portfolio, business
*/

/* Reset và Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Import UTM Avo font (giữ cho footer) - local woff2, đặt trực tiếp trong assets/font */
@font-face {
    font-family: 'UTM Avo';
    src: url('/wp-content/themes/visaminhquan/assets/font/utm-avo.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

/* Local Manrope font (thay cho Google Fonts) - tất cả file nằm trong assets/font */
@font-face {
    font-family: 'Manrope';
    src: url('/wp-content/themes/visaminhquan/assets/font/Manrope-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Manrope';
    src: url('/wp-content/themes/visaminhquan/assets/font/Manrope-Medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Manrope';
    src: url('/wp-content/themes/visaminhquan/assets/font/Manrope-SemiBold.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Manrope';
    src: url('/wp-content/themes/visaminhquan/assets/font/Manrope-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Manrope';
    src: url('/wp-content/themes/visaminhquan/assets/font/Manrope-ExtraBold.woff2') format('woff2');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

/* Local Roboto - tất cả file nằm trong assets/font */
@font-face {
    font-family: 'Roboto';
    src: url('/wp-content/themes/visaminhquan/assets/font/Roboto-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Roboto';
    src: url('/wp-content/themes/visaminhquan/assets/font/Roboto-Medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Roboto';
    src: url('/wp-content/themes/visaminhquan/assets/font/Roboto-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* Local Roboto Slab - tất cả file nằm trong assets/font */
@font-face {
    font-family: 'Roboto Slab';
    src: url('/wp-content/themes/visaminhquan/assets/font/RobotoSlab-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Roboto Slab';
    src: url('/wp-content/themes/visaminhquan/assets/font/RobotoSlab-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* UTM Avo bold - trong assets/font */
@font-face {
    font-family: 'UTM Avo';
    src: url('/wp-content/themes/visaminhquan/assets/font/utm-avobold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

body {
    font-family: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

* {
    font-family: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Screen Reader Text */
.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
    word-wrap: normal !important;
}

.screen-reader-text:focus {
    background-color: #f1f1f1;
    border-radius: 3px;
    box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
    clip: auto !important;
    color: #21759b;
    display: block;
    font-size: 14px;
    font-weight: bold;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
/* Thanh hotline trên cùng */
.vmq-top-contact-bar {
    background-color: #f5f7fa;
    border-bottom: 1px solid #e5e7eb;
    font-size: 13px;
    color: #374151;
}

.vmq-top-contact-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 4px 0;
}

.vmq-top-contact-left,
.vmq-top-contact-right {
    display: flex;
    align-items: center;
    gap: 6px;
}

.vmq-top-contact-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    color: #1d4ed8;
}

.vmq-top-contact-icon svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

.vmq-top-contact-phone-label {
    font-weight: 500;
}

.vmq-top-contact-phone-number {
    color: #1d4ed8;
    font-weight: 700;
    text-decoration: none;
}

.vmq-top-contact-phone-number:hover {
    text-decoration: underline;
}

.vmq-top-contact-work-label {
    font-weight: 500;
}

.vmq-top-contact-work-time {
    font-weight: 600;
}

@media (max-width: 640px) {
    .vmq-top-contact-inner {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 6px;
        flex-wrap: wrap;
    }

    .vmq-top-contact-left,
    .vmq-top-contact-right {
        flex-wrap: nowrap;
        white-space: nowrap;
    }
}

.site-header {
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-top {
    border-bottom: 1px solid #eee;
    position: relative;
}

.header-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    gap: 1.5rem; /* Giảm gap từ 2rem xuống 1.5rem để tiết kiệm không gian */
    position: relative;
}

.site-branding {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.site-branding a,
.custom-logo-link {
    display: block;
    line-height: 0;
}

.site-branding img,
.custom-logo-link img {
    max-height: 70px;
    width: auto;
    height: auto;
    display: block;
    object-fit: contain;
}

.site-logo-link {
    display: block;
    line-height: 0;
}

.site-logo-placeholder {
    width: 70px;
    height: 70px;
    background-color: #f0f0f0;
    border-radius: 8px;
}


.site-description {
    font-size: 0.875rem;
    color: #666;
    margin: 0;
}

/* Header Right Section */
.header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-shrink: 0;
    margin-left: auto;
}

/* Search Form */
.header-search {
    position: relative;
}

.header-search .search-form {
    display: flex;
    align-items: center;
    position: relative;
}

.header-search .search-field {
    width: 200px;
    padding: 0.5rem 2.5rem 0.5rem 1rem;
    border: 1px solid #ddd;
    border-radius: 25px;
    font-size: 0.875rem;
    outline: none;
    transition: border-color 0.3s ease;
}

.header-search .search-field:focus {
    border-color: #2c5282;
}

.header-search .search-submit {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    transition: color 0.3s ease;
}

.header-search .search-submit:hover {
    color: #2c5282;
}

.header-search .search-submit svg {
    width: 16px;
    height: 16px;
}

/* Language Selector */
.language-selector {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.language-selector .lang-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s ease;
    cursor: pointer;
}

.language-selector .lang-link:hover {
    background-color: #f0f0f0;
}

.language-selector .lang-link.active {
    background-color: #e6f2ff;
}

.flag-icon {
    font-size: 1.25rem;
    line-height: 1;
}

/* Hide Google Translate Widget */
#google_translate_element {
    display: none !important;
}

/* Hide Google Translate Banner - Ẩn hoàn toàn thanh Google Translate */
.goog-te-banner-frame,
.goog-te-menu-frame,
#google_translate_element > div,
body > .goog-te-banner-frame {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
}

/* Fix body top position when banner is hidden */
body {
    top: 0 !important;
    position: static !important;
}

/* Hide Google Translate Selector (visually only, keep functional) */
.goog-te-combo {
    position: absolute !important;
    left: -9999px !important;
    opacity: 0 !important;
    pointer-events: none !important;
    width: 1px !important;
    height: 1px !important;
}

/* Loading Indicator for Translation */
.translation-loading {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 1rem 2rem;
    border-radius: 8px;
    z-index: 999999;
    display: none;
    align-items: center;
    gap: 1rem;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 0.95rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.translation-loading.active {
    display: flex;
}

.translation-loading-spinner {
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Contact Button */
.header-contact .btn-contact {
    display: inline-block;
    padding: 0.625rem 1.5rem;
    background-color: #ffa500;
    color: #1a365d;
    text-decoration: none;
    font-weight: 600;
    border-radius: 25px;
    transition: all 0.3s ease;
    font-size: 0.9375rem;
}

.header-contact .btn-contact:hover {
    background-color: #ff8c00;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(255, 165, 0, 0.3);
}

/* Navigation - Inside Header */
.main-navigation {
    display: flex;
    align-items: center;
    flex: 1;
    min-width: 0; /* Cho phép shrink khi cần */
    justify-content: center;
    position: static;
}

.main-navigation ul {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
    gap: 0;
}

.main-navigation > ul {
    justify-content: center;
    flex-wrap: nowrap; /* Không cho menu xuống 2 hàng khi text dài (tiếng Anh) */
}

.main-navigation li {
    position: relative;
}

.main-navigation > ul > li {
    flex: 0 0 auto;
    min-width: 0; /* Cho phép shrink khi cần */
}

.main-navigation > ul > li > a {
    display: block;
    padding: 0.5rem 1rem; /* Giảm padding ngang từ 1.5rem xuống 1rem để menu vừa hơn */
    color: #333;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.875rem; /* Giảm font-size từ 0.9375rem xuống 0.875rem để text ngắn hơn */
    transition: all 0.3s ease;
    white-space: nowrap;
}

/* Desktop: cho phép hover vào cả block (không chỉ hover chữ) để mở dropdown */
@media (min-width: 769px) {
    .main-navigation {
        align-self: stretch;
    }

    .main-navigation > ul {
        height: 100%;
        align-items: stretch;
    }

    .main-navigation > ul > li {
        display: flex;
        align-items: stretch;
    }

    .main-navigation > ul > li > a {
        display: flex;
        align-items: center;
        height: 100%;
        /* Giữ chiều cao menu theo header, hover được cả vùng trống */
        padding-top: 0;
        padding-bottom: 0;
    }
}

.main-navigation > ul > li:hover > a,
.main-navigation > ul > li.current-menu-item > a {
    color: #2c5282;
}

/* Mega Menu - Full Width Dropdown (desktop: chỉ hiện khi hover menu tương ứng) */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
}

.main-navigation > ul > li {
    position: static;
}

.main-navigation > ul > li > ul {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    width: 100%;
    max-width: 1200px;
    background: linear-gradient(to bottom, #ffffff 0%, #fafafa 100%);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12), 0 2px 6px rgba(0, 0, 0, 0.08);
    display: grid;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.35s ease, transform 0.35s ease, visibility 0s linear 0.35s;
    z-index: 999;
    padding: 1rem 1.5rem;
    border-top: 3px solid #2c5282;
    grid-template-columns: repeat(6, minmax(120px, 1fr));
    gap: 1rem 0;
    column-gap: 1.5rem;
    box-sizing: border-box;
}

.main-navigation > ul > li:hover > ul,
.main-navigation > ul > li:focus-within > ul {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
    transition-delay: 0s;
}

/* Riêng menu Tin tức: không full-width, gộp tất cả thành 1 cột */
.main-navigation > ul > li.menu-item-tin-tuc {
    position: relative; /* Dropdown định vị theo menu Tin tức */
}
.main-navigation > ul > li.menu-item-tin-tuc > ul {
    width: auto;
    min-width: 280px;
    max-width: 340px;
    left: 0;
    right: auto;
    transform: translateY(-10px);
    grid-template-columns: 1fr;
    padding: 1.25rem 1.5rem;
}
.main-navigation > ul > li.menu-item-tin-tuc:hover > ul,
.main-navigation > ul > li.menu-item-tin-tuc:focus-within > ul {
    transform: translateY(0);
}
.main-navigation > ul > li.menu-item-tin-tuc > ul > li {
    grid-column: span 1;
}
.main-navigation > ul > li.menu-item-tin-tuc > ul > li > ul {
    column-count: 1;
    max-height: none;
}

/* Menu Dịch vụ khác: 4 cột, gọn gàng, ít khoảng trống */
.main-navigation > ul > li.menu-item-dich-vu-khac {
    position: static;
}
.main-navigation > ul > li.menu-item-dich-vu-khac > ul {
    width: 100%;
    max-width: 1200px;
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    display: grid;
    grid-template-columns: repeat(4, minmax(160px, 1fr));
    grid-template-rows: min-content min-content;
    align-items: start;
    column-gap: 1.5rem;
    row-gap: 0.25rem;
    padding: 0.75rem 1.25rem;
}
.main-navigation > ul > li.menu-item-dich-vu-khac:hover > ul,
.main-navigation > ul > li.menu-item-dich-vu-khac:focus-within > ul {
    transform: translateX(-50%) translateY(0);
}
/* Cột 1-2 span 2 hàng (cao). Cột 3-4: 2 hàng gọn, không khoảng trống */
.main-navigation > ul > li.menu-item-dich-vu-khac > ul > li:nth-child(1) { grid-column: 1; grid-row: 1 / 3; }
.main-navigation > ul > li.menu-item-dich-vu-khac > ul > li:nth-child(2) { grid-column: 2; grid-row: 1 / 3; }
.main-navigation > ul > li.menu-item-dich-vu-khac > ul > li:nth-child(3) { grid-column: 3; grid-row: 1; }
.main-navigation > ul > li.menu-item-dich-vu-khac > ul > li:nth-child(4) { grid-column: 3; grid-row: 2; }
.main-navigation > ul > li.menu-item-dich-vu-khac > ul > li:nth-child(5) { grid-column: 4; grid-row: 1; }
.main-navigation > ul > li.menu-item-dich-vu-khac > ul > li:nth-child(6) { grid-column: 4; grid-row: 2; }
.main-navigation > ul > li.menu-item-dich-vu-khac > ul > li.menu-item-dv-col1 { grid-column: 1; grid-row: 1 / 3; }
.main-navigation > ul > li.menu-item-dich-vu-khac > ul > li.menu-item-dv-col2 { grid-column: 2; grid-row: 1 / 3; }
.main-navigation > ul > li.menu-item-dich-vu-khac > ul > li.menu-item-dv-col3 { grid-column: 3; }
.main-navigation > ul > li.menu-item-dich-vu-khac > ul > li.menu-item-dv-col4 { grid-column: 4; }
.main-navigation > ul > li.menu-item-dich-vu-khac > ul > li > ul {
    column-count: 1;
    max-height: none;
}
.main-navigation > ul > li.menu-item-dich-vu-khac > ul > li {
    min-width: 0;
    white-space: normal;
    align-self: start;
}
.main-navigation > ul > li.menu-item-dich-vu-khac > ul > li > a {
    margin-bottom: 0.35rem;
}
.main-navigation > ul > li.menu-item-dich-vu-khac > ul > li > ul {
    margin-top: 0.15rem;
}

/* Desktop: mở rộng vùng hover dưới chữ (ô đỏ) để dropdown bật khi hover vào "block" */
@media (min-width: 769px) {
    .main-navigation > ul > li > a {
        position: relative;
    }

    /* Dùng ::before để không đè lên mũi tên dropdown (::after) */
    .main-navigation > ul > li > a::before {
        content: '';
        position: absolute;
        left: 0;
        right: 0;
        top: 100%;
        height: 16px; /* tăng vùng hover xuống dưới chữ */
        background: transparent;
    }
}

@media (max-width: 768px) {
    .main-navigation ul ul {
        padding: 1.5rem 20px;
    }
    /* Mobile: override selector specificity from desktop */
    .main-navigation > ul > li > ul {
        display: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        pointer-events: auto;
        transition: none;
    }
}

/* First Level Submenu Items (Menu Groups) */
.main-navigation ul ul > li {
    border-bottom: none;
    border-right: none;
    padding-right: 0;
    padding-bottom: 0;
    margin-right: 0;
    margin-bottom: 0;
    box-sizing: border-box;
    min-width: 0;
    align-self: start;
}

/* Thứ tự hiển thị: Á - Âu - Mỹ - Úc - Phi */
.main-navigation ul ul > li.menu-item-chau-a {
    grid-column: 1;
    grid-row: 1;
}
.main-navigation ul ul > li.menu-item-chau-au {
    grid-column: 2 / span 2;
    grid-row: 1;
}
.main-navigation ul ul > li.menu-item-chau-my {
    grid-column: 4;
    grid-row: 1;
}
.main-navigation ul ul > li.menu-item-chau-uc {
    grid-column: 5;
    grid-row: 1;
}
.main-navigation ul ul > li.menu-item-chau-phi {
    grid-column: 6;
    grid-row: 1;
}

/* Menu Group Title */
.main-navigation ul ul > li > a {
    display: block;
    padding: 0 0 0.35rem 0;
    color: #1a365d;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
    border-bottom: none;
    padding-bottom: 0;
    line-height: 1.3;
    transition: color 0.2s ease;
    transform: none;
}

.main-navigation ul ul > li > a:hover {
    color: #2c5282;
    transform: none;
}

/* Second Level Submenu (Items in each group) */
.main-navigation ul ul ul {
    position: static;
    display: block;
    opacity: 1;
    visibility: visible;
    transform: none !important;
    box-shadow: none;
    border-top: none;
    background-color: transparent;
    margin-left: 0;
    width: 100%;
    padding: 0;
    min-width: auto;
    column-count: 1;
    column-gap: 1.5rem;
    transition: none;
}

/* Auto 2 columns if more than 8 items */
.main-navigation ul ul > li:has(> ul > li:nth-child(9)):not(:has(> ul > li:nth-child(15))) > ul {
    column-count: 2;
    max-height: 500px;
}

/* VISA CHÂU ÂU: 2 cột (giống Visana) */
.main-navigation ul ul > li:has(> ul > li:nth-child(15)) > ul {
    column-count: 2;
    max-height: 500px;
    column-gap: 1.25rem;
}

.main-navigation ul ul ul li {
    width: 100%;
    border-right: none;
    border-bottom: none;
    padding-right: 0;
    margin-bottom: 0.2rem;
    break-inside: avoid;
    page-break-inside: avoid;
    transition: none;
}

.main-navigation ul ul ul li:last-child {
    margin-bottom: 0;
}

.main-navigation ul ul ul a {
    display: block;
    padding: 0.2rem 0;
    color: #4b5563;
    text-decoration: none;
    font-size: 0.8125rem;
    font-weight: 400;
    line-height: 1.3;
    border-radius: 0;
    margin-left: 0;
    transition: color 0.2s ease, transform 0.2s ease;
    transform: translateX(0);
    text-transform: capitalize;
}

.main-navigation ul ul ul a:hover {
    background-color: transparent;
    color: #2c5282;
    transform: translateX(4px);
}

/* ============================================
   SINGLE POST PAGE
   ============================================ */
.vmq-single-post-wrapper {
    padding: 40px 0 60px;
}

.vmq-single-post-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.vmq-single-post-layout {
    display: grid;
    grid-template-columns: minmax(0, 6.8fr) minmax(280px, 3.2fr);
    gap: 32px;
    align-items: flex-start;
}

.vmq-single-post-main {
    background: #ffffff;
    border-radius: 16px;
    padding: 24px 28px 32px;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
}

.vmq-single-post-article {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.vmq-single-post-header {
    margin-bottom: 20px;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 16px;
}

.vmq-single-post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 16px;
    align-items: center;
    margin-bottom: 10px;
    font-size: 13px;
    color: #718096;
}

.vmq-single-post-category {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    background: #ebf4ff;
    color: #2b6cb0;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
}

.vmq-single-post-category:hover {
    background: #dbeafe;
    color: #1d4ed8;
}

.vmq-single-post-date time {
    font-size: 13px;
    color: #a0aec0;
}

.vmq-single-post-title {
    font-size: 26px;
    line-height: 1.3;
    margin: 0 0 10px;
    color: #1a202c;
}

.vmq-single-post-author {
    font-size: 13px;
    color: #718096;
}

.vmq-single-post-author-label {
    font-weight: 600;
}

.vmq-single-post-author-name a {
    color: #2b6cb0;
    text-decoration: none;
}

.vmq-single-post-author-name a:hover {
    text-decoration: underline;
}

.vmq-single-post-thumbnail {
    margin: 0 0 20px;
    border-radius: 14px;
    overflow: hidden;
}

.vmq-single-post-featured-image {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
}

.vmq-single-post-content {
    font-size: 15px;
    line-height: 1.8;
    color: #2d3748;
}

.vmq-single-post-content p {
    margin: 0 0 1rem;
}

.vmq-single-post-content h2,
.vmq-single-post-content h3,
.vmq-single-post-content h4 {
    margin-top: 1.8rem;
    margin-bottom: 0.75rem;
    color: #1a202c;
}

.vmq-single-post-content ul,
.vmq-single-post-content ol {
    padding-left: 1.3rem;
    margin: 0 0 1rem;
}

.vmq-single-post-pages {
    margin-top: 24px;
    font-size: 14px;
}

.vmq-single-post-footer {
    margin-top: 28px;
    border-top: 1px solid #e2e8f0;
    padding-top: 18px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px 20px;
    font-size: 13px;
    color: #4a5568;
}

.vmq-single-post-footer-label {
    font-weight: 600;
    margin-right: 4px;
}

.vmq-single-post-categories-list a,
.vmq-single-post-tags-list a {
    color: #2b6cb0;
    text-decoration: none;
}

.vmq-single-post-categories-list a:hover,
.vmq-single-post-tags-list a:hover {
    text-decoration: underline;
}

.vmq-single-post-navigation {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px dashed #e2e8f0;
    display: flex;
    justify-content: space-between;
    gap: 16px;
}

.vmq-single-post-nav-link {
    display: flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    color: #2d3748;
    font-size: 13px;
}

.vmq-single-post-nav-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #a0aec0;
}

.vmq-single-post-nav-title {
    font-weight: 600;
    color: #2b6cb0;
}

.vmq-single-post-nav-link:hover .vmq-single-post-nav-title {
    text-decoration: underline;
}

.vmq-single-post-sidebar {
    display: block;
}

.vmq-single-post-sidebar .vmq-single-post-sidebar-widget {
    background: #ffffff;
    border-radius: 14px;
    padding: 12px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

@media (min-width: 1024px) {
    .vmq-single-post-sidebar {
        position: sticky;
        top: 180px;
        align-self: flex-start;
    }
}

.vmq-single-post-sidebar-title {
    margin: 0 0 12px;
    font-size: 15px;
    font-weight: 700;
    color: #1a202c;
}

.vmq-single-post-sidebar-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.vmq-single-post-sidebar-list li + li {
    margin-top: 6px;
}

.vmq-single-post-sidebar-list a {
    font-size: 14px;
    color: #2b6cb0;
    text-decoration: none;
}

.vmq-single-post-sidebar-list a:hover {
    text-decoration: underline;
}

/* TOC widget */
.vmq-toc-widget {
    border-top: 3px solid #2b6cb0;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    border-radius: 14px;
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.08);
    border: 1px solid #dbe7f6;
}

.vmq-toc {
    margin-top: 10px;
}

.vmq-inline-toc-widget {
    margin: 0 0 1.5rem;
    border: 1px solid #d7deea;
    border-top: 5px solid #2f66a9;
    border-radius: 24px 24px 16px 16px;
    overflow: hidden;
    background: #f3f4f6;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
}

.vmq-inline-toc-toggle {
    width: 100%;
    border: none;
    background: transparent;
    color: #10224d;
    padding: 26px 40px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    font-size: 22px;
    line-height: 1.2;
    font-weight: 800;
    cursor: pointer;
    position: relative;
    text-align: left;
}

.vmq-inline-toc-toggle::after {
    content: "";
    display: block;
    position: absolute;
    left: 40px;
    right: 40px;
    bottom: 5px;
    border-bottom: 4px solid #efb146;
}

.vmq-inline-toc-widget:not(.is-open) .vmq-inline-toc-toggle::after {
    bottom: 9px;
}

.vmq-inline-toc-toggle-icon {
    width: 14px;
    height: 14px;
    border-right: 3px solid currentColor;
    border-bottom: 3px solid currentColor;
    transform: rotate(45deg) translateY(-2px);
    transition: transform 0.2s ease;
    margin-left: 14px;
}

.vmq-inline-toc-widget.is-open .vmq-inline-toc-toggle-icon {
    transform: rotate(-135deg) translateX(-2px);
}

.vmq-inline-toc-widget .vmq-toc {
    margin-top: 0;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    padding: 0 28px;
    transition: max-height 0.35s ease, opacity 0.25s ease, padding 0.3s ease;
}

.vmq-inline-toc-widget.is-open .vmq-toc {
    max-height: 1200px;
    opacity: 1;
    padding: 16px 28px 20px;
}

@media (min-width: 1024px) {
    .vmq-toc-widget {
        /* Chừa không gian để không bị thanh cố định dưới màn hình che mất */
        max-height: calc(100vh - 280px);
        overflow: hidden;
    }

    .vmq-toc {
        max-height: calc(100vh - 360px);
        overflow-y: auto;
        padding-right: 6px;
    }
}

.vmq-toc-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.vmq-toc-item-h2 .vmq-toc-link {
    font-weight: 600;
    line-height: 1;
    padding-top: 2px;
    padding-bottom: 2px;
}

.vmq-toc-link {
    display: block;
    color: #1f2a44;
    text-decoration: none;
    font-size: 18px;
    line-height: 1.3;
    padding: 6px 8px;
    border-radius: 8px;
    transition: color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

.vmq-toc-link:hover {
    color: #234d86;
    background-color: #e8edf7;
    transform: translateX(2px);
}

@media (max-width: 768px) {
    .vmq-inline-toc-toggle {
        padding: 18px 16px 14px;
        font-size: 18px;
    }

    .vmq-inline-toc-toggle::after {
        left: 16px;
        right: 16px;
    }

    .vmq-inline-toc-widget:not(.is-open) .vmq-inline-toc-toggle::after {
        bottom: 7px;
    }

    .vmq-inline-toc-widget .vmq-toc {
        padding: 0 12px;
    }

    .vmq-inline-toc-widget.is-open .vmq-toc {
        padding: 12px 12px 14px;
    }

    .vmq-toc-link {
        font-size: 16px;
    }
}
/* ============================================
   SINGLE POST - AUTHOR BOX & SHARE
   ============================================ */
.vmq-post-author-share {
    margin-top: 40px;
    padding: 24px 28px;
    border-radius: 12px;
    background: #f5f7fb;
    border: 1px solid #e2e8f0;
}

.vmq-post-author-share-inner {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    align-items: flex-start;
    justify-content: space-between;
}

.vmq-post-author-info {
    display: flex;
    gap: 18px;
    align-items: flex-start;
    max-width: 680px;
}

.vmq-post-author-avatar {
    flex-shrink: 0;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    overflow: hidden;
    background: #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.vmq-post-author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.vmq-post-author-text {
    flex: 1;
}

.vmq-post-author-name {
    margin: 0 0 6px;
    font-size: 16px;
    font-weight: 700;
    color: #1a365d;
}

.vmq-post-author-bio {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
    color: #4a5568;
}

.vmq-post-share {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
    margin-left: auto;
}

.vmq-post-share-label {
    font-size: 14px;
    font-weight: 600;
    color: #1a365d;
}

.vmq-post-share-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

/* Thu nhỏ icon social và bỏ border trong phần Author */
.vmq-post-author-share .vmq-social-icon {
    width: 36px;
    height: 36px;
    padding: 6px;
    border: none;
    border-radius: 50%;
    background-color: transparent;
}

.vmq-post-author-share .vmq-social-icon img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.vmq-post-share-btn:hover {
    filter: brightness(1.05);
    transform: translateY(-1px);
}

@media (max-width: 768px) {
    .vmq-post-author-share {
        padding: 18px 16px;
    }

    .vmq-post-author-share-inner {
        flex-direction: column;
        gap: 16px;
    }

    .vmq-post-author-info {
        max-width: 100%;
    }

    .vmq-post-share {
        width: 100%;
        align-items: flex-start;
    }
}

/* Third Level Menu (if exists) */
.main-navigation ul ul ul ul {
    position: static;
    margin-left: 0.5rem;
    margin-top: 0.25rem;
    padding: 0;
    display: block;
    border-left: 2px solid #e5e7eb;
    padding-left: 0.5rem;
}

.main-navigation ul ul ul ul li {
    border-bottom: none;
    margin-bottom: 0.15rem;
}

.main-navigation ul ul ul ul a {
    font-size: 0.75rem;
    color: #6b7280;
    padding: 0.2rem 0;
    font-weight: 400;
    margin-left: 0;
    line-height: 1.2;
    transition: color 0.2s ease, transform 0.2s ease;
    transform: translateX(0);
}

.main-navigation ul ul ul ul a::before {
    content: '•';
    margin-right: 0.4rem;
    color: #9ca3af;
}

.main-navigation ul ul ul ul a:hover {
    color: #2c5282;
    background-color: transparent;
    transform: translateX(4px);
}

/* Menu Arrow Indicator */
.main-navigation li.menu-item-has-children > a::after {
    content: '▼';
    font-size: 0.625rem;
    margin-left: 0.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    vertical-align: middle;
    transition: transform 0.3s ease;
}

.main-navigation li.menu-item-has-children:hover > a::after {
    transform: rotate(180deg);
}

/* Content Area */
.site-content {
    padding: 2rem 0;
    min-height: 60vh;
}

.content-area {
    width: 100%;
}

/* Posts */
.post {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #eee;
}

.post:last-child {
    border-bottom: none;
}

.entry-header {
    margin-bottom: 1rem;
}

.entry-title {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.entry-title a {
    color: #333;
    text-decoration: none;
}

.entry-title a:hover {
    color: #0073aa;
}

.entry-meta {
    font-size: 0.875rem;
    color: #666;
    margin-bottom: 1rem;
}

.entry-content {
    margin-bottom: 1rem;
}

.entry-content p {
    margin-bottom: 1rem;
}

.entry-footer {
    font-size: 0.875rem;
    color: #666;
}

/* Category archive – card layout */
.vmq-category-archive {
    padding: 2rem 0 3rem;
    min-height: 60vh;
}

.vmq-category-archive-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.vmq-category-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.vmq-category-title {
    font-size: 2rem;
    font-weight: 700;
    color: #1a202c;
    margin: 0 0 0.5rem;
}

.vmq-category-description {
    font-size: 1rem;
    color: #718096;
    line-height: 1.6;
    max-width: 640px;
    margin: 0 auto;
}

.vmq-category-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.75rem;
}

.vmq-category-card {
    margin: 0;
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    border: 1px solid #e5e7eb;
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.vmq-category-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.vmq-category-card-link {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    align-items: stretch;
    text-decoration: none;
    color: inherit;
}

.vmq-category-card-image {
    position: relative;
    aspect-ratio: auto;
    overflow: hidden;
    background: #f5f7fa;
    height: 100%;
    min-height: 180px;
}

.vmq-category-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.vmq-category-card-no-image {
    display: flex;
    align-items: center;
    justify-content: center;
}

.vmq-category-card-placeholder {
    font-size: 1rem;
    font-weight: 600;
    color: #94a3b8;
    padding: 1rem;
    text-align: center;
}

.vmq-category-card-body {
    padding: 1.25rem 1.25rem 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.vmq-category-card-meta {
    font-size: 0.8125rem;
    color: #94a3b8;
    margin-bottom: 0.5rem;
}

.vmq-category-card-title {
    font-size: 1.125rem;
    font-weight: 600;
    line-height: 1.4;
    margin: 0 0 0.5rem;
    color: #1a202c;
}

.vmq-category-card-link:hover .vmq-category-card-title {
    color: #2b6cb0;
}

.vmq-category-card-excerpt {
    font-size: 0.875rem;
    color: #64748b;
    line-height: 1.5;
    margin-bottom: 0.75rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.vmq-category-card-more {
    font-size: 0.875rem;
    font-weight: 600;
    color: #2b6cb0;
}

.vmq-category-card-link:hover .vmq-category-card-more {
    text-decoration: underline;
}

.vmq-category-pagination {
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e5e7eb;
}

.vmq-category-empty {
    text-align: center;
    padding: 3rem 1rem;
    color: #64748b;
}

.vmq-category-layout {
    display: grid;
    grid-template-columns: minmax(0, 6.8fr) minmax(280px, 3.2fr);
    gap: 32px;
    align-items: start;
}

.vmq-category-main {
    min-width: 0;
}

.vmq-category-sidebar-widget {
    background: #ffffff;
    border-radius: 14px;
    padding: 18px 20px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

/* Sidebar hẹp (2 cột): thu gọn typographic của destination guide để tránh bể layout */
.vmq-single-post-sidebar .vmq-destination-guide__head,
.vmq-category-sidebar .vmq-destination-guide__head {
    padding: 12px 12px;
}

.vmq-single-post-sidebar .vmq-destination-guide__title,
.vmq-category-sidebar .vmq-destination-guide__title {
    font-size: 16px;
}

.vmq-single-post-sidebar .vmq-dg-item__trigger,
.vmq-category-sidebar .vmq-dg-item__trigger {
    padding: 9px 0;
}

.vmq-single-post-sidebar .vmq-dg-item__label,
.vmq-category-sidebar .vmq-dg-item__label {
    font-size: 15px;
    line-height: 1.35;
}

.vmq-single-post-sidebar .vmq-dg-item__panel,
.vmq-category-sidebar .vmq-dg-item__panel {
    padding: 0 0 10px;
}

.vmq-single-post-sidebar .vmq-dg-sublist__item a,
.vmq-single-post-sidebar .vmq-dg-sublist__item span,
.vmq-category-sidebar .vmq-dg-sublist__item a,
.vmq-category-sidebar .vmq-dg-sublist__item span {
    font-size: 13px;
}

@media (min-width: 1024px) {
    .vmq-category-sidebar {
        position: sticky;
        top: 180px;
    }
}

@media (max-width: 992px) {
    .vmq-single-post-layout,
    .vmq-category-layout {
        grid-template-columns: 1fr;
    }

    .vmq-single-post-sidebar,
    .vmq-category-sidebar {
        position: static;
        top: auto;
    }

    .vmq-category-card-link {
        grid-template-columns: 1fr;
    }

    .vmq-category-card-image {
        min-height: 180px;
        aspect-ratio: 16 / 10;
    }
}

@media (max-width: 576px) {
    .vmq-category-title {
        font-size: 1.5rem;
    }

    .vmq-category-card-body {
        padding: 1rem 1rem 1.25rem;
    }

    .vmq-category-card-title {
        font-size: 1rem;
    }
}

/* Footer */
.site-footer {
    background-color: #333;
    color: #fff;
    padding: 2rem 0;
    margin-top: 4rem;
}

.footer-content {
    text-align: center;
}

.site-info {
    font-size: 0.875rem;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    padding: 0.5rem;
    color: #333;
    position: relative;
    z-index: 1001;
    line-height: 1;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    margin-left: auto;
}

.mobile-menu-toggle:hover {
    background-color: #f7fafc;
}

.mobile-menu-toggle:active {
    transform: translateY(-50%) scale(0.95);
}

.mobile-menu-toggle .hamburger-icon {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    position: relative;
}

.mobile-menu-toggle .hamburger-line {
    display: block;
    width: 100%;
    height: 2px;
    background-color: #333;
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
}

.mobile-menu-toggle:hover .hamburger-line {
    background-color: #2c5282;
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Responsive */
@media (max-width: 1024px) {
    .header-search .search-field {
        width: 180px;
    }
    
    .main-navigation .nav-container > ul > li > a {
        padding: 1rem 1rem;
        font-size: 0.875rem;
    }
    
    /* Giảm padding và font-size menu khi màn hình nhỏ hơn để tránh wrap */
    .main-navigation > ul > li > a {
        padding: 0.5rem 0.75rem;
        font-size: 0.8125rem;
    }
}

@media (max-width: 992px) {
    .header-search .search-field {
        width: 180px;
    }
    
    .site-branding img,
    .custom-logo-link img {
        max-height: 60px;
    }
    
    .site-logo-placeholder {
        width: 60px;
        height: 60px;
    }
}

@media (max-width: 768px) {
    .header-top {
        position: relative;
    }
    
    .header-wrapper {
        flex-wrap: wrap;
        gap: 0.75rem;
        padding: 0.75rem 0;
        position: relative;
    }
    
    .site-branding {
        flex: 1 1 auto;
        min-width: 0;
    }
    
    .site-branding img,
    .custom-logo-link img {
        max-height: 50px;
    }
    
    .site-logo-placeholder {
        width: 50px;
        height: 50px;
    }
    
    .main-navigation {
        order: 3;
        flex: 1 1 100%;
        display: none; /* Ẩn nav gốc trên mobile, chỉ dùng cho desktop & dữ liệu Hamburger V2 */
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: #fff;
        box-shadow: 0 4px 12px rgba(0,0,0,0.15);
        z-index: 999;
        padding: 1rem 0;
        margin-top: 0.75rem;
        border-top: 1px solid #eee;
    }
    
    .main-navigation.active {
        display: block;
    }
    
    /* Hamburger menu luôn hiển thị trên mobile */
    .mobile-menu-toggle {
        display: flex !important;
        position: relative;
        order: 2;
        margin-left: auto;
        z-index: 1002;
    }
    
    .main-navigation ul {
        flex-direction: column;
        width: 100%;
        gap: 0;
    }
    
    .main-navigation > ul > li {
        width: 100%;
        border-bottom: 1px solid #eee;
    }
    
    .main-navigation > ul > li:last-child {
        border-bottom: none;
    }
    
    .main-navigation > ul > li > a {
        padding: 1rem 1.5rem;
        width: 100%;
        display: block;
    }
    
    .main-navigation ul ul {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border-top: none;
        background-color: #f7fafc;
        margin-left: 0;
        display: none;
        width: 100%;
        left: auto;
        max-width: 100%;
        padding: 0.5rem 0;
        flex-direction: column;
    }
    
    .main-navigation ul ul > li {
        width: 100%;
        max-width: 100%;
        border-right: none;
        border-bottom: 1px solid #eee;
        padding-right: 0;
        margin-right: 0;
        margin-bottom: 0;
    }
    
    .main-navigation ul ul > li:last-child {
        border-bottom: none;
        margin-bottom: 0;
    }
    
    .main-navigation li.submenu-open > ul {
        display: block;
    }
    
    .main-navigation ul ul li {
        border-bottom: 1px solid #e5e5e5;
    }
    
    .main-navigation ul ul a {
        padding: 0.75rem 1.5rem;
        transform: none !important;
        transition: color 0.2s ease, background-color 0.2s ease;
    }
    
    .main-navigation ul ul a:hover {
        transform: none !important;
        background-color: #f0f0f0;
    }
    
    .main-navigation ul ul ul {
        position: static;
        margin-left: 0;
        background-color: #f0f0f0;
        padding: 0.5rem 0;
    }
    
    .main-navigation ul ul ul a {
        padding: 0.75rem 1.5rem 0.75rem 2rem;
    }
    
    .main-navigation ul ul ul ul {
        margin-left: 0;
        padding: 0.5rem 0;
    }
    
    .main-navigation ul ul ul ul a {
        padding: 0.5rem 1.5rem 0.5rem 2.5rem;
    }
    
    /* Loại bỏ tất cả transform trong mobile menu */
    .main-navigation ul ul a,
    .main-navigation ul ul ul a,
    .main-navigation ul ul ul ul a {
        transform: none !important;
        transition: color 0.2s ease, background-color 0.2s ease !important;
    }
    
    .main-navigation ul ul a:hover,
    .main-navigation ul ul ul a:hover,
    .main-navigation ul ul ul ul a:hover {
        transform: none !important;
        background-color: #f0f0f0;
    }

    /* ============================================
       Mobile Hamburger V2 - Vertical Icon Tabs
       ============================================ */
    .vmq-mobile-menu {
        position: fixed;
        inset: 0;
        z-index: 1001;
        display: none;
    }

    .vmq-mobile-menu.is-open {
        display: block;
    }

    .vmq-mobile-menu-backdrop {
        position: absolute;
        inset: 0;
        background: rgba(15, 23, 42, 0.45);
    }

    .vmq-mobile-menu-panel {
        position: absolute;
        top: 6vh;
        bottom: 4vh;
        left: 8px;
        right: 8px;
        max-height: 90vh;
        background: #ffffff;
        border-radius: 18px;
        display: flex;
        flex-direction: column;
        box-shadow: 0 18px 45px rgba(15, 23, 42, 0.25);
    }

    .vmq-mobile-menu-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 10px 16px 8px;
        border-bottom: 1px solid #e2e8f0;
    }

    .vmq-mobile-menu-title {
        font-size: 16px;
        font-weight: 700;
        color: #0b1c44;
    }

    .vmq-mobile-menu-close {
        width: 32px;
        height: 32px;
        border-radius: 999px;
        border: 1px solid #e2e8f0;
        background: #ffffff;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 0;
        cursor: pointer;
        position: relative;
    }

    .vmq-mobile-menu-close span {
        position: absolute;
        width: 16px;
        height: 2px;
        background: #0b1c44;
        border-radius: 999px;
    }

    .vmq-mobile-menu-close span:first-child {
        transform: rotate(45deg);
    }

    .vmq-mobile-menu-close span:last-child {
        transform: rotate(-45deg);
    }

    .vmq-mobile-menu-inner {
        flex: 1;
        display: flex;
        min-height: 0;
    }

    .vmq-mobile-menu-tabs {
        width: 96px;
        background: #f5f7fb;
        border-right: 1px solid #e2e8f0;
        padding: 12px 8px 16px;
        display: flex;
        flex-direction: column;
        gap: 8px;
    }

    .vmq-mobile-tab {
        border: none;
        background: #e2e8f0;
        color: #0b1c44;
        border-radius: 10px;
        padding: 10px 6px;
        font-size: 11px;
        font-weight: 600;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
        line-height: 1.2;
    }

    .vmq-mobile-tab.active {
        background: #0b1c44;
        color: #ffffff;
    }

    .vmq-mobile-tab-label {
        display: block;
    }

    .vmq-mobile-menu-content {
        flex: 1;
        padding: 12px 16px 20px;
        overflow-y: auto;
    }

    .vmq-mobile-panel {
        display: none;
    }

    .vmq-mobile-panel.active {
        display: block;
    }

    .vmq-mobile-submenu {
        list-style: none;
        margin: 0;
        padding: 0;
        display: flex;
        flex-direction: column;
        gap: 8px;
    }

    .vmq-mobile-submenu > li > a {
        display: block;
        padding: 8px 10px;
        border-radius: 8px;
        text-decoration: none;
        color: #0b1c44;
        font-size: 14px;
        line-height: 1.5;
    }
    
    .vmq-mobile-submenu > li > a:hover {
        background: #f3f4ff;
        color: #001776;
    }

    /* Accordion trong phần nội dung bên phải */
    .vmq-mobile-accordion {
        border-radius: 10px;
        background: #f9fafb;
        overflow: hidden;
        margin-bottom: 8px;
    }

    .vmq-mobile-acc-header {
        width: 100%;
        border: none;
        background: transparent;
        padding: 10px 10px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        cursor: pointer;
        font-size: 14px;
        font-weight: 600;
        color: #0b1c44;
    }

    .vmq-mobile-acc-icon {
        width: 16px;
        height: 16px;
        border-radius: 999px;
        border: 1px solid #cbd5f5;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        position: relative;
    }

    .vmq-mobile-acc-icon::before,
    .vmq-mobile-acc-icon::after {
        content: '';
        position: absolute;
        background: #4b5563;
        border-radius: 999px;
    }

    .vmq-mobile-acc-icon::before {
        width: 8px;
        height: 2px;
    }

    .vmq-mobile-acc-icon::after {
        width: 2px;
        height: 8px;
        transition: transform 0.2s ease;
    }

    .vmq-mobile-accordion.is-open .vmq-mobile-acc-icon::after {
        opacity: 0; /* khi mở: chỉ còn dấu '-' thay vì 'X' */
    }

    .vmq-mobile-acc-panel {
        padding: 0 4px 8px 10px;
    }

    /* Xử lý list con trong accordion (đặc biệt cho menu Dịch vụ khác) */
    .vmq-mobile-acc-panel ul {
        list-style: none;
        margin: 0;
        padding-left: 0;
    }

    .vmq-mobile-acc-panel ul li {
        margin: 2px 0;
        display: block;
    }

    .vmq-mobile-acc-panel ul li a {
        display: block;
        padding: 4px 8px;
        font-size: 13px;
        line-height: 1.45;
        white-space: normal;
        text-decoration: none;
        color: #0b1c44;
        border-radius: 6px;
    }
    
    .vmq-mobile-acc-panel ul li a:hover {
        background-color: #eef2ff;
        color: #001776;
    }
    
    /* Reset link style & pseudo bullets trong mobile menu */
    .vmq-mobile-menu .vmq-mobile-panel a {
        text-decoration: none;
        color: #0b1c44;
    }

    .vmq-mobile-menu .vmq-mobile-panel a:visited {
        color: #0b1c44;
    }

    .vmq-mobile-menu .vmq-mobile-panel a:hover {
        color: #001776;
    }

    .vmq-mobile-menu .vmq-mobile-panel a::before,
    .vmq-mobile-menu .vmq-mobile-panel a::after {
        content: none !important;
    }
    
    .header-right {
        flex: 1 1 auto;
        justify-content: flex-end;
        order: 2;
        gap: 0.75rem;
    }
    
    .header-search {
        flex: 1 1 auto;
        min-width: 0;
    }
    
    .header-search .search-field {
        width: 100%;
        max-width: 200px;
        padding: 0.4rem 2rem 0.4rem 0.75rem;
        font-size: 0.8125rem;
    }
    
    .language-selector .lang-link {
        width: 28px;
        height: 28px;
    }
    
    .flag-icon {
        font-size: 1rem;
    }
    
    .header-contact .btn-contact {
        padding: 0.5rem 1rem;
        font-size: 0.8125rem;
    }
    
    .mobile-menu-toggle {
        display: flex !important;
        position: relative;
        margin-left: auto;
        order: 2;
    }
    
    .main-navigation {
        position: relative;
    }
    
    .header-wrapper {
        position: relative;
    }
    
    .entry-title {
        font-size: 1.5rem;
    }
}

/* Đảm bảo menu mobile KHÔNG hiển thị trên PC */
@media (min-width: 993px) {
    .vmq-mobile-menu {
        display: none !important;
    }

    .mobile-menu-toggle {
        display: none !important;
    }
}

@media (max-width: 480px) {
    .header-wrapper {
        padding: 0.5rem 0;
    }
    
    .site-branding img,
    .custom-logo-link img {
        max-height: 45px;
    }
    
    .site-logo-placeholder {
        width: 45px;
        height: 45px;
    }
    
    .header-search .search-field {
        max-width: 150px;
        padding: 0.35rem 1.75rem 0.35rem 0.65rem;
        font-size: 0.75rem;
    }
    
    .header-search .search-submit svg {
        width: 14px;
        height: 14px;
    }
    
    .language-selector {
        gap: 0.25rem;
    }
    
    .language-selector .lang-link {
        width: 24px;
        height: 24px;
    }
    
    .flag-icon {
        font-size: 0.875rem;
    }
    
    .header-contact .btn-contact {
        padding: 0.4rem 0.75rem;
        font-size: 0.75rem;
    }
    
    .mobile-menu-toggle {
        padding: 0.4rem 0.6rem;
        font-size: 1.25rem;
        right: 15px;
    }
}

