/* ============================================================
   QEZA theme styles - namespace .qeza-* để tránh xung đột
   Tải sau style.css và custom.css
   ============================================================ */

/* Desktop: ẩn hoàn toàn menu mobile drawer, chỉ hiện ≤992px */
@media (min-width: 993px) {
    .qeza-mobile-menu,
    .qeza-menu-backdrop {
        display: none !important;
    }
}
/* Mobile: ẩn desktop menu ngang, chỉ hiện >992px */
@media (max-width: 992px) {
    .qeza-menu--desktop {
        display: none !important;
    }
}

/* Global overflow protection (mobile) — ngăn mọi phần tử gây scrollbar ngang */
@media (max-width: 992px) {
    html, body {
        width: 100%;
        max-width: 100%;
        overflow-x: clip;
    }
    img, video, iframe, table { max-width: 100%; }
}

.qeza-root {
    --qeza-navy: #052f60;
    --qeza-navy-dark: #02264e;
    --qeza-blue: #0c5594;
    --qeza-teal: #278f91;
    --qeza-gold: #f2b832;
    --qeza-text: #0a315d;
    --qeza-muted: #526678;
    --qeza-border: #dfe7ef;
    --qeza-bg-soft: #f7fbff;
    --qeza-bg-soft2: #fbfdff;
    --qeza-bg-tint: #eefaff;

    --qeza-font: "Be Vietnam Pro", Arial, "Helvetica Neue", sans-serif;
    font-family: var(--qeza-font);
}

/* Helper full-width: bứt ra khỏi .wraper (giới hạn 1080px) */
.qeza-fullwidth {
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}

/* Container nội dung chính (giống .shell 1160px của mẫu) */
.qeza-shell {
    max-width: 1160px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 24px;
    padding-right: 24px;
}

.qeza-shell--tight {
    padding-left: 14px;
    padding-right: 14px;
}

/* Section wrapper chung */
.qeza-section {
    padding: 40px 0;
}

.qeza-section--soft {
    background-color: var(--qeza-bg-soft2);
}

/* Tiêu đề section căn giữa, gạch vàng */
.qeza-section-title {
    font-family: var(--qeza-font);
    font-size: 24px;
    font-weight: 700;
    color: var(--qeza-text);
    text-align: center;
    margin: 0 0 8px;
}

.qeza-section-title::after {
    content: '';
    display: block;
    width: 56px;
    height: 3px;
    background: var(--qeza-gold);
    margin: 10px auto 0;
}

/* ============ Topbar ============ */
.qeza-topbar {
    background-color: var(--qeza-navy-dark);
    color: #fff;
    font-size: 12px;
    line-height: 34px;
    min-height: 34px;
}
.qeza-topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}
.qeza-topbar-left,
.qeza-topbar-right {
    display: flex;
    align-items: center;
    gap: 16px;
}
/* Để block contact/social/translate sẵn không canh lề */
.qeza-topbar .contactDefault,
.qeza-topbar .social-icons,
.qeza-topbar .header-translate {
    padding-top: 0 !important;
    padding-right: 0 !important;
    padding-bottom: 0 !important;
    display: inline-flex;
    align-items: center;
}
.qeza-topbar .contactDefault .content { display: inline; }
.qeza-topbar a { color: #fff; }

/* ============ Header main ============ */
.qeza-header-main {
    background: #fff;
    border-bottom: 1px solid var(--qeza-border);
}
.qeza-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 82px;
}
.qeza-logo {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
}
.qeza-logo-img {
    height: 56px;
    width: auto;
    display: block;
    flex-shrink: 0;
}
.qeza-brand {
    /* Logo đã chứa tên + slogan, ẩn phần text khỏi giao diện nhưng giữ cho SEO/screen reader */
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
.qeza-site-name {
    font-family: var(--qeza-font);
    font-size: 20px;
    font-weight: 800;
    color: var(--qeza-navy);
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}
.qeza-site-desc {
    font-family: var(--qeza-font);
    font-size: 12px;
    color: var(--qeza-muted);
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 380px;
}
/* Khi site_logo trống, fallback hiển thị ảnh mặc định của theme */
.qeza-logo-img[src=""] {
    /* Trình duyệt sẽ không load ảnh rỗng, fallback qua onerror */
    display: none;
}

/* ============ Search ============ */
.qeza-search {
    display: flex;
    width: 370px;
    max-width: 100%;
    height: 38px;
    border: 1px solid var(--qeza-border);
    border-radius: 6px;
    overflow: hidden;
}
.qeza-search-input {
    flex: 1;
    border: 0;
    padding: 0 12px;
    font-size: 13px;
    outline: none;
    color: var(--qeza-text);
}
.qeza-search-btn {
    border: 0;
    background: var(--qeza-navy);
    color: #fff;
    width: 44px;
    cursor: pointer;
}

/* ============ Hamburger (ẩn desktop) ============ */
.qeza-hamburger {
    display: none;
    width: 40px;
    height: 40px;
    background: transparent;
    border: 1px solid var(--qeza-border);
    border-radius: 6px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
    cursor: pointer;
}
.qeza-hamburger span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--qeza-text);
}

/* ============ Section nav (menu) ============ */
.qeza-section-nav {
    --qeza-blue: #0c5594;
    --qeza-gold: #f2b832;
    --qeza-text: #0a315d;
    --qeza-border: #dfe7ef;
    --qeza-bg-soft: #f7fbff;
    background: linear-gradient(90deg, #07457d 0%, #063766 100%);
}

/* ============ Footer ============ */
.qeza-footer {
    background: linear-gradient(135deg, #073b72 0%, #042951 100%);
    color: #cfe0ef;
    padding: 40px 0 0;
    font-size: 12px;
}
.qeza-footer-grid {
    display: grid;
    grid-template-columns: 1.35fr .8fr 1.05fr .65fr;
    gap: 24px;
    padding-bottom: 30px;
}
.qeza-footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    margin-bottom: 6px;
}
.qeza-footer-logo-img { height: 48px; width: auto; display: block; flex-shrink: 0; }
.qeza-footer-site-name {
    /* Logo đã chứa tên, ẩn text trùng lặp nhưng giữ cho SEO/screen reader */
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
.qeza-footer-intro { margin: 12px 0; line-height: 1.6; }
.qeza-footer h4 {
    color: #fff;
    font-size: 13px;
    text-transform: uppercase;
    margin: 0 0 12px;
}
.qeza-footer a { color: #cfe0ef; }
.qeza-footer a:hover { color: var(--qeza-gold); }
.qeza-footer-bottom {
    border-top: 1px solid rgba(255,255,255,.12);
    padding: 12px 0;
    text-align: center;
    font-size: 11px;
}

/* ============ Menu ============ */
.qeza-menu-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
    min-height: 46px;
    align-items: stretch;
}
.qeza-menu-item { position: relative; }
.qeza-menu-link {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 12px 18px;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    border-bottom: 3px solid transparent;
    transition: background .15s, border-color .15s;
}
.qeza-menu-link:hover,
.qeza-menu-item.active > .qeza-menu-link {
    background: rgba(255,255,255,.12);
    border-bottom-color: var(--qeza-gold);
    color: #fff;
}
.qeza-caret { font-size: 10px; opacity: .8; }

/* Dropdown submenu */
.qeza-dropdown {
    list-style: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: #fff;
    border: 1px solid var(--qeza-border);
    box-shadow: 0 8px 24px rgba(5,47,96,.12);
    padding: 0;
    margin: 0;
    z-index: 100;
    display: none;
}
.qeza-menu-item:hover > .qeza-dropdown { display: block; }
.qeza-dropdown li { border-bottom: 1px solid var(--qeza-border); }
.qeza-dropdown li:last-child { border-bottom: 0; }
.qeza-dropdown a {
    display: block;
    padding: 10px 14px;
    font-size: 12px;
    color: var(--qeza-text);
}
.qeza-dropdown a:hover { background: var(--qeza-bg-soft); color: var(--qeza-blue); }

/* Mobile menu toggle handled by qeza.js */
.qeza-menu.open { display: block !important; }
.qeza-menu-close { display: none; }

/* ============ Hero ============ */
.qeza-hero {
    background-image: url('../images/qeza/hero-quang-ninh.png');
    background-size: cover;
    background-position: center 58%;
    min-height: 500px;
    display: flex;
    align-items: center;
}
.qeza-hero-overlay {
    background: linear-gradient(90deg, rgba(237,249,255,.94) 0%, rgba(237,249,255,.7) 36%, rgba(237,249,255,0) 64%);
    width: 100%;
    padding: 72px 0;
}
.qeza-hero-content { max-width: 620px; }
.qeza-hero h1 {
    font-size: clamp(36px, 3.45vw, 48px);
    line-height: 1.18;
    text-transform: uppercase;
    color: var(--qeza-navy);
    margin: 0 0 16px;
    font-weight: 800;
}
.qeza-hero p { font-size: 17px; color: var(--qeza-muted); margin: 0 0 28px; }
.qeza-hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.qeza-hero-content .qeza-btn { margin-right: 14px; margin-bottom: 10px; }
/* Nút hero theo bản gốc tĩnh */
.qeza-hero-content .qeza-btn-gold { color: #102e50; background: var(--qeza-gold); border-color: transparent; min-height: 44px; padding: 0 22px; border-radius: 5px; }
.qeza-hero-content .qeza-btn-outline { color: var(--qeza-navy); background: #fff; border-color: #fff; min-height: 44px; padding: 0 22px; border-radius: 5px; }
.qeza-hero-content .qeza-btn-outline:hover { background: rgba(255,255,255,.85); border-color: rgba(255,255,255,.85); }

/* ============ Hero Slider (block banners) ============ */
.qeza-hero-slider {
    position: relative;
    width: 100%;
    min-height: var(--qeza-hero-h, 500px);
    overflow: hidden;
    background: #edf9ff;
}
.qeza-hero-track {
    width: 100%;
    height: 100%;
    min-height: var(--qeza-hero-h, 500px);
    transition: transform .5s ease;
}
/* Slide dùng y hệt style .qeza-hero gốc để giữ hình ảnh/overlay/text như cũ */
.qeza-hero-slide {
    position: relative;
    background-size: cover;
    background-position: center 58%;
    min-height: var(--qeza-hero-h, 500px);
    transition: opacity .6s ease;
    overflow: hidden;
}
/* Lớp nền ảnh (tách riêng để video dùng <video> thay background-image) */
.qeza-hero-bgimg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center 58%;
    z-index: 0;
}
/* Lớp nền video (ponytail: muted autoplay loop, không controls) */
.qeza-hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}
/* Overlay & content kế thừa đúng .qeza-hero gốc (không ghi đè) */
.qeza-hero-slider .qeza-hero-overlay {
    position: relative;
    z-index: 1;
    background: linear-gradient(90deg, rgba(237,249,255,.94) 0%, rgba(237,249,255,.62) 36%, rgba(237,249,255,0) 64%);
    width: 100%;
    min-height: var(--qeza-hero-h, 500px);
}
.qeza-hero-slider .qeza-hero-content {
    max-width: 900px;
    padding-top: 72px;
    position: relative;
    z-index: 1;
}
.qeza-hero-slider .qeza-hero-content h1 {
    margin: 0;
    max-width: 1160px;
    font-size: clamp(28px, 2.6vw, 38px);
    line-height: 1.18;
    letter-spacing: -.02em;
    color: var(--qeza-navy);
    font-weight: 800;
}
.qeza-hero-slider .qeza-hero-content p {
    margin: 14px 0 22px;
    color: #304c66;
    font-size: 17px;
}
/* Nút điều hướng */
.qeza-hero-prev, .qeza-hero-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 44px; height: 44px;
    border: 0;
    background: rgba(255,255,255,.7);
    color: var(--qeza-navy);
    font-size: 28px;
    line-height: 1;
    border-radius: 50%;
    cursor: pointer;
    transition: background .15s;
}
.qeza-hero-prev:hover, .qeza-hero-next:hover { background: rgba(255,255,255,.95); }
.qeza-hero-prev { left: 20px; }
.qeza-hero-next { right: 20px; }
/* Chấm chỉ số */
.qeza-hero-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 8px;
}
.qeza-hero-dot {
    width: 12px; height: 12px;
    border-radius: 50%;
    border: 0;
    background: rgba(255,255,255,.5);
    cursor: pointer;
    padding: 0;
    transition: background .15s;
}
.qeza-hero-dot.active { background: var(--qeza-gold); }

.qeza-btn {
    display: inline-flex; align-items: center;
    padding: 12px 24px; font-size: 13px; font-weight: 700;
    border-radius: 6px; text-decoration: none; cursor: pointer;
    border: 2px solid transparent;
}
.qeza-btn-gold { background: var(--qeza-gold); color: var(--qeza-navy); }
.qeza-btn-outline { background: transparent; border-color: var(--qeza-navy); color: var(--qeza-navy); }

/* ============ Quick links ============ */
.qeza-quicklinks {
    margin-top: -76px;
    position: relative;
    z-index: 5;
}
.qeza-quicklinks-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    background: #fff;
    border-radius: 13px;
    box-shadow: 0 10px 30px rgba(5,47,96,.1);
    padding: 22px;
}
.qeza-quick-card {
    text-decoration: none;
    color: var(--qeza-text);
    padding: 18px;
    border-radius: 8px;
    transition: background .15s;
    min-height: 190px;
    display: flex; flex-direction: column; align-items: center; text-align: center;
}
.qeza-quick-card:hover { background: var(--qeza-bg-soft); }
.qeza-quick-icon { font-size: 42px; margin-bottom: 10px; }
.qeza-quick-card h3 { font-size: 14px; margin: 0 0 6px; }
.qeza-quick-card p { font-size: 11.5px; color: var(--qeza-muted); margin: 0; }

/* ============ Opportunities ============ */
.qeza-section-head { text-align: center; margin-bottom: 24px; }
.qeza-opp-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 16px;
}
.qeza-opp-card {
    background: #fff;
    border: 1px solid var(--qeza-border);
    border-radius: 10px;
    overflow: hidden;
    text-decoration: none;
    color: var(--qeza-text);
    box-shadow: 0 4px 14px rgba(5,47,96,.06);
    transition: box-shadow .15s, transform .15s;
}
.qeza-opp-card:hover,
.qeza-opp-card:focus {
    color: var(--qeza-text);
    box-shadow: 0 8px 20px rgba(5,47,96,.12);
    transform: translateY(-2px);
}
.qeza-opp-img img {
    width: 100%;
    aspect-ratio: 1.45 / 1;
    object-fit: cover;
    display: block;
}
.qeza-opp-body { padding: 12px; text-align: center; }
.qeza-opp-body h3 { font-size: 17px; line-height: 1.3; margin: 0 0 6px; }
.qeza-opp-body p { font-size: 11.5px; line-height: 1.55; color: var(--qeza-muted); margin: 0; }

@media (max-width: 1050px) {
    .qeza-opp-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 992px) {
    .qeza-section-head { margin-bottom: 18px; }
    .qeza-opp-grid { grid-template-columns: 1fr; gap: 12px; }
    .qeza-opp-card { display: grid; grid-template-columns: 42% minmax(0, 1fr); }
    .qeza-opp-img,
    .qeza-opp-img img { height: 100%; }
    .qeza-opp-img img { aspect-ratio: auto; }
    .qeza-opp-body { padding: 14px; text-align: left; }
    .qeza-opp-body h3 { font-size: 15px; }
}

/* ============ Green banner ============ */
.qeza-green-banner {
    background-image: url('../images/qeza/ha-long-bay.png');
    background-size: cover;
    background-position: center;
    min-height: 210px;
    display: flex; align-items: center;
}
/* Block green banner (image bg + overlay text) — giống static .sustainability */
.qeza-green-banner-img {
    background-size: cover;
    background-position: center;
    min-height: 210px;
    position: relative;
}
.qeza-green-banner-img .qeza-green-overlay {
    position: relative;
    z-index: 1;
    width: 100%;
    min-height: 210px;
    padding: 0;
    background: linear-gradient(90deg, #eefaff, rgba(238, 250, 255, .92) 44%, rgba(238, 250, 255, .12) 78%);
}
.qeza-green-banner-img .qeza-green-overlay > .qeza-shell {
    min-height: 210px;
    display: flex;
    align-items: center;
}
.qeza-green-banner-img .qeza-green-content {
    display: block;
    min-height: 0;
    max-width: 650px;
}
.qeza-green-banner-img .qeza-green-content h2 {
    margin: 0 0 14px;
    font-size: 24px;
    line-height: 1.3;
    color: #122f50;
    font-weight: 700;
    text-transform: uppercase;
}
.qeza-green-banner-img .qeza-green-content > p {
    margin: 0;
    color: #3d596d;
    line-height: 1.6;
    font-size: 13px;
}
.qeza-green-banner-img .qeza-green-points {
    display: flex;
    flex-wrap: wrap;
    gap: 14px 28px;
    margin-top: 22px;
}
.qeza-green-banner-img .qeza-green-point {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    font-size: 11px;
    font-weight: 700;
    color: #1a3a5c;
}
.qeza-green-banner-img .qeza-green-point em.fa {
    font-size: 25px;
    color: #2f8c7d;
}

/* ============ Investor CTA ============ */
.qeza-cta { margin: 18px 0; }
.qeza-cta-inner {
    background: linear-gradient(90deg, #07457d, #063766);
    border-radius: 10px;
    padding: 24px 30px;
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
    min-height: 110px;
}
.qeza-cta-icon { font-size: 42px; color: rgba(255,255,255,.85); }
.qeza-cta-text { flex: 1; min-width: 240px; }
.qeza-cta-text h2 { color: #fff; font-size: 20px; margin: 0 0 4px; }
.qeza-cta-text p { color: #cfe0ef; font-size: 13px; margin: 0; }
.qeza-cta-btn { margin-left: auto; }

@media (max-width: 1050px) {
    .qeza-cta-inner { flex-direction: column; text-align: center; }
    .qeza-cta-btn { margin-left: 0; }
}

@media (max-width: 992px) {
    .qeza-cta-icon { display: none; }
}

/* ============ News grid ============ */
.qeza-news-grid {
    display: grid;
    grid-template-columns: repeat(var(--qeza-news-cols, 4), minmax(0, 1fr));
    gap: 18px;
}
.qeza-news-card {
    background: #fff;
    border: 1px solid var(--qeza-border);
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 7px 18px rgba(8, 48, 89, .06);
}
.qeza-news-img {
    display: block;
    background: var(--qeza-bg-soft);
}
.qeza-news-img img,
.qeza-news-img-empty {
    width: 100%;
    aspect-ratio: 1.5 / 1;
    object-fit: cover;
    display: block;
}
.qeza-news-img-empty {
    background: linear-gradient(135deg, var(--qeza-bg-soft), var(--qeza-bg-tint));
}
.qeza-news-body { padding: 10px 12px 12px; }
.qeza-news-meta {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    font-size: 10px;
    color: var(--qeza-muted);
    margin-bottom: 6px;
}
.qeza-news-cat {
    color: var(--qeza-blue);
    font-weight: 700;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.qeza-news-date { white-space: nowrap; }
.qeza-news-body h3 {
    font-size: 13px;
    line-height: 1.45;
    min-height: 76px;
    margin: 0;
}
.qeza-news-body h3 a {
    color: var(--qeza-text);
    text-decoration: none;
}
.qeza-news-body h3 a:hover,
.qeza-news-body h3 a:focus { color: var(--qeza-blue); }
.qeza-news-text {
    color: var(--qeza-muted);
    font-size: 11px;
    line-height: 1.55;
    margin: 8px 0 0;
}
.qeza-news-foot {
    margin-top: 8px;
    font-size: 11px;
    color: var(--qeza-muted);
}
.qeza-news-hits { display: inline-flex; align-items: center; gap: 5px; }

@media (max-width: 1050px) {
    .qeza-news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 992px) {
    .qeza-news-grid { grid-template-columns: 1fr; gap: 12px; }
    .qeza-news-card { display: grid; grid-template-columns: 38% minmax(0, 1fr); }
    .qeza-news-img,
    .qeza-news-img img,
    .qeza-news-img-empty { height: 100%; }
    .qeza-news-img img,
    .qeza-news-img-empty { aspect-ratio: auto; }
    .qeza-news-body { padding: 12px 14px; }
    .qeza-news-body h3 { min-height: 0; }
}

/* ============ Planning map ============ */
.qeza-map-frame {
    background: #fff;
    border: 1px solid var(--qeza-border);
    border-radius: 10px;
    padding: 8px;
    min-height: 475px;
}
.qeza-map-frame iframe {
    width: 100%;
    aspect-ratio: 16 / 7;
    min-height: 420px;
    border: 0;
    display: block;
    background: var(--qeza-bg-soft);
}
.qeza-map-frame .qeza-map-preview {
    width: 100%;
    height: auto;
    display: block;
}
.qeza-map-action { text-align: center; margin-top: 16px; }

@media (max-width: 992px) {
    .qeza-map-frame { min-height: 0; padding: 6px; }
    .qeza-map-frame iframe { min-height: 280px; }
    .qeza-map-action { margin-top: 12px; }
}

/* ============ Investor chatbot ============ */
.qeza-chatbot {
    --qeza-navy: #052f60;
    --qeza-blue: #0c5594;
    --qeza-border: #dfe7ef;
    --qeza-bg-soft: #f7fbff;
    --qeza-font: "Be Vietnam Pro", Arial, "Helvetica Neue", sans-serif;
    position: relative;
    z-index: 1000;
}
.qeza-chatbot-fab {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 1002;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    min-height: 54px;
    padding: 6px 14px 6px 7px;
    border: 0;
    border-radius: 28px;
    background: var(--qeza-navy);
    color: #fff;
    box-shadow: 0 8px 22px rgba(5, 47, 96, .24);
    cursor: pointer;
    font: 700 12px/1.3 var(--qeza-font);
    text-align: left;
}
.qeza-chatbot-fab:hover,
.qeza-chatbot-fab:focus { background: var(--qeza-blue); }
.qeza-chatbot-fab:focus-visible,
.qeza-chatbot-close:focus-visible { outline: 3px solid rgba(242, 184, 50, .8); outline-offset: 2px; }
.qeza-chatbot-fab-avatar {
    width: 43px;
    height: 43px;
    border-radius: 50%;
    object-fit: cover;
    background: #fff;
}
.qeza-chatbot-fab-label { white-space: nowrap; }
.qeza-chatbot-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(2, 38, 78, .36);
}
.qeza-chatbot-panel {
    position: fixed;
    right: 24px;
    bottom: 92px;
    z-index: 1001;
    display: flex;
    flex-direction: column;
    width: 440px;
    max-width: calc(100vw - 48px);
    height: 620px;
    max-height: calc(100vh - 132px);
    max-height: calc(100dvh - 132px);
    min-height: 300px;
    overflow: hidden;
    border: 1px solid var(--qeza-border);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 18px 48px rgba(2, 38, 78, .28);
}
.qeza-chatbot-panel[hidden],
.qeza-chatbot-overlay[hidden] { display: none; }
.qeza-chatbot-header {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
    padding: 12px 14px;
    background: linear-gradient(135deg, var(--qeza-navy), var(--qeza-blue));
    color: #fff;
}
.qeza-chatbot-header-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: cover;
    background: #fff;
}
.qeza-chatbot-header h2 {
    margin: 0;
    color: #fff;
    font-size: 15px;
    line-height: 1.3;
}
.qeza-chatbot-header p {
    margin: 2px 0 0;
    color: #dcecfb;
    font-size: 11px;
}
.qeza-chatbot-close {
    width: 34px;
    height: 34px;
    margin-left: auto;
    border: 0;
    border-radius: 5px;
    background: transparent;
    color: #fff;
    cursor: pointer;
    font-size: 25px;
    line-height: 1;
}
.qeza-chatbot-close:hover,
.qeza-chatbot-close:focus { background: rgba(255, 255, 255, .14); }
.qeza-chatbot-frame-wrap {
    flex: 1 1 auto;
    min-height: 0;
    background: var(--qeza-bg-soft);
}
.qeza-chatbot-frame-wrap iframe {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 300px;
    border: 0;
    background: #fff;
}

@media (max-width: 992px) {
    .qeza-chatbot-fab {
        right: 14px;
        bottom: 14px;
        min-height: 50px;
        padding-right: 11px;
    }
    .qeza-chatbot-fab-avatar { width: 40px; height: 40px; }
    .qeza-chatbot-panel {
        right: 14px;
        bottom: 76px;
        left: 14px;
        width: auto;
        max-width: none;
        height: calc(100vh - 94px);
        height: calc(100dvh - 94px);
        max-height: calc(100vh - 94px);
        max-height: calc(100dvh - 94px);
        border-radius: 12px;
    }
    .qeza-chatbot-frame-wrap iframe { min-height: 0; }
}

/* ============ Responsive shell/header/navigation ============ */
@media (max-width: 1050px) {
    .section-body.qeza-root {
        max-width: 100%;
        overflow-x: hidden;
    }
    .section-body.qeza-root .wraper,
    .section-body.qeza-root .container,
    .section-body.qeza-root > .wraper > section {
        width: auto;
        max-width: 100%;
        margin-left: 0;
        margin-right: 0;
    }
    .section-body.qeza-root > .wraper > section > .container {
        padding-left: 0;
        padding-right: 0;
    }
    .section-body.qeza-root .qeza-shell {
        max-width: 100%;
        padding-left: 24px;
        padding-right: 24px;
    }
    .section-body.qeza-root .qeza-fullwidth {
        width: 100vw;
        max-width: 100vw;
        margin-left: calc(50% - 50vw);
        margin-right: calc(50% - 50vw);
    }
    /* footer_extended.tpl keeps footerNav2 outside section-body; constrain its
     * legacy 1080px wrapper through the adjacent QEZA footer scope. */
    .qeza-footer.qeza-root + .footerNav2 > .wraper,
    .qeza-footer.qeza-root + .footerNav2 .container {
        width: auto;
        max-width: 100%;
        margin-left: 0;
        margin-right: 0;
    }
    .qeza-footer.qeza-root + .footerNav2 > .wraper {
        padding-left: 24px;
        padding-right: 24px;
    }
    .qeza-footer.qeza-root + .footerNav2 .container {
        padding-left: 0;
        padding-right: 0;
    }
}

@media (max-width: 1050px) {
    .qeza-header-inner {
        min-height: 70px;
        gap: 16px;
    }
    .qeza-logo img, .qeza-logo-img { height: 42px; }
    .qeza-site-name { font-size: 17px; }
    .qeza-site-desc { font-size: 11px; max-width: 220px; }
    .qeza-menu-link {
        font-size: 10px;
        padding: 10px 12px;
    }
    .qeza-footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 24px;
    }
}

@media (max-width: 992px) {
    .qeza-shell {
        padding-left: 14px;
        padding-right: 14px;
    }

    .qeza-topbar {
        font-size: 11px;
        line-height: 1.45;
    }
    .qeza-topbar-inner {
        align-items: flex-start;
        padding-top: 7px;
        padding-bottom: 7px;
    }
    .qeza-topbar-left,
    .qeza-topbar-right { gap: 8px; }
    .qeza-social { display: none; }
    .qeza-translate { padding-left: 0 !important; }

    .qeza-header-inner {
        min-height: 70px;
        gap: 12px !important;
        width: 100%;
        max-width: 100%;
        overflow: hidden;
    }
    .qeza-logo { min-width: 0; flex: 1 1 auto; }
    .qeza-logo img, .qeza-logo-img { height: 36px; }
    .qeza-search { display: none; }
    /* Hamburger - nền navy, icon trắng, to rõ */
    .qeza-hamburger {
        display: flex;
        flex: 0 0 44px;
        width: 44px;
        height: 44px;
        background: #052f60;
        border: 0;
        border-radius: 6px;
        gap: 5px;
    }
    .qeza-hamburger span {
        width: 22px;
        height: 2.5px;
        background: #ffffff;
        border-radius: 2px;
    }

    /* Section nav ẩn khi drawer đóng */
    .qeza-section-nav { background: transparent; }
    .qeza-section-nav > .qeza-shell { padding-left: 0; padding-right: 0; }

    /* ============================================================
       QEZA MOBILE MENU — phong cách mst.gov.vn
       Namespace: .qeza-mobile-menu__* (scoped, không xung đột desktop)
       Breakpoint: ≤992px (tablet dọc + mobile). Desktop >992px giữ nguyên.
       ============================================================ */

    /* Container drawer — full màn hình, fixed */
    .qeza-mobile-menu {
        position: fixed;
        top: 0;
        right: -100%;
        display: flex !important;
        flex-direction: column;
        width: 100%;
        max-width: 100%;
        height: 100vh;
        height: 100dvh;
        padding: 0;
        background: #ffffff;
        box-shadow: -4px 0 24px rgba(0, 0, 0, .18);
        transition: right .22s ease;
        z-index: 1080;
        overflow: hidden;
        visibility: hidden;
    }
    .qeza-mobile-menu.open {
        right: 0;
        visibility: visible;
    }

    /* Header drawer (logo + brand + close) — navy đậm */
    .qeza-mobile-menu__header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        min-height: 88px;
        padding: 16px 18px;
        background: #042E59;
        background: linear-gradient(135deg, #042E59 0%, #073B70 100%);
        flex-shrink: 0;
    }
    .qeza-mobile-menu__brand {
        display: flex;
        align-items: center;
        gap: 12px;
        min-width: 0;
        text-decoration: none;
    }
    .qeza-mobile-menu__logo {
        height: 42px;
        width: auto;
        flex-shrink: 0;
        object-fit: contain;
    }
    .qeza-mobile-menu__brand-text {
        color: #ffffff;
        font-size: 13px;
        font-weight: 700;
        line-height: 1.3;
        letter-spacing: 0.3px;
        text-transform: uppercase;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    .qeza-mobile-menu__close {
        display: flex !important;
        width: 44px;
        height: 44px;
        flex-shrink: 0;
        padding: 0;
        border: 2px solid rgba(255, 255, 255, .25);
        background: rgba(255, 255, 255, .08);
        color: #ffffff;
        font-size: 20px;
        line-height: 1;
        cursor: pointer;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        transition: background .15s ease;
    }
    .qeza-mobile-menu__close:hover { background: rgba(255, 255, 255, .2); }

    /* Thanh tiêu đề "DANH MỤC" */
    .qeza-mobile-menu__title-bar {
        padding: 14px 18px 6px;
        flex-shrink: 0;
        background: #ffffff;
    }
    .qeza-mobile-menu__title {
        font-size: 22px;
        font-weight: 700;
        color: #042E59;
        letter-spacing: 0.5px;
    }

    /* Search */
    .qeza-mobile-menu__search {
        display: flex;
        align-items: center;
        position: relative;
        margin: 8px 18px 4px;
        height: 50px;
        flex-shrink: 0;
    }
    .qeza-mobile-menu__search-icon {
        position: absolute;
        left: 16px;
        color: #647586;
        font-size: 15px;
        pointer-events: none;
    }
    .qeza-mobile-menu__search-input {
        width: 100%;
        height: 100%;
        padding: 0 16px 0 44px;
        border: 1.5px solid #D9E3EC;
        border-radius: 12px;
        background: #F4F7FA;
        font-size: 15px;
        color: #0B3768;
        outline: none;
        transition: border-color .15s ease, background .15s ease;
    }
    .qeza-mobile-menu__search-input:focus {
        border-color: #176CA5;
        background: #ffffff;
    }
    .qeza-mobile-menu__search-input::placeholder { color: #94a8ba; }

    /* Body — chỉ phần list cuộn */
    .qeza-mobile-menu__body {
        flex: 1 1 auto;
        min-height: 0;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        padding: 4px 0;
    }
    .qeza-mobile-menu__list {
        list-style: none;
        margin: 0;
        padding: 0;
    }
    .qeza-mobile-menu__item {
        border-bottom: 1px solid #D9E3EC;
    }
    .qeza-mobile-menu__item:last-child { border-bottom: 0; }
    .qeza-mobile-menu__link {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        min-height: 60px;
        padding: 12px 18px 12px 22px;
        font-size: 16px;
        font-weight: 600;
        color: #0B3768;
        text-decoration: none;
        line-height: 1.4;
        position: relative;
        transition: background .15s ease;
    }
    .qeza-mobile-menu__link:hover { background: #F4F7FA; }
    /* Trạng thái active — nền xanh nhạt + viền trái vàng */
    .qeza-mobile-menu__item.active .qeza-mobile-menu__link,
    .qeza-mobile-menu__item[class*="active"] .qeza-mobile-menu__link {
        background: #eaf2fb !important;
        color: #042E59 !important;
        font-weight: 700;
        border-left: 4px solid #F2B31E;
        padding-left: 18px;
    }
    .qeza-mobile-menu__link-text {
        flex: 1 1 auto;
        min-width: 0;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    .qeza-mobile-menu__arrow {
        flex-shrink: 0;
        color: #94a8ba;
        font-size: 16px;
        font-weight: 400;
    }
    .qeza-mobile-menu__item.active .qeza-mobile-menu__arrow,
    .qeza-mobile-menu__item[class*="active"] .qeza-mobile-menu__arrow {
        color: #042E59;
    }

    /* Footer toolbar — fixed bottom */
    .qeza-mobile-menu__footer {
        display: flex;
        flex-shrink: 0;
        height: 62px;
        border-top: 1px solid #D9E3EC;
        background: #ffffff;
        padding-bottom: env(safe-area-inset-bottom, 0);
    }
    .qeza-mobile-menu__tool {
        flex: 1 1 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 3px;
        text-decoration: none;
        color: #0B3768;
        font-size: 12px;
        font-weight: 600;
        border-right: 1px solid #eef3f8;
        transition: background .15s ease;
    }
    .qeza-mobile-menu__tool:last-child { border-right: 0; }
    .qeza-mobile-menu__tool:hover { background: #F4F7FA; }
    .qeza-mobile-menu__tool em.fa {
        font-size: 18px;
        color: #176CA5;
    }

    /* Backdrop overlay */
    .qeza-menu-backdrop {
        position: fixed;
        inset: 0;
        background: rgba(4, 46, 89, .5);
        z-index: 1070;
        opacity: 0;
        visibility: hidden;
        transition: opacity .22s ease, visibility .22s ease;
    }
    .qeza-menu-backdrop.open {
        opacity: 1;
        visibility: visible;
    }

    /* Đảm bảo chatbot và toolbar không che menu (z-index thấp hơn) */
    .qeza-chatbot,
    #contactButton,
    .qeza-chatbot-fab,
    .qeza-chatbot-panel,
    .fix_banner_left,
    .fix_banner_right {
        z-index: 1000 !important;
    }

    /* Body lock scroll khi menu mở */
    body.qeza-menu-open {
        overflow: hidden !important;
        position: fixed;
        width: 100%;
    }

    /* Ẩn các class cũ không còn dùng trong mobile menu */
    .qeza-menu-header,
    .qeza-menu-title,
    .qeza-menu-search,
    .qeza-menu-search-input,
    .qeza-menu-search-btn,
    .qeza-menu-list,
    .qeza-menu-link.home,
    .qeza-dropdown {
        display: none !important;
    }


    .qeza-hero {
        min-height: 440px;
        background-position: 62% center;
    }
    .qeza-hero-overlay {
        padding: 50px 0;
        background: rgba(239, 248, 254, .82);
    }
    .qeza-hero h1 { font-size: 34px; }
    .qeza-hero p {
        max-width: 390px;
        font-size: 14px;
    }
    .qeza-hero-cta { flex-wrap: wrap; }

    .qeza-quicklinks { margin-top: -54px; }
    .qeza-quicklinks-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        padding: 5px;
    }
    .qeza-quick-card {
        min-height: 160px;
        padding: 20px 12px;
    }
    .qeza-quick-icon { font-size: 38px; }
    .qeza-quick-card h3 { font-size: 12px; }
    .qeza-quick-card p { font-size: 10px; }

    .qeza-footer-grid {
        grid-template-columns: 1fr;
        gap: 26px;
    }
}

/* Keep the legacy layout shell fluid on QEZA pages at phone widths. The
 * existing `.wraper`/`.container` rules are intentionally left untouched for
 * the rest of the default theme. QEZA shells provide the 14px content gutter.
 */
@media (max-width: 992px) {
    .section-body.qeza-root .wraper,
    .section-body.qeza-root .container,
    .section-body.qeza-root > .wraper > section {
        width: auto;
        max-width: 100%;
        margin-left: 0;
        margin-right: 0;
    }
    .section-body.qeza-root > .wraper > section > .container {
        padding-left: 0;
        padding-right: 0;
    }
    .section-body.qeza-root .qeza-shell {
        max-width: 100%;
        padding-left: 14px;
        padding-right: 14px;
    }
    .section-body.qeza-root .qeza-fullwidth {
        width: 100vw;
        max-width: 100vw;
        margin-left: calc(50% - 50vw);
        margin-right: calc(50% - 50vw);
    }
    .qeza-footer.qeza-root + .footerNav2 > .wraper {
        padding-left: 14px;
        padding-right: 14px;
    }

    /* Keep this override ahead of the legacy theme's generic button rules. */
    .qeza-root .qeza-header-inner .qeza-hamburger {
        display: flex;
        flex: 0 0 40px;
    }
}

/* ============================================================
   QEZA visual fidelity pass
   Mirrors qeza-html-static/styles.css while keeping NukeViet
   blocks, routes and permissions as the content source.
   ============================================================ */
.qeza-root,
.qeza-root *,
.qeza-section-nav,
.qeza-section-nav *,
.qeza-chatbot,
.qeza-chatbot * { box-sizing: border-box; }

.qeza-root,
.qeza-section-nav,
.qeza-chatbot { font-family: "Be Vietnam Pro", Arial, "Helvetica Neue", sans-serif; }

.qeza-shell {
    width: min(1160px, calc(100% - 48px));
    max-width: 1160px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 0;
    padding-right: 0;
}

.section-body.qeza-root {
    width: 100%;
    max-width: none;
    overflow-x: clip;
    background: #fff;
}
.section-body.qeza-root > .wraper,
.section-body.qeza-root > .wraper > section,
.section-body.qeza-root > .wraper > section > .container {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
    background: #fff;
}
.section-body.qeza-root .qeza-fullwidth {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
}

/* Header and utility bar */
.qeza-topbar {
    height: 34px;
    min-height: 34px;
    line-height: normal;
    font-size: 12px;
}
.qeza-topbar-inner { height: 34px; flex-wrap: nowrap; }
.qeza-topbar-left,
.qeza-topbar-right { gap: 28px; align-items: center; }
.qeza-topbar a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #fff;
    white-space: nowrap;
    text-decoration: none;
}
.qeza-translate { display: inline-flex; align-items: center; padding: 0; }
.qeza-topbar .language-selector-wrapper { display: inline-flex; }
/* Block Liên hệ Topbar (menu module) */
.qeza-topbar-contact {
    display: inline-flex;
    align-items: center;
    gap: 18px;
}
.qeza-topbar-contact a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #fff;
    font-size: 12px;
    white-space: nowrap;
    text-decoration: none;
}
.qeza-topbar-contact a:hover { color: var(--qeza-gold); }
.qeza-topbar-contact .fa { font-size: 12px; }
/* Block Mạng xã hội (menu module) */
.qeza-topbar-social {
    display: inline-flex;
    align-items: center;
    gap: 14px;
}
.qeza-topbar-social .qeza-topbar-social-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #fff;
    font-size: 12px;
    white-space: nowrap;
    text-decoration: none;
}
.qeza-topbar-social .qeza-topbar-social-link:hover { color: var(--qeza-gold); }
.qeza-topbar-social .fa { font-size: 14px; }
/* Topbar: dropdown ngôn ngữ dạng nút bấm, mở ra menu popup */
.qeza-topbar .custom-lang-dropdown { position: relative; }
.qeza-topbar .custom-lang-dropdown .lang-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    font-size: 11px;
    line-height: 1;
    padding: 5px 10px;
    border-radius: 20px;
    cursor: pointer;
    white-space: nowrap;
}
.qeza-topbar .custom-lang-dropdown .lang-toggle:hover {
    background: rgba(255, 255, 255, 0.22);
}
.qeza-topbar .custom-lang-dropdown .lang-toggle .lang-flag-emoji {
    font-size: 14px;
    line-height: 1;
    display: inline-block;
}
.qeza-topbar .custom-lang-dropdown .lang-toggle .lang-label { color: #fff; }
.qeza-topbar .custom-lang-dropdown .lang-toggle .fa-angle-down { color: #fff; margin-left: 2px; }
/* Menu popup mặc định ẩn, chỉ hiện khi .open */
.qeza-topbar .custom-lang-dropdown .lang-menu {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    left: auto;
    min-width: 150px;
    margin: 0;
    padding: 6px 0;
    background: #fff;
    border: 1px solid var(--qeza-border, #dfe7ef);
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(2, 38, 78, 0.18);
    z-index: 1100;
    list-style: none;
}
.qeza-topbar .custom-lang-dropdown .lang-menu.open { display: block; }
.qeza-topbar .custom-lang-dropdown .lang-menu li {
    padding: 7px 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #0a315d;
    background: transparent;
    font-family: inherit;
    font-size: 12px;
    line-height: 1.4;
    cursor: pointer;
    white-space: nowrap;
}
.qeza-topbar .custom-lang-dropdown .lang-menu li:hover {
    background: #eef5ff;
}
.qeza-topbar .custom-lang-dropdown .lang-menu li[aria-selected="true"] {
    background: #eaf2f8;
    font-weight: 700;
}
.qeza-topbar .custom-lang-dropdown .lang-menu .lang-flag-emoji {
    font-size: 15px;
    display: inline-block;
}

.qeza-header-main { height: 82px; border-bottom: 0; }
.qeza-header-inner { height: 82px; min-height: 82px; gap: 32px; }
.qeza-search {
    width: 370px;
    height: 38px;
    border-color: #cbd7e2;
}
.qeza-search-input { padding: 0 14px; font-size: 12px; }

.qeza-section-nav { background: linear-gradient(90deg, #07457d, #063766); }
.qeza-mainnav,
.qeza-menu,
.qeza-menu-list { width: 100%; }
.qeza-menu-list {
    min-height: 46px;
    flex-wrap: nowrap;
    justify-content: space-between;
}
.qeza-menu-item { display: flex; align-items: stretch; }
.qeza-menu-link,
.qeza-menu-link:visited {
    min-height: 46px;
    padding: 0 10px;
    color: #fff !important;
    font-family: "Be Vietnam Pro", Arial, "Helvetica Neue", sans-serif;
    font-size: 11px;
    line-height: 1.25;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}
/* Desktop-only hover/active (mobile có rule riêng trong @media 992px) */
@media (min-width: 993px) {
    .qeza-menu-link:hover,
    .qeza-menu-link:focus,
    .qeza-menu-item.active > .qeza-menu-link {
        color: #fff !important;
        background: rgba(255, 255, 255, .08);
        border-bottom-color: var(--qeza-gold);
    }
}

/* Hero */
.qeza-hero {
    display: block;
    height: 500px;
    min-height: 500px;
    overflow: hidden;
    background-position: center 58%;
}
.qeza-hero-overlay {
    height: 100%;
    padding: 0;
    background: linear-gradient(90deg, rgba(237, 249, 255, .94), rgba(237, 249, 255, .62) 36%, transparent 64%);
}
.qeza-hero-content {
    max-width: 1160px;
    padding-top: 72px;
}
.qeza-hero h1 {
    max-width: 900px;
    margin: 0;
    color: var(--qeza-text);
    font-size: clamp(36px, 3.45vw, 48px);
    line-height: 1.18;
    letter-spacing: -.04em;
}
.qeza-hero p {
    margin: 14px 0 22px;
    color: #304c66;
    font-size: 17px;
}
.qeza-hero-cta { gap: 12px; }
.qeza-btn {
    min-height: 44px;
    padding: 0 22px;
    border: 1px solid transparent;
    border-radius: 5px;
    gap: 10px;
    font-size: 13px;
}
.qeza-btn-primary { color: #fff !important; background: var(--qeza-navy); }
.qeza-btn-primary:hover,
.qeza-btn-primary:focus { color: #fff; background: var(--qeza-blue); }
.qeza-btn-secondary { color: var(--qeza-navy); background: #fff; border-color: #cdd8e4; }
.qeza-btn-small { min-height: 36px; padding: 0 13px; font-size: 11px; }

/* Quick links and sections */
.qeza-quicklinks { margin-top: -76px; }
.qeza-quicklinks-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    padding: 8px;
    overflow: hidden;
}
.qeza-quick-card {
    min-height: 190px;
    padding: 28px 24px;
    border-right: 1px solid #e0e7ee;
    border-radius: 0;
}
.qeza-quick-card:last-child { border-right: 0; }
.qeza-quick-icon { margin-bottom: 18px; font-size: 55px; }
.qeza-quick-card h3 { margin: 0 0 12px; font-size: 15px; }
.qeza-quick-card p { font-size: 12px; line-height: 1.55; }

#opportunities { padding: 58px 0; scroll-margin-top: 54px; }
.qeza-section { padding: 58px 0; }
.qeza-section-head { margin-bottom: 30px; }
.qeza-section-title {
    font-size: 24px;
    line-height: 1.3;
    text-transform: uppercase;
}
.qeza-opp-grid { gap: 15px; }
.qeza-opp-card { box-shadow: 0 6px 16px rgba(7, 48, 89, .06); }
.qeza-opp-body { padding: 18px 15px 22px; }
.qeza-opp-body h3 { margin-bottom: 10px; }

/* Planning map */
#planning { padding-top: 30px; background: #fbfdff; scroll-margin-top: 54px; }
.qeza-anchor-alias { display: block; height: 0; scroll-margin-top: 54px; }
.qeza-map-frame {
    min-height: 0;
    padding: 0;
    border: 0;
    background: transparent;
}
.qeza-map-card {
    position: relative;
    overflow: hidden;
    border: 1px solid #cfdbe6;
    border-radius: 10px;
    background: #eaf5fb;
    box-shadow: 0 8px 24px rgba(8, 48, 89, .07);
}
.qeza-map-frame .qeza-map-preview {
    width: 100%;
    min-height: 475px;
    object-fit: cover;
}
.qeza-map-layers {
    position: absolute;
    top: 22px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 200px;
    padding: 17px;
    border: 1px solid #cdd8e1;
    border-radius: 8px;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 10px 30px rgba(5, 47, 96, .1);
    color: #2e4f6e;
    font-size: 11px;
}
.qeza-map-layers strong { color: var(--qeza-text); font-size: 12px; text-transform: uppercase; }
.qeza-map-layers label { display: flex; align-items: center; gap: 8px; margin: 0; font-weight: 400; }
.qeza-map-layers input { margin: 0; accent-color: var(--qeza-navy); opacity: 1; }
.qeza-map-zoom {
    position: absolute;
    right: 20px;
    bottom: 20px;
    display: grid;
    overflow: hidden;
    border: 1px solid #cbd7e2;
    border-radius: 5px;
}
.qeza-map-zoom span {
    display: grid;
    width: 35px;
    height: 35px;
    place-items: center;
    background: #fff;
    color: var(--qeza-navy);
    font-size: 20px;
}
.qeza-map-zoom span + span { border-top: 1px solid #d9e0e7; }

/* News */
#news { scroll-margin-top: 54px; }
.qeza-news-heading-row { position: relative; }
.qeza-news-search {
    position: absolute;
    top: 0;
    right: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    width: 220px;
    height: 38px;
    padding: 0 11px;
    border: 1px solid #d2dce5;
    border-radius: 6px;
    background: #fff;
    color: #7d8d9a;
}
.qeza-news-search input {
    min-width: 0;
    flex: 1;
    border: 0;
    outline: 0;
    color: var(--qeza-text);
    font-size: 11px;
}
.qeza-news-grid { gap: 16px; }
.qeza-news-body { padding: 14px 14px 12px; }
.qeza-news-meta { margin-bottom: 10px; font-size: 9px; }
.qeza-news-text { display: none; }
.qeza-news-foot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 13px;
    font-size: 10px;
}
.qeza-news-share { display: inline-flex; gap: 18px; color: var(--qeza-navy); }
.qeza-news-empty { padding: 30px; text-align: center; color: var(--qeza-muted); }
.qeza-news-card[hidden],
.qeza-news-empty[hidden] { display: none !important; }

/* Sustainability and CTA */
.qeza-green-overlay {
    min-height: 210px;
    padding: 0;
    background: linear-gradient(90deg, #eefaff, rgba(238, 250, 255, .92) 44%, rgba(238, 250, 255, .12) 78%);
}
.qeza-green-content {
    display: flex;
    min-height: 210px;
    max-width: 1160px;
    flex-direction: column;
    justify-content: center;
}
.qeza-green-content h2 { margin: 0 0 14px; line-height: 1.3; }
.qeza-green-content p { max-width: 650px; margin: 0; line-height: 1.6; }
.qeza-green-points { gap: 28px; margin-top: 22px; }
.qeza-green-points li { display: flex; align-items: center; gap: 8px; padding-left: 0; color: var(--qeza-text); font-size: 11px; }
.qeza-green-points li::before { display: none; }
.qeza-green-points em { color: #2f8c7d; font-size: 25px; }

.qeza-cta { margin: 0; }
#investor-cta { padding: 18px 0; }
.qeza-cta-inner {
    display: grid;
    grid-template-columns: auto 1fr auto auto;
    min-height: 110px;
    gap: 24px;
    padding: 20px 40px;
    border-radius: 9px;
    background: linear-gradient(90deg, #073e77, #05305f);
}
.qeza-cta-icon { font-size: 48px; }
.qeza-cta-text h2 { margin-bottom: 6px; text-transform: uppercase; }
.qeza-cta-text p { color: #d8e5f1; font-size: 11px; }
.qeza-cta-btn { margin-left: 0; }
.qeza-cta .qeza-btn-gold { color: #102e50; background: var(--qeza-gold); }
.qeza-cta .qeza-btn-outline { color: #fff; border-color: #88a4c4; background: transparent; }

/* Footer */
.qeza-footer { padding: 0; background: linear-gradient(100deg, #073b72, #042951); }
#footer.qeza-footer {
    min-height: 0;
    padding: 0;
    border-top: 0;
    border-bottom: 0;
    background-color: #042951;
    background-image: linear-gradient(100deg, #073b72, #042951);
}
.qeza-footer-grid {
    grid-template-columns: 1.35fr .8fr 1.05fr .65fr;
    gap: 50px;
    padding: 42px 0 32px;
}
.qeza-footer-logo-img { height: 40px; width: auto; }
.qeza-footer-intro { color: #cfdeeb; font-size: 10.5px; line-height: 1.7; }
.qeza-footer h4 { margin: 0 0 14px; color: #fff; font-size: 12px; }
.qeza-footer .panel-body { padding: 0; }
.qeza-footer .panel-body > h3 { display: none; }
.qeza-footer .panel-body section { margin: 0; }
.qeza-footer ul { margin: 0; padding: 0; list-style: none; }
.qeza-footer li { margin: 0; }
.qeza-footer a { color: #e4edf5; font-size: 10px; line-height: 1.85; }
#footer.qeza-footer,
#footer.qeza-footer a { color: #e4edf5; }
#footer.qeza-footer h3 { margin: 0; color: inherit; font-size: inherit; letter-spacing: 0; text-transform: none; }
#footer.qeza-footer .panel-body > h3 { display: none; }
#footer.qeza-footer p { color: #cfdeeb; }
#footer.qeza-footer .menu li,
#footer.qeza-footer .menu li:nth-child(2n + 1),
#footer.qeza-footer .menu li:nth-child(2n) {
    display: block;
    width: 100%;
    padding: 0;
}
#footer.qeza-footer .menu li a {
    padding: 0;
    border-bottom: 0;
    white-space: normal;
}
#footer.qeza-footer .menu li a::before { display: none; }
.qeza-footer .company_info li { display: flex; align-items: flex-start; gap: 6px; color: #cfdeeb; font-size: 10px; line-height: 1.7; }
.qeza-footer .qrcode,
.qeza-footer .barcode { display: none !important; }
.qeza-footer .counter li { display: flex; justify-content: space-between; gap: 12px; color: #cfdeeb; font-size: 10px; line-height: 1.7; }
.qeza-footer-bottom { border-top: 1px solid rgba(255, 255, 255, .12); text-align: center; }
.qeza-footer.qeza-root + .footerNav2 { display: none; }

/* Chatbot avatar from the reference */
.qeza-chatbot-fab {
    right: 16px;
    bottom: 58px;
    width: 120px;
    min-height: 0;
    height: auto;
    padding: 0;
    gap: 0;
    flex-direction: column;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}
.qeza-chatbot-fab:hover,
.qeza-chatbot-fab:focus { background: transparent; }
.qeza-chatbot-fab-avatar {
    width: 120px;
    height: 100px;
    border-radius: 0;
    object-fit: cover;
    object-position: top center;
    background: transparent;
    filter: drop-shadow(0 4px 12px rgba(0, 39, 83, .3));
}
.qeza-chatbot-fab-label {
    display: block;
    padding: 5px 12px;
    border-radius: 8px;
    background: linear-gradient(135deg, #2196f3, #1976d2);
    box-shadow: 0 3px 10px rgba(0, 39, 83, .25);
    color: #fff;
    font-size: 11px;
    text-align: center;
}

@media (max-width: 1050px) {
    .qeza-logo img, .qeza-logo-img { height: 42px; }
    .qeza-site-name { font-size: 17px; }
    .qeza-site-desc { font-size: 11px; max-width: 220px; }
    .qeza-menu-link { padding: 0 5px; font-size: 9px; }
    .qeza-opp-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .qeza-news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .qeza-footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .qeza-cta-inner { grid-template-columns: auto 1fr; text-align: left; }
}

@media (max-width: 992px) {
    .qeza-shell,
    .section-body.qeza-root .qeza-shell {
        width: min(calc(100% - 28px), 620px);
        max-width: 620px;
        padding-left: 0;
        padding-right: 0;
    }
    .qeza-topbar { height: auto; }
    .qeza-topbar-inner { height: auto; padding: 7px 0; align-items: flex-start; }
    .qeza-topbar-left { display: grid; gap: 5px; }
    .qeza-topbar-right { gap: 0; }
    .qeza-topbar-social { display: none !important; }
    .qeza-topbar .custom-lang-dropdown .lang-toggle { padding: 4px 8px; font-size: 10px; }
    .qeza-topbar .custom-lang-dropdown .lang-toggle .lang-flag-emoji { font-size: 13px; }
    .qeza-header-main,
    .qeza-header-inner { height: 70px; min-height: 70px; }
    .qeza-logo img, .qeza-logo-img { height: 36px; }
    .qeza-site-name { font-size: 15px; }
    .qeza-site-desc { display: none; }
    .qeza-brand { line-height: 1.2; }
    .qeza-section-nav { background: transparent; }
    .qeza-section-nav > .qeza-shell { width: 100%; max-width: none; }
    .qeza-menu-link,
    .qeza-menu-link:visited { min-height: 0; padding: 11px 0; color: var(--qeza-text) !important; font-size: 11px; }
    .qeza-hero { height: 440px; min-height: 440px; background-position: 62% center; }
    .qeza-hero-overlay { background: rgba(239, 248, 254, .82); }
    .qeza-hero-content { padding-top: 50px; }
    .qeza-hero h1 { font-size: 34px; }
    .qeza-hero p { max-width: 390px; font-size: 14px; }
    .qeza-quicklinks { margin-top: -54px; }
    /* Hero slider responsive */
    .qeza-hero-slider { --qeza-hero-h: 440px; }
    .qeza-hero-slider .qeza-hero-overlay { background: rgba(239, 248, 254, .82); }
    .qeza-hero-slider .qeza-hero-content { padding-top: 50px; }
    .qeza-hero-slider .qeza-hero-content h1 { font-size: 34px; }
    .qeza-hero-slider .qeza-hero-content p { max-width: 390px; font-size: 14px; }
    .qeza-hero-prev, .qeza-hero-next { width: 36px; height: 36px; font-size: 22px; }
    .qeza-quicklinks-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 5px; }
    .qeza-quick-card { min-height: 160px; padding: 20px 12px; border-bottom: 1px solid #e0e7ee; }
    .qeza-quick-card:nth-child(2) { border-right: 0; }
    .qeza-quick-icon { margin-bottom: 12px; font-size: 42px; }
    .qeza-quick-card h3 { font-size: 12px; }
    .qeza-quick-card p { font-size: 10px; }
    .qeza-opp-grid { grid-template-columns: 1fr; }
    .qeza-map-frame .qeza-map-preview { min-height: 350px; object-position: 28% center; }
    .qeza-map-layers { position: static; width: auto; border: 0; border-top: 1px solid #dce5ed; border-radius: 0; }
    .qeza-map-zoom { top: 20px; bottom: auto; }
    .qeza-news-heading-row { padding-bottom: 48px; }
    .qeza-news-search { top: 45px; left: 0; right: 0; width: 100%; }
    .qeza-news-grid { grid-template-columns: 1fr; }
    .qeza-green-banner-img .qeza-green-overlay { background: rgba(239, 250, 255, .82); }
    .qeza-green-points { gap: 14px; }
    .qeza-cta-inner { grid-template-columns: 1fr; padding: 24px; text-align: left; }
    .qeza-footer-grid { grid-template-columns: 1fr; gap: 26px; }
    .qeza-chatbot-fab { right: 10px; bottom: 10px; width: 100px; }
    .qeza-chatbot-fab-avatar { width: 100px; height: 84px; }
    .qeza-chatbot-fab-label { padding: 4px 8px; font-size: 9px; }
}

/* ===== Tối ưu mobile thuần ≤480px (hero ngắn, quicklinks compact) ===== */
@media (max-width: 480px) {
    /* Hero slider — giảm chiều cao mobile, override inline --qeza-hero-h */
    .qeza-hero-slider,
    .qeza-hero,
    .qeza-hero-slide { --qeza-hero-h: 340px !important; min-height: 340px !important; height: 340px !important; }
    .qeza-hero-overlay { min-height: 340px; }
    .qeza-hero-content { padding: 30px 0; }
    .qeza-hero-content h1 { font-size: 26px; }
    .qeza-hero-content p { font-size: 13px; max-width: 100%; }
    .qeza-hero-overlay { padding: 24px 0; background: rgba(239, 248, 254, .9); }
    /* Quick links — overlap ít hơn, compact */
    .qeza-quicklinks { margin-top: -36px; }
    .qeza-quicklinks-grid { grid-template-columns: repeat(2, 1fr); gap: 1px; padding: 0; }
    .qeza-quick-card { min-height: 130px; padding: 14px 10px; }
    .qeza-quick-icon { font-size: 32px; margin-bottom: 8px; }
    .qeza-quick-card h3 { font-size: 11px; }
    .qeza-quick-card p { font-size: 9.5px; line-height: 1.3; }
    /* News section */
    .qeza-opp-body { padding: 8px; }
    .qeza-news-tab { font-size: 11px; padding: 6px 10px; }
    .qeza-news-item { padding: 8px; }
    .qeza-news-img { height: 130px; }
    .qeza-news-title { font-size: 12.5px; min-height: 34px; }
    /* Map */
    .qeza-map-frame .qeza-map-preview { min-height: 220px; }
    /* Green banner */
    .qeza-green-banner-img .qeza-green-content h2 { font-size: 20px; }
    .qeza-green-banner-img .qeza-green-overlay > .qeza-shell { padding-top: 24px; padding-bottom: 24px; }
    /* CTA */
    .qeza-cta-inner { padding: 20px 16px; }
    .qeza-cta-title { font-size: 20px; }
    .qeza-cta-desc { font-size: 13px; }
    /* Section headings */
    .qeza-section-head h2, .qeza-news-heading { font-size: 18px; }
}

/* ============ News Tabs (block news theo chuyên mục) ============ */
/* Ẩn/hiện slider vs grid theo data-slider */
.qeza-news-tabs[data-slider="1"] .qeza-news-grid { display: none !important; }
.qeza-news-tabs:not([data-slider="1"]) .qeza-news-swiper { display: none !important; }
.qeza-news-tabs { margin-top: 10px; }
.qeza-news-tabs-nav {
    display: flex; gap: 6px; flex-wrap: wrap;
    border-bottom: 2px solid var(--qeza-border);
    margin-bottom: 20px;
}
.qeza-news-tab {
    background: transparent; border: 0; border-bottom: 3px solid transparent;
    padding: 10px 18px; cursor: pointer;
    font-size: 13px; font-weight: 700; color: var(--qeza-muted);
    text-transform: uppercase; letter-spacing: 0.3px;
    margin-bottom: -2px; transition: all .15s;
}
.qeza-news-tab:hover { color: var(--qeza-blue); }
.qeza-news-tab.active { color: var(--qeza-navy); border-bottom-color: var(--qeza-gold); }
.qeza-news-tab-panel { display: none; }
.qeza-news-tab-panel.active { display: block; }
/* Item */
.qeza-news-item { display: block; text-decoration: none; color: var(--qeza-text); }
.qeza-news-img { overflow: hidden; border-radius: 8px; background: var(--qeza-bg-soft); margin-bottom: 8px; }
.qeza-news-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s; }
.qeza-news-item:hover .qeza-news-img img { transform: scale(1.06); }
.qeza-news-meta {
    display: flex; justify-content: space-between; align-items: center;
    font-size: 10.5px; color: var(--qeza-muted); margin-bottom: 4px;
}
.qeza-news-date { color: var(--qeza-blue); font-weight: 700; }
.qeza-news-hits .fa { margin-right: 2px; }
.qeza-news-title {
    font-size: 13.5px; font-weight: 600; line-height: 1.4; margin: 0;
    min-height: 38px; overflow: hidden;
}
.qeza-news-item:hover .qeza-news-title { color: var(--qeza-blue); }
/* Grid mode (không slider) */
.qeza-news-grid {
    display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 18px;
}
@media (max-width: 1024px) { .qeza-news-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 768px) { .qeza-news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .qeza-news-grid { grid-template-columns: 1fr; } }
/* Swiper mode */
.qeza-news-swiper { padding-bottom: 30px; }
.qeza-news-swiper .swiper-pagination { bottom: 0; }
.qeza-news-swiper .swiper-pagination-bullet-active { background: var(--qeza-gold); }
.qeza-news-swiper .swiper-slide { height: auto; }

/* ============================================================
   QEZA News Category Page (viewcat_page)
   Layout: masthead + portal-grid (content + sidebar)
   ============================================================ */

/* Masthead - banner xanh full-width với breadcrumb + H1 + mô tả.
   Background-image được ghi đè inline bởi template (theo ảnh chuyên mục).
   Width/margin breakout được set bởi JS (qeza-news-has-masthead). */
.qeza-news-masthead {
    min-height: 170px;
    color: #fff;
    background-color: var(--qeza-navy);
    background-image: linear-gradient(90deg, rgba(2, 42, 84, .96), rgba(6, 87, 143, .74)),
                      url('../images/qeza/hero-quang-ninh.png');
    background-size: cover;
    background-position: center 56%;
    display: flex;
    align-items: center;
    padding-block: 28px;
    /* box-sizing border-box để width từ JS bao gồm padding */
    box-sizing: border-box;
}
.qeza-news-masthead-inner {
    width: min(1160px, calc(100% - 48px));
    max-width: 1160px;
    margin-left: auto;
    margin-right: auto;
}
.qeza-news-breadcrumb {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 16px;
    color: #dbeaf7;
    font-size: 12px;
}
.qeza-news-breadcrumb a { color: #dbeaf7; }
.qeza-news-breadcrumb a:hover { color: #fff; }
.qeza-news-breadcrumb i { font-size: 10px; color: var(--qeza-gold); }
.qeza-news-masthead h1 {
    margin: 0;
    font-size: clamp(27px, 3vw, 40px);
    text-transform: uppercase;
    line-height: 1.2;
    color: #fff;
}
.qeza-news-masthead p {
    max-width: 720px;
    margin: 12px 0 0;
    color: #d9e8f4;
    font-size: 14px;
    line-height: 1.6;
}

/* News page wrapper */
.qeza-news-page {
    padding-block: 32px 62px;
}

/* Portal grid: main content + sidebar */
.qeza-portal-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 34px;
    align-items: start;
}

/* Category heading - thanh ngang với dấu gạch */
.qeza-category-heading {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 0 0 22px;
}
.qeza-category-heading h2 {
    margin: 0;
    color: #222d38;
    font-size: 21px;
    text-transform: uppercase;
    white-space: nowrap;
    font-weight: 700;
}
.qeza-category-heading::after {
    content: "";
    height: 1px;
    flex: 1;
    background: #d5dee5;
}

/* Lead news - bài nổi bật đầu trang */
.qeza-lead-news {
    border-bottom: 1px solid #d9e2e9;
    padding: 0 0 26px;
    margin-bottom: 8px;
}
.qeza-lead-news > a {
    display: block;
    overflow: hidden;
}
.qeza-lead-news img {
    width: 100%;
    aspect-ratio: 1.9;
    object-fit: cover;
}
.qeza-lead-news h2 {
    margin: 16px 0 10px;
    color: #122f50;
    font-size: 26px;
    line-height: 1.35;
    font-weight: 700;
}
.qeza-lead-news h2 a { color: inherit; }
.qeza-lead-news h2 a:hover { color: var(--qeza-blue); }
.qeza-lead-news .qeza-article-meta,
.qeza-lead-news h2,
.qeza-lead-news > p:not(.text-right) {
    padding-left: 4px;
    padding-right: 4px;
}
.qeza-lead-news p {
    margin: 0;
    color: #526778;
    font-size: 14px;
    line-height: 1.7;
}

/* Article meta - ngày, lượt xem, chia sẻ */
.qeza-article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 22px;
    margin: 10px 0;
    color: #778795;
    font-size: 13px;
    align-items: center;
}
.qeza-article-meta i {
    margin-right: 6px;
    color: var(--qeza-navy);
    font-size: 15px;
}
.qeza-article-meta .qeza-share {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-top: 4px;
}
.qeza-share-btn {
    width: 30px; height: 30px;
    display: inline-grid;
    place-items: center;
    border-radius: 50%;
    color: #fff !important;
    background: var(--qeza-blue);
    font-size: 13px;
    transition: background 0.2s;
}
.qeza-article-meta .qeza-share-btn i { color: #fff !important; }
.qeza-share-btn:hover { background: var(--qeza-navy); }
.qeza-share-btn:last-child { background: #1da1f2; }

/* Article list - danh sách bài dạng hàng ngang */
.qeza-article-list { display: grid; }
.qeza-article-row {
    display: grid;
    grid-template-columns: 235px 1fr;
    gap: 20px;
    padding: 22px 0;
    border-bottom: 1px solid #dce4ea;
}
.qeza-article-row > a {
    display: block;
    overflow: hidden;
}
.qeza-article-row img {
    width: 100%;
    height: 148px;
    object-fit: cover;
    border-radius: 3px;
}
.qeza-article-row h3 {
    margin: 0 0 8px;
    color: #153657;
    font-size: 18px;
    line-height: 1.4;
    font-weight: 700;
}
.qeza-article-row h3 a { color: inherit; }
.qeza-article-row h3 a:hover { color: var(--qeza-blue); }
.qeza-article-row p {
    margin: 0;
    color: #5d7080;
    font-size: 13px;
    line-height: 1.6;
}

/* Pagination */
.qeza-pagination {
    display: flex;
    gap: 7px;
    justify-content: center;
    margin-top: 30px;
    flex-wrap: wrap;
}
.qeza-pagination a,
.qeza-pagination strong {
    min-width: 35px;
    height: 35px;
    padding: 0 10px;
    display: inline-grid;
    place-items: center;
    border: 1px solid #cbd8e3;
    color: #31516d;
    font-size: 12px;
    text-decoration: none;
}
.qeza-pagination a:hover,
.qeza-pagination strong {
    color: #fff !important;
    border-color: var(--qeza-navy);
    background: var(--qeza-navy);
}

/* Related (other news) */
.qeza-news-related {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e0e6ec;
}
.qeza-news-related h3 {
    margin: 0 0 14px;
    font-size: 15px;
    color: var(--qeza-navy);
    text-transform: uppercase;
    font-weight: 700;
}
.qeza-related-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px 24px;
}
.qeza-related-list li {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 0;
    font-size: 13px;
    color: #24394c;
}
.qeza-related-list li i { color: var(--qeza-teal); }
.qeza-related-list li a { color: #24394c; }
.qeza-related-list li a:hover { color: var(--qeza-blue); }
.qeza-related-list li time { color: #87939d; font-size: 11px; }

/* Sidebar layout RIGHT (col-md-6) - style lại block mặc định NukeViet.
   Sidebar bắt đầu ngang hàng với nội dung bài viết (bên dưới masthead banner),
   không bị kẹt ngang hàng với masthead full-width. */
.qeza-news-has-masthead .col-sm-8.col-md-6 {
    margin-top: 202px; /* chiều cao masthead (170) + gap article (32) */
}
@media (max-width: 767px) {
    .qeza-news-has-masthead .col-sm-8.col-md-6 { margin-top: 0; }
}

.qeza-news-page-wrap .col-sm-8.col-md-6 .well,
#body .col-sm-8.col-md-6 .well {
    border: 1px solid #d9e2e9;
    background: #fff;
    border-radius: 0;
    padding: 0;
    margin-bottom: 24px;
    box-shadow: none;
}
.qeza-news-page-wrap .col-sm-8.col-md-6 .well > h3,
#body .col-sm-8.col-md-6 .well > h3 {
    margin: 0;
    padding: 12px 15px;
    color: #fff;
    background: var(--qeza-teal);
    font-size: 16px;
    text-transform: uppercase;
    font-weight: 700;
}
.qeza-news-page-wrap .col-sm-8.col-md-6 .well > h3 a,
#body .col-sm-8.col-md-6 .well > h3 a { color: #fff; }
.qeza-news-page-wrap .col-sm-8.col-md-6 .well > p,
#body .col-sm-8.col-md-6 .well > p {
    padding: 15px;
    margin: 0;
    color: #526778;
    font-size: 13px;
    line-height: 1.6;
}
.qeza-news-page-wrap .col-sm-8.col-md-6 .panel,
#body .col-sm-8.col-md-6 .panel {
    border: 1px solid #d9e2e9;
    background: #fff;
    border-radius: 0;
    margin-bottom: 24px;
    box-shadow: none;
}
.qeza-news-page-wrap .col-sm-8.col-md-6 .panel-primary > .panel-heading,
#body .col-sm-8.col-md-6 .panel-primary > .panel-heading {
    background: var(--qeza-teal);
    border-color: var(--qeza-teal);
    color: #fff;
    text-transform: uppercase;
    font-size: 16px;
    font-weight: 700;
    border-radius: 0;
    padding: 12px 15px;
}
.qeza-news-page-wrap .col-sm-8.col-md-6 .panel .panel-body,
#body .col-sm-8.col-md-6 .panel .panel-body { padding: 4px 15px; }
.qeza-news-page-wrap .col-sm-8.col-md-6 .panel ul li,
#body .col-sm-8.col-md-6 .panel ul li {
    padding: 10px 0;
    border-bottom: 1px solid #e1e7ec;
    font-size: 13px;
    line-height: 1.4;
}
.qeza-news-page-wrap .col-sm-8.col-md-6 .panel ul li:last-child,
#body .col-sm-8.col-md-6 .panel ul li:last-child { border-bottom: 0; }
.qeza-news-page-wrap .col-sm-8.col-md-6 .panel ul li a,
#body .col-sm-8.col-md-6 .panel ul li a {
    color: #24394c;
    font-weight: 600;
}
.qeza-news-page-wrap .col-sm-8.col-md-6 .panel ul li a:hover,
#body .col-sm-8.col-md-6 .panel ul li a:hover { color: var(--qeza-blue); }
.qeza-news-page-wrap .col-sm-8.col-md-6 .panel ul li img,
#body .col-sm-8.col-md-6 .panel ul li img { border-radius: 3px; }

/* Visually hidden (cho label accessibility) */
.visually-hidden {
    position: absolute !important;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Responsive */
@media (max-width: 1050px) {
    .qeza-article-row { grid-template-columns: 200px 1fr; }
}
@media (max-width: 991px) {
    .qeza-related-list { grid-template-columns: 1fr; }
}
@media (max-width: 767px) {
    .qeza-news-masthead { min-height: 150px; padding-block: 20px; }
    .qeza-news-masthead p { font-size: 12px; }
    .qeza-article-row { grid-template-columns: 130px 1fr; gap: 14px; }
    .qeza-article-row img { height: 105px; }
    .qeza-article-row h3 { font-size: 15px; }
    .qeza-article-row p { display: none; }
    .qeza-lead-news h2 { font-size: 22px; }
    .qeza-category-heading h2 { font-size: 17px; white-space: normal; }
}

/* ============================================================
   QEZA News viewcat - đồng bộ khung với menu qeza-shell
   Layout main-right.tpl dùng Bootstrap .row + col-md-18/col-md-6,
   bọc lại trong qeza-shell (1160px, padding 24px) để thẳng hàng
   với qeza-section-nav và footer.
   ============================================================ */

/* Row chứa 2 cột (main + sidebar RIGHT) - giới hạn width shell */
.section-body.qeza-root > .wraper > section > .container > .row {
    max-width: 1160px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 24px;
    padding-right: 24px;
}
/* Row header/footer giữ nguyên full-width nếu có */
.section-body.qeza-root > .wraper > section > .container > .row:first-child:has([HEADER]) {
    max-width: none;
    padding: 0;
}

/* Columns không padding (đã có padding shell) */
.section-body.qeza-root > .wraper > section > .container > .row > .col-md-18,
.section-body.qeza-root > .wraper > section > .container > .row > .col-md-6 {
    padding-left: 0;
    padding-right: 0;
}
/* Gap giữa 2 cột */
.section-body.qeza-root > .wraper > section > .container > .row > .col-md-6 {
    padding-left: 32px;
}

/* Responsive */
@media (max-width: 1050px) {
    .section-body.qeza-root > .wraper > section > .container > .row {
        padding-left: 14px;
        padding-right: 14px;
    }
}
@media (max-width: 991px) {
    .section-body.qeza-root > .wraper > section > .container > .row > .col-md-6 {
        padding-left: 0;
        padding-top: 24px;
    }
}

/* ============================================================
   QEZA News sidebar (block global.qeza_news_sidebar)
   Hiển thị trong position RIGHT: search + tin mới + lookup links
   ============================================================ */
.qeza-sidebar-qeza { margin-bottom: 24px; }

.qeza-side-search {
    display: flex;
    height: 42px;
    margin-bottom: 18px;
    background: #f0f2f4;
}
.qeza-side-search input {
    min-width: 0;
    flex: 1;
    border: 0;
    outline: 0;
    background: transparent;
    padding: 0 13px;
    font-size: 12px;
    color: #24394c;
}
.qeza-side-search button {
    width: 44px;
    border: 0;
    background: var(--qeza-navy);
    color: #fff;
    cursor: pointer;
    font-size: 14px;
}
.qeza-side-search button:hover { background: var(--qeza-dark-navy); }

.qeza-side-block {
    margin-bottom: 24px;
    border: 1px solid #d9e2e9;
    background: #fff;
}
.qeza-side-block > h2 {
    margin: -1px;
    padding: 12px 15px;
    color: #fff;
    background: var(--qeza-teal);
    text-align: center;
    font-size: 16px;
    text-transform: uppercase;
    font-weight: 700;
}
.qeza-side-headlines {
    max-height: 340px;
    overflow: auto;
    padding: 2px 15px;
}
.qeza-side-headlines a {
    display: block;
    padding: 13px 0;
    border-bottom: 1px solid #e1e7ec;
    color: #24394c;
    font-weight: 700;
    font-size: 13px;
    line-height: 1.4;
}
.qeza-side-headlines a:last-child { border-bottom: 0; }
.qeza-side-headlines a:hover { color: var(--qeza-blue); }
.qeza-side-headlines time {
    display: block;
    margin-top: 4px;
    color: #87939d;
    font-size: 11px;
    font-weight: 400;
}

.qeza-lookup-title {
    margin: 0 0 12px;
    color: #263746;
    font-size: 18px;
    text-transform: uppercase;
    font-weight: 700;
}
.qeza-lookup-links { display: grid; gap: 7px; }
.qeza-lookup-links a {
    min-height: 56px;
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 10px 13px;
    color: #fff;
    background: #07527d;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.35;
    text-decoration: none;
}
.qeza-lookup-links a:hover { background: var(--qeza-navy); }
.qeza-lookup-links i {
    width: 34px;
    height: 34px;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    border-radius: 5px;
    color: var(--qeza-teal);
    background: #fff;
    font-size: 17px;
}

/* ============================================================
   QEZA News Detail page (detail.tpl)
   Layout: article-header meta + H1, article-lead, featured-img,
   body-content, share, comment, related
   ============================================================ */

/* Main article container */
.qeza-detail-main {
    background: #fff;
    padding: 0;
}
/* Khi trang detail có masthead, article cần khoảng cách với banner */
.qeza-news-has-masthead .qeza-detail-main {
    margin-top: 32px;
}

/* Article header: meta + title */
.qeza-article-header {
    margin-bottom: 24px;
    border-bottom: 1px solid #dce4ea;
    padding-bottom: 18px;
}
.qeza-article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 22px;
    margin: 0 0 14px;
    color: #778795;
    font-size: 13px;
    align-items: center;
}
.qeza-article-meta i {
    margin-right: 6px;
    color: var(--qeza-navy);
    font-size: 15px;
}
.qeza-article-meta a { color: #778795; }
.qeza-article-meta a:hover { color: var(--qeza-blue); }
.qeza-article-actions {
    margin-left: auto;
    display: inline-flex;
    gap: 14px;
}
.qeza-article-actions a {
    color: #526778;
    font-size: 15px;
}
.qeza-article-actions a:hover { color: var(--qeza-blue); }

/* H1 title */
.qeza-detail-title {
    font-size: clamp(24px, 2.8vw, 34px);
    color: #102e50;
    line-height: 1.3;
    margin: 0;
    font-weight: 700;
}

/* Sapo / lead - highlight box */
.qeza-article-lead {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.65;
    color: #233b54;
    margin: 0 0 28px;
    padding: 16px 20px;
    background: #f0f6fb;
    border-left: 4px solid var(--qeza-blue);
    border-radius: 0 8px 8px 0;
}

/* Featured image */
.qeza-article-featured {
    width: 100%;
    margin: 28px 0 32px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(0, 39, 83, .08);
}
.qeza-article-featured img {
    width: 100%;
    max-height: 480px;
    object-fit: cover;
    display: block;
}
.qeza-article-featured figcaption {
    padding: 10px 14px;
    font-size: 12px;
    color: #576a7b;
    background: #f7fafc;
    text-align: center;
    font-style: italic;
    border-top: 1px solid #e2eaf0;
}

/* Body content */
.qeza-article-body {
    font-size: 15px;
    line-height: 1.85;
    color: #33485c;
    margin: 0 0 32px;
}
.qeza-article-body p {
    margin-bottom: 18px;
    text-align: justify;
}
.qeza-article-body h2,
.qeza-article-body h3 {
    color: #102e50;
    font-weight: 700;
    margin: 24px 0 12px;
}
.qeza-article-body h2 { font-size: 20px; }
.qeza-article-body h3 { font-size: 18px; }
.qeza-article-body img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    margin: 14px 0;
}
.qeza-article-body a { color: var(--qeza-blue); }
.qeza-article-body a:hover { text-decoration: underline; }
.qeza-article-body ul,
.qeza-article-body ol { margin: 0 0 18px 22px; }
.qeza-article-body blockquote {
    border-left: 4px solid var(--qeza-teal);
    padding: 10px 18px;
    margin: 18px 0;
    color: #526778;
    background: #f7fafc;
    font-style: italic;
}
.qeza-article-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 18px 0;
}
.qeza-article-body table th,
.qeza-article-body table td {
    border: 1px solid #dce4ea;
    padding: 8px 12px;
}

/* Files */
.qeza-detail-files {
    margin-bottom: 24px;
    border: 1px solid #dce4ea;
    border-radius: 6px;
    overflow: hidden;
}
.qeza-detail-files-head {
    padding: 10px 14px;
    background: #f0f6fb;
    border-bottom: 1px solid #dce4ea;
    color: #102e50;
}
.qeza-detail-files-body { padding: 4px 14px; }
.qeza-detail-file {
    padding: 10px 0;
    border-bottom: 1px solid #e8eef4;
    font-size: 13px;
}
.qeza-detail-file:last-child { border-bottom: 0; }

/* Author/source */
.qeza-detail-author {
    margin-bottom: 18px;
    color: #526778;
    font-size: 13px;
}

/* Copyright */
.qeza-detail-copyright {
    padding: 12px 16px;
    margin-bottom: 18px;
    background: #f0f6fb;
    border-left: 3px solid var(--qeza-teal);
    border-radius: 0 4px 4px 0;
    color: #526778;
    font-size: 13px;
    font-style: italic;
}

/* Keywords */
.qeza-detail-keywords {
    padding: 12px 0;
    margin-bottom: 18px;
    border-top: 1px solid #e8eef4;
    border-bottom: 1px solid #e8eef4;
    color: #526778;
    font-size: 13px;
}
.qeza-detail-keywords i { color: var(--qeza-teal); }
.qeza-detail-keywords a {
    color: var(--qeza-blue);
    margin: 0 2px;
}

/* Rating */
.qeza-detail-rating {
    padding: 14px 0;
    margin-bottom: 18px;
    border-bottom: 1px solid #e8eef4;
}

/* Share buttons */
.qeza-detail-share {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    padding: 14px 0;
    margin-bottom: 24px;
    border-bottom: 1px solid #e8eef4;
}
.qeza-detail-share .social-share-label {
    color: #526778;
    font-weight: 600;
    font-size: 13px;
}
.qeza-detail-share .social-share-label i { color: var(--qeza-teal); margin-right: 4px; }
.qeza-detail-share .social-share-buttons {
    display: inline-flex;
    gap: 8px;
}
.qeza-detail-share .social-share-facebook,
.qeza-detail-share .social-share-twitter {
    padding: 6px 14px;
    border-radius: 4px;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    border: 0;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.qeza-detail-share .social-share-facebook { background: #1877f2; }
.qeza-detail-share .social-share-twitter { background: #1da1f2; }
.qeza-detail-share .social-share-facebook:hover { background: #0d65d9; }
.qeza-detail-share .social-share-twitter:hover { background: #0c8fcc; }

/* Comment */
.qeza-detail-comment {
    margin-bottom: 24px;
}
.qeza-detail-comment > h3 {
    font-size: 16px;
    text-transform: uppercase;
    color: #102e50;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--qeza-teal);
    display: inline-block;
}
.qeza-detail-comment > h3 i { color: var(--qeza-teal); margin-right: 6px; }

/* Related box */
.qeza-detail-related-box {
    margin-top: 30px;
    padding-top: 24px;
    border-top: 2px solid #e0e8f0;
}
.qeza-related-section {
    margin-bottom: 24px;
}
.qeza-related-section > h3 {
    font-size: 16px;
    text-transform: uppercase;
    color: #102e50;
    margin-bottom: 14px;
    font-weight: 700;
}
/* Grid 3 cột có ảnh thumb (giống static related-grid) */
.qeza-related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    padding: 0;
    margin: 0;
}
.qeza-related-card {
    background: #fff;
    border: 1px solid #e8eef4;
    border-radius: 6px;
    overflow: hidden;
    transition: box-shadow 0.2s, transform 0.2s;
}
.qeza-related-card:hover {
    box-shadow: 0 6px 18px rgba(0, 39, 83, .08);
    transform: translateY(-2px);
}
.qeza-related-thumb {
    display: block;
    aspect-ratio: 1.7;
    overflow: hidden;
    background: #f0f2f4;
}
.qeza-related-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s;
}
.qeza-related-card:hover .qeza-related-thumb img {
    transform: scale(1.05);
}
.qeza-related-card h4 {
    margin: 0;
    padding: 10px 12px 4px;
    font-size: 13.5px;
    font-weight: 600;
    line-height: 1.4;
}
.qeza-related-card h4 a {
    color: #24394c;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.qeza-related-card h4 a:hover { color: var(--qeza-blue); }
.qeza-related-card time {
    display: block;
    padding: 0 12px 12px;
    color: #87939d;
    font-size: 11px;
}
.qeza-related-card time i { margin-right: 4px; color: var(--qeza-teal); }
.qeza-related-more {
    text-align: right;
    margin-top: 14px;
}
.qeza-related-more a {
    color: var(--qeza-blue);
    font-size: 13px;
    font-weight: 600;
}

/* Responsive */
@media (max-width: 767px) {
    .qeza-article-meta { gap: 12px; font-size: 11px; }
    .qeza-article-actions { margin-left: 0; width: 100%; }
    .qeza-detail-title { font-size: 22px; }
    .qeza-article-lead { font-size: 14px; padding: 12px 14px; }
    .qeza-article-featured img { max-height: 320px; }
    .qeza-related-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
    .qeza-related-grid { grid-template-columns: 1fr; }
}

/* ============ Banner video (block chuẩn NukeViet) ============ */
.nv-block-banners .banners-video,
.banners-video {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    object-fit: cover;
}
.nv-block-banners .banners-video-link {
    display: block;
}
