/* ==========================================================
   Việt Mỹ Clinic – giao diện công khai
   Đổi màu thương hiệu tại :root
   ========================================================== */
:root {
    --vm-primary: #0b4f9c;
    --vm-primary-dark: #083a73;
    --vm-accent: #e2232a;
    --vm-accent-dark: #b9161c;
    --vm-soft: #f1f6fc;
    --vm-text: #1f2a37;
    --vm-muted: #6b7785;
    --vm-radius: 14px;
    --vm-shadow: 0 6px 24px rgba(11, 79, 156, .08);
}

body {
    font-family: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    color: var(--vm-text);
    font-size: 16px;
}

a { color: var(--vm-primary); text-decoration: none; }
a:hover { color: var(--vm-accent); }
img { max-width: 100%; height: auto; }

.text-accent { color: var(--vm-accent) !important; }
.text-primary-vm { color: var(--vm-primary) !important; }

/* ---------- Buttons ---------- */
.vm-btn-accent {
    background: var(--vm-accent); color: #fff; border: 1px solid var(--vm-accent);
    border-radius: 999px; padding-left: 1.25rem; padding-right: 1.25rem; font-weight: 600;
}
.vm-btn-accent:hover, .vm-btn-accent:focus { background: var(--vm-accent-dark); border-color: var(--vm-accent-dark); color: #fff; }
.vm-btn-outline {
    background: transparent; color: var(--vm-primary); border: 1px solid var(--vm-primary);
    border-radius: 999px; padding-left: 1.1rem; padding-right: 1.1rem; font-weight: 600;
}
.vm-btn-outline:hover { background: var(--vm-primary); color: #fff; }

/* ---------- Top bar & header ---------- */
.vm-topbar { background: var(--vm-primary-dark); color: #dbe7f6; font-size: .875rem; padding: .4rem 0; }
.vm-topbar .container > div:first-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
@media (max-width: 1399.98px) { .vm-topbar { font-size: .8rem; } }
.vm-topbar a { color: #fff; }
.vm-header { background: #fff; box-shadow: 0 2px 12px rgba(0, 0, 0, .06); }
.vm-navbar { padding: .5rem 0; }
.vm-logo { height: 52px; width: auto; }
.vm-navbar .nav-link { font-weight: 600; color: var(--vm-text); padding: .5rem .8rem !important; }
/* Menu ngang từ 1200px trở lên, nhỏ hơn thì gom vào nút ☰ – tránh rớt dòng */
.vm-navbar .nav-link, .vm-book-btn { white-space: nowrap; }
@media (min-width: 1200px) {
    .vm-navbar .navbar-nav { flex-wrap: nowrap; }
    .vm-navbar .navbar-brand { flex-shrink: 0; margin-right: 1rem; }
}
@media (min-width: 1200px) and (max-width: 1399.98px) {
    .vm-book-btn, .vm-btn-result { padding: .4rem .8rem; font-size: .85rem; }
    .vm-book-btn i, .vm-btn-result i { display: none; }
    .vm-navbar .nav-link { font-size: .86rem; padding: .5rem .38rem !important; }
    .vm-logo { height: 40px; }
    .vm-navbar .dropdown-toggle::after { display: none; } /* bỏ mũi tên ▾ cho đủ chỗ; rê chuột vẫn mở menu con */
}
@media (max-width: 1199.98px) {
    .vm-navbar .navbar-collapse { max-height: calc(100vh - 80px); overflow-y: auto; padding-bottom: .75rem; }
    .vm-book-btn, .vm-btn-result { width: 100%; }
}
.vm-navbar .nav-link.active, .vm-navbar .nav-link:hover { color: var(--vm-accent); }
.vm-navbar .dropdown-menu { border: 0; box-shadow: var(--vm-shadow); border-radius: 10px; }
.vm-navbar .dropdown-item { padding: .45rem 1rem; }
.vm-navbar .dropdown-item:hover { background: var(--vm-soft); color: var(--vm-primary); }
.vm-search input { min-width: 160px; border-radius: 999px; }
@media (min-width: 1200px) {
    .vm-navbar .dropdown:hover > .dropdown-menu { display: block; margin-top: 0; }
}

/* ---------- Sections ---------- */
.vm-section { padding: 64px 0; }
.vm-bg-soft { background: var(--vm-soft); }
.vm-section-head { margin-bottom: 2rem; }
.vm-section-head h2, .vm-h2 { font-weight: 800; color: var(--vm-primary); font-size: clamp(1.5rem, 2.6vw, 2.2rem); }
.vm-h3 { font-weight: 700; color: var(--vm-primary); font-size: 1.4rem; }
.vm-eyebrow { display: inline-block; text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; font-weight: 700; color: var(--vm-accent); margin-bottom: .4rem; }

.vm-hero img { max-height: 620px; object-fit: cover; }

.vm-page-header { background: linear-gradient(120deg, var(--vm-primary-dark), var(--vm-primary)); color: #fff; padding: 42px 0 36px; }
.vm-page-header h1 { font-weight: 800; font-size: clamp(1.6rem, 3vw, 2.4rem); margin: 0; }
.vm-page-header .breadcrumb a { color: #cfe0f5; }
.vm-page-header .breadcrumb-item.active, .vm-page-header .breadcrumb-item + .breadcrumb-item::before { color: #fff; opacity: .8; }
.vm-page-header-sm { padding: 18px 0; }

/* ---------- Values / checklist ---------- */
.vm-values { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.25rem; }
.vm-values li { background: #fff; border-radius: var(--vm-radius); box-shadow: var(--vm-shadow); padding: 1.5rem; border-top: 4px solid var(--vm-accent); }
.vm-values strong { display: block; color: var(--vm-primary); font-size: 1.15rem; margin-bottom: .35rem; }
.vm-values span { color: var(--vm-muted); }
.vm-checklist { list-style: none; padding: 0; }
.vm-checklist li { position: relative; padding-left: 2rem; margin-bottom: .8rem; }
.vm-checklist li::before { content: "\2713"; position: absolute; left: 0; top: 0; width: 1.4rem; height: 1.4rem; border-radius: 50%; background: var(--vm-accent); color: #fff; font-size: .8rem; display: flex; align-items: center; justify-content: center; }
.vm-why-images { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.vm-why-images img { border-radius: var(--vm-radius); width: 100%; height: 340px; object-fit: cover; }
.vm-why-images img:nth-child(2) { margin-top: 40px; }

/* ---------- Cards ---------- */
.vm-card { background: #fff; border-radius: var(--vm-radius); box-shadow: var(--vm-shadow); overflow: hidden; display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s; }
.vm-card:hover { transform: translateY(-3px); box-shadow: 0 10px 30px rgba(11, 79, 156, .14); }
.vm-card-img { display: block; aspect-ratio: 16/10; overflow: hidden; background: var(--vm-soft); }
.vm-card-img-square { aspect-ratio: 1/1; }
.vm-card-img img { width: 100%; height: 100%; object-fit: cover; }
.vm-card-body { padding: 1.1rem 1.2rem 1.3rem; display: flex; flex-direction: column; flex: 1; }
.vm-card-title { font-size: 1.05rem; font-weight: 700; line-height: 1.4; margin-bottom: .5rem; }
.vm-card-title a { color: var(--vm-text); }
.vm-card-title a:hover { color: var(--vm-accent); }
.vm-card-text { color: var(--vm-muted); font-size: .93rem; flex: 1; }
.vm-meta { font-size: .82rem; color: var(--vm-muted); margin-bottom: .4rem; }
.vm-readmore { font-weight: 600; font-size: .92rem; }
.vm-img-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 3rem; color: #b6c7dc; }

.vm-spec-card { display: block; position: relative; border-radius: var(--vm-radius); overflow: hidden; box-shadow: var(--vm-shadow); background: #fff; }
.vm-spec-card img { width: 100%; aspect-ratio: 1/1; object-fit: cover; transition: transform .3s; }
.vm-spec-card:hover img { transform: scale(1.05); }
.vm-spec-card span { position: absolute; left: 0; right: 0; bottom: 0; padding: .8rem; background: linear-gradient(transparent, rgba(8, 58, 115, .92)); color: #fff; font-weight: 700; text-transform: uppercase; font-size: .9rem; }

/* Chuyên khoa – thẻ dạng icon + số thứ tự (giống site gốc) */
.vm-spec-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap;
    background: linear-gradient(90deg, #bfe8e8 0%, #e6f7f7 60%, #ffffff 100%); border-radius: 999px; padding: .85rem 1.6rem; margin-bottom: 2.5rem; }
.vm-spec-head h2 { margin: 0; font-weight: 700; color: #1f2a37; font-size: clamp(1.3rem, 2.2vw, 1.75rem); }
.vm-spec-all { display: inline-flex; align-items: center; gap: .45rem; background: #fff; color: #1f2a37; border: 1px solid #2bb6ad;
    border-radius: 999px; padding: .5rem 1.4rem; font-weight: 500; }
.vm-spec-all:hover { background: #2bb6ad; color: #fff; }
.vm-spec-item { display: flex; flex-direction: column; height: 100%; background: #fff; border: 1px solid #c8ecea; border-radius: 14px;
    padding: 1.4rem 1.4rem 1.5rem; color: #1f2a37; transition: box-shadow .2s, transform .2s, border-color .2s; }
.vm-spec-item:hover { color: #1f2a37; border-color: #2bb6ad; box-shadow: 0 10px 28px rgba(43, 182, 173, .15); transform: translateY(-3px); }
.vm-spec-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.4rem; }
.vm-spec-icon { width: 52px; height: 48px; border-radius: 8px; background: #dff4f3; display: inline-flex; align-items: center; justify-content: center; color: #0e7c7b; font-size: 1.4rem; }
.vm-spec-icon img { width: 28px; height: 28px; object-fit: contain; }
.vm-spec-num { font-weight: 700; color: #4b5563; font-size: 1rem; }
.vm-spec-name { font-size: 1.2rem; font-weight: 700; margin-bottom: .9rem; color: #1f2a37; }
.vm-spec-desc { color: #4b5563; font-size: .95rem; line-height: 1.6; flex: 1; margin-bottom: 1.4rem; }
.vm-spec-more { color: #2bb6ad; font-weight: 700; font-size: .9rem; display: inline-flex; align-items: center; gap: .5rem; }
.vm-spec-item:hover .vm-spec-more i { transform: translateX(3px); }
.vm-spec-more i { transition: transform .2s; }

/* Nút "Xem kết quả" trên menu + trang tra cứu */
.vm-btn-result { background: #fff; color: #0e7c7b; border: 1.5px solid #2bb6ad; border-radius: 999px; font-weight: 700;
    padding-left: 1rem; padding-right: 1rem; white-space: nowrap; }
.vm-btn-result:hover, .vm-btn-result.active { background: #2bb6ad; border-color: #2bb6ad; color: #fff; }
.vm-result-guide { background: var(--vm-soft); border-radius: 14px; padding: 1.5rem 1.75rem; height: 100%; }
.vm-result-guide ol { padding-left: 1.2rem; }
.vm-result-guide li { margin-bottom: .4rem; }
.vm-result-patient { display: flex; flex-wrap: wrap; gap: .5rem 2rem; background: #fff; border: 1px solid #c8ecea; border-left: 5px solid #2bb6ad;
    border-radius: 12px; padding: 1rem 1.25rem; margin-bottom: 1.5rem; }
.vm-result-card { background: #fff; border: 1px solid #c8ecea; border-radius: 14px; padding: 1.4rem; }
.vm-result-cat { font-weight: 700; color: #0e7c7b; text-transform: uppercase; font-size: .85rem; letter-spacing: .04em; }
.vm-result-info { display: flex; flex-wrap: wrap; gap: .25rem 1.5rem; font-size: .92rem; margin-bottom: 1rem; }
.vm-lab-table { font-size: .95rem; margin-bottom: .5rem; }
.vm-lab-table thead th { background: #e6f6f5; color: #0e5f5e; font-weight: 700; border-bottom: 2px solid #2bb6ad; white-space: nowrap; }
.vm-lab-table td { border-color: #e5eef0; }
.vm-lab-group td { background: #f5fafa; font-weight: 700; color: #0e7c7b; text-transform: uppercase; font-size: .85rem; letter-spacing: .03em; }
.vm-lab-result { font-weight: 600; }
/* Chỉ ô Kết quả của chỉ số bất thường (SortedB = 1) được tô đỏ – không tô cột nào khác, không thêm ký hiệu / cảnh báo */
.vm-lab-result.vm-abnormal { color: #dc2626; font-weight: 800; }
@media print {
    .vm-topbar, .vm-header, .vm-footer, .vm-float, .vm-page-header, .vm-form-box, form, .vm-result-guide, #vmChatPill, .d-print-none { display: none !important; }
    .vm-section { padding: 0 !important; }
    .vm-result-card { border: 0; padding: 0; }
}
.vm-result-text > div, .vm-pre { white-space: pre-line; }
.vm-result-text { font-size: .95rem; }
.vm-result-images { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: .75rem; }
.vm-result-images img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; border: 1px solid #e5eef0; background: #000; }
.vm-result-conclusion { background: var(--vm-soft); border-radius: 8px; padding: .75rem 1rem; font-size: .95rem; }

/* Việt Mỹ Healing Center */
.vm-heal-hero { background: linear-gradient(120deg, #e3f6f5 0%, #f4fbfb 55%, #ffffff 100%); padding: 72px 0; }
.vm-heal-title { font-size: clamp(2rem, 4vw, 3rem); font-weight: 400; color: #1f2a37; line-height: 1.2; margin: .5rem 0 1rem; }
.vm-heal-title strong { font-weight: 800; color: #0e7c7b; }
.vm-heal-lead { font-size: 1.15rem; color: #374151; margin-bottom: .5rem; }
.vm-heal-tagline { color: #0e7c7b; font-weight: 600; }
.vm-heal-quick { background: #fff; border-radius: 16px; box-shadow: 0 12px 36px rgba(14, 124, 123, .12); padding: 1.75rem; max-width: 460px; margin-left: auto; }
.vm-heal-list { list-style: none; padding: 0; margin: 0 0 1.2rem; font-size: .92rem; color: #374151; }
.vm-heal-list li { position: relative; padding-left: 1.2rem; margin-bottom: .35rem; }
.vm-heal-list li::before { content: ""; position: absolute; left: 0; top: .55em; width: 7px; height: 7px; border-radius: 50%; background: #2bb6ad; }
.vm-heal-img { width: 100%; border-radius: 18px; box-shadow: var(--vm-shadow); object-fit: cover; aspect-ratio: 4 / 3; }
.vm-heal-cta { background: linear-gradient(120deg, #0e7c7b, #2bb6ad); color: #fff; padding: 56px 0; }
.vm-heal-cta h2 { font-weight: 800; font-size: clamp(1.5rem, 3vw, 2.2rem); }
.vm-heal-cta p { opacity: .9; font-size: 1.1rem; margin-bottom: 1.5rem; }
.vm-heal-cta .btn-light { color: #0e7c7b; border-radius: 999px; padding-left: 2rem; padding-right: 2rem; }
@media (max-width: 991.98px) { .vm-heal-quick { margin-left: 0; max-width: none; } .vm-heal-hero { padding: 48px 0; } }

/* Cơ sở vật chất – Trang thiết bị */
.vm-facility-text { color: #4b5563; font-size: 1.02rem; line-height: 1.75; }
.vm-btn-teal { background: #2bb6ad; color: #fff; border-radius: 999px; padding: .55rem 1.5rem; font-weight: 600; display: inline-flex; gap: .5rem; align-items: center; }
.vm-btn-teal:hover { background: #1d9e95; color: #fff; }
.vm-facility-images { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.vm-facility-images img { width: 100%; height: 360px; object-fit: cover; border-radius: 16px; box-shadow: var(--vm-shadow); }
.vm-facility-images img:nth-child(2) { margin-top: 48px; }

/* Đội ngũ chúng tôi */
.vm-team-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; flex-wrap: wrap; margin-bottom: 2rem; }
.vm-team-label { display: block; color: #2bb6ad; font-weight: 700; letter-spacing: .12em; font-size: .9rem; margin-bottom: .35rem; }
.vm-team-title { margin: 0; font-weight: 400; color: #1f2a37; font-size: clamp(1.4rem, 2.6vw, 2.1rem); }
.vm-team-title strong { font-weight: 800; color: var(--vm-primary); }
.vm-team-card { display: flex; flex-direction: column; align-items: center; text-align: center; height: 100%; background: #fff;
    border: 1px solid #c8ecea; border-radius: 16px; padding: 1.2rem 1rem 1.4rem; color: #1f2a37; transition: box-shadow .2s, transform .2s, border-color .2s; }
.vm-team-card:hover { color: #1f2a37; border-color: #2bb6ad; box-shadow: 0 10px 28px rgba(43, 182, 173, .15); transform: translateY(-3px); }
.vm-team-photo { width: 100%; aspect-ratio: 1 / 1; border-radius: 12px; overflow: hidden; background: linear-gradient(180deg, #dff4f3, #f6fbfb);
    display: flex; align-items: flex-end; justify-content: center; margin-bottom: 1rem; font-size: 4rem; color: #9fd8d4; }
.vm-team-photo img { width: 100%; height: 100%; object-fit: contain; object-position: bottom; }
.vm-team-name { font-weight: 800; font-size: 1.02rem; color: var(--vm-primary); margin-bottom: .35rem; }
.vm-team-spec { color: #4b5563; font-size: .92rem; }

/* 3 điểm nổi bật dưới mục "Tại sao nên chọn" */
.vm-highlights { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.25rem; }
.vm-highlight { background: #fff; border: 1px solid #c8ecea; border-radius: 14px; padding: 1.5rem; transition: box-shadow .2s, border-color .2s; }
.vm-highlight:hover { border-color: #2bb6ad; box-shadow: 0 10px 28px rgba(43, 182, 173, .15); }
.vm-highlight > i { display: inline-flex; width: 52px; height: 48px; border-radius: 8px; background: #dff4f3; color: #0e7c7b;
    align-items: center; justify-content: center; font-size: 1.4rem; margin-bottom: 1rem; }
.vm-highlight h3 { font-size: 1.15rem; font-weight: 700; color: #1f2a37; margin-bottom: .5rem; }
.vm-highlight p { color: #4b5563; margin: 0; font-size: .95rem; line-height: 1.6; }

/* Tin tức: 1 bài lớn + 4 bài dạng danh sách */
.vm-news-list { display: flex; flex-direction: column; gap: 1rem; height: 100%; }
.vm-news-item { display: flex; gap: 1rem; background: #fff; border-radius: 12px; padding: .75rem; box-shadow: var(--vm-shadow); color: #1f2a37; flex: 1; align-items: center; }
.vm-news-item:hover { color: var(--vm-primary); }
.vm-news-thumb { width: 150px; flex-shrink: 0; aspect-ratio: 16 / 10; border-radius: 8px; overflow: hidden; background: var(--vm-soft); }
.vm-news-thumb img { width: 100%; height: 100%; object-fit: cover; }
.vm-news-body { display: flex; flex-direction: column; gap: .35rem; }
.vm-news-title { font-weight: 700; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.vm-news-date { font-size: .82rem; color: var(--vm-muted); }

/* Gói khám: giá lên trên tên gói như site gốc */
.vm-package-card .vm-price { margin-bottom: .35rem; }

.vm-doctor-photo { display: block; aspect-ratio: 4/5; background: linear-gradient(180deg, #e8f0fa, #fff); overflow: hidden; }
.vm-doctor-photo img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.vm-degree { color: var(--vm-accent); font-weight: 700; font-size: .85rem; text-transform: uppercase; }
.vm-doctor-spec { color: var(--vm-muted); font-size: .88rem; }
.vm-doctor-big { border-radius: var(--vm-radius); box-shadow: var(--vm-shadow); background: var(--vm-soft); }
.vm-badge-spec { background: var(--vm-soft); color: var(--vm-primary); font-weight: 600; margin: 0 .3rem .3rem 0; padding: .5em .8em; }

.vm-price { color: var(--vm-accent); font-weight: 800; font-size: 1.35rem; margin-bottom: .5rem; }

.vm-help { background: linear-gradient(120deg, var(--vm-primary-dark), var(--vm-primary)); padding: 48px 0; }
/* Icon điện thoại (01-dien-thoai.webp) là icon nét lớn → đặt nhỏ trong vòng tròn sáng */
.vm-help-icon { width: 128px; height: 128px; border-radius: 50%; background: #dff4f3; display: flex; align-items: center; justify-content: center;
    box-shadow: 0 0 0 10px rgba(255, 255, 255, .12); }
.vm-help-icon img { width: 64px; height: 64px; object-fit: contain; }
.vm-rounded-img { border-radius: var(--vm-radius); width: 100%; object-fit: cover; }
.vm-partners { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 2rem 3rem; }
.vm-partners img { max-height: 70px; max-width: 160px; filter: grayscale(1); opacity: .8; transition: .2s; }
.vm-partners img:hover { filter: none; opacity: 1; }
.vm-video { border-radius: var(--vm-radius); overflow: hidden; max-width: 960px; margin: 0 auto; }

.vm-contact { background-size: cover; background-position: center; position: relative; }
.vm-contact::before { content: ""; position: absolute; inset: 0; background: rgba(8, 58, 115, .86); }
.vm-contact .container { position: relative; }

/* ---------- Forms ---------- */
.vm-form-box { background: #fff; border-radius: var(--vm-radius); box-shadow: var(--vm-shadow); padding: 1.75rem; }
.vm-form-title { font-weight: 700; color: var(--vm-primary); font-size: 1.3rem; margin-bottom: 1rem; }
.vm-booking-form .form-label { font-weight: 600; font-size: .9rem; margin-bottom: .25rem; }
.vm-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.vm-success-icon { font-size: 5rem; color: #16a34a; }

/* ---------- Article ---------- */
.vm-article-title { font-weight: 800; color: var(--vm-primary); font-size: clamp(1.6rem, 3vw, 2.3rem); line-height: 1.3; }
.vm-content { font-size: 1.05rem; line-height: 1.8; }
.vm-content h2 { font-size: 1.5rem; font-weight: 700; color: var(--vm-primary); margin-top: 2rem; }
.vm-content h3 { font-size: 1.25rem; font-weight: 700; margin-top: 1.5rem; }
.vm-content img { border-radius: 10px; margin: 1rem 0; height: auto !important; }
.vm-content figure { margin: 1.5rem 0; }
.vm-content figcaption { font-size: .88rem; color: var(--vm-muted); text-align: center; }
.vm-content table { width: 100%; border-collapse: collapse; margin: 1rem 0; }
.vm-content table td, .vm-content table th { border: 1px solid #dde5ee; padding: .5rem .75rem; }
.vm-content iframe { max-width: 100%; }
.vm-content blockquote { border-left: 4px solid var(--vm-accent); background: var(--vm-soft); padding: 1rem 1.25rem; border-radius: 0 10px 10px 0; }
/* Nội dung Elementor nhập từ WordPress: bỏ bớt khoảng cách/ràng buộc của layout cũ */
.vm-page-content .elementor-section, .vm-page-content .e-con, .vm-page-content .elementor-container { max-width: 100% !important; }
.vm-page-content .elementor-widget-wrap, .vm-page-content .e-con-inner { display: flex; flex-wrap: wrap; gap: 1rem; }

.vm-cta-box { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; background: var(--vm-soft); border-left: 5px solid var(--vm-accent); border-radius: var(--vm-radius); padding: 1.25rem 1.5rem; }
.vm-cta-box h4 { color: var(--vm-primary); font-weight: 700; }

.vm-sidebar-box { background: #fff; border-radius: var(--vm-radius); box-shadow: var(--vm-shadow); padding: 1.4rem; margin-bottom: 1.5rem; }
.vm-sidebar-title { font-weight: 700; color: var(--vm-primary); font-size: 1.1rem; margin-bottom: 1rem; padding-bottom: .6rem; border-bottom: 2px solid var(--vm-soft); }
.vm-latest li { margin-bottom: .9rem; }
.vm-latest a { display: flex; gap: .75rem; align-items: center; color: var(--vm-text); font-weight: 500; font-size: .92rem; line-height: 1.4; }
.vm-latest img { width: 80px; height: 56px; object-fit: cover; border-radius: 8px; flex-shrink: 0; }
.vm-link-list li { padding: .35rem 0; border-bottom: 1px dashed #e3eaf2; }
.vm-filter { display: flex; flex-wrap: wrap; gap: .5rem; }
.vm-contact-list li { display: flex; gap: 1rem; margin-bottom: 1.1rem; }
.vm-contact-list i { font-size: 1.4rem; color: var(--vm-accent); }
.vm-map { border-radius: var(--vm-radius); overflow: hidden; }
.vm-map iframe { border: 0; }
.vm-pagination .page-link { color: var(--vm-primary); border-radius: 8px !important; margin: 0 3px; }
.vm-pagination .active .page-link { background: var(--vm-primary); border-color: var(--vm-primary); color: #fff; }

/* ---------- Footer ---------- */
.vm-footer { background: #0a2d55; color: #c8d6e8; padding: 56px 0 0; font-size: .93rem; }
.vm-footer a { color: #e6eef8; }
.vm-footer a:hover { color: #fff; text-decoration: underline; }
/* logo chân trang (logo-VM-1.png) là logo trắng nền trong suốt → đặt thẳng trên nền tối, không thêm nền trắng */
.vm-footer-logo { max-height: 72px; max-width: 260px; width: auto; height: auto; }
.vm-footer-title { color: #fff; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 1rem; }
.vm-footer-list li { margin-bottom: .55rem; }
.vm-footer-list i { margin-right: .35rem; }
.vm-badge { max-height: 56px; margin: .25rem .5rem .25rem 0; }
.vm-legal { border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 2rem; padding-top: 1.25rem; font-size: .85rem; opacity: .8; }
.vm-legal p { margin-bottom: .3rem; }
.vm-copyright { border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 1rem; padding: 1rem 0; font-size: .85rem; opacity: .8;
    display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem 1.5rem; }
.vm-policy { display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; }
.vm-social { display: flex; gap: .75rem; font-size: 1.4rem; }
.vm-social a { width: 40px; height: 40px; border-radius: 50%; background: rgba(255, 255, 255, .1); display: inline-flex; align-items: center; justify-content: center; }
.vm-social a:hover { background: #2bb6ad; text-decoration: none; }

/* ---------- Floating buttons ---------- */
/* 3 nút hỗ trợ (Zalo / Messenger / Hotline) là ảnh dạng thanh ngang có chữ → giữ đúng tỉ lệ ảnh */
.vm-float { position: fixed; right: 12px; bottom: 20px; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; z-index: 1050; }
.vm-float a { display: block; line-height: 0; }
.vm-float img { width: 190px; max-width: 46vw; height: auto; filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .18)); transition: transform .2s; }
.vm-float a:hover img { transform: translateX(-4px) scale(1.03); }

/* Nút "Tư vấn trực tuyến" vẽ bằng CSS, cùng kiểu 3 nút ảnh Zalo / Messenger / Hotline */
.vm-chat-pill { position: relative; width: 190px; max-width: 46vw; aspect-ratio: 190 / 50; display: flex; align-items: center; gap: 8px;
    padding: 0 12px 0 3px; border: 0; border-radius: 999px; color: #fff; cursor: pointer; text-align: center;
    background: linear-gradient(90deg, #1d9e95, #2bb6ad); filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .18)); transition: transform .2s; }
.vm-chat-pill[hidden] { display: none; }
.vm-chat-pill:hover { transform: translateX(-4px) scale(1.03); }
.vm-chat-pill-icon { flex-shrink: 0; height: 88%; aspect-ratio: 1; border-radius: 50%; background: #fff; border: 3px solid rgba(255, 255, 255, .6);
    display: flex; align-items: center; justify-content: center; color: #1d9e95; font-size: 1.25rem; box-shadow: inset 0 0 0 2px #1d9e95; }
.vm-chat-pill-text { flex: 1; display: flex; flex-direction: column; line-height: 1.1; }
.vm-chat-pill-text small { font-size: .62rem; font-weight: 700; letter-spacing: .02em; }
.vm-chat-pill-text strong { font-size: 1.02rem; font-weight: 800; letter-spacing: .02em; }
.vm-chat-pill-badge { position: absolute; top: -6px; right: 6px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px;
    background: #e2232a; color: #fff; font-size: .72rem; font-weight: 700; line-height: 20px; }
.vm-chat-pill-badge[hidden] { display: none; }
/* Ẩn bong bóng mặc định của widget TNET (bị đè lên nút Hotline); khung chat vẫn mở bình thường */
.tnet-lt-btn.vm-hidden-launcher { display: none !important; }

@media (max-width: 767.98px) {
    .vm-section { padding: 44px 0; }
    .vm-why-images img { height: 220px; }
    .vm-logo { height: 42px; }
    .vm-float { right: 8px; bottom: 12px; gap: 8px; }
    .vm-float img { width: 150px; }
    .vm-help-icon { width: 96px; height: 96px; }
    .vm-facility-images img { height: 220px; }
    .vm-team-name { font-size: .9rem; }
    .vm-news-thumb { width: 110px; }
    .vm-help-icon img { width: 48px; height: 48px; }
}

/* ==========================================================
   PWA / giao diện điện thoại
   ========================================================== */
html { -webkit-text-size-adjust: 100%; }
body { -webkit-tap-highlight-color: transparent; }

/* Thanh điều hướng dưới cùng (chỉ < 992px) */
.vm-bottom-nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 1040; display: flex; justify-content: space-around; align-items: flex-end;
    background: rgba(255, 255, 255, .97); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
    border-top: 1px solid #e5e9f0; box-shadow: 0 -4px 18px rgba(0, 0, 0, .06);
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); }
.vm-bottom-nav a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; color: #6b7785; font-size: .7rem; font-weight: 600;
    text-decoration: none; padding: 4px 0; min-height: 48px; justify-content: center; }
.vm-bottom-nav a i { font-size: 1.35rem; line-height: 1; }
.vm-bottom-nav a.active { color: var(--vm-primary); }
.vm-bottom-nav a.vm-bottom-main { color: #fff; }
.vm-bottom-nav a.vm-bottom-main i { width: 52px; height: 52px; border-radius: 50%; background: var(--vm-accent); display: flex; align-items: center;
    justify-content: center; margin-top: -26px; box-shadow: 0 6px 16px rgba(226, 35, 42, .4); border: 4px solid #fff; font-size: 1.4rem; }
.vm-bottom-nav a.vm-bottom-main span { color: var(--vm-accent); }

/* Gợi ý cài ứng dụng */
.vm-install { position: fixed; left: 12px; right: 12px; bottom: calc(82px + env(safe-area-inset-bottom)); z-index: 1060; display: flex; align-items: center; gap: .75rem;
    background: #fff; border-radius: 16px; box-shadow: 0 12px 36px rgba(0, 0, 0, .18); padding: .75rem .9rem; max-width: 480px; margin: 0 auto; }
.vm-install[hidden] { display: none; }
.vm-install img { width: 44px; height: 44px; border-radius: 10px; flex-shrink: 0; }
.vm-install-text { flex: 1; font-size: .82rem; line-height: 1.35; display: flex; flex-direction: column; }
.vm-install-text strong { font-size: .9rem; color: var(--vm-primary); }
.vm-install-close { border: 0; background: transparent; font-size: 1.5rem; line-height: 1; color: #9aa4b2; padding: 0 .25rem; }
/* Chỉ gợi ý cài ứng dụng trên điện thoại / máy tính bảng, không hiện trên máy tính */
@media (min-width: 992px) { .vm-install { display: none !important; } }

@media (max-width: 991.98px) {
    body { padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
    /* Nút nổi đặt trên thanh dưới; Hotline đã có trong thanh dưới */
    .vm-float { bottom: calc(84px + env(safe-area-inset-bottom)); right: 8px; gap: 8px; }
    .vm-float img { width: 132px; }
    .vm-float a[href^="tel:"] { display: none; }
    .vm-chat-pill { width: 132px; }

    .vm-header .navbar { padding-top: .35rem; padding-bottom: .35rem; }
    .vm-logo { height: 38px; }
    .vm-section { padding: 40px 0; }
    .vm-spec-head { border-radius: 16px; padding: .75rem 1rem; margin-bottom: 1.5rem; }
    .vm-page-header { padding: 26px 0 22px; }
    .vm-form-box, .vm-sidebar-box { padding: 1.1rem; }
    .vm-booking-form .form-control, .vm-booking-form .form-select { font-size: 16px; min-height: 46px; } /* tránh iPhone tự zoom ô nhập */
    .btn { min-height: 44px; }
    .vm-why-images img, .vm-facility-images img { height: 200px; }
    .vm-why-images img:nth-child(2), .vm-facility-images img:nth-child(2) { margin-top: 24px; }
    .vm-content { font-size: 1rem; }
}

/* Chạy như ứng dụng (đã cài lên màn hình chính) */
@media (display-mode: standalone) {
    .vm-topbar { display: none !important; }
    .vm-header { padding-top: env(safe-area-inset-top); }
}

/* Bảng kết quả xét nghiệm trên điện thoại: mỗi chỉ số thành 1 thẻ */
@media (max-width: 575.98px) {
    .vm-result-card { padding: 1rem; }
    .vm-lab-table thead { display: none; }
    .vm-lab-table, .vm-lab-table tbody, .vm-lab-table tr, .vm-lab-table td { display: block; width: 100%; }
    .vm-lab-table tr { border: 1px solid #e5eef0; border-radius: 10px; padding: .55rem .8rem; margin-bottom: .55rem; background: #fff; }
    .vm-lab-table tr.vm-lab-group { border: 0; background: transparent; padding: .6rem 0 .2rem; margin: 0; }
    .vm-lab-table tr.vm-lab-group td { background: transparent; padding: 0; }
    .vm-lab-table td { border: 0; padding: .15rem 0; text-align: left !important; }
    .vm-lab-table td.vm-lab-name { font-weight: 700; color: #1f2a37; padding-bottom: .3rem; }
    .vm-lab-table td[data-label]:not(.vm-lab-name)::before { content: attr(data-label) ": "; color: #6b7785; font-weight: 500; }
    .vm-lab-table td:empty { display: none; }
    .vm-result-images { grid-template-columns: repeat(2, 1fr); }
}

/* Carousel đội ngũ bác sĩ (trang chủ): trượt theo trang + chấm tròn bên dưới */
.vm-carousel { position: relative; }
.vm-carousel-track { display: flex; gap: 1.5rem; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
    scrollbar-width: none; -ms-overflow-style: none; padding: .25rem .1rem 1rem; }
.vm-carousel-track::-webkit-scrollbar { display: none; }
.vm-carousel-item { flex: 0 0 calc((100% - 4.5rem) / 4); scroll-snap-align: start; }
@media (max-width: 1199.98px) { .vm-carousel-item { flex-basis: calc((100% - 3rem) / 3); } }
@media (max-width: 767.98px) { .vm-carousel-track { gap: 1rem; } .vm-carousel-item { flex-basis: calc((100% - 1rem) / 2); } }
.vm-carousel-dots { display: flex; justify-content: center; gap: .55rem; margin-top: .75rem; min-height: 12px; }
.vm-carousel-dots button { width: 10px; height: 10px; border-radius: 50%; border: 0; padding: 0; background: #c9d6e3; cursor: pointer;
    transition: width .25s, background .25s; }
.vm-carousel-dots button.active { width: 28px; border-radius: 999px; background: #2bb6ad; }

/* Trang chi tiết chuyên khoa */
.vm-spec-intro { display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap; background: #fff; border: 1px solid #c8ecea; border-radius: 16px; padding: 1.25rem 1.5rem; }
.vm-spec-icon-lg { width: 72px; height: 72px; border-radius: 14px; flex-shrink: 0; }
.vm-spec-icon-lg img { width: 44px; height: 44px; }
/* Ảnh trong nội dung nhập từ WordPress: không cho phóng to quá khổ */
.vm-spec-content img { max-width: min(100%, 720px); max-height: 480px; width: auto !important; height: auto !important; object-fit: contain; display: block; margin: 1rem auto; }
.vm-spec-others { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; }
