/* ============================================================
   BỘ TEMPLATE BỆNH VIỆN — Design System "Petrol Institutional"
   Theo spec DESIGN.md: xanh petrol sâu + nền giấy ấm + accent đồng,
   tiêu đề serif Lora, viền mảnh thay shadow, bo góc sắc.
   ============================================================ */

:root {
  --ink: #132a2d;
  --text: #33484b;
  --muted: #5a6d70;
  --primary: #0e6b6d;
  --primary-deep: #093f41;
  --primary-tint: #e4eff0;
  --accent: #a83a1e;
  --accent-soft: #f6e7df;
  --success: #2e6e5e;
  --danger: #a93226;
  --bg: #f2f6f7;
  --card: #ffffff;
  --line: #dee8e9;
  --line-strong: #c3d2d4;
  --radius: 5px;
  --radius-sm: 3px;
  --shadow: 0 1px 0 rgba(19, 42, 45, 0.07);
  --shadow-lg: 0 10px 28px rgba(9, 63, 65, 0.16);
  --container: 1140px;
  --font-display: "Lora", Georgia, "Times New Roman", serif;
  --font-body: "Be Vietnam Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img { max-width: 100%; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-deep); }
ul, ol { list-style-position: inside; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Typography ---------- */
h1, h2 {
  font-family: var(--font-display);
  color: var(--ink);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.01em;
}
h3, h4 { color: var(--ink); line-height: 1.4; font-weight: 600; }
h1 { font-size: clamp(1.9rem, 3.2vw, 2.5rem); }
h2 { font-size: clamp(1.45rem, 2.4vw, 1.8rem); }
h3 { font-size: 1.02rem; }

.section { padding: 68px 0; }
.section--tight { padding: 40px 0; }

.section-head { margin-bottom: 30px; }
.section-head .eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--accent); font-weight: 700; font-size: 0.75rem;
  letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 10px;
}
.section-head .eyebrow::before {
  content: ""; width: 26px; height: 2px; background: var(--accent);
}
.section-head p { color: var(--muted); max-width: 620px; margin-top: 8px; }
.section-head--center { text-align: center; }
.section-head--center p { margin-left: auto; margin-right: auto; }
.section-head--center .eyebrow::before { display: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 20px; border-radius: var(--radius-sm);
  font-weight: 600; font-size: 0.92rem; border: 1.5px solid transparent;
  cursor: pointer; transition: all 0.16s ease; line-height: 1.25;
  font-family: inherit; text-decoration: none; white-space: nowrap;
  letter-spacing: 0.01em;
}
.btn svg { width: 17px; height: 17px; flex-shrink: 0; }
.btn--primary { background: var(--primary); color: #fff; }
.btn--primary:hover { background: var(--primary-deep); color: #fff; }
.btn--accent { background: var(--accent); color: #fff; }
.btn--accent:hover { background: #8c3420; color: #fff; }
.btn--outline { border-color: var(--primary); color: var(--primary); background: transparent; }
.btn--outline:hover { background: var(--primary); color: #fff; }
.btn--white { background: #fff; color: var(--primary-deep); }
.btn--white:hover { background: var(--primary-tint); color: var(--primary-deep); }
.btn--outline-white { border-color: rgba(255,255,255,0.55); color: #fff; }
.btn--outline-white:hover { background: rgba(255,255,255,0.1); color: #fff; }
.btn--ghost { background: transparent; color: var(--primary); border-color: var(--line-strong); }
.btn--ghost:hover { border-color: var(--primary); }
.btn--danger { background: var(--danger); color: #fff; }
.btn--sm { padding: 7px 14px; font-size: 0.84rem; }
.btn--lg { padding: 14px 28px; font-size: 1rem; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: 0.55; cursor: not-allowed; }

/* ---------- Header ---------- */
.topbar { background: var(--primary-deep); color: #b8d0d2; font-size: 0.82rem; }
.topbar__inner { display: flex; justify-content: space-between; align-items: center; min-height: 38px; gap: 16px; }
.topbar a { color: #d3e4e5; }
.topbar a:hover { color: #fff; }
.topbar b { color: #fff; }
.topbar__group { display: flex; gap: 18px; align-items: center; }
.topbar__item { display: inline-flex; align-items: center; gap: 6px; }
.topbar svg { width: 13px; height: 13px; }

.header {
  background: #fff; position: sticky; top: 0; z-index: 100;
  box-shadow: 0 1px 0 var(--line);
}
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 74px; }

.logo { display: flex; align-items: center; gap: 12px; }
.logo__mark {
  width: 48px; height: 48px; border-radius: var(--radius-sm); flex-shrink: 0;
  background: #fff; border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
}
.logo__mark img { width: 100%; height: 100%; object-fit: contain; padding: 3px; }
.logo__name { font-weight: 700; color: var(--ink); font-size: 1.02rem; line-height: 1.25; white-space: nowrap; }
.logo__name span { color: var(--accent); }
.logo__sub { font-size: 0.68rem; color: var(--muted); letter-spacing: 0.14em; white-space: nowrap; }

.nav { display: flex; align-items: center; gap: 2px; }
.nav a {
  display: block; padding: 10px 11px; border-radius: var(--radius-sm);
  color: var(--ink); font-weight: 500; font-size: 0.94rem; white-space: nowrap;
}
.nav a:hover { color: var(--primary); background: var(--primary-tint); }
.nav a.is-active {
  color: var(--primary); font-weight: 600;
  box-shadow: inset 0 -2px 0 var(--accent); border-radius: var(--radius-sm) var(--radius-sm) 0 0;
}
.header__cta { display: flex; gap: 10px; align-items: center; }

.nav-toggle {
  display: none; background: none; border: 1.5px solid var(--line-strong); border-radius: var(--radius-sm);
  padding: 8px; cursor: pointer; color: var(--ink);
}
.nav-toggle svg { width: 24px; height: 24px; display: block; }

/* Dropdown 1 cấp */
.nav__item { position: relative; }
.nav__dropdown {
  position: absolute; top: calc(100% + 4px); left: 0; min-width: 250px;
  background: #fff; border: 1px solid var(--line); border-top: 2px solid var(--accent);
  box-shadow: var(--shadow-lg);
  padding: 8px; display: none; z-index: 50;
}
.nav__item:hover .nav__dropdown, .nav__item:focus-within .nav__dropdown { display: block; }
.nav__dropdown a { padding: 9px 12px; font-weight: 400; font-size: 0.9rem; }
.nav__caret { font-size: 0.6em; opacity: 0.55; margin-left: 3px; }
.nav .nav-book { display: none; }

/* ---------- Breadcrumb ---------- */
.breadcrumb {
  background: #fff; border-bottom: 1px solid var(--line); padding: 13px 0;
}
.breadcrumb__list { display: flex; flex-wrap: wrap; gap: 6px; font-size: 0.84rem; color: var(--muted); }
.breadcrumb__list li { list-style: none; display: flex; align-items: center; gap: 6px; }
.breadcrumb__list li + li::before { content: "/"; color: var(--line-strong); }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb .is-current { color: var(--ink); font-weight: 500; }

.page-banner { background: var(--primary-deep); color: #fff; padding: 44px 0; }
.page-banner h1 { color: #fff; margin-bottom: 8px; }
.page-banner p { color: #b8d0d2; max-width: 640px; }

/* ---------- Hero (trang chủ) ---------- */
.hero {
  background:
    repeating-linear-gradient(135deg, rgba(255,255,255,0.022) 0 1px, transparent 1px 14px),
    var(--primary-deep);
  color: #fff; padding: 72px 0 150px; position: relative;
}
.hero::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--accent);
}
.hero__grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 56px; align-items: center; position: relative; z-index: 2; }
.hero__badge {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid rgba(255,255,255,0.35);
  padding: 6px 14px; font-size: 0.8rem; font-weight: 500; margin-bottom: 22px;
  color: #d3e4e5; letter-spacing: 0.02em;
}
.hero__badge svg { width: 12px; height: 12px; color: #e3c93e; }
.hero h1 { color: #fff; margin-bottom: 18px; }
.hero p.lead { color: #b8d0d2; font-size: 1.05rem; max-width: 540px; margin-bottom: 28px; }
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero__stats { display: flex; gap: 40px; margin-top: 40px; flex-wrap: wrap; }
.hero__stat { border-left: 2px solid var(--accent); padding-left: 14px; }
.hero__stat b {
  font-family: var(--font-display); font-size: 1.8rem; font-weight: 600;
  display: block; color: #fff; line-height: 1.2;
}
.hero__stat span { color: #9db8ba; font-size: 0.85rem; }

/* Widget đặt lịch nhanh trên hero */
.quickbook {
  background: #fff; border-radius: var(--radius);
  padding: 28px; color: var(--text);
  border-top: 3px solid var(--accent);
}
.quickbook h3 {
  display: flex; align-items: center; gap: 10px; margin-bottom: 4px;
  font-size: 1.1rem; font-family: var(--font-display);
}
.quickbook h3 svg { width: 20px; height: 20px; color: var(--accent); }
.quickbook > p { font-size: 0.85rem; color: var(--muted); margin-bottom: 18px; }
.quickbook .form-row { margin-bottom: 12px; }

/* ---------- Grid helpers ---------- */
.grid { display: grid; gap: 20px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

/* ---------- Card ---------- */
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: border-color 0.16s ease, transform 0.16s ease;
}
.card:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.card__body { padding: 20px; }

/* News card */
.news-card { display: flex; flex-direction: column; height: 100%; }
.news-card__thumb { position: relative; aspect-ratio: 16 / 9; display: flex; }
.news-card__thumb .thumb-ph { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }
.news-card__thumb svg { width: 42px; height: 42px; opacity: 0.55; }
.news-card__cat {
  position: absolute; top: 10px; left: 10px;
  background: #fff; color: var(--primary);
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.1em;
  padding: 3px 10px; text-transform: uppercase;
}
.news-card__body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.news-card__meta { display: flex; align-items: center; gap: 14px; font-size: 0.8rem; color: var(--muted); }
.news-card__meta span { display: inline-flex; align-items: center; gap: 5px; }
.news-card__meta svg { width: 14px; height: 14px; }
.news-card__title { font-size: 1rem; line-height: 1.45; }
.news-card__title a { color: var(--ink); }
.news-card__title a:hover { color: var(--primary); }
.news-card__excerpt { font-size: 0.87rem; color: var(--muted); }
.news-card--flat:hover { transform: none; }

/* Tin nổi bật (1 lớn + danh sách nhỏ) */
.featured-news { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 24px; align-items: stretch; }
.featured-main { position: relative; border-radius: var(--radius); overflow: hidden; min-height: 400px; display: flex; align-items: flex-end; }
.featured-main .thumb-ph { position: absolute; inset: 0; }
.featured-main .thumb-ph svg { width: 90px; height: 90px; opacity: 0.35; }
.featured-main__overlay {
  position: relative; z-index: 2; width: 100%;
  background: linear-gradient(transparent, rgba(9, 63, 65, 0.94) 50%);
  padding: 90px 26px 26px; color: #fff;
}
.featured-main__overlay h3 {
  color: #fff; font-size: 1.45rem; margin: 10px 0 8px;
  font-family: var(--font-display); font-weight: 600; line-height: 1.35;
}
.featured-main__overlay p { color: #c2d8da; font-size: 0.92rem; }
.featured-main__overlay .news-card__meta { color: #9db8ba; }
.featured-list { display: flex; flex-direction: column; gap: 12px; }
.featured-item {
  display: flex; gap: 14px; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 12px; align-items: center;
  transition: border-color 0.15s ease;
}
.featured-item:hover { border-color: var(--line-strong); }
.featured-item .thumb-sm {
  width: 88px; height: 70px; border-radius: var(--radius-sm); overflow: hidden;
  flex-shrink: 0; display: flex; background: var(--primary-tint);
  align-items: center; justify-content: center; color: var(--primary);
}
.featured-item h4 { font-size: 0.92rem; line-height: 1.4; }
.featured-item h4 a { color: var(--ink); }
.featured-item h4 a:hover { color: var(--primary); }
.featured-item time { font-size: 0.76rem; color: var(--muted); }

/* Placeholder ảnh — monochrome petrol theo DESIGN.md */
.ph-1 { background: #0e6b6d; }
.ph-2 { background: #11757a; }
.ph-3 { background: #0b5f61; }
.ph-4 { background: #12807f; }
.ph-5 { background: #0c6466; }
.ph-6 { background: #095456; }
.thumb-ph { color: rgba(255,255,255,0.75); }

/* ---------- Department card ---------- */
.dept-card { text-align: left; padding: 24px; display: flex; flex-direction: column; gap: 12px; height: 100%; }
.dept-card__icon {
  width: 50px; height: 50px; border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center;
  background: var(--primary-tint); color: var(--primary);
  border-bottom: 2px solid var(--accent);
}
.dept-card__icon svg { width: 26px; height: 26px; }
.dept-card h3 a { color: var(--ink); }
.dept-card:hover h3 a { color: var(--primary); }
.dept-card p { font-size: 0.87rem; color: var(--muted); flex: 1; }
.dept-card__more { font-weight: 600; font-size: 0.86rem; display: inline-flex; align-items: center; gap: 6px; }

/* ---------- Doctor card ---------- */
.doctor-card { text-align: center; padding: 26px 20px; height: 100%; display: flex; flex-direction: column; gap: 7px; align-items: center; }
.avatar {
  width: 92px; height: 92px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 600; font-size: 1.45rem; letter-spacing: 0.06em; margin-bottom: 8px;
  border: 1px solid var(--line-strong); outline: 4px solid #fff;
  font-family: var(--font-display);
}
.doctor-card h3 { font-size: 1rem; }
.doctor-card .doc-role { color: var(--accent); font-weight: 600; font-size: 0.83rem; }
.doctor-card .doc-dept { color: var(--muted); font-size: 0.82rem; }
.doctor-card .small { border-top: 1px solid var(--line); padding-top: 8px; width: 100%; }
.doctor-card .btn { margin-top: auto; }

/* ---------- Forms ---------- */
.form-row { margin-bottom: 16px; }
.form-row label { display: block; font-weight: 600; font-size: 0.87rem; margin-bottom: 6px; color: var(--ink); }
.form-row label .req { color: var(--danger); }
.form-row .hint { font-size: 0.78rem; color: var(--muted); margin-top: 5px; }
.input, .select, .textarea {
  width: 100%; padding: 11px 13px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  font-size: 0.94rem; font-family: inherit; color: var(--ink); background: #fff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.input:focus, .select:focus, .textarea:focus {
  outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(23, 65, 79, 0.12);
}
.textarea { min-height: 110px; resize: vertical; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }

/* Radio card (BHYT / Dịch vụ) */
.radio-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.radio-card {
  border: 1px solid var(--line-strong); border-radius: var(--radius-sm); padding: 14px 16px;
  cursor: pointer; display: flex; gap: 12px; align-items: flex-start; transition: all 0.15s ease; background: #fff;
}
.radio-card:hover { border-color: var(--primary); }
.radio-card input { margin-top: 4px; accent-color: var(--primary); }
.radio-card.is-selected { border-color: var(--primary); background: #f7faf9; box-shadow: inset 3px 0 0 var(--accent); }
.radio-card b { display: block; color: var(--ink); font-size: 0.94rem; }
.radio-card small { color: var(--muted); font-size: 0.8rem; line-height: 1.45; display: block; }

/* ---------- Wizard đặt lịch ---------- */
.booking-layout { display: grid; grid-template-columns: 1fr 330px; gap: 26px; align-items: start; }
.booking-panel {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px;
  border-top: 3px solid var(--primary);
}

.steps { display: flex; margin-bottom: 32px; }
.step { flex: 1; text-align: center; position: relative; }
.step::before {
  content: ""; position: absolute; top: 18px; left: -50%; width: 100%; height: 1px;
  background: var(--line-strong); z-index: 0;
}
.step:first-child::before { display: none; }
.step.is-done::before, .step.is-active::before { background: var(--accent); }
.step__dot {
  position: relative; z-index: 1; width: 37px; height: 37px; margin: 0 auto 8px;
  border-radius: 50%; background: #fff; border: 1.5px solid var(--line-strong);
  display: flex; align-items: center; justify-content: center; font-weight: 600; color: var(--muted);
  font-family: var(--font-display);
}
.step.is-active .step__dot { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
.step.is-done .step__dot { background: var(--accent); border-color: var(--accent); color: #fff; }
.step__label { font-size: 0.79rem; font-weight: 500; color: var(--muted); }
.step.is-active .step__label { color: var(--ink); font-weight: 600; }

.step-pane { display: none; }
.step-pane.is-active { display: block; }
.wizard-nav { display: flex; justify-content: space-between; margin-top: 28px; gap: 12px; }

/* Time slots */
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; }
.slot {
  border: 1px solid var(--line-strong); background: #fff; border-radius: var(--radius-sm);
  padding: 9px 6px; text-align: center; font-weight: 600; font-size: 0.88rem;
  cursor: pointer; color: var(--ink); transition: all 0.14s ease; font-family: inherit;
}
.slot:hover { border-color: var(--primary); }
.slot.is-selected { background: var(--primary); border-color: var(--primary); color: #fff; }
.slot[disabled] { background: var(--bg); color: var(--muted); cursor: not-allowed; text-decoration: line-through; border-color: var(--line); }
.slot small { display: block; font-weight: 400; font-size: 0.71rem; opacity: 0.8; }

/* Summary xác nhận */
.summary { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 18px 20px; background: #fbfdfd; }
.summary__row { display: flex; justify-content: space-between; gap: 16px; padding: 7px 0; font-size: 0.92rem; border-bottom: 1px solid var(--line); }
.summary__row:last-child { border-bottom: none; }
.summary__row span:first-child { color: var(--muted); }
.summary__row b { color: var(--ink); text-align: right; }

/* Success block */
.success-block { text-align: center; padding: 30px 10px; display: none; }
.success-block.is-visible { display: block; }
.success-block .tick {
  width: 74px; height: 74px; border-radius: 50%; background: #eaf1ee; color: var(--success);
  display: flex; align-items: center; justify-content: center; margin: 0 auto 18px;
}
.success-block .tick svg { width: 38px; height: 38px; }
.success-block h2 { margin-bottom: 8px; }
.appointment-code {
  display: inline-block; background: var(--accent-soft); border: 1px dashed var(--accent);
  color: var(--ink); font-weight: 700; font-size: 1.35rem; letter-spacing: 0.08em;
  padding: 10px 26px; border-radius: var(--radius-sm); margin: 14px 0 18px;
  font-family: var(--font-display);
}

/* Sidebar info */
.info-side { display: flex; flex-direction: column; gap: 18px; }
.info-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.info-card h3 { font-size: 0.97rem; margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.info-card h3 svg { width: 18px; height: 18px; color: var(--primary); }
.info-card ul { list-style: none; }
.info-card li { padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 0.88rem; display: flex; justify-content: space-between; gap: 12px; }
.info-card li:last-child { border-bottom: none; }
.info-card li b { color: var(--ink); text-align: right; }
.info-card--hotline { background: var(--primary-deep); color: #b8d0d2; border: none; }
.info-card--hotline h3 { color: #fff; }
.info-card--hotline h3 svg { color: #e3c93e; }
.info-card--hotline .hotline-number {
  font-family: var(--font-display); font-size: 1.7rem; font-weight: 600;
  color: #fff; display: block; margin-top: 6px;
}
.info-card--hotline p { color: #9db8ba; font-size: 0.84rem; margin-top: 6px; }

/* ---------- Tabs (gạch chân theo DESIGN.md) ---------- */
.tabs {
  display: flex; gap: 4px; margin-bottom: 26px; flex-wrap: wrap;
  border-bottom: 1px solid var(--line);
}
.tab {
  border: none; background: transparent; padding: 10px 18px;
  font-weight: 500; font-size: 0.92rem; color: var(--muted); cursor: pointer; font-family: inherit;
  box-shadow: inset 0 -2px 0 transparent; margin-bottom: -1px;
}
.tab:hover { color: var(--ink); }
.tab.is-active { color: var(--ink); font-weight: 600; box-shadow: inset 0 -2px 0 var(--accent); }
.tab-pane { display: none; }
.tab-pane.is-active { display: block; }

/* ---------- Tables ---------- */
.table-wrap { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 0.92rem; min-width: 560px; }
.table th {
  background: var(--primary-tint); color: var(--ink); text-align: left; padding: 12px 18px;
  font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; white-space: nowrap; font-weight: 700;
}
.table td { padding: 12px 18px; border-top: 1px solid var(--line); }
.table tbody tr:hover { background: #f7faf9; }
.table .num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.table .badge-bhyt { color: var(--success); font-weight: 600; }

/* ---------- Sidebar layout (tin tức, chi tiết) ---------- */
.with-sidebar { display: grid; grid-template-columns: 1fr 310px; gap: 30px; align-items: start; }
.sidebar { display: flex; flex-direction: column; gap: 20px; position: sticky; top: 92px; }
.widget { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.widget h3 {
  font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.1em;
  padding-bottom: 9px; margin-bottom: 12px; border-bottom: 2px solid var(--accent);
  display: inline-block; font-weight: 700;
}
.widget ul { list-style: none; }
.widget li a { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 0.89rem; color: var(--text); }
.widget li a:hover { color: var(--primary); }
.widget li:last-child a { border-bottom: none; }
.widget .count { background: var(--primary-tint); color: var(--primary); font-size: 0.74rem; font-weight: 600; padding: 0 8px; }

/* Article */
.article { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 36px; }
.article__thumb { border-radius: var(--radius-sm); overflow: hidden; aspect-ratio: 16/8; display: flex; margin-bottom: 24px; }
.article__thumb .thumb-ph { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }
.article__thumb svg { width: 54px; height: 54px; color: rgba(255,255,255,0.6); }
.article h1 { font-size: clamp(1.5rem, 2.4vw, 2rem); margin-bottom: 14px; }
.article__meta {
  display: flex; flex-wrap: wrap; gap: 16px; color: var(--muted); font-size: 0.85rem;
  margin-bottom: 22px; padding-bottom: 18px; border-bottom: 1px solid var(--line);
}
.article__meta span { display: inline-flex; align-items: center; gap: 6px; }
.article__meta svg { width: 15px; height: 15px; }
.article__content p { margin-bottom: 16px; }
.article__content h2 { font-size: 1.3rem; margin: 28px 0 12px; }
.article__content ul { margin: 0 0 16px 4px; }
.article__content li { margin-bottom: 8px; }
.article__note {
  background: var(--primary-tint); border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 14px 18px; margin: 20px 0; font-size: 0.92rem;
}
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--line); }
.tag {
  border: 1px solid var(--line-strong); color: var(--muted); font-size: 0.79rem; font-weight: 500;
  padding: 3px 11px; border-radius: var(--radius-sm); background: #fff;
}
.tag:hover { border-color: var(--primary); color: var(--primary); }

/* Filter chips */
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.chip {
  border: 1px solid var(--line-strong); background: #fff; color: var(--text); border-radius: var(--radius-sm);
  padding: 7px 16px; font-weight: 500; font-size: 0.86rem; cursor: pointer; font-family: inherit;
}
.chip:hover { border-color: var(--primary); color: var(--primary); }
.chip.is-active { background: var(--primary); border-color: var(--primary); color: #fff; }

/* ---------- Pagination ---------- */
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 36px; }
.pagination a, .pagination span {
  min-width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--radius-sm); border: 1px solid var(--line-strong); background: #fff;
  font-weight: 500; font-size: 0.9rem; color: var(--text); padding: 0 12px;
}
.pagination .is-current { background: var(--primary); border-color: var(--primary); color: #fff; }
.pagination a:hover { border-color: var(--primary); color: var(--primary); }

/* ---------- CTA banner ---------- */
.cta-band {
  background: var(--primary); border-radius: var(--radius); color: #fff; padding: 42px;
  display: flex; justify-content: space-between; align-items: center; gap: 30px; flex-wrap: wrap;
  border-left: 4px solid var(--accent);
}
.cta-band h2 { color: #fff; margin-bottom: 8px; }
.cta-band p { color: #b8d0d2; max-width: 560px; }
.cta-band__actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 330px 1fr; gap: 26px; align-items: start; }
.contact-item { display: flex; gap: 14px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.contact-item:last-child { border-bottom: none; }
.contact-item .ic { width: 40px; height: 40px; flex-shrink: 0; border-radius: var(--radius-sm); background: var(--primary-tint); color: var(--primary); display: flex; align-items: center; justify-content: center; }
.contact-item .ic svg { width: 20px; height: 20px; }
.contact-item b { display: block; color: var(--ink); font-size: 0.9rem; }
.contact-item p, .contact-item a { font-size: 0.89rem; color: var(--muted); }
.map-ph {
  border-radius: var(--radius); background:
    repeating-linear-gradient(45deg, var(--primary-tint) 0 12px, #eef4f5 12px 24px);
  border: 1px solid var(--line); min-height: 320px; display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: 10px; color: var(--primary); text-align: center;
}
.map-ph svg { width: 42px; height: 42px; }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: #a9bcb9; margin-top: 76px; }
.footer__main { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 34px; padding: 54px 0 40px; }
.footer h4 { color: #fff; font-size: 0.82rem; margin-bottom: 16px; text-transform: uppercase; letter-spacing: 0.1em; font-weight: 700; }
.footer__about { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 16px; }
.footer__about .logo__mark { width: 42px; height: 42px; background: transparent; border: none; }
.footer__about .logo__mark img { padding: 0; }
.footer__about .logo__name { color: #fff; font-size: 0.96rem; }
.footer__about .logo__sub { color: #7f9598; }
.footer p { font-size: 0.87rem; }
.footer__item { display: flex; gap: 9px; margin-bottom: 10px; font-size: 0.87rem; align-items: flex-start; }
.footer__item svg { width: 15px; height: 15px; flex-shrink: 0; margin-top: 3px; color: #e3c93e; }
.footer ul.footer-links { list-style: none; }
.footer ul.footer-links li { margin-bottom: 9px; }
.footer ul.footer-links a { color: #a9bcb9; font-size: 0.87rem; }
.footer ul.footer-links a:hover { color: #fff; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,0.12); padding: 18px 0; font-size: 0.81rem; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; } .mt-1 { margin-top: 10px; } .mt-2 { margin-top: 20px; } .mt-3 { margin-top: 30px; }
.mb-1 { margin-bottom: 10px; } .mb-2 { margin-bottom: 20px; }
.muted { color: var(--muted); }
.small { font-size: 0.85rem; }
.flex-between { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.badge {
  display: inline-flex; align-items: center; gap: 6px; font-size: 0.7rem; font-weight: 700;
  padding: 2px 9px; text-transform: uppercase; letter-spacing: 0.08em; border-radius: 2px;
}
.badge--green { background: #eaf1ee; color: var(--success); }
.badge--blue { background: var(--primary-tint); color: var(--primary); }
.badge--amber { background: var(--accent-soft); color: var(--accent); }

/* Alert */
.alert { border-radius: var(--radius-sm); padding: 12px 16px; font-size: 0.88rem; margin-bottom: 16px; display: none; }
.alert.is-visible { display: block; }
.alert--error { background: #f7ebe9; color: var(--danger); border: 1px solid #e5c8c3; }
.alert--info { background: var(--primary-tint); color: var(--primary-deep); border: 1px solid var(--line); }

/* ---------- Template gallery (index.html) ---------- */
.tpl-card { display: flex; flex-direction: column; }
.tpl-card__preview { aspect-ratio: 16/9; display: flex; align-items: center; justify-content: center; position: relative; }
.tpl-card__preview svg { width: 48px; height: 48px; color: rgba(255,255,255,0.65); }
.tpl-card__num {
  position: absolute; top: 10px; right: 10px; background: #fff; color: var(--ink);
  font-weight: 600; font-size: 0.78rem; padding: 2px 10px;
}
.tpl-card:hover { transform: translateY(-3px); }
.tpl-card__body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.tpl-card__body h3 { font-size: 1rem; }
.tpl-card__body h3 a { color: var(--ink); }
.tpl-card__body h3 a:hover { color: var(--primary); }
.tpl-card__body p { font-size: 0.85rem; color: var(--muted); flex: 1; }
.tpl-card .tag { align-self: flex-start; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .grid--4 { grid-template-columns: repeat(3, 1fr); }
  .hero__grid { grid-template-columns: 1fr; gap: 36px; }
  .booking-layout { grid-template-columns: 1fr; }
  .with-sidebar { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer__main { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .section { padding: 46px 0; }
  .hero { padding: 46px 0 120px; }
  .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--2 { grid-template-columns: 1fr; }
  .featured-news { grid-template-columns: 1fr; }
  .featured-main { min-height: 300px; }
  .form-grid { grid-template-columns: 1fr; }
  .radio-cards { grid-template-columns: 1fr; }
  .article { padding: 24px 18px; }
  .cta-band { padding: 30px 22px; }
  .topbar__group--right { display: none; }

  /* Header mobile */
  .nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; flex-direction: column; align-items: stretch;
    padding: 12px 20px 20px; box-shadow: var(--shadow-lg); border-top: 1px solid var(--line); gap: 4px;
  }
  .nav.is-open { display: flex; }
  .nav__dropdown { position: static; box-shadow: none; display: block; padding: 0 0 0 14px; border-left: 2px solid var(--line); margin-left: 14px; }
  .nav-toggle { display: block; }
  .nav .nav-book { display: block; color: var(--accent); font-weight: 600; }
  .header { position: sticky; }
  .header__inner { position: relative; }
  .steps { flex-wrap: wrap; gap: 12px 0; }
  .step__label { font-size: 0.7rem; }
}
@media (max-width: 520px) {
  .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .hero__stats { gap: 18px; }
  .footer__main { grid-template-columns: 1fr; gap: 26px; }
  .steps { gap: 0; }
  .step__dot { width: 32px; height: 32px; font-size: 0.85rem; }
  .topbar { font-size: 0.75rem; }
  .topbar__inner { flex-wrap: wrap; }
  .topbar__group { gap: 10px; }
  .topbar__item { white-space: nowrap; }
}
