:root {
    --emd-primary: #005331;
    --emd-primary-hover: #003E24;
    --emd-accent: #D97706;
    --emd-accent-hover: #B86405;
    --emd-accent-ink: #B45309;
    --emd-accent-light: #FCD34D;
    --emd-ink: #16231D;
    --emd-muted: #55645D;
    --emd-line: #E1E8E4;
    --emd-surface: #FFFFFF;
    --emd-surface-alt: #F4F7F5;
    --emd-tint: #E6F0EB;
    --emd-radius: 12px;
    --emd-shadow: 0 4px 16px rgba(0, 62, 36, .08);
    --emd-shadow-hover: 0 12px 28px rgba(0, 62, 36, .15);
    --emd-ease: 220ms cubic-bezier(.2, .7, .3, 1);
    --font-heading: "Be Vietnam Pro", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-body: "Inter", "Be Vietnam Pro", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: var(--emd-surface);
    color: var(--emd-ink);
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.7;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

/* Tiêu đề dùng Be Vietnam Pro, nội dung/số liệu dùng Inter (số canh cột đều nhau). */
h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6,
.navbar, .emd-logo-text, .btn, .eyebrow, .section-head h2 {
    font-family: var(--font-heading);
}

.price-amount, td, th, .license-code, .table, .benefit-table {
    font-variant-numeric: tabular-nums;
}

/* Nội dung chi tiết sản phẩm & trang nội dung: ép dùng font hệ thống, bỏ font nội tuyến từ Admin. */
.product-detail-content,
.content-page-body {
    font-size: 16px;
    line-height: 1.65;
}

.product-detail-content *,
.content-page-body * {
    font-family: inherit !important;
}

/* Canh đều hai mép cho các đoạn văn trong nội dung bài viết chi tiết (quy chuẩn chung).
   Chỉ áp cho <p>; tiêu đề, chú thích ảnh, nút và danh sách gạch đầu dòng giữ nguyên căn lề. */
.product-detail-content p,
.feature-group-body p,
.product-expand-text p {
    text-align: justify;
    text-justify: inter-word;
}
/* Chú thích dưới ảnh luôn căn giữa, danh sách gạch đầu dòng luôn căn trái. */
.product-screenshot-card figcaption { text-align: center; }
.product-detail-content ul,
.product-detail-content ol,
.product-detail-content li { text-align: left; }
/* Ngoại lệ: bài viết tự đặt canh đều (style="text-align: justify;" trên <ul> hoặc khối <div> bao ngoài)
   thì đoạn văn và các dòng danh sách bên trong canh đều 2 bên trên mọi kích thước màn hình. */
.product-detail-content [style*="justify"] p,
.product-detail-content [style*="justify"] li { text-align: justify; text-justify: inter-word; }
.product-detail-content [style*="justify"] :is(h2, h3, h4) { text-align: left; }
/* Màn hình nhỏ: căn trái để tránh khoảng trắng thưa bất thường giữa các từ. */
@media (max-width: 575.98px) {
    .product-detail-content p,
    .feature-group-body p,
    .product-expand-text p {
        text-align: left;
    }
}

/* Khung ảnh chụp giao diện phần mềm trong bài viết chi tiết sản phẩm */
.product-screenshot-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin: 1rem 0 1.75rem;
}
.product-screenshot-card {
    position: relative;
    margin: 0;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(15, 23, 42, .07);
    transition: transform var(--emd-ease), box-shadow var(--emd-ease);
}
.product-screenshot-card img {
    display: block;
    width: 100%;
    height: auto;
    border-bottom: 1px solid #eef2f6;
    cursor: zoom-in;
}
/* Badge gợi ý phóng to, hiện khi rê chuột vào ảnh */
.product-screenshot-card::after,
.product-expand-box figure.product-screenshot-card::after {
    content: "\01F50D Phóng to";
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(15, 23, 42, .78);
    color: #fff;
    font-size: .75rem;
    font-weight: 600;
    padding: .25rem .55rem;
    border-radius: 999px;
    opacity: 0;
    transform: translateY(-4px);
    transition: opacity var(--emd-ease), transform var(--emd-ease);
    pointer-events: none;
}
.product-screenshot-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 26px rgba(15, 23, 42, .12);
}
.product-screenshot-card:hover::after { opacity: 1; transform: translateY(0); }
.product-screenshot-card figcaption {
    text-align: center;
    font-size: .85rem;
    color: #64748b;
    padding: .6rem .75rem;
    line-height: 1.45;
}

/* Hộp thông tin mở rộng mô hình kết hợp (cuối bài viết) */
.product-expand-box {
    display: grid;
    grid-template-columns: 1fr minmax(300px, 50%);
    align-items: center;
    gap: 1.5rem;
    margin-top: 2rem;
    padding: 1.5rem;
    background: var(--emd-tint, #e6f4ef);
    border: 1px solid #cbe6da;
    border-radius: 14px;
}
.product-expand-text h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--emd-primary, #064e3b);
    margin: 0 0 .5rem;
    display: flex;
    align-items: center;
    gap: .5rem;
}
.product-expand-text p { margin: 0; color: var(--emd-ink, #1e293b); }
.product-expand-box .product-screenshot-card { box-shadow: 0 6px 18px rgba(6, 78, 59, .12); }

/* Nhóm tính năng chi tiết (số thứ tự + tiêu đề đậm + mô tả) */
.feature-groups { display: flex; flex-direction: column; gap: 1rem; margin: 1rem 0 1.75rem; }
.feature-group {
    display: grid;
    grid-template-columns: 44px 1fr;
    gap: 1rem;
    align-items: start;
    padding: 1.1rem 1.25rem;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-left: 4px solid var(--emd-primary, #064e3b);
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(15, 23, 42, .05);
}
.feature-group-no {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--emd-tint, #e6f4ef);
    color: var(--emd-primary, #064e3b);
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.15rem;
}
.feature-group-body h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--emd-ink, #1e293b);
    margin: .25rem 0 .4rem;
}
.feature-group-body p { margin: 0; color: var(--emd-muted, #475569); line-height: 1.6; }
@media (max-width: 575.98px) {
    .feature-group { grid-template-columns: 36px 1fr; gap: .75rem; padding: 1rem; }
    .feature-group-no { width: 36px; height: 36px; font-size: 1rem; }
}

@media (max-width: 767.98px) {
    .product-screenshot-grid { gap: 1rem; }
    .product-expand-box { grid-template-columns: 1fr; padding: 1.25rem; }
    .product-screenshot-card::after { opacity: 1; transform: translateY(0); }
}

/* ===== Lightbox phóng to ảnh giao diện (trang chi tiết sản phẩm) ===== */
.emd-lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 2.5rem 1rem;
    background: rgba(15, 23, 42, .9);
    opacity: 0;
    visibility: hidden;
    transition: opacity .2s ease;
}
.emd-lightbox.is-open { opacity: 1; visibility: visible; }
.emd-lightbox-img {
    max-width: 92vw;
    max-height: 82vh;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .5);
    background: #fff;
}
.emd-lightbox-caption {
    color: #fff;
    font-size: .95rem;
    text-align: center;
    max-width: 92vw;
    line-height: 1.5;
}
.emd-lightbox-btn {
    position: absolute;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: rgba(255, 255, 255, .14);
    color: #fff;
    cursor: pointer;
    border-radius: 50%;
    transition: background var(--emd-ease);
    -webkit-tap-highlight-color: transparent;
}
.emd-lightbox-btn:hover { background: rgba(255, 255, 255, .28); }
.emd-lightbox-close { top: 18px; right: 18px; width: 44px; height: 44px; font-size: 1.6rem; line-height: 1; }
.emd-lightbox-nav { top: 50%; transform: translateY(-50%); width: 48px; height: 48px; font-size: 1.8rem; line-height: 1; }
.emd-lightbox-prev { left: 18px; }
.emd-lightbox-next { right: 18px; }
.emd-lightbox-nav[hidden] { display: none; }
@media (max-width: 575.98px) {
    .emd-lightbox-nav { width: 40px; height: 40px; font-size: 1.5rem; }
    .emd-lightbox-prev { left: 8px; }
    .emd-lightbox-next { right: 8px; }
    .emd-lightbox-close { top: 10px; right: 10px; }
}

main {
    flex: 1;
}

h1, h2, h3, h4, h5 {
    color: var(--emd-ink);
    font-weight: 700;
    line-height: 1.35;
}

a {
    color: var(--emd-primary);
    text-underline-offset: 3px;
    transition: color var(--emd-ease);
}

a:hover {
    color: var(--emd-primary-hover);
}

[id] {
    scroll-margin-top: 96px;
}

:focus-visible {
    outline: 3px solid var(--emd-accent);
    outline-offset: 2px;
}

/* Nút bấm */
.btn {
    border-radius: 8px;
    font-weight: 600;
    transition: background-color var(--emd-ease), border-color var(--emd-ease), color var(--emd-ease), transform var(--emd-ease), box-shadow var(--emd-ease);
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-emd {
    --bs-btn-color: #fff;
    --bs-btn-bg: var(--emd-primary);
    --bs-btn-border-color: var(--emd-primary);
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: var(--emd-primary-hover);
    --bs-btn-hover-border-color: var(--emd-primary-hover);
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: var(--emd-primary-hover);
    --bs-btn-active-border-color: var(--emd-primary-hover);
    --bs-btn-disabled-color: #fff;
    --bs-btn-disabled-bg: var(--emd-primary);
    --bs-btn-disabled-border-color: var(--emd-primary);
}

.btn-outline-emd {
    --bs-btn-color: var(--emd-primary);
    --bs-btn-border-color: var(--emd-primary);
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: var(--emd-primary);
    --bs-btn-hover-border-color: var(--emd-primary);
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: var(--emd-primary-hover);
    --bs-btn-active-border-color: var(--emd-primary-hover);
}

/* Chữ tối trên nền cam để đạt độ tương phản dễ đọc. */
.btn-cta {
    --bs-btn-color: #1C1204;
    --bs-btn-bg: var(--emd-accent);
    --bs-btn-border-color: var(--emd-accent);
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: var(--emd-accent-hover);
    --bs-btn-hover-border-color: var(--emd-accent-hover);
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: var(--emd-accent-hover);
    --bs-btn-active-border-color: var(--emd-accent-hover);
}

/* Header */
.site-header {
    border-bottom: 1px solid var(--emd-line);
    background: #fff;
}

.site-header .navbar {
    padding: .75rem 0;
}

.emd-logo {
    display: inline-flex;
    align-items: center;
    gap: .65rem;
    margin-right: 1.5rem;
    color: var(--emd-primary);
    text-decoration: none;
}

.emd-logo:hover {
    color: var(--emd-primary-hover);
}

.site-header .nav-link {
    padding: .5rem .8rem !important;
    color: var(--emd-ink);
    font-weight: 500;
}

.site-header .nav-link:hover,
.site-header .nav-link.active,
.site-header .nav-link.show {
    color: var(--emd-primary);
}

.site-header .nav-link.active {
    font-weight: 700;
}

.site-header .dropdown-menu {
    min-width: 280px;
    padding: .5rem;
    border: 1px solid var(--emd-line);
    border-radius: var(--emd-radius);
    box-shadow: var(--emd-shadow-hover);
}

.site-header .dropdown-item {
    display: flex;
    align-items: center;
    gap: .6rem;
    padding: .5rem .65rem;
    border-radius: 8px;
}

.site-header .dropdown-item i {
    color: var(--emd-primary);
}

.site-header .dropdown-item:hover,
.site-header .dropdown-item:focus {
    background: var(--emd-tint);
    color: var(--emd-primary-hover);
}

.site-header .dropdown-item:active {
    background: var(--emd-primary);
    color: #fff;
}

/* Bố cục section */
.section {
    padding: 4.5rem 0;
}

.section-alt {
    background: var(--emd-surface-alt);
}

.section-head {
    max-width: 100%;
    width: 100%;
    margin: 0 auto 2.75rem;
    text-align: center;
}

.section-head h2,
.section-head p {
    margin-inline: auto;
    text-align: center;
}

.section-head h2 {
    font-size: clamp(1.6rem, 3vw, 2.15rem);
}

.section-head p {
    margin-bottom: 0;
    color: var(--emd-muted);
}

.eyebrow {
    display: block;
    margin-bottom: .5rem;
    color: var(--emd-accent-ink);
    font-size: .85rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

/* Hero */
.hero {
    padding: 2.5rem 0;
    background: var(--emd-primary);
    color: #fff;
}

.hero h1 {
    color: #fff;
    font-size: clamp(1.9rem, 4vw, 3rem);
    line-height: 1.28;
}

.hero .lead {
    color: rgba(255, 255, 255, .88);
    font-size: 1.1rem;
}

.hero .eyebrow {
    color: var(--emd-accent-light);
}

.hero-panel {
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: var(--emd-radius);
    background: var(--emd-primary-hover);
}

.hero-panel-item {
    display: flex;
    gap: 1rem;
    padding: 1rem 0;
}

.hero-panel-item + .hero-panel-item {
    border-top: 1px solid rgba(255, 255, 255, .15);
}

.hero-panel-item i {
    color: var(--emd-accent-light);
    font-size: 1.6rem;
}

.hero-panel-item h2 {
    margin-bottom: .2rem;
    color: #fff;
    font-size: 1.05rem;
}

.hero-panel-item p {
    margin: 0;
    color: rgba(255, 255, 255, .8);
    font-size: .92rem;
}

.page-hero {
    padding: 3.5rem 0;
    background: var(--emd-primary);
    color: #fff;
}

.page-hero h1 {
    color: #fff;
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
}

.page-hero p {
    max-width: 720px;
    margin-bottom: 0;
    color: rgba(255, 255, 255, .88);
}

.page-hero .eyebrow {
    color: var(--emd-accent-light);
}

.page-hero a:not(.btn) {
    color: #fff;
}

/* Card */
.emd-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 1.75rem;
    border: 1px solid var(--emd-line);
    border-radius: var(--emd-radius);
    background: var(--emd-surface);
    box-shadow: var(--emd-shadow);
    transition: transform var(--emd-ease), box-shadow var(--emd-ease), border-color var(--emd-ease);
}

.emd-card-hover:hover {
    border-color: rgba(0, 83, 49, .35);
    box-shadow: var(--emd-shadow-hover);
    transform: translateY(-4px);
}

.emd-card h3 {
    font-size: 1.2rem;
}

.emd-card p {
    color: var(--emd-muted);
}

.icon-tile {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: none;
    width: 3.25rem;
    height: 3.25rem;
    margin-bottom: 1rem;
    border-radius: 10px;
    background: var(--emd-tint);
    color: var(--emd-primary);
    font-size: 1.5rem;
    object-fit: cover;
}

.icon-tile.accent {
    background: #FDF0DF;
    color: var(--emd-accent-ink);
}

.check-list {
    margin: 0 0 1.25rem;
    padding: 0;
    list-style: none;
}

.check-list li {
    position: relative;
    margin-bottom: .45rem;
    padding-left: 1.6rem;
}

.check-list li::before {
    content: "\2713";
    position: absolute;
    top: 0;
    left: 0;
    color: var(--emd-primary);
    font-weight: 800;
}

.card-action {
    margin-top: auto;
}

/* Năng lực kép */
.dual-grid {
    position: relative;
}

.dual-plus {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    background: var(--emd-accent);
    color: #1C1204;
    font-size: 1.6rem;
    font-weight: 800;
}

/* Bảng và quy trình */
.benefit-table {
    margin: 0;
}

.benefit-table th {
    background: var(--emd-primary);
    color: #fff;
}

.benefit-table td:first-child {
    font-weight: 600;
    white-space: nowrap;
}

.step-card {
    position: relative;
    height: 100%;
    padding: 1.75rem 1.5rem;
    border-top: 4px solid var(--emd-primary);
    border-radius: var(--emd-radius);
    background: #fff;
    box-shadow: var(--emd-shadow);
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    margin-bottom: .85rem;
    border-radius: 50%;
    background: var(--emd-accent);
    color: #1C1204;
    font-weight: 800;
}

.step-card h3 {
    font-size: 1.08rem;
}

.step-card p {
    margin: 0;
    color: var(--emd-muted);
    font-size: .95rem;
}

/* Form */
.form-panel {
    padding: 2rem;
    border: 1px solid var(--emd-line);
    border-radius: var(--emd-radius);
    background: #fff;
    box-shadow: var(--emd-shadow);
}

.form-label {
    margin-bottom: .3rem;
    font-weight: 600;
}

.form-control,
.form-select {
    padding: .6rem .8rem;
    border-color: #C8D3CD;
    border-radius: 8px;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--emd-primary);
    box-shadow: 0 0 0 .2rem rgba(0, 83, 49, .18);
}

.emd-hp {
    position: absolute;
    left: -9999px;
}

.contact-panel {
    height: 100%;
    padding: 2rem;
    border-radius: var(--emd-radius);
    background: var(--emd-primary);
    color: #fff;
}

.contact-panel h2,
.contact-panel h3 {
    color: #fff;
}

.contact-panel a {
    color: #fff;
}

.contact-row {
    display: flex;
    gap: .85rem;
    margin-bottom: 1rem;
}

.contact-row i {
    color: var(--emd-accent-light);
    font-size: 1.2rem;
}

/* Nội dung HTML của sản phẩm */
.rich-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.rich-content table {
    width: 100%;
    margin-bottom: 1rem;
}

.product-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 240px;
    border-radius: var(--emd-radius);
    background: var(--emd-primary-hover);
    color: var(--emd-accent-light);
    font-size: 6rem;
}

.product-visual img {
    width: 100%;
    height: auto;
    max-height: 340px;
    border-radius: var(--emd-radius);
    object-fit: cover;
}

/* Khung ảnh giao diện đại diện ở đầu trang chi tiết — bấm để phóng to (Lightbox) */
.product-hero .product-visual.has-image,
.product-visual.has-image {
    position: relative;
    min-height: 0;
    padding: 0;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, .25);
    border-radius: 12px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, .32);
    overflow: hidden;
}
.product-visual.has-image img {
    display: block;
    width: 100%;
    height: auto; /* giữ đúng tỉ lệ khi thẻ img có sẵn width/height (chống nhảy bố cục) */
    max-height: 360px;
    border-radius: 12px;
    object-fit: cover;
    object-position: top center;
    cursor: zoom-in;
}
/* Badge gợi ý phóng to cho ảnh Hero */
.product-visual.has-image::after {
    content: "\01F50D Phóng to";
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(15, 23, 42, .78);
    color: #fff;
    font-size: .75rem;
    font-weight: 600;
    padding: .25rem .55rem;
    border-radius: 999px;
    opacity: 0;
    transform: translateY(-4px);
    transition: opacity var(--emd-ease), transform var(--emd-ease);
    pointer-events: none;
}
.product-visual.has-image:hover::after { opacity: 1; transform: translateY(0); }
@media (max-width: 575.98px) {
    .product-visual.has-image::after { opacity: 1; transform: translateY(0); }
}

.sticky-panel {
    position: sticky;
    top: 96px;
}

/* CTA cuối trang */
.cta-band {
    padding: 3.5rem 0;
    background: var(--emd-primary-hover);
    color: #fff;
}

.cta-band h2 {
    color: #fff;
    font-size: clamp(1.4rem, 3vw, 1.9rem);
}

.cta-band p {
    margin: 0;
    color: rgba(255, 255, 255, .85);
}

/* Footer */
.site-footer {
    padding: 3.5rem 0 1.5rem;
    background: var(--emd-primary-hover);
    color: rgba(255, 255, 255, .82);
    font-size: .95rem;
}

.site-footer h2 {
    margin-bottom: 1rem;
    color: #fff;
    font-size: 1rem;
}

.site-footer a {
    color: rgba(255, 255, 255, .82);
    text-decoration: none;
}

.site-footer a:hover {
    color: var(--emd-accent-light);
    text-decoration: underline;
}

.site-footer ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-footer li {
    margin-bottom: .45rem;
}

.footer-bottom {
    margin-top: 2.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, .15);
    font-size: .875rem;
}

.error-page {
    display: flex;
    flex: 1;
    align-items: center;
    justify-content: center;
    padding: 3rem 1rem;
    text-align: center;
}

.error-code {
    color: var(--emd-primary);
    font-size: 5rem;
    font-weight: 800;
    line-height: 1;
}

@media (max-width: 991.98px) {
    /* Menu mobile: Header là sticky nên khung menu phải tự cuộn bên trong (17 sản phẩm dài hơn màn hình). */
    .site-header .navbar-collapse {
        margin-top: .75rem;
        max-height: calc(100vh - 72px);
        max-height: calc(100dvh - 72px);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
        padding-bottom: 24px;
    }

    /* Khi menu mở: nổi trên cụm nút liên hệ / lên đầu trang (.emd-fab, z-index 1050). */
    .site-header.nav-open {
        z-index: 1060;
    }

    .section {
        padding: 3.25rem 0;
    }

    .hero {
        padding: 3.5rem 0;
    }

    .sticky-panel {
        position: static;
    }

    .benefit-table td:first-child {
        white-space: normal;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition: none !important;
    }

    .btn:hover,
    .emd-card-hover:hover {
        transform: none;
    }
}

/* Logo */
.emd-logo-img {
    display: block;
    width: auto;
    height: 44px;
}

.emd-logo-text {
    display: block;
    line-height: 1.25;
}

.emd-logo-name {
    display: block;
    color: var(--emd-primary);
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: .06em;
}

.emd-logo-slogan {
    color: var(--emd-muted);
    font-size: .75rem;
    font-weight: 500;
}

/* Thu gọn logo và slogan để vừa Header trên điện thoại. */
@media (max-width: 575.98px) {
    .emd-logo {
        gap: .4rem;
        margin-right: .5rem;
    }

    .emd-logo-img {
        height: 40px;
    }

    .emd-logo-slogan {
        font-size: .65rem;
        white-space: nowrap;
    }

    .site-header .navbar-toggler {
        padding: .2rem .4rem;
        font-size: 1rem;
    }

    .site-header .btn-cta i {
        display: none;
    }
}

@media (max-width: 359.98px) {
    .emd-logo-slogan {
        display: none;
    }
}

/* Logo trùng màu nền Footer nên đặt trên ô trắng để nhìn thấy. */
.footer-logo {
    display: inline-flex;
    margin-bottom: 1rem;
    padding: .5rem;
    border-radius: 12px;
    background: #fff;
}

.footer-logo img {
    display: block;
    width: auto;
    height: 60px;
}

/* Header trang chi tiết phần mềm */
.product-hero {
    padding: 3.25rem 0 3.75rem;
}

.product-hero h1 {
    margin-bottom: .75rem;
    font-size: clamp(2rem, 4.5vw, 3rem);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -.01em;
}
/* Nhãn thương hiệu trên nền hero xanh đậm */
.product-hero .product-brand-label {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    margin-bottom: .7rem;
    font-size: .82rem;
    font-weight: 700;
    letter-spacing: .01em;
    color: #fff;
    background: rgba(255, 255, 255, .14);
    border: 1px solid rgba(255, 255, 255, .28);
    border-radius: 999px;
    padding: .2rem .65rem;
}
.product-hero .product-brand-label i { color: var(--emd-accent-light); }

.product-hero .product-tagline {
    max-width: 560px;
    color: rgba(255, 255, 255, .92);
    font-size: clamp(1.05rem, 2vw, 1.25rem);
    line-height: 1.6;
}

.product-hero .product-visual {
    min-height: 260px;
}

@media (max-width: 991.98px) {
    .product-hero {
        padding: 2.25rem 0 2.5rem;
    }

    .product-hero .product-visual {
        min-height: 160px;
        font-size: 4.25rem;
    }
}

/* Footer 4 cột */
.site-footer {
    padding: 3.5rem 0 0;
    background: var(--emd-primary-hover);
    color: rgba(255, 255, 255, .78);
    font-size: .92rem;
    line-height: 1.65;
}

.site-footer h2 {
    margin-bottom: 1rem;
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
}

.site-footer .footer-company-name {
    margin-bottom: .6rem;
    font-size: 1.1rem;
    letter-spacing: .02em;
}

.footer-desc {
    max-width: 380px;
    margin-bottom: 1rem;
}

/* Dòng pháp lý (Giấy CNĐKDN): chữ thuần, không icon, đồng bộ màu với đoạn mô tả. */
.footer-license {
    margin: -.4rem 0 .5rem;
    font-size: .875rem;
}

.footer-address {
    display: flex;
    gap: .45rem;
    margin-bottom: .5rem;
    font-size: .875rem;
}

.footer-address i,
.footer-contact i {
    flex: none;
    color: var(--emd-accent-light);
}

.site-footer .footer-links li,
.site-footer .footer-contact li {
    margin-bottom: .55rem;
}

.site-footer .footer-links a {
    color: rgba(255, 255, 255, .78);
}

.site-footer .footer-links a:hover {
    color: var(--emd-accent-light);
}

.site-footer .footer-links .footer-more {
    color: var(--emd-accent-light);
    font-weight: 600;
}

.footer-contact li {
    display: flex;
    gap: .6rem;
}

.footer-contact a {
    color: #fff;
    font-weight: 500;
    white-space: nowrap;
}

.site-footer .footer-contact .footer-hotline {
    color: var(--emd-accent-light);
    font-size: 1.05rem;
    font-weight: 700;
}

.footer-social {
    display: flex;
    gap: .6rem;
    margin-top: 1.1rem;
}

.site-footer .footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.4rem;
    height: 2.4rem;
    border: 1px solid rgba(255, 255, 255, .3);
    border-radius: 50%;
    color: #fff;
    font-size: 1.05rem;
    text-decoration: none;
    transition: background-color var(--emd-ease), border-color var(--emd-ease);
}

.site-footer .footer-social a:hover,
.site-footer .footer-social a:focus-visible {
    border-color: var(--emd-accent);
    background: var(--emd-accent);
    color: #fff;
    text-decoration: none;
}

.site-footer .footer-social .footer-zalo {
    font-size: .68rem;
    font-weight: 700;
}

.footer-bank {
    margin: 1rem 0 0;
    font-size: .88rem;
}

.site-footer .footer-bottom {
    margin-top: 2.75rem;
    padding: 1.1rem 0;
    border-top: 1px solid rgba(255, 255, 255, .12);
    color: rgba(255, 255, 255, .6);
    font-size: .85rem;
    text-align: center;
}

@media (max-width: 767.98px) {
    .site-footer {
        padding-top: 2.75rem;
    }

    .site-footer .footer-bottom {
        margin-top: 2rem;
    }
}
/* Cụm liên hệ trên Header */
/* Chặn tràn ngang do lưới g-lg-5 khi trình duyệt có thanh cuộn dọc; clip vẫn giữ được position: sticky. */
main {
    overflow-x: clip;
}

/* Logo, Slogan và Menu không bị co hoặc xuống dòng khi Header chật. */
.emd-logo {
    flex: none;
}

.emd-logo-slogan {
    white-space: nowrap;
}

.header-contact {
    display: flex;
    flex: none;
    align-items: center;
    gap: .85rem;
    margin-right: .5rem;
    margin-left: auto;
}

.header-contact a {
    text-decoration: none;
    white-space: nowrap;
}

/* Icon tròn bên trái, căn giữa theo chiều dọc với cột "Liên hệ tư vấn" / số Hotline chính. */
.header-contact-hotline {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
}

.header-contact-icon {
    display: inline-flex;
    flex: none;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border: 1px solid #F3D3A8;
    border-radius: 50%;
    color: var(--emd-accent);
    font-size: 1rem;
    transition: background-color var(--emd-ease), color var(--emd-ease), border-color var(--emd-ease);
}

.header-contact-hotline:hover .header-contact-icon,
.header-contact-hotline:focus-visible .header-contact-icon {
    border-color: var(--emd-accent);
    background: var(--emd-accent);
    color: #fff;
}

/* Cột 1: nhãn ở dòng trên, số Hotline chính ở dòng dưới. */
.header-contact-text {
    display: flex;
    flex-direction: column;
    line-height: 1.25;
}

.header-contact-label {
    color: #4A5651;
    font-size: .75rem;
    font-weight: 500;
}

.header-contact-main {
    color: var(--emd-accent);
    font-size: .95rem;
    font-weight: 700;
}

.header-contact-hotline:hover .header-contact-main {
    text-decoration: underline;
}

/* Cột 2: 028.6676.2848 ở dòng trên, 0888.49.79.89 ở dòng dưới. */
.header-contact-others {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-left: .85rem;
    border-left: 1px solid var(--emd-line);
    line-height: 1.3;
}

.header-contact-others a {
    color: var(--emd-ink);
    font-size: .84rem;
    font-weight: 600;
}

.header-contact-others a:hover {
    color: var(--emd-primary);
    text-decoration: underline;
}

/* Desktop: cụm liên hệ đứng ngay sau Logo, Menu nằm bên phải và luôn 1 dòng. */
@media (min-width: 992px) {
    .site-header .nav-link {
        white-space: nowrap;
    }

    .header-contact {
        margin-right: 1rem;
        margin-left: 0;
        padding-left: 1rem;
        border-left: 1px solid var(--emd-line);
    }
}

/* Laptop 1200px - 1399px: thu khoảng đệm Menu để cụm liên hệ đầy đủ vẫn vừa 1 hàng. */
@media (min-width: 1200px) and (max-width: 1399.98px) {
    .site-header .nav-link {
        padding: .5rem .5rem !important;
    }

    .header-contact {
        gap: .7rem;
        margin-right: .5rem;
        padding-left: .75rem;
    }

    .header-contact-others {
        padding-left: .7rem;
    }
}

/* Desktop nhỏ 992px - 1199px: thu gọn Menu, ẩn cột 2 để vừa 1 hàng. */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .site-header .nav-link {
        padding: .5rem .4rem !important;
        font-size: .95rem;
    }

    .header-contact {
        margin-right: .5rem;
        padding-left: .75rem;
    }
}

@media (min-width: 992px) and (max-width: 1199.98px), (max-width: 767.98px) {
    .header-contact-others {
        display: none;
    }
}

/* Điện thoại: thu nhỏ icon và cột 1. */
@media (max-width: 575.98px) {
    .header-contact-hotline {
        gap: .4rem;
    }

    .header-contact-icon {
        width: 2rem;
        height: 2rem;
        font-size: .9rem;
    }

    .header-contact-label {
        font-size: .72rem;
    }

    .header-contact-main {
        font-size: .82rem;
    }
}

/* Điện thoại nhỏ: chỉ còn icon gọi Hotline chính; đủ 3 số nằm trong menu thu gọn. */
@media (max-width: 413.98px) {
    .header-contact-text {
        display: none;
    }
}

/* Hotline trong menu thu gọn trên điện thoại */
.mobile-hotline {
    display: grid;
    gap: .35rem;
    margin-top: .5rem;
    padding: .85rem .8rem .25rem;
    border-top: 1px solid var(--emd-line);
}

.mobile-hotline-label {
    color: var(--emd-muted);
    font-size: .8rem;
    font-weight: 600;
}

.mobile-hotline-label i {
    color: var(--emd-accent);
}

.mobile-hotline a {
    color: var(--emd-ink);
    font-weight: 600;
    text-decoration: none;
}

.mobile-hotline .mobile-hotline-main {
    color: var(--emd-accent);
    font-weight: 700;
}

.mobile-hotline small {
    margin-left: .35rem;
    color: var(--emd-muted);
    font-weight: 400;
}

/* ===== Danh mục & nhãn sản phẩm (nâng cấp 4 nhóm) ===== */
/* Phần đầu thẻ: bỏ icon, 3 dòng căn giữa (loại giải pháp → tên chức năng → badge thương hiệu) */
.product-card-header { display: flex; flex-direction: column; align-items: center; text-align: center; padding-bottom: 16px; margin-bottom: 16px; border-bottom: 1px solid #eef2f0; }
.product-cat-label { font-size: .78rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: #64748b; margin-bottom: 4px; }
.product-card-title { font-size: 1.2rem; font-weight: 700; color: #0f172a; line-height: 1.3; margin: 0 0 10px; }
/* Badge thương hiệu căn giữa, ôm gọn theo độ dài chữ */
.product-brand { display: inline-flex; align-items: center; justify-content: center; width: fit-content; margin: 0 auto; gap: .3rem; font-size: .78rem; font-weight: 600; color: var(--emd-primary); background: var(--emd-tint, #e6f4ef); border-radius: 999px; padding: 4px 12px; }
.product-brand i { font-size: .85em; }
/* Canh đều 2 bên cho mô tả & lợi ích trong thẻ (giữ tiêu đề 3 dòng căn giữa) — chỉ Desktop/Tablet */
@media (min-width: 768px) {
    .product-card > p,
    .product-card .check-list li { text-align: justify; text-justify: inter-word; }
}
@media (max-width: 767.98px) {
    .product-card > p,
    .product-card .check-list li { text-align: left; }
}
.product-badge { display: inline-flex; align-items: center; gap: .3rem; font-size: .72rem; font-weight: 700; letter-spacing: .03em; padding: .28rem .6rem; border-radius: 999px; white-space: nowrap; }
.product-badge.badge-ai { color: #fff; background: linear-gradient(135deg, #7c3aed, #2563eb); }
.product-badge.badge-free { color: #fff; background: var(--emd-primary); }
.product-badge.mb-3 { display: inline-flex; }

.category-nav { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; }
.category-chip { display: inline-flex; align-items: center; gap: .4rem; padding: .45rem .9rem; border: 1px solid var(--emd-line); border-radius: 999px; background: var(--emd-surface); color: var(--emd-ink); font-weight: 600; font-size: .9rem; text-decoration: none; transition: all var(--emd-ease); }
.category-chip:hover { border-color: var(--emd-primary); color: var(--emd-primary); box-shadow: var(--emd-shadow); }
.category-chip .category-count { background: var(--emd-tint); color: var(--emd-primary); border-radius: 999px; padding: 0 .5rem; font-size: .78rem; }

.category-block { scroll-margin-top: 90px; margin-top: 2.5rem; }
.category-block:first-child { margin-top: 0; }
.category-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-bottom: .6rem; margin-bottom: 1rem; border-bottom: 2px solid var(--emd-tint); scroll-margin-top: 90px; }
.category-head h2, .category-head h3 { margin: 0; color: var(--emd-primary); display: flex; align-items: center; gap: .5rem; }
.category-head i { color: var(--emd-accent); }

/* ===== Mega-menu header ===== */
.dropdown-mega { position: static; }
.mega-menu { padding: 1rem 1.25rem; border: 1px solid var(--emd-line); border-radius: var(--emd-radius); box-shadow: var(--emd-shadow-hover); }
/* Thân menu: khối chính "business" (trái) + cột nhóm bổ trợ (phải) tự co giãn. */
.mega-body { display: flex; gap: 1.5rem; align-items: flex-start; }
.mega-main { flex: 1 1 auto; min-width: 0; }
/* Sản phẩm nhóm business dàn đều 2 cột; 1-2 sản phẩm thì về 1 cột. */
.mega-products { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 .75rem; }
.mega-products.mega-products-single { grid-template-columns: 1fr; }
.mega-side { flex: 0 0 auto; display: flex; flex-direction: column; gap: .6rem; width: max-content; padding-left: 1.25rem; border-left: 1px solid #eef2f0; }
/* Tiêu đề nhóm: icon nhỏ + chữ cam đất đặc trưng. */
.mega-col-head { display: flex; align-items: center; gap: .45rem; font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--emd-accent-ink); padding: .25rem 12px .35rem; white-space: nowrap; }
.mega-col-head i { font-size: .9rem; line-height: 1; }
/* Tiêu đề nhóm cột trái: căn giữa phía trên 2 cột sản phẩm. */
.mega-col-head.mega-col-head-center { justify-content: center; width: 100%; }
.mega-list { list-style: none; padding: 0; margin: 0; }
/* Mỗi mục: 1 hàng duy nhất (icon + tên ngắn gọn), không thương hiệu / badge. */
.mega-menu .mega-list .dropdown-item { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 8px; font-size: .92rem; font-weight: 500; line-height: 1.35; color: #1e293b; white-space: nowrap; transition: background-color .15s ease, color .15s ease; }
.mega-menu .mega-list .mega-icon { flex: 0 0 18px; width: 18px; height: 18px; font-size: 18px; line-height: 1; color: var(--emd-primary); display: inline-flex; align-items: center; justify-content: center; }
.mega-menu .mega-list .mega-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.mega-menu .mega-list .dropdown-item:hover,
.mega-menu .mega-list .dropdown-item:focus-visible { background: #f0fdf4; color: #0f5132; }
.mega-menu .mega-list .dropdown-item:hover .mega-icon { color: #0f5132; }
/* Thanh đáy: 2 liên kết chữ dồn về trái – giữa, chừa trống bên phải để bổ sung sau. */
.mega-foot { display: flex; align-items: center; justify-content: flex-start; gap: 64px; padding: 14px 28px; background: #f8fafc; border-top: 1px solid #e2e8f0; margin: .75rem -.5rem -.5rem; border-radius: 0 0 calc(var(--emd-radius) - 1px) calc(var(--emd-radius) - 1px); }
.mega-menu .mega-foot .dropdown-item { display: inline-flex; align-items: center; gap: 6px; width: auto; line-height: 1.35; white-space: nowrap; transition: background-color .15s ease, color .15s ease, border-color .15s ease; }
.mega-menu .mega-foot .mega-foot-link { padding: 6px 0; background: none; color: #0f5132; font-size: .92rem; font-weight: 600; }
.mega-menu .mega-foot .mega-foot-link i { color: var(--emd-primary); }
.mega-menu .mega-foot .mega-foot-link:hover,
.mega-menu .mega-foot .mega-foot-link:focus-visible { background: none; color: #064e3b; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 767.98px) {
    .mega-foot { flex-direction: column; justify-content: center; gap: 8px; }
}

@media (min-width: 992px) {
    /* Khung vừa màn hình, không thanh cuộn thừa. */
    .dropdown-mega .mega-menu { left: auto; right: 0; width: 920px; max-width: min(920px, calc(100vw - 32px)); overflow: visible; }
    .dropdown-mega .mega-menu-narrow { width: min(460px, calc(100vw - 32px)); }
}
@media (max-width: 991.98px) {
    .mega-menu, .mega-menu-narrow { box-shadow: none; border: none; width: auto; padding: .25rem 0; }
    .mega-body { flex-direction: column; gap: .4rem; }
    .mega-products { grid-template-columns: 1fr; }
    .mega-side { border-left: none; padding-left: 0; width: auto; gap: .4rem; }
    .mega-col-head { padding-top: .5rem; }
    /* Mobile chỉ 1 cột: tiêu đề nhóm trái về canh trái thẳng hàng danh sách. */
    .mega-col-head.mega-col-head-center { justify-content: flex-start; }
    .mega-foot { margin: .5rem 0 0; padding: 12px 16px; border-radius: 8px; }
}

/* ===== CTA mở ứng dụng AI (trang chi tiết) ===== */
.ai-app-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.25rem 1.5rem; border-radius: var(--emd-radius); background: linear-gradient(135deg, rgba(124, 58, 237, .10), rgba(37, 99, 235, .10)); border: 1px solid rgba(124, 58, 237, .25); }
.ai-app-cta h3 { color: var(--emd-primary); display: flex; align-items: center; gap: .4rem; }
.ai-app-cta h3 i { color: #7c3aed; }
.ai-app-cta p { color: var(--emd-muted); }
.ai-app-cta .btn { white-space: nowrap; }
@media (max-width: 575.98px) {
    .ai-app-cta { flex-direction: column; align-items: stretch; text-align: center; }
    .ai-app-cta .btn { width: 100%; }
}

/* ===== Cụm liên hệ nổi + Nút lên đầu trang ===== */
.emd-fab { position: fixed; right: 18px; bottom: 18px; z-index: 1050; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.fab-btn { width: 52px; height: 52px; border: none; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 1.35rem; color: #fff; cursor: pointer; box-shadow: 0 6px 18px rgba(0,62,36,.28); transition: transform var(--emd-ease), opacity var(--emd-ease), background var(--emd-ease); }
.fab-btn:focus-visible { outline: 3px solid var(--emd-accent-light); outline-offset: 2px; }

/* Back-to-top: nhỏ gọn, nền trắng, viền mảnh, ẩn ở đầu trang */
.fab-top { width: 44px; height: 44px; align-self: center; background: #e6f4ef; color: #064e3b; border: 1.5px solid #064e3b; box-shadow: 0 4px 14px rgba(6, 78, 59, .16); opacity: 0; visibility: hidden; transform: translateY(12px) scale(.9); pointer-events: none; transition: transform var(--emd-ease), opacity var(--emd-ease), background var(--emd-ease), color var(--emd-ease); }
.fab-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0) scale(1); pointer-events: auto; }
.fab-top:hover { background: #064e3b; color: #ffffff; transform: translateY(-2px); }
.fab-top-icon { display: block; }

/* Nút liên hệ chính */
.fab-contact { position: relative; }
.fab-main { position: relative; background: var(--emd-accent); }
.fab-main:hover { background: var(--emd-accent-hover); transform: translateY(-2px); }
.fab-main.is-open { background: var(--emd-primary); }
.fab-pulse { position: absolute; inset: 0; border-radius: 50%; box-shadow: 0 0 0 0 rgba(217,119,6,.5); animation: fabPulse 2s infinite; }
.fab-main.is-open .fab-pulse { display: none; }
@keyframes fabPulse { 0% { box-shadow: 0 0 0 0 rgba(217,119,6,.5); } 70% { box-shadow: 0 0 0 14px rgba(217,119,6,0); } 100% { box-shadow: 0 0 0 0 rgba(217,119,6,0); } }
@media (prefers-reduced-motion: reduce) { .fab-pulse { animation: none; } }

/* Bảng 2 lựa chọn tư vấn */
.fab-panel { position: absolute; right: 0; bottom: calc(100% + 12px); min-width: 280px; width: 280px; background: #fff; border: 1px solid var(--emd-line); border-radius: 14px; box-shadow: var(--emd-shadow-hover); padding: .85rem; }
.fab-panel-head { font-family: var(--font-heading); font-weight: 700; color: var(--emd-primary); font-size: .95rem; margin-bottom: .6rem; display: flex; align-items: center; gap: .4rem; }
.fab-opt { border: 1px solid var(--emd-line); border-radius: 10px; padding: .55rem .65rem; }
.fab-opt + .fab-opt { margin-top: .5rem; }
.fab-opt-title { display: flex; align-items: center; gap: .4rem; font-weight: 600; font-size: .85rem; color: var(--emd-ink); margin-bottom: .45rem; }
.fab-opt-actions { display: flex; gap: .4rem; }
.fab-opt-actions a { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: .3rem; padding: .4rem .3rem; border-radius: 8px; font-size: .82rem; font-weight: 600; text-decoration: none; white-space: nowrap; }
.fab-opt-actions a:first-child { flex: 1.4; background: var(--emd-tint); color: var(--emd-primary); }
.fab-opt-actions a.fab-zalo { flex: 1; background: #e7f0ff; color: #0068ff; }
.fab-opt-actions a:hover { filter: brightness(.96); }

@media (max-width: 575.98px) {
    .emd-fab { right: 12px; bottom: 12px; gap: 10px; }
    .fab-btn { width: 48px; height: 48px; font-size: 1.2rem; }
    .fab-top { width: 38px; height: 38px; }
    .fab-panel { min-width: 0; width: min(88vw, 280px); }
}

/* Form đăng ký siêu gọn */
.quick-form-service { background: var(--emd-tint); color: var(--emd-primary); border-radius: 8px; padding: .5rem .75rem; font-size: .9rem; margin-bottom: 1rem; }
.quick-form-more > summary { cursor: pointer; color: var(--emd-primary); font-weight: 600; font-size: .9rem; list-style: none; }
.quick-form-more > summary::-webkit-details-marker { display: none; }
.quick-form-callback { background: #f0f7f3; border: 1px dashed var(--emd-primary); border-radius: 8px; padding: .6rem .75rem; font-size: .88rem; color: var(--emd-ink); }
.quick-form-callback a { color: var(--emd-primary); text-decoration: none; }

/* ===== Dải bằng chứng xã hội (trust strip) ===== */
.trust-strip { background: var(--emd-tint); border-top: 1px solid var(--emd-line); border-bottom: 1px solid var(--emd-line); padding: 1.25rem 0; }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem 1.5rem; }
.trust-item { display: flex; align-items: center; gap: .6rem; font-size: .92rem; color: var(--emd-ink); }
.trust-item i { font-size: 1.4rem; color: var(--emd-primary); flex-shrink: 0; }
.trust-item strong { color: var(--emd-primary); }
@media (max-width: 767.98px) { .trust-grid { grid-template-columns: 1fr; } }

/* ===== Khung xem trước giao diện (mockup) ===== */
.product-mockup { max-width: 920px; margin: 0 auto; border-radius: 14px; overflow: hidden; box-shadow: var(--emd-shadow-hover); border: 1px solid var(--emd-line); background: #fff; }
.mockup-bar { display: flex; align-items: center; gap: .4rem; padding: .6rem .9rem; background: #eef2f0; border-bottom: 1px solid var(--emd-line); }
.mockup-bar span { width: 11px; height: 11px; border-radius: 50%; background: #cbd5d0; }
.mockup-bar span:first-child { background: #ff5f56; } .mockup-bar span:nth-child(2) { background: #ffbd2e; } .mockup-bar span:nth-child(3) { background: #27c93f; }
.mockup-bar em { margin-left: .6rem; font-style: normal; font-size: .8rem; color: var(--emd-muted); }
.mockup-body { min-height: 260px; display: flex; align-items: center; justify-content: center; padding: 2rem 1.25rem; background: linear-gradient(135deg, var(--emd-surface-alt), #fff); }
.mockup-body > img { max-width: 100%; height: auto; border-radius: 8px; }
.mockup-illustration { text-align: center; max-width: 620px; }
.mockup-icon { display: inline-flex; width: 76px; height: 76px; align-items: center; justify-content: center; border-radius: 18px; background: var(--emd-primary); color: #fff; font-size: 2.1rem; margin-bottom: 1rem; }
.mockup-illustration h3 { color: var(--emd-primary); }
.mockup-chips { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; margin-top: 1rem; }
.mockup-chip { display: inline-flex; align-items: center; gap: .35rem; background: #fff; border: 1px solid var(--emd-line); border-radius: 999px; padding: .35rem .7rem; font-size: .82rem; box-shadow: var(--emd-shadow); }
.mockup-chip i { color: var(--emd-primary); }
.mockup-note { margin-top: 1rem; font-size: .82rem; color: var(--emd-muted); }

/* ===== Bảng gói giải pháp (pricing) ===== */
.pricing-card { position: relative; background: #fff; border: 1px solid var(--emd-line); border-radius: var(--emd-radius); padding: 1.5rem; display: flex; flex-direction: column; box-shadow: var(--emd-shadow); }
.pricing-card.featured { border: 2px solid var(--emd-primary); box-shadow: var(--emd-shadow-hover); }
.pricing-tag { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--emd-accent); color: #fff; font-size: .72rem; font-weight: 700; padding: .25rem .8rem; border-radius: 999px; }
.pricing-head { text-align: center; padding-bottom: 1rem; margin-bottom: 1rem; border-bottom: 1px solid var(--emd-line); }
.pricing-head h3 { color: var(--emd-primary); margin-bottom: .4rem; }
.price-amount { font-family: var(--font-heading); font-weight: 800; font-size: 1.5rem; color: var(--emd-ink); line-height: 1.2; }
.price-amount span { display: block; font-size: .85rem; font-weight: 500; color: var(--emd-muted); }
.pricing-sub { font-size: .85rem; color: var(--emd-muted); margin: .4rem 0 0; }
.pricing-card .check-list { flex: 1; margin-bottom: 1.25rem; }

/* ===== Accordion FAQ ===== */
.emd-accordion .accordion-item { border: 1px solid var(--emd-line); border-radius: 10px !important; margin-bottom: .6rem; overflow: hidden; }
.emd-accordion .accordion-button { font-family: var(--font-heading); font-weight: 600; color: var(--emd-ink); }
.emd-accordion .accordion-button:not(.collapsed) { color: var(--emd-primary); background: var(--emd-tint); box-shadow: none; }
.emd-accordion .accordion-button:focus { box-shadow: 0 0 0 .2rem rgba(0,83,49,.15); }
.emd-accordion .accordion-body { color: var(--emd-muted); line-height: 1.65; }

/* ===== Dòng liên hệ theo bộ phận ===== */
.section-contact { color: var(--emd-muted); font-size: .95rem; }
.section-contact a { color: var(--emd-primary); font-weight: 600; text-decoration: none; }
.section-contact .zalo-link { color: #0068ff; margin-left: .5rem; }
.footer-zalo-inline { color: #8fd0ff; text-decoration: none; font-size: .85rem; }

/* ===== Tinh chỉnh không ngắt dòng ===== */
.footer-phone-line { white-space: nowrap; }
@media (min-width: 768px) {
    .trust-item { font-size: .88rem; }
    .trust-item span { white-space: nowrap; }
    .trust-item i { font-size: 1.25rem; }
}

/* ===== CTA phụ trên thẻ sản phẩm & ghi chú hero ===== */
.card-detail-link { display: block; text-align: center; margin-top: .6rem; color: var(--emd-primary); font-weight: 600; font-size: .9rem; text-decoration: none; }
.card-detail-link:hover { text-decoration: underline; }
.product-hero .cta-note { color: rgba(255,255,255,.85); font-size: .92rem; display: flex; align-items: center; gap: .4rem; }
.product-hero .cta-note i { color: var(--emd-accent-light); }

/* ===== Ghi chú dưới form báo giá ===== */
.form-note { font-size: .85rem; color: var(--emd-muted); display: flex; align-items: flex-start; gap: .4rem; line-height: 1.5; }
.form-note i { color: var(--emd-primary); margin-top: .15rem; }
.form-panel.d-flex > form { flex: 1 1 auto; display: flex; flex-direction: column; }

/* ===== Tiêu đề/mô tả gọn 1 dòng trên desktop ===== */
@media (min-width: 992px) {
    .h2-oneline { white-space: nowrap; }
    .section-head .lead-oneline { white-space: nowrap; max-width: none; }
}

/* ===== Cân đối khối form liên hệ Trang chủ ===== */
#tu-van .contact-panel, #tu-van .form-panel,
#gui-yeu-cau .contact-panel, #gui-yeu-cau .form-panel { padding: 1.75rem; }
#tu-van .contact-panel h2, #gui-yeu-cau .contact-panel h2 { margin-bottom: .5rem; }
#tu-van .contact-panel > p, #gui-yeu-cau .contact-panel > p { margin-bottom: 1.1rem; }
#tu-van .contact-row, #gui-yeu-cau .contact-row { margin-bottom: .85rem; }

/* ===== Bỏ gạch chân liên kết trong cột xanh khối Form liên hệ ===== */
#tu-van .contact-panel a, #gui-yeu-cau .contact-panel a { text-decoration: none !important; }

/* ===== Đầu trang Liên hệ: nền sáng, căn giữa, gọn ===== */
.contact-hero { background: #f8faf9; border-bottom: 1px solid var(--emd-line); text-align: center; padding: 2.5rem 0; }
.contact-hero .eyebrow { color: var(--emd-accent-ink); }
.contact-hero h1 { color: #0f172a; margin: .4rem 0 .6rem; font-size: clamp(1.8rem, 3.2vw, 2.4rem); }
.contact-hero .contact-hero-lead { color: var(--emd-muted); margin: 0 auto; }
@media (min-width: 992px) {
    .contact-hero .contact-hero-lead { white-space: nowrap; }
}

/* ===== Trang Về EMD: căn đều khối "Câu chuyện EMD" ===== */
.story-text p { text-align: justify; line-height: 1.75; }

/* Thanh điều hướng phân cấp (Breadcrumb) — khớp 100% với JSON-LD BreadcrumbList. */
.emd-breadcrumb {
    background: #f8fafc;
    border-bottom: 1px solid #eef2f0;
    font-size: .85rem;
}
.emd-breadcrumb ol {
    display: flex;
    align-items: center;
    min-width: 0;
    margin: 0;
    padding: .55rem 0;
    list-style: none;
}
.emd-breadcrumb li {
    flex-shrink: 0;
    color: #475569;
    white-space: nowrap;
}
.emd-breadcrumb li + li::before {
    content: "›";
    margin: 0 .5rem;
    color: #94a3b8;
}
.emd-breadcrumb li:last-child {
    flex-shrink: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 600;
    color: #1e293b;
}
.emd-breadcrumb a {
    color: #0f5132;
    text-decoration: none;
}
.emd-breadcrumb a:hover { text-decoration: underline; }

/* Khối "Giải pháp liên quan" cuối trang chi tiết sản phẩm. */
.related-products .product-card p { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.product-card-title-link { color: inherit; text-decoration: none; }
.product-card-title-link:hover { color: inherit; text-decoration: underline; }
