/* ==========================================================================
   Bệnh viện Mắt Sài Gòn Trà Vinh – giao diện website
   Màu, chữ và khoảng cách lấy theo "CRM BVM SGTV – màu" (Phần 3)
   ========================================================================== */
:root {
  --brand: #3189a1;          /* Teal chủ đạo: nút chính, menu đang chọn */
  --brand-strong: #005567;   /* Teal đậm: liên kết, tiêu đề nhấn, hover */
  --brand-soft: #c8e9ef;     /* Teal nhạt: nền khối phụ, tag */
  --on-brand: #ffffff;
  --indigo: #2a2a86;         /* Indigo phụ trợ: tiêu đề khối thông tin */
  --indigo-soft: #e6e6f5;
  --accent-red: #ce181e;     /* Chỉ cho hotline, cảnh báo, xóa */
  --red-soft: #fbe4e5;
  --sky: #5bcbf5;            /* Chỉ làm mảng nền, minh họa – không dùng cho chữ */
  --sky-50: #eaf8fd;
  --surface: #ffffff;
  --surface-100: #f4f7f9;
  --surface-200: #e9eff2;
  --line: #d5dfe4;
  --line-strong: #74838e;
  --ink: #16212b;
  --ink-muted: #4f5f6b;
  --success: #16794a;
  --success-soft: #ddf2e7;
  --warning: #a1520a;
  --warning-soft: #fbecd9;
  --focus: #2a2a86;
  --zalo: #0068ff;
  --facebook: #1877f2;

  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px; --space-6: 24px; --space-8: 32px;
  --radius-sm: 6px; --radius-md: 10px; --radius-lg: 16px; --radius-pill: 999px;
  --shadow-sm: 0 1px 2px rgba(22, 33, 43, .06), 0 1px 3px rgba(22, 33, 43, .08);
  --shadow-md: 0 8px 24px rgba(0, 85, 103, .12);
  --shadow-lg: 0 18px 48px rgba(0, 85, 103, .18);
  --container: 1200px;
  --header-h: 84px;
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font); font-size: 15px; line-height: 1.65;
  color: var(--ink); background: var(--surface); overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand-strong); text-decoration: none; }
a:hover { color: var(--brand); }
h1, h2, h3, h4 { line-height: 1.3; margin: 0 0 var(--space-3); color: var(--ink); text-wrap: balance; letter-spacing: -.02em; }
p, li, blockquote, figcaption, .hero__sub, .lead, .svc-card__desc, .post-card__excerpt { text-wrap: pretty; }
.hero__title, .section__title, .page-hero__title, .cta__title, .svc-card__title, .svc-item__title, .svc-group__title, .post-card__title, .modal__title, .side-box__title { text-wrap: balance; }
p { margin: 0 0 var(--space-4); }
button { font: inherit; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.ic { flex-shrink: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 8px; z-index: 200; background: var(--indigo); color: #fff; padding: 8px 16px; border-radius: var(--radius-sm); }
.skip-link:focus { left: 8px; color: #fff; }
.muted { color: var(--ink-muted); }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 16px; }
.container--narrow { max-width: 820px; }

/* ---------- Chữ ---------- */
.eyebrow { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--brand-strong); margin: 0 0 var(--space-2); }
.eyebrow--light { color: var(--brand-soft); }
.lead { font-size: 16px; font-weight: 500; color: var(--ink-muted); }
.section__title { font-size: clamp(22px, 2.6vw, 30px); font-weight: 700; color: var(--indigo); margin-bottom: var(--space-3); }
.section__title--sm { font-size: 20px; font-weight: 600; margin-top: var(--space-8); }
.section__lead { color: var(--ink-muted); max-width: 640px; margin: 0 auto; }
.text-hotline { color: var(--accent-red); font-weight: 600; }

/* ---------- Nút ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  min-height: 44px; padding: 10px 22px; border-radius: var(--radius-pill); border: 2px solid transparent;
  font-weight: 600; font-size: 14px; line-height: 1.2; text-align: center; white-space: nowrap;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--brand); color: var(--on-brand); }
.btn--primary:hover { background: var(--brand-strong); color: var(--on-brand); box-shadow: var(--shadow-md); }
.btn--accent { background: var(--accent-red); color: #fff; }
.btn--accent:hover { background: #a91217; color: #fff; }
.btn--ghost { background: transparent; color: var(--brand-strong); border-color: var(--brand); }
.btn--ghost:hover { background: var(--brand-soft); color: var(--brand-strong); }
.btn--light { background: #fff; color: var(--brand-strong); }
.btn--light:hover { background: var(--brand-soft); color: var(--brand-strong); }
.btn--outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.7); }
.btn--outline-light:hover { background: rgba(255,255,255,.12); color: #fff; }
.btn--block { width: 100%; }
.round-btn { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--brand-strong); display: inline-grid; place-items: center; transition: .2s; }
.round-btn:hover { background: var(--brand); border-color: var(--brand); color: #fff; }
.link-more { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 14px; color: var(--brand-strong); }
.link-more .ic { transition: transform .2s; }
a:hover .link-more .ic, .link-more:hover .ic { transform: translateX(3px); }

.chip { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: var(--radius-pill); background: var(--brand-soft); color: var(--brand-strong); font-size: 12px; font-weight: 600; line-height: 1.5; }
.chip--indigo { background: var(--indigo-soft); color: var(--indigo); }
.chip--light { background: rgba(255,255,255,.18); color: #fff; }

/* ---------- Thanh trên cùng ---------- */
.topbar { background: var(--indigo); color: #fff; font-size: 13px; }
.topbar__in { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); min-height: 36px; }
.topbar__note, .topbar__item { display: inline-flex; align-items: center; gap: 6px; }
.topbar__links { display: flex; align-items: center; gap: var(--space-6); }
.topbar a { color: #fff; }
.topbar a:hover { color: var(--sky); }
.topbar__social { display: inline-flex; gap: var(--space-3); }

/* ---------- Header ---------- */
.header { position: sticky; top: 0; z-index: 60; background: #fff; box-shadow: var(--shadow-sm); }
.header__in { display: flex; align-items: center; gap: var(--space-6); min-height: var(--header-h); transition: min-height .2s; }
.header.is-scrolled .header__in { min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: var(--space-3); color: var(--indigo); flex-shrink: 0; }
.brand__logo { width: 60px; height: 60px; transition: width .2s, height .2s; }
.header.is-scrolled .brand__logo { width: 48px; height: 48px; }
.brand__text { display: flex; flex-direction: column; line-height: 1.15; text-transform: uppercase; }
.brand__l1 { font-size: 13px; font-weight: 600; color: var(--brand-strong); letter-spacing: .04em; }
.brand__l2 { font-size: 19px; font-weight: 700; color: var(--indigo); }
.brand--light .brand__l1 { color: var(--brand-soft); }
.brand--light .brand__l2 { color: #fff; }
.brand--light .brand__logo { background: #fff; border-radius: 50%; padding: 3px; }

.search { flex: 1; display: flex; max-width: 380px; margin-left: auto; border: 1px solid var(--line); border-radius: var(--radius-pill); background: var(--surface-100); overflow: hidden; transition: border-color .2s, box-shadow .2s; }
.search:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); background: #fff; }
.search input { flex: 1; min-width: 0; border: 0; background: transparent; padding: 10px 16px; outline: none; }
.search button { border: 0; background: transparent; color: var(--brand-strong); padding: 0 14px; display: grid; place-items: center; }
.search--big { max-width: none; margin: 0 0 var(--space-6); padding: 4px; background: #fff; }
.search--big input { font-size: 16px; }
.search--big .btn { min-height: 40px; }

.hotline { display: inline-flex; align-items: center; gap: var(--space-2); color: var(--accent-red); }
.hotline:hover { color: var(--accent-red); }
.hotline__icon { width: 42px; height: 42px; border-radius: 50%; background: var(--red-soft); display: grid; place-items: center; animation: ring 2.4s infinite; }
.hotline__text { display: flex; flex-direction: column; line-height: 1.2; }
.hotline__text small { font-size: 12px; color: var(--ink-muted); font-weight: 600; }
.hotline__text strong { font-size: 18px; font-weight: 700; }
@keyframes ring { 0%, 70%, 100% { transform: rotate(0); } 75% { transform: rotate(-12deg); } 80% { transform: rotate(12deg); } 85% { transform: rotate(-8deg); } 90% { transform: rotate(8deg); } }
.nav-toggle { display: none; border: 0; background: var(--brand-soft); color: var(--brand-strong); width: 44px; height: 44px; border-radius: var(--radius-md); place-items: center; }

/* ---------- Menu chính ---------- */
.nav { background: var(--brand); }
.nav__head, .nav__mobile { display: none; }
.nav__list { display: flex; align-items: stretch; list-style: none; margin: 0; padding: 0; }
.nav__list > li { position: relative; display: flex; align-items: center; }
.nav__link { display: flex; align-items: center; min-height: 48px; padding: 0 18px; color: #fff; font-weight: 600; font-size: 14px; text-transform: uppercase; letter-spacing: .02em; transition: background-color .2s; }
.nav__link:hover, .nav__link.is-active, .has-sub:hover > .nav__link { background: var(--brand-strong); color: #fff; }
.sub-toggle { display: none; }
.has-sub > .nav__link::after { content: ""; width: 6px; height: 6px; margin-left: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); }
.sub { list-style: none; margin: 0; padding: var(--space-2) 0; position: absolute; top: 100%; left: 0; min-width: 270px; background: #fff; border-radius: 0 0 var(--radius-md) var(--radius-md); box-shadow: var(--shadow-lg); border-top: 3px solid var(--brand-strong); opacity: 0; visibility: hidden; transform: translateY(8px); transition: .2s; z-index: 10; }
.has-sub:hover > .sub, .has-sub:focus-within > .sub { opacity: 1; visibility: visible; transform: none; }
.sub a { display: block; padding: 9px 20px; color: var(--ink); font-weight: 500; font-size: 14px; }
.sub a:hover { background: var(--sky-50); color: var(--brand-strong); padding-left: 24px; }
.nav-backdrop { display: none; }

/* ---------- Khối chung ---------- */
.section { padding: 64px 0; }
.section--tint { background: var(--sky-50); }
.section--soft { background: var(--surface-100); }
.section__head { margin-bottom: var(--space-8); }
.section__head--center { text-align: center; }
.section__head--split { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--space-4); flex-wrap: wrap; }
.section__head--split .section__title { margin-bottom: 0; }
.section__tools { display: flex; gap: var(--space-2); align-items: center; flex-wrap: wrap; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); }
.card--pad { padding: var(--space-6); }
.empty { padding: var(--space-8); text-align: center; background: var(--surface-100); border-radius: var(--radius-md); color: var(--ink-muted); }
.alert { display: flex; gap: var(--space-2); align-items: flex-start; padding: var(--space-3) var(--space-4); border-radius: var(--radius-md); margin-bottom: var(--space-4); font-weight: 600; }
.alert--success { background: var(--success-soft); color: var(--success); }
.alert--error { background: var(--red-soft); color: var(--accent-red); }

/* ---------- Banner trượt ---------- */
.hero { position: relative; background: var(--brand-strong); color: #fff; overflow: hidden; }
.hero__track { display: grid; position: relative; z-index: 1; }
.hero__slide { grid-area: 1 / 1; opacity: 0; visibility: hidden; transition: opacity .8s ease, visibility .8s; }
.hero__slide.is-active { opacity: 1; visibility: visible; }
/* Mọi banner cùng tỉ lệ 16:7 (tối đa 620px) để trang chủ không bị đẩy xuống quá sâu */
.hero__slide--text { position: relative; display: flex; align-items: center; aspect-ratio: 16 / 7; max-height: 620px; min-height: 440px; width: 100%; overflow: hidden; }
.hero__bg, .hero__bg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__slide.is-active .hero__bg img { animation: kenburns 12s ease-out both; }
@keyframes kenburns { from { transform: scale(1.08); } to { transform: scale(1); } }
.hero__slide--text::after { content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg, rgba(0, 45, 58, .92) 0%, rgba(0, 85, 103, .80) 36%, rgba(0, 85, 103, .25) 68%, rgba(0, 85, 103, 0) 100%); }
.hero__inner { position: relative; z-index: 2; padding-top: 40px; padding-bottom: 80px; }
.hero__copy { max-width: 600px; }
/* Chuyển slide: chữ slide cũ tắt nhanh, chữ slide mới hiện sau khi ảnh đã chuyển – không bị chồng chữ */
.hero__slide .hero__inner { opacity: 0; transform: translateY(18px); transition: opacity .25s ease, transform .25s ease; }
.hero__slide.is-active .hero__inner { opacity: 1; transform: none; transition: opacity .6s ease .45s, transform .6s ease .45s; }
.hero__title { font-size: clamp(28px, 3.6vw, 48px); font-weight: 700; color: #fff; line-height: 1.18; margin-bottom: var(--space-4); text-shadow: 0 2px 12px rgba(0,0,0,.18); }
.hero__sub { font-size: 17px; font-weight: 500; color: rgba(255,255,255,.94); max-width: 540px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-6); }
.hero__banner { display: block; }
.hero__banner img { width: 100%; aspect-ratio: 16 / 7; max-height: 620px; min-height: 440px; object-fit: cover; }
.hero__arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; width: 46px; height: 46px; border-radius: 50%; border: 0; background: rgba(255,255,255,.18); color: #fff; display: grid; place-items: center; transition: background-color .2s; }
.hero__arrow:hover { background: rgba(255,255,255,.35); }
.hero__arrow--prev { left: 16px; }
.hero__arrow--next { right: 16px; }
.hero__dots { position: absolute; left: 0; right: 0; bottom: 64px; z-index: 3; display: flex; justify-content: center; gap: 8px; }
.hero__dots button { width: 10px; height: 10px; border-radius: var(--radius-pill); border: 0; padding: 0; background: rgba(255,255,255,.5); transition: width .3s, background-color .3s; }
.hero__dots button[aria-current="true"] { width: 28px; background: #fff; }

/* ---------- Đặt lịch nhanh ---------- */
.quick { position: relative; z-index: 5; margin-top: -44px; }
.quick__box { background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: var(--space-4) var(--space-6) var(--space-6); }
.quick__tabs { display: flex; gap: var(--space-2); border-bottom: 1px solid var(--line); margin-bottom: var(--space-4); }
.quick__tab { display: inline-flex; align-items: center; gap: 8px; border: 0; background: transparent; padding: 10px 14px; font-weight: 600; font-size: 14px; color: var(--ink-muted); border-bottom: 3px solid transparent; margin-bottom: -1px; }
.quick__tab.is-active { color: var(--brand-strong); border-bottom-color: var(--brand); }
.quick__info { display: grid; grid-template-columns: repeat(3, 1fr) auto; gap: var(--space-4); align-items: center; }
.quick__info > div { display: flex; gap: var(--space-3); align-items: flex-start; color: var(--brand); }
.quick__info span { display: flex; flex-direction: column; color: var(--ink); font-weight: 600; font-size: 14px; }
.quick__info small { color: var(--ink-muted); font-weight: 500; font-size: 12px; }

/* ---------- Form đặt lịch ---------- */
.bform__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-3) var(--space-4); }
.bform--compact .bform__grid { grid-template-columns: 1fr; }
.quick .bform--compact { display: grid; grid-template-columns: 1fr auto; gap: var(--space-4); align-items: end; }
.quick .bform--compact .bform__grid { grid-template-columns: repeat(3, 1fr); }
.quick .bform__msg { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 12px; font-weight: 600; color: var(--ink-muted); }
.req { color: var(--accent-red); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 44px; padding: 10px 14px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: #fff; transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.field .is-invalid { border-color: var(--accent-red); }
.check { display: flex; gap: var(--space-2); align-items: flex-start; font-size: 13px; color: var(--ink-muted); margin: var(--space-4) 0; }
.check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--brand); flex-shrink: 0; }
.bform__actions { margin-top: var(--space-4); }
.bform--compact .bform__actions { margin-top: var(--space-3); }
.quick .bform--compact .bform__actions { margin-top: 0; }
.bform__msg { margin: var(--space-3) 0 0; font-size: 14px; font-weight: 600; }
.bform__msg:empty { display: none; }
.bform__msg.is-ok { color: var(--success); background: var(--success-soft); padding: 10px 14px; border-radius: var(--radius-sm); }
.bform__msg.is-err { color: var(--accent-red); background: var(--red-soft); padding: 10px 14px; border-radius: var(--radius-sm); }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Giới thiệu ---------- */
.intro__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
/* Ghép ảnh: ảnh tòa nhà lớn + ảnh khám bệnh nhỏ chồng góc + thẻ giờ làm việc */
.intro__media { position: relative; padding: 0 32px 72px 0; }
.intro__main { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }
.intro__sub { position: absolute; right: 0; bottom: 0; width: 50%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-lg); border: 6px solid #fff; box-shadow: var(--shadow-lg); }
.intro__stat { position: absolute; left: 20px; bottom: 20px; display: flex; gap: var(--space-3); align-items: center; padding: 12px 18px 12px 12px; background: #fff; border-radius: var(--radius-md); box-shadow: var(--shadow-md); }
.intro__stat-icon { width: 46px; height: 46px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; }
.intro__stat small { display: block; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-muted); }
.intro__stat strong { display: block; font-size: 15px; color: var(--indigo); line-height: 1.3; }
.intro__stat em { display: block; font-style: normal; font-weight: 600; color: var(--brand-strong); font-size: 14px; }
.usp { list-style: none; padding: 0; margin: var(--space-6) 0; display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); }
.usp li { display: flex; gap: var(--space-3); align-items: flex-start; font-size: 13px; color: var(--ink-muted); }
.usp strong { display: block; color: var(--ink); font-size: 14px; }
.usp__icon { width: 44px; height: 44px; border-radius: var(--radius-md); background: var(--brand-soft); color: var(--brand-strong); display: grid; place-items: center; flex-shrink: 0; }

/* ---------- Dịch vụ ---------- */
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-6); }
.svc-card { display: flex; flex-direction: column; gap: var(--space-4); padding: var(--space-6); background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); color: var(--ink); transition: transform .25s, box-shadow .25s, border-color .25s; position: relative; overflow: hidden; }
.svc-card::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: linear-gradient(90deg, var(--brand), var(--sky)); transform: scaleX(0); transform-origin: left; transition: transform .3s; }
.svc-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--brand-soft); color: var(--ink); }
.svc-card:hover::after { transform: scaleX(1); }
.svc-card__icon { width: 60px; height: 60px; border-radius: 50%; background: var(--brand-soft); color: var(--brand-strong); display: grid; place-items: center; flex-shrink: 0; transition: .25s; }
.svc-card:hover .svc-card__icon { background: var(--brand); color: #fff; }
.svc-card__img img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius-md); }
.svc-card__body { display: flex; flex-direction: column; gap: var(--space-2); flex: 1; }
.svc-card__title { font-size: 17px; font-weight: 600; color: var(--indigo); }
.svc-card__desc { font-size: 14px; color: var(--ink-muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; flex: 1; }

.svc-groups { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-6); }
.svc-group { display: flex; flex-direction: column; gap: var(--space-4); padding: var(--space-6); border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; }
.svc-group__head { display: flex; gap: var(--space-4); align-items: flex-start; color: var(--ink); }
.svc-group__head > span:last-child { display: flex; flex-direction: column; gap: 4px; }
.svc-group__title { font-size: 17px; font-weight: 600; color: var(--indigo); }
.svc-group__desc { font-size: 13px; color: var(--ink-muted); }
.svc-group__list { list-style: none; margin: 0; padding: var(--space-3) 0 0; border-top: 1px dashed var(--line); display: grid; gap: 6px; flex: 1; }
.svc-group__list a { display: flex; gap: 6px; align-items: center; color: var(--ink); font-weight: 500; font-size: 14px; }
.svc-group__list a:hover { color: var(--brand-strong); }
.svc-group__list .ic { color: var(--brand); }

.svc-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-4); }
.svc-item { display: flex; gap: var(--space-4); padding: var(--space-4); border: 1px solid var(--line); border-radius: var(--radius-md); background: #fff; color: var(--ink); transition: .2s; }
.svc-item:hover { border-color: var(--brand); box-shadow: var(--shadow-md); color: var(--ink); }
.svc-item__media { width: 96px; flex-shrink: 0; display: grid; place-items: center; }
.svc-item__media img { width: 96px; height: 96px; object-fit: cover; border-radius: var(--radius-md); }
.svc-item__body { display: flex; flex-direction: column; gap: 4px; }
.svc-item__title { font-weight: 600; color: var(--indigo); font-size: 16px; }
.svc-item__tag { font-size: 14px; color: var(--ink-muted); }

/* ---------- Bác sĩ ---------- */
.scroller { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 2 * 42px) / 3); gap: 42px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 4px; }
.scroller::-webkit-scrollbar { display: none; }
.scroller > * { scroll-snap-align: start; }
/* Thẻ bác sĩ – kiểu matsaigon.com: nền bo góc có đường cong, ảnh tách nền nhô lên, nhãn tên bo tròn */
.doc { position: relative; display: block; padding: 64px 0 22px; color: var(--ink); }
.doc:hover { color: var(--ink); }
.doc__card { display: block; height: 220px; border-radius: 20px; box-shadow: 0 6px 14px rgba(0, 85, 103, .22); transition: transform .35s, box-shadow .35s;
  background: url(/img/doc-arch.svg) left 22px bottom / 150px auto no-repeat, url(/img/doc-lines.svg) right center / 46% 100% no-repeat, var(--brand); }
.doc:nth-child(even) .doc__card { background-color: var(--brand-strong); }
.doc__photo { position: absolute; left: 18px; bottom: 22px; width: 250px; height: 296px; z-index: 1; display: flex; align-items: flex-end; justify-content: center; pointer-events: none; }
.doc__photo img { max-width: 100%; max-height: 100%; object-fit: contain; object-position: bottom; transition: transform .35s; }
.doc__badge { position: absolute; left: -7px; bottom: 0; z-index: 2; width: min(330px, calc(100% - 16px)); min-height: 104px; padding: 14px 52px 14px 18px; background: #fff; border-radius: 0 80px 80px 14px;
  box-shadow: 0 4px 10px rgba(22, 33, 43, .1); display: flex; flex-direction: column; justify-content: center; gap: 2px; }
.doc__name { font-size: 18px; font-weight: 700; line-height: 1.25; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 4px; transition: color .25s; }
.doc__degree { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--brand-strong); }
.doc__job { font-size: 12.5px; line-height: 1.4; color: var(--ink-muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.doc:hover .doc__card { transform: translateY(-4px); box-shadow: 0 14px 28px rgba(0, 85, 103, .28); }
.doc:hover .doc__photo img { transform: translateY(-6px); }
.doc:hover .doc__name { color: var(--brand-strong); }
.doc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 56px 42px; padding-left: 7px; }
.doc-grid > .doc:nth-child(3n+2) { margin-top: 40px; }
.doc[hidden] { display: none; }
.scroller > .doc { margin-left: 7px; }
.doc-filter { display: flex; gap: var(--space-4); align-items: flex-end; flex-wrap: wrap; padding: var(--space-4) var(--space-6); margin-bottom: var(--space-8); background: #fff; border-radius: 40px; box-shadow: var(--shadow-md); }
.doc-filter .field { flex: 1 1 220px; }
.doctors-banner { width: 100%; border-radius: var(--radius-lg); margin-bottom: var(--space-8); }
.doc-profile { display: grid; grid-template-columns: 380px 1fr; gap: 48px; align-items: start; margin-bottom: var(--space-8); }
.doc-profile__photo { position: relative; padding-top: 70px; }
.doc-profile__photo .doc__card { height: 360px; background-size: 210px auto, 46% 100%, auto; }
.doc-profile__photo img { position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); max-height: 430px; max-width: 90%; object-fit: contain; object-position: bottom; }
.doc-profile__pos { font-size: 17px; font-weight: 600; color: var(--ink); }
.doc-profile__bio .check-list { margin-bottom: var(--space-6); font-size: 15px; }
.doc-quote { margin: var(--space-6) 0; padding: var(--space-4) var(--space-6); background: var(--sky-50); border-left: 4px solid var(--brand); border-radius: 0 var(--radius-md) var(--radius-md) 0; display: flex; gap: var(--space-3); font-style: italic; font-size: 16px; color: var(--indigo); }
.doc-quote .ic { color: var(--brand); flex-shrink: 0; }
.doc-profile__actions { display: flex; gap: var(--space-3); flex-wrap: wrap; margin-top: var(--space-6); }

/* ---------- CTA ---------- */
.cta { background: linear-gradient(110deg, var(--indigo) 0%, var(--brand-strong) 50%, var(--brand) 100%); color: #fff; padding: 48px 0; position: relative; overflow: hidden; }
.cta::after { content: ""; position: absolute; width: 380px; height: 380px; border-radius: 50%; background: var(--sky); opacity: .15; right: -100px; top: -160px; }
.cta__in { display: flex; align-items: center; justify-content: space-between; gap: var(--space-8); position: relative; z-index: 1; flex-wrap: wrap; }
.cta__title { color: #fff; font-size: clamp(22px, 2.6vw, 30px); font-weight: 700; margin-bottom: var(--space-2); }
.cta__text { margin: 0; color: rgba(255,255,255,.9); max-width: 620px; }
.cta__actions { display: flex; align-items: center; gap: var(--space-6); flex-wrap: wrap; }
.cta__hotline { display: inline-flex; align-items: center; gap: var(--space-3); color: #fff; font-size: 24px; font-weight: 700; }
.cta__hotline:hover { color: #fff; }
.cta__hotline > .ic { width: 52px; height: 52px; padding: 13px; border-radius: 50%; background: var(--accent-red); }
.cta__hotline span { display: flex; flex-direction: column; line-height: 1.15; }
.cta__hotline small { font-size: 12px; font-weight: 600; opacity: .85; }

/* ---------- Cảm nhận ---------- */
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-6); }
.testi { margin: 0; background: #fff; border-radius: var(--radius-lg); padding: var(--space-6); border: 1px solid var(--line); display: flex; flex-direction: column; gap: var(--space-4); position: relative; }
.testi__quote-icon { color: var(--brand-soft); }
.testi__quote { margin: 0; flex: 1; color: var(--ink); font-size: 15px; }
.testi__who { display: flex; align-items: center; gap: var(--space-3); flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: var(--space-4); }
.testi__who > span:not(.chip) { display: flex; flex-direction: column; line-height: 1.3; margin-right: auto; }
.testi__who small { color: var(--ink-muted); }
.avatar { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.avatar--initials { display: grid; place-items: center; background: var(--indigo-soft); color: var(--indigo); font-weight: 700; }

/* ---------- Bài viết ---------- */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-6); }
.layout-sidebar .post-grid { grid-template-columns: repeat(2, 1fr); }
.post-grid--3, .layout-sidebar .post-grid--3 { grid-template-columns: repeat(3, 1fr); }
.post-grid--home { grid-template-columns: 1.3fr 1fr 1fr; grid-template-rows: auto auto; }
.post-grid--home .post-card--large { grid-row: span 2; }
.post-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-md); overflow: hidden; transition: box-shadow .25s, transform .25s; }
.post-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.post-card__thumb { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--sky-50); }
.post-card__thumb > img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.post-card:hover .post-card__thumb > img { transform: scale(1.05); }
.thumb-empty { width: 100%; height: 100%; display: grid; place-items: center; background: linear-gradient(135deg, var(--sky-50), var(--brand-soft)); }
.thumb-empty img { width: 30%; max-width: 110px; opacity: .9; }
.post-card__body { padding: var(--space-4); display: flex; flex-direction: column; gap: var(--space-2); flex: 1; }
.post-card__meta { display: flex; align-items: center; justify-content: space-between; gap: var(--space-2); font-size: 12px; color: var(--ink-muted); }
.post-card__title { font-size: 16px; font-weight: 600; margin: 0; }
.post-card__title a { color: var(--indigo); }
.post-card__title a:hover { color: var(--brand-strong); }
.post-card__excerpt { font-size: 14px; color: var(--ink-muted); margin: 0; flex: 1; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.post-card--large .post-card__thumb { aspect-ratio: 16 / 11; }
.post-card--large .post-card__title { font-size: 20px; }
.post-grid--home .post-card:not(.post-card--large) .post-card__excerpt { display: none; }
.post-grid--home .post-card:not(.post-card--large) .post-card__thumb { aspect-ratio: 16 / 8; }

/* ---------- Trang con ---------- */
.page-hero { background: linear-gradient(110deg, rgba(0, 61, 75, .95) 0%, rgba(0, 85, 103, .9) 45%, rgba(49, 137, 161, .78) 100%), url(/img/hoat-dong/toa-nha-benh-vien.webp) center 40% / cover no-repeat; color: #fff; padding: 44px 0 48px; position: relative; overflow: hidden; }
.page-hero::after { content: ""; position: absolute; width: 320px; height: 320px; border-radius: 50%; background: var(--sky); opacity: .16; right: -80px; top: -140px; }
.page-hero__title { color: #fff; font-size: clamp(24px, 3.2vw, 36px); font-weight: 700; margin: 0; position: relative; z-index: 1; }
.page-hero__lead { margin: var(--space-3) 0 0; color: rgba(255,255,255,.9); max-width: 760px; font-weight: 500; position: relative; z-index: 1; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 var(--space-3); padding: 0; font-size: 13px; position: relative; z-index: 1; }
.crumbs li + li::before { content: "/"; margin-right: 6px; opacity: .6; }
.crumbs a { color: rgba(255,255,255,.85); }
.crumbs a:hover { color: #fff; text-decoration: underline; }
.crumbs [aria-current] { color: #fff; font-weight: 600; }
.article__meta { display: flex; gap: var(--space-4); align-items: center; margin: var(--space-3) 0 0; font-size: 14px; position: relative; z-index: 1; }
.article__meta > span { display: inline-flex; gap: 6px; align-items: center; }

.layout-sidebar { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 40px; align-items: start; }
.layout-sidebar--left { grid-template-columns: 280px minmax(0, 1fr); }
.side-nav { position: sticky; top: calc(var(--header-h) + 64px); border: 1px solid var(--line); border-radius: var(--radius-md); overflow: hidden; background: #fff; }
.side-nav__title { margin: 0; padding: 14px 18px; background: var(--indigo); color: #fff; font-size: 15px; font-weight: 600; }
.side-nav ul { list-style: none; margin: 0; padding: var(--space-2); }
.side-nav a { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-radius: var(--radius-sm); color: var(--ink); font-weight: 500; font-size: 14px; }
.side-nav a .ic { color: var(--brand); }
.side-nav a:hover { background: var(--sky-50); color: var(--brand-strong); }
.side-nav a.is-active { background: var(--brand); color: #fff; font-weight: 600; }
.side-nav a.is-active .ic { color: #fff; }
.sidebar { display: flex; flex-direction: column; gap: var(--space-6); position: sticky; top: calc(var(--header-h) + 64px); }
.side-box { border: 1px solid var(--line); border-radius: var(--radius-md); padding: var(--space-4) var(--space-4) var(--space-6); background: #fff; }
.side-box--booking { background: var(--sky-50); border-color: var(--brand-soft); }
.side-box__title { font-size: 16px; font-weight: 600; color: var(--indigo); padding-bottom: var(--space-3); margin-bottom: var(--space-3); border-bottom: 2px solid var(--brand-soft); }
.side-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.side-links a { display: flex; gap: 6px; align-items: center; padding: 6px 0; color: var(--ink); font-size: 14px; font-weight: 500; }
.side-links a .ic { color: var(--brand); }
.side-links a:hover { color: var(--brand-strong); }
.mini-posts { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-3); }
.mini-posts a { display: flex; gap: var(--space-3); color: var(--ink); }
.mini-posts__thumb { width: 76px; height: 56px; flex-shrink: 0; border-radius: var(--radius-sm); overflow: hidden; background: var(--sky-50); display: grid; place-items: center; }
.mini-posts__thumb img { width: 100%; height: 100%; object-fit: cover; }
.mini-posts__thumb img.is-logo { width: 34px; height: 34px; object-fit: contain; }
.mini-posts strong { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 13px; line-height: 1.4; }
.mini-posts a:hover strong { color: var(--brand-strong); }
.mini-posts small { color: var(--ink-muted); font-size: 12px; }
.check-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-2); font-size: 14px; }
.check-list li { display: flex; gap: var(--space-2); }
.check-list .ic { color: var(--success); margin-top: 3px; }

.article__lead { font-size: 17px; font-weight: 600; color: var(--indigo); border-left: 4px solid var(--brand); padding-left: var(--space-4); }
.article__cover { width: 100%; border-radius: var(--radius-md); margin-bottom: var(--space-6); }
.article__cta { margin: var(--space-6) 0; }
.prose { font-size: 16px; line-height: 1.8; }
.prose h2 { font-size: 22px; font-weight: 700; color: var(--indigo); margin-top: var(--space-8); }
.prose h3 { font-size: 18px; font-weight: 600; color: var(--brand-strong); margin-top: var(--space-6); }
.prose img { border-radius: var(--radius-md); margin: var(--space-4) auto; }
/* Nhiều ảnh trong cùng một đoạn: hiển thị dạng lưới */
.prose p:has(> img + img) { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
.prose p:has(> img + img) img { margin: 0; width: 100%; aspect-ratio: 1; object-fit: cover; }
.prose ul, .prose ol { padding-left: 22px; margin: 0 0 var(--space-4); }
.prose li { margin-bottom: 6px; }
.prose li::marker { color: var(--brand); font-weight: 600; }
.prose blockquote { margin: var(--space-6) 0; padding: var(--space-4) var(--space-6); background: var(--sky-50); border-left: 4px solid var(--brand); border-radius: 0 var(--radius-md) var(--radius-md) 0; font-style: italic; }
.prose table { width: 100%; border-collapse: collapse; margin: var(--space-4) 0; font-size: 14px; }
.prose th, .prose td { border: 1px solid var(--line); padding: 8px 12px; text-align: left; }
.prose th { background: var(--surface-200); }
.prose iframe { width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; border-radius: var(--radius-md); }
.prose a { text-decoration: underline; }
.prose .ql-align-center { text-align: center; }
.prose .ql-align-right { text-align: right; }
.prose .ql-align-justify { text-align: justify; }
.prose .ql-indent-1 { padding-left: 3em; }
.prose .ql-indent-2 { padding-left: 6em; }
.prose .ql-size-small { font-size: .85em; }
.prose .ql-size-large { font-size: 1.4em; }
.prose .ql-size-huge { font-size: 2em; }
.prose li[data-list="bullet"] { list-style-type: disc; }

.share { display: flex; align-items: center; gap: var(--space-2); margin: var(--space-6) 0; padding: var(--space-4) 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-weight: 600; }
.share__btn { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--facebook); display: inline-grid; place-items: center; font-size: 11px; font-weight: 700; }
.share__btn--zalo { color: var(--zalo); }
.share__btn:hover { background: var(--sky-50); }
.share__btn[data-copy-link] { color: var(--brand-strong); }

.contact-card { margin-top: var(--space-6); border-radius: var(--radius-md); padding: var(--space-6); background: var(--sky-50); border: 1px solid var(--brand-soft); }
.sidebar .contact-card { margin-top: 0; }
.contact-card__title { font-size: 17px; font-weight: 700; color: var(--indigo); }
.icon-list { list-style: none; margin: 0 0 var(--space-4); padding: 0; display: grid; gap: var(--space-2); font-size: 14px; }
.icon-list li { display: flex; gap: var(--space-2); align-items: flex-start; }
.icon-list .ic { color: var(--brand); margin-top: 3px; }
.contact-card__actions { display: flex; gap: var(--space-2); flex-wrap: wrap; }

.pager { display: flex; justify-content: center; gap: 6px; margin-top: var(--space-8); flex-wrap: wrap; }
.pager__btn { min-width: 40px; height: 40px; padding: 0 10px; border-radius: var(--radius-pill); border: 1px solid var(--line); display: inline-grid; place-items: center; color: var(--ink); font-weight: 600; }
.pager__btn:hover { border-color: var(--brand); color: var(--brand-strong); }
.pager__btn.is-current { background: var(--brand); border-color: var(--brand); color: #fff; }
.pager__gap { align-self: center; color: var(--ink-muted); }

.contact-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-4); margin-bottom: var(--space-8); }
.tile { padding: var(--space-6); border: 1px solid var(--line); border-radius: var(--radius-md); background: #fff; color: var(--brand); }
.tile h2 { font-size: 16px; color: var(--indigo); margin: var(--space-3) 0 var(--space-2); }
.tile p { color: var(--ink); margin-bottom: var(--space-2); font-size: 14px; }
.contact-main { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-6); align-items: stretch; }
.map-block { display: grid; grid-template-columns: 400px 1fr; gap: var(--space-6); align-items: stretch; }
.map-block .contact-card { margin-top: 0; background: #fff; }
.map-frame { border-radius: var(--radius-md); overflow: hidden; border: 1px solid var(--line); min-height: 320px; background: var(--surface-200); }
.map-frame iframe { width: 100%; height: 100%; min-height: 320px; border: 0; display: block; }
.map-frame--tall, .map-frame--tall iframe { min-height: 460px; }

.search-results { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--space-4); }
.search-results li { padding: var(--space-4); border: 1px solid var(--line); border-radius: var(--radius-md); }
.search-results__title { display: block; font-weight: 600; font-size: 17px; color: var(--indigo); margin: 6px 0; }
.search-results p { margin: 0; color: var(--ink-muted); font-size: 14px; }
.status-page { text-align: center; padding: 40px 16px; }
.status-page__code { font-size: 72px; font-weight: 700; color: var(--brand-soft); line-height: 1; margin-bottom: var(--space-4); }
.status-page__actions { display: flex; gap: var(--space-3); justify-content: center; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.footer { background: var(--brand-strong); color: rgba(255,255,255,.88); font-size: 14px; }
.footer__grid { display: grid; grid-template-columns: 1.3fr 1.2fr 1fr 1fr; gap: 40px; padding-top: 56px; padding-bottom: 40px; }
.footer__about p { margin: var(--space-4) 0; }
.footer__title { color: #fff; font-size: 15px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; margin-bottom: var(--space-4); padding-bottom: var(--space-3); position: relative; }
.footer__title::after { content: ""; position: absolute; left: 0; bottom: 0; width: 36px; height: 3px; border-radius: 2px; background: var(--sky); }
.footer a { color: rgba(255,255,255,.88); }
.footer a:hover { color: #fff; }
.footer__links { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer__contact { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-3); }
.footer__contact li { display: flex; gap: var(--space-2); align-items: flex-start; }
.footer__contact .ic { color: var(--sky); margin-top: 3px; }
.footer__social { display: flex; gap: var(--space-2); }
.footer__social a { width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.12); display: grid; place-items: center; }
.footer__social a:hover { background: var(--brand); }
.zalo-text { font-size: 10px; font-weight: 700; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.15); padding: 16px 0; font-size: 13px; text-align: center; background: rgba(0,0,0,.12); }

/* ---------- Nút nổi ---------- */
.float-actions { position: fixed; right: 20px; bottom: 24px; z-index: 55; display: flex; flex-direction: column; gap: 10px; align-items: flex-end; }
.float-btn { height: 52px; min-width: 52px; border-radius: var(--radius-pill); border: 0; display: inline-flex; align-items: center; justify-content: center; gap: 8px; color: #fff; box-shadow: var(--shadow-md); font-weight: 700; transition: transform .2s; }
.float-btn:hover { transform: scale(1.06); color: #fff; }
.float-btn--phone { background: var(--accent-red); padding: 0 18px 0 14px; }
.float-btn--phone .ic { animation: ring 2.4s infinite; }
.float-btn--zalo { background: var(--zalo); font-size: 13px; }
.float-btn--messenger { background: var(--facebook); }
.float-btn--top { background: var(--indigo); width: 44px; min-width: 44px; height: 44px; opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; }
.float-btn--top.is-visible { opacity: 1; visibility: visible; }
.mobile-bar { display: none; }

/* ---------- Hộp thoại ---------- */
.modal { border: 0; padding: 0; border-radius: var(--radius-lg); width: min(640px, calc(100% - 24px)); max-height: calc(100dvh - 24px); box-shadow: var(--shadow-lg); }
.modal::backdrop { background: rgba(22, 33, 43, .55); backdrop-filter: blur(2px); }
.modal__box { padding: var(--space-8); position: relative; }
.modal__close { position: absolute; top: 14px; right: 14px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--surface-100); color: var(--ink); display: grid; place-items: center; }
.modal__close:hover { background: var(--surface-200); }
.modal__title { font-size: 24px; font-weight: 700; color: var(--indigo); }
.modal__lead { color: var(--ink-muted); font-size: 14px; }
.modal[open] { animation: pop .25s ease; }
@keyframes pop { from { opacity: 0; transform: translateY(12px) scale(.98); } }

/* ---------- Hiệu ứng xuất hiện ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}



/* ---------- Thẻ dịch vụ: ảnh thật + tên trên dải màu + nút trong ô khoét góc ---------- */
.svc-tiles { --notch: var(--sky-50); display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.svc-tile { position: relative; display: block; aspect-ratio: 6 / 5; border-radius: 20px; overflow: hidden; isolation: isolate; color: #fff; background: var(--brand-strong); transition: transform .35s ease, box-shadow .35s ease; }
.svc-tile:hover { color: #fff; transform: translateY(-4px); box-shadow: 0 16px 32px rgba(0, 85, 103, .22); }
.svc-tile__img { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .7s ease; }
.svc-tile:hover .svc-tile__img { transform: scale(1.07); }
.svc-tile__img--icon { display: grid; place-items: center; color: rgba(255, 255, 255, .28); background: radial-gradient(circle at 72% 62%, var(--sky) 0%, var(--brand) 48%, var(--brand-strong) 100%); }
.svc-tile::before { content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(165deg, rgba(0, 61, 75, .62) 0%, rgba(0, 85, 103, .18) 38%, rgba(0, 85, 103, 0) 55%),
              linear-gradient(0deg, rgba(0, 45, 58, .78) 0%, rgba(0, 45, 58, .25) 32%, rgba(0, 45, 58, 0) 52%); }
.svc-tile__title { position: absolute; z-index: 2; top: 18px; left: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 3px; max-width: 92%; }
.svc-tile__title span { padding: 5px 40px 5px 16px; font-size: 15px; font-weight: 700; line-height: 1.25; letter-spacing: .02em; text-transform: uppercase; color: #fff;
  background: linear-gradient(90deg, var(--brand-strong) 0%, var(--brand-strong) 62%, rgba(0, 85, 103, 0) 100%); }
.svc-tile__title span:first-child:not(:last-child) { font-size: 13px; background: linear-gradient(90deg, rgba(49, 137, 161, .95) 0%, rgba(49, 137, 161, .95) 62%, rgba(49, 137, 161, 0) 100%); }
.svc-tile__desc { display: none; position: absolute; z-index: 2; left: 16px; right: 150px; bottom: 14px; font-size: 12.5px; line-height: 1.4; color: rgba(255, 255, 255, .94);
  -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.svc-tile__notch { position: absolute; z-index: 2; right: 0; bottom: 0; padding: 10px 0 0 10px; background: var(--notch); border-top-left-radius: 22px; }
.svc-tile__notch::before, .svc-tile__notch::after { content: ""; position: absolute; width: 22px; height: 22px; background: radial-gradient(circle at 0 0, transparent 21.5px, var(--notch) 22px); }
.svc-tile__notch::before { right: 0; top: -22px; }
.svc-tile__notch::after { left: -22px; bottom: 0; }
.svc-tile__btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px; border: 1.5px solid var(--brand); border-radius: var(--radius-pill); background: #fff; color: var(--brand-strong); font-size: 13px; font-weight: 600; white-space: nowrap; transition: background-color .25s, color .25s; }
.svc-tile:hover .svc-tile__btn { background: var(--brand); color: #fff; }
.section__more { text-align: center; margin-top: var(--space-8); }
.svc-group__img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; flex-shrink: 0; border: 3px solid var(--brand-soft); }

/* ---------- Hình ảnh hoạt động + xem ảnh lớn ---------- */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 200px; gap: 12px; }
.gallery__item { position: relative; display: block; overflow: hidden; border-radius: var(--radius-md); background: var(--surface-200); }
.gallery__item:first-child { grid-column: span 2; grid-row: span 2; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.gallery__item:hover img { transform: scale(1.06); }
.gallery__cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 28px 14px 12px; color: #fff; font-size: 13px; font-weight: 600; line-height: 1.4;
  background: linear-gradient(0deg, rgba(0, 35, 45, .85), transparent); opacity: 0; transform: translateY(8px); transition: opacity .3s, transform .3s; }
.gallery__item:first-child .gallery__cap, .gallery__item:hover .gallery__cap, .gallery__item:focus-visible .gallery__cap { opacity: 1; transform: none; }
.gallery__item:first-child .gallery__cap { font-size: 15px; padding: 40px 18px 16px; }
.lightbox { border: 0; padding: 0; background: transparent; max-width: min(1100px, 94vw); max-height: 94dvh; overflow: visible; }
.lightbox::backdrop { background: rgba(10, 20, 26, .88); }
.lightbox__img { display: block; max-width: min(1100px, 94vw); max-height: 82dvh; border-radius: var(--radius-md); object-fit: contain; margin: 0 auto; }
.lightbox__cap { color: #fff; text-align: center; margin: 12px 0 0; font-weight: 600; }
.lightbox__btn { position: fixed; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255,255,255,.16); color: #fff; display: grid; place-items: center; }
.lightbox__btn:hover { background: rgba(255,255,255,.3); }
.lightbox__btn--prev { left: 16px; }
.lightbox__btn--next { right: 16px; }
.lightbox__close { position: fixed; top: 16px; right: 16px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255,255,255,.16); color: #fff; display: grid; place-items: center; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1100px) {
  .search { display: none; }
  .nav__link { padding: 0 12px; font-size: 13px; }
  .scroller { grid-auto-columns: calc((100% - 42px) / 2); }
  .doc-grid { grid-template-columns: repeat(2, 1fr); }
  .doc-grid > .doc:nth-child(3n+2) { margin-top: 0; }
  .doc-grid > .doc:nth-child(even) { margin-top: 40px; }
  .doc-profile { grid-template-columns: 1fr; }
  .doc-profile__photo { max-width: 420px; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 960px) {
  :root { --header-h: 68px; }
  .topbar { display: none; }
  .header__in { gap: var(--space-3); }
  .brand__logo, .header.is-scrolled .brand__logo { width: 46px; height: 46px; }
  .brand__l1 { font-size: 11px; }
  .brand__l2 { font-size: 16px; }
  .hotline { margin-left: auto; }
  .hotline__text small { display: none; }
  .hotline__text strong { font-size: 16px; }
  .header__cta { display: none; }
  .nav-toggle { display: inline-grid; }

  .nav { position: fixed; top: 0; right: 0; bottom: 0; width: min(340px, 86vw); background: #fff; z-index: 80; transform: translateX(100%); transition: transform .3s ease; overflow-y: auto; box-shadow: var(--shadow-lg); }
  .nav.is-open { transform: none; }
  .nav__in { padding: 0; }
  .nav__head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; background: var(--brand); color: #fff; font-weight: 700; text-transform: uppercase; }
  .nav__close { border: 0; background: rgba(255,255,255,.15); color: #fff; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; }
  .nav__list { flex-direction: column; padding: var(--space-2) 0; }
  .nav__list > li { flex-wrap: wrap; border-bottom: 1px solid var(--surface-200); }
  .nav__link { flex: 1; color: var(--ink); min-height: 50px; padding: 0 16px; }
  .nav__link:hover, .nav__link.is-active, .has-sub:hover > .nav__link { background: transparent; color: var(--brand-strong); }
  .nav__link.is-active { box-shadow: inset 4px 0 0 var(--brand); }
  .has-sub > .nav__link::after { display: none; }
  .sub-toggle { display: grid; place-items: center; width: 50px; height: 50px; border: 0; background: transparent; color: var(--brand-strong); }
  .sub-toggle[aria-expanded="true"] .ic { transform: rotate(180deg); }
  .sub { position: static; width: 100%; min-width: 0; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; border-radius: 0; background: var(--surface-100); display: none; }
  .has-sub:hover > .sub { opacity: 1; }
  .has-sub.is-open > .sub { display: block; }
  .nav__mobile { display: grid; gap: var(--space-2); padding: var(--space-4); }
  .nav-backdrop { position: fixed; inset: 0; background: rgba(22, 33, 43, .5); z-index: 70; }
  body.nav-open .nav-backdrop { display: block; }
  body.nav-open { overflow: hidden; }

  .hero__arrow { display: none; }
  .hero__inner { padding-bottom: 96px; }
  .quick__info { grid-template-columns: 1fr 1fr; }
  .quick .bform--compact { grid-template-columns: 1fr; }
  .intro__grid { grid-template-columns: 1fr; gap: 40px; }
  .intro__media { max-width: 560px; }
  .svc-grid, .svc-groups { grid-template-columns: repeat(2, 1fr); }
  .svc-tiles { grid-template-columns: repeat(2, 1fr); }
  .testi-grid { grid-template-columns: 1fr 1fr; }
  .post-grid, .post-grid--home { grid-template-columns: 1fr 1fr; }
  .gallery { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 170px; }
  .post-grid--home .post-card--large { grid-row: auto; grid-column: 1 / -1; }
  .layout-sidebar, .layout-sidebar--left { grid-template-columns: 1fr; }
  .side-nav, .sidebar { position: static; }
  .contact-tiles { grid-template-columns: 1fr 1fr; }
  .contact-main, .map-block { grid-template-columns: 1fr; }

  .float-actions { display: none; }
  .mobile-bar { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); position: fixed; left: 0; right: 0; bottom: 0; z-index: 55; background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -4px 16px rgba(0,0,0,.08); padding-bottom: env(safe-area-inset-bottom); }
  .mobile-bar > a, .mobile-bar > button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 8px 2px; min-height: 60px; border: 0; background: transparent; color: var(--brand-strong); font-size: 11px; font-weight: 600; }
  .mobile-bar > a:first-child { color: var(--accent-red); }
  .mobile-bar__main { background: var(--brand) !important; color: #fff !important; }
  .zalo-mark { color: var(--zalo); font-size: 13px; line-height: 20px; }
  body { padding-bottom: 60px; }
}

@media (max-width: 640px) {
  body { font-size: 15px; }
  .section { padding: 44px 0; }
  .brand__text { display: none; }
  .hotline__icon { width: 38px; height: 38px; }
  .hero__dots { bottom: 60px; }
  /* Breadcrumb gọn trên điện thoại: bỏ mục trang hiện tại (đã có tiêu đề lớn bên dưới), mục dài thì rút gọn */
  .crumbs li:has([aria-current]) { display: none; }
  .crumbs li { max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .hero__slide--text { min-height: 460px; align-items: flex-end; }
  .hero__slide--text::after { background: linear-gradient(0deg, rgba(0, 45, 58, .94) 0%, rgba(0, 85, 103, .78) 48%, rgba(0, 85, 103, .15) 100%); }
  .hero__banner img { min-height: 0; aspect-ratio: 16 / 9; }
  /* Banner chỉ có ảnh (chữ in sẵn) đọc không rõ trên điện thoại: ẩn nếu có banner dạng chữ */
  .hero--has-text .hero__slide--no-mobile { display: none; }
  .intro__media { padding: 0 0 56px; }
  .intro__stat { display: none; }
  .quick__box { padding: var(--space-3) var(--space-4) var(--space-4); }
  .quick__tab { padding: 8px 6px; font-size: 13px; }
  .quick .bform--compact .bform__grid, .bform__grid { grid-template-columns: 1fr; }
  .quick__info { grid-template-columns: 1fr; }
  .usp { grid-template-columns: 1fr; }
  .svc-tiles { gap: 12px; }
  .svc-tile { border-radius: 14px; aspect-ratio: 4 / 5; }
  .svc-tile__title { top: 10px; }
  .svc-tile__title span { font-size: 12px; padding: 4px 22px 4px 10px; }
  .svc-tile__title span:first-child:not(:last-child) { font-size: 10.5px; }
  .svc-tile__desc { display: none; }
  .svc-tile__notch { padding: 6px 0 0 6px; border-top-left-radius: 14px; }
  .svc-tile__notch::before, .svc-tile__notch::after { width: 14px; height: 14px; background: radial-gradient(circle at 0 0, transparent 13.5px, var(--notch) 14px); }
  .svc-tile__notch::before { top: -14px; }
  .svc-tile__notch::after { left: -14px; }
  .svc-tile__btn { padding: 6px 10px; font-size: 11.5px; }
  .gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: 130px; gap: 8px; }
  .gallery__cap { display: none; }
  .gallery__item:first-child .gallery__cap { display: block; }
  .svc-grid, .svc-groups, .svc-list, .testi-grid, .post-grid, .post-grid--home, .post-grid--3, .layout-sidebar .post-grid, .layout-sidebar .post-grid--3 { grid-template-columns: 1fr; }
  .scroller { grid-auto-columns: 86%; gap: var(--space-6); }
  .doc-grid { grid-template-columns: 1fr; gap: 36px; }
  .doc-grid > .doc:nth-child(n) { margin-top: 0; }
  .doc-filter { border-radius: var(--radius-lg); }
  .contact-tiles { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; gap: 28px; }
  .cta__actions { width: 100%; }
  .modal__box { padding: var(--space-6) var(--space-4); }
  .section__head--split .section__tools .round-btn { display: none; }
}

/* ==========================================================================
   Animation Lottie, nền trang trí và hiệu ứng chuyển động
   (tất cả tự tắt khi người dùng bật "giảm chuyển động" – xem khối prefers-reduced-motion ở trên)
   ========================================================================== */
[data-lottie] { opacity: 0; transition: opacity .4s ease; }
[data-lottie].is-ready { opacity: 1; }
[data-lottie] svg { display: block; }

.cta__anim { flex: 0 0 auto; width: 112px; height: 112px; padding: 10px; border-radius: 50%; background: rgba(255, 255, 255, .96); box-shadow: 0 12px 32px rgba(0, 0, 0, .18); }
.cta__copy { flex: 1 1 320px; }
.modal__head { display: flex; align-items: center; gap: var(--space-4); margin-bottom: var(--space-3); padding-right: 44px; }
.modal__head .modal__title { margin-bottom: 0; }
.modal__anim { flex: 0 0 64px; width: 64px; height: 64px; }
.form-head { display: flex; align-items: center; gap: var(--space-3); margin-bottom: var(--space-4); }
.form-head .section__title { margin: 0; }
.form-head .eyebrow { margin-bottom: 2px; }
.form-head__anim { flex: 0 0 56px; width: 56px; height: 56px; }
.form-head__anim--lg { flex-basis: 84px; width: 84px; height: 84px; }
.status-page__anim { width: min(320px, 80%); aspect-ratio: 424 / 403; margin: 0 auto var(--space-4); }
.bform__ok-anim { display: inline-block; width: 30px; height: 30px; margin-right: 6px; vertical-align: middle; }

/* Nền: lưới chấm mờ + mảng màu loang trôi chậm */
.section--tint, .section--soft, .intro { position: relative; isolation: isolate; overflow: hidden; overflow: clip; }
.section--tint::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: radial-gradient(rgba(49, 137, 161, .18) 1.2px, transparent 1.5px); background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(ellipse 75% 65% at 50% 35%, #000 25%, transparent 75%); mask-image: radial-gradient(ellipse 75% 65% at 50% 35%, #000 25%, transparent 75%); }
.section--tint::after, .section--soft::after, .intro::after { content: ""; position: absolute; z-index: -1; width: 540px; height: 540px; border-radius: 50%;
  pointer-events: none; filter: blur(50px); animation: blob 18s ease-in-out infinite alternate; }
.section--tint::after { background: radial-gradient(circle, rgba(91, 203, 245, .42), transparent 65%); top: -200px; right: -160px; }
.section--soft::after { background: radial-gradient(circle, rgba(200, 233, 239, .95), transparent 65%); bottom: -240px; left: -200px; animation-duration: 22s; }
.intro::after { background: radial-gradient(circle, rgba(91, 203, 245, .26), transparent 65%); top: 8%; left: -240px; animation-duration: 20s; }
@keyframes blob { from { transform: translate(0, 0) scale(1); } to { transform: translate(-60px, 40px) scale(1.15); } }

/* Khối kêu gọi đặt lịch: dải màu chuyển động + bong bóng nổi */
.cta { background-size: 200% 200%; animation: ctaShift 14s ease-in-out infinite alternate; }
@keyframes ctaShift { from { background-position: 0% 50%; } to { background-position: 100% 50%; } }
.cta__bubble { position: absolute; border-radius: 50%; background: rgba(255, 255, 255, .08); pointer-events: none; animation: floaty 9s ease-in-out infinite; }
.cta__bubble--1 { width: 180px; height: 180px; left: 3%; bottom: -80px; }
.cta__bubble--2 { width: 90px; height: 90px; left: 40%; top: -34px; animation-duration: 11s; animation-delay: -4s; }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-18px); } }

/* Gạch nhấn dưới tiêu đề khối (căn giữa) */
.section__head--center .section__title::after { content: ""; display: block; width: 56px; height: 4px; margin: 14px auto 0; border-radius: 4px;
  background: linear-gradient(90deg, var(--brand), var(--sky)); }

/* Nút chính: vệt sáng lướt qua khi rê chuột */
.btn--primary, .btn--accent { position: relative; overflow: hidden; isolation: isolate; }
.btn--primary::after, .btn--accent::after { content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%; z-index: -1;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .38), transparent); transform: skewX(-20deg); transition: left .6s ease; }
.btn--primary:hover::after, .btn--accent:hover::after { left: 120%; }

@media (max-width: 640px) {
  .cta__anim { width: 84px; height: 84px; padding: 8px; }
  .section--tint::after, .section--soft::after, .intro::after { width: 340px; height: 340px; }
  .modal__anim { flex-basis: 52px; width: 52px; height: 52px; }
}
@media (max-width: 759px) {
  body.is-typing .eye-chatbot-root { opacity: 0; pointer-events: none; transition: opacity .2s; }
}

/* ==========================================================================
   Linh vật "Mắt thần" (lấy từ trang báo cáo nội bộ) – khối "Hãy gọi ngay"
   ========================================================================== */
.mascot { --mascot-size: 168px; --mascot-tilt: 0deg; --mascot-lean: 0px;
  position: relative; flex: 0 0 auto; width: var(--mascot-size); height: var(--mascot-size); cursor: pointer;
  -webkit-tap-highlight-color: transparent; user-select: none; }
.mascot.is-in { animation: mascotPop .9s cubic-bezier(.2, 1.6, .4, 1) both; }
@keyframes mascotPop { 0% { opacity: 0; transform: translateY(40px) scale(.4) rotate(-12deg); } 60% { opacity: 1; } 100% { opacity: 1; transform: none; } }
.mascot__shadow { position: absolute; left: 22%; right: 34%; bottom: 3%; height: 7%; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(0, 20, 40, .45), transparent); animation: mascotShadow 3.6s ease-in-out infinite; }
.mascot__body { position: absolute; inset: 0; transform-origin: 42% 90%; rotate: var(--mascot-tilt); translate: var(--mascot-lean) 0;
  animation: mascotFloat 3.6s ease-in-out infinite; }
@keyframes mascotFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
@keyframes mascotShadow { 0%, 100% { transform: scaleX(1); opacity: 1; } 50% { transform: scaleX(.86); opacity: .7; } }
.mascot__img, .mascot__eye, .mascot__eye svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.mascot__img { filter: drop-shadow(0 10px 16px rgba(0, 20, 50, .35)); pointer-events: none; }
.mascot__eye { -webkit-mask-image: url(/img/linh-vat/linh-vat-mat-trong.webp); mask-image: url(/img/linh-vat/linh-vat-mat-trong.webp);
  -webkit-mask-size: 100% 100%; mask-size: 100% 100%; pointer-events: none; }
/* Quầng sáng sau lưng để linh vật nổi trên nền xanh đậm */
.mascot__aura { position: absolute; left: 45%; top: 48%; width: 92%; aspect-ratio: 1; translate: -50% -50%; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(200, 233, 239, .55), rgba(91, 203, 245, .18) 60%, transparent); }
.mascot__pupil { transform-box: fill-box; transform-origin: center; transition: transform .6s cubic-bezier(.3, 1.4, .5, 1); }
.mascot__lid { transition: transform .13s cubic-bezier(.5, 0, .5, 1); }
.lids-open .mascot__lid--top { transform: translateY(-260px); }
.lids-open .mascot__lid--bottom { transform: translateY(210px); }
.lids-happy .mascot__lid--top { transform: translateY(-230px); }
.lids-happy .mascot__lid--bottom { transform: translateY(105px); }
.lids-wink .mascot__lid--top { transform: translateY(-20px); }
.lids-wink .mascot__lid--bottom { transform: translateY(70px); }
.lids-shut .mascot__lid--top, .lids-shut .mascot__lid--bottom { transform: translateY(0); }
.lids-happy .mascot__lid, .lids-open .mascot__lid { transition-duration: .2s; }
.lids-happy .mascot__pupil { transform: scale(.82); }
.mascot.is-booped .mascot__img, .mascot.is-booped .mascot__eye { animation: mascotBoop .45s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes mascotBoop { 0% { transform: scale(1, 1); } 30% { transform: scale(1.08, .9) translateY(6px); } 60% { transform: scale(.95, 1.07) translateY(-10px); } 100% { transform: scale(1, 1); } }
/* Bong bóng lời chào: phía trên đầu, không che tiêu đề */
.mascot__bubble { position: absolute; z-index: 3; left: 58%; bottom: 96%; width: max-content; max-width: 190px; padding: 8px 13px;
  border-radius: 16px 16px 16px 4px; color: var(--brand-strong); background: #fff; box-shadow: 0 10px 24px rgba(0, 30, 60, .25);
  font-size: 13px; font-weight: 600; line-height: 1.3; pointer-events: none; transform-origin: 0 100%;
  animation: bubblePop .42s cubic-bezier(.2, 1.6, .4, 1) both; }
.mascot__bubble[hidden] { display: none; }
@keyframes bubblePop { 0% { opacity: 0; transform: scale(.3) translateY(10px); } 100% { opacity: 1; transform: none; } }
.cta:has(.mascot) { padding-top: 64px; }
@media (max-width: 640px) {
  .mascot { --mascot-size: 132px; }
  .mascot__bubble { left: 66%; font-size: 12px; }
}
