/* Bảo Lãnh Úc — demo. Phong cách theo toancauvisa.com (xanh #0144d8, Roboto + Raleway, nút bo tròn). */
:root {
  --blue: #0144d8;
  --blue-600: #0138b4;
  --blue-800: #0a2a86;
  --navy: #1d2b4f;
  --sky: #eef4ff;
  --sky-2: #dce8ff;
  --text: #333;
  --muted: #5f6878;
  --line: #e3e8f2;
  --bg: #fff;
  --bg-soft: #f6f8fc;
  --ok: #0e9f6e;
  --warn: #b45309;
  --warn-bg: #fff7e6;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(13, 38, 99, .08);
  --container: 1180px;
  --font-head: "Roboto", system-ui, sans-serif;
  --font-body: "Raleway", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--navy); line-height: 1.25; margin: 0 0 .6em; }
h1 { font-size: clamp(30px, 4.4vw, 48px); font-weight: 900; }
h2 { font-size: clamp(24px, 3vw, 34px); font-weight: 800; }
h3 { font-size: 20px; font-weight: 700; }
p { margin: 0 0 1em; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 16px; }
.eyebrow {
  display: inline-block; font-family: var(--font-head); font-weight: 700; font-size: 13px;
  letter-spacing: .08em; text-transform: uppercase; color: var(--blue);
}
.lead { font-size: 18px; color: var(--muted); }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.center { text-align: center; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* Buttons — pill như TCVS */
.btn {
  display: inline-flex; align-items: center; gap: 8px; justify-content: center;
  font-family: var(--font-head); font-weight: 700; font-size: 15px;
  padding: 12px 24px; border-radius: 999px; border: 2px solid var(--blue);
  background: var(--blue); color: #fff; cursor: pointer; transition: .2s;
  text-decoration: none !important; white-space: nowrap;
}
.btn:hover { background: var(--blue-600); border-color: var(--blue-600); }
.btn-outline { background: transparent; color: var(--blue); }
.btn-outline:hover { background: var(--sky); color: var(--blue); }
.btn-white { background: #fff; color: var(--blue); border-color: #fff; }
.btn-white:hover { background: var(--sky); border-color: var(--sky); color: var(--blue); }
.btn-ghost-white { background: transparent; color: #fff; border-color: rgba(255,255,255,.8); }
.btn-ghost-white:hover { background: rgba(255,255,255,.12); }
.btn svg { width: 18px; height: 18px; }

/* Demo bar */
.demo-bar { background: var(--navy); color: #cfd8ee; font-size: 13px; text-align: center; padding: 6px 16px; }
.demo-bar strong { color: #fff; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.97);
  border-bottom: 1px solid var(--line); backdrop-filter: blur(6px);
}
.header-inner { display: flex; align-items: center; gap: 20px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none !important; flex-shrink: 0; }
.brand img { height: 46px; width: auto; }
.brand-tag {
  border-left: 2px solid var(--line); padding-left: 12px; font-family: var(--font-head);
  line-height: 1.15; color: var(--navy);
}
.brand-tag b { display: block; font-size: 17px; font-weight: 900; color: var(--blue); text-transform: uppercase; letter-spacing: .02em; }
.brand-tag span { font-size: 12px; color: var(--muted); }
.main-nav { margin-left: auto; }
.main-nav > ul { list-style: none; display: flex; align-items: center; gap: 2px; margin: 0; padding: 0; }
.main-nav a, .main-nav .nav-parent {
  display: block; font-family: var(--font-head); font-size: 14px; color: #111; padding: 10px 12px;
  border-radius: 8px; text-decoration: none; background: none; border: 0; cursor: pointer;
}
.main-nav a:hover, .main-nav .nav-parent:hover { color: var(--blue); background: var(--sky); }
.main-nav a[aria-current="page"] { color: var(--blue); font-weight: 700; }
.has-sub { position: relative; }
.nav-parent::after { content: ""; display: inline-block; margin-left: 6px; width: 6px; height: 6px; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg) translateY(-3px); }
.sub {
  position: absolute; top: 100%; left: 0; min-width: 260px; list-style: none; margin: 0; padding: 8px;
  background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: .18s;
}
.has-sub:hover .sub, .has-sub:focus-within .sub { opacity: 1; visibility: visible; transform: none; }
.sub a { font-size: 14px; }
.sub a small { display: block; color: var(--muted); font-size: 12px; }
.nav-cta { margin-left: 8px; }
.main-nav .nav-cta .btn { background: var(--blue); color: #fff; padding: 10px 20px; border-radius: 999px; font-weight: 700; }
.main-nav .nav-cta .btn:hover { background: var(--blue-600); color: #fff; }
.nav-toggle { display: none; margin-left: auto; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--navy); margin: 5px 0; transition: .2s; }

@media (max-width: 1040px) {
  .nav-toggle { display: block; }
  .main-nav {
    position: absolute; top: 100%; left: 0; right: 0; height: calc(100vh - 72px); height: calc(100dvh - 72px);
    background: #fff; padding: 12px 16px 32px; overflow-y: auto; border-top: 1px solid var(--line);
    opacity: 0; visibility: hidden; transform: translateY(-8px); transition: .2s; margin: 0; pointer-events: none;
  }
  body.nav-open .main-nav { opacity: 1; visibility: visible; transform: none; pointer-events: auto; }
  body.nav-open { overflow: hidden; }
  .main-nav > ul { flex-direction: column; align-items: stretch; gap: 0; }
  .main-nav a, .main-nav .nav-parent { padding: 14px 8px; font-size: 16px; border-bottom: 1px solid var(--line); border-radius: 0; width: 100%; text-align: left; }
  .sub { position: static; opacity: 1; visibility: inherit; transform: none; box-shadow: none; border: 0; padding: 0 0 0 12px; }
  .nav-cta { margin: 16px 0 0; }
  .nav-cta .btn { width: 100%; }
  .brand-tag span { display: none; }
}

/* Sections */
.section { padding: 72px 0; }
.section-soft { background: var(--bg-soft); }
.section-head { max-width: 720px; margin: 0 auto 40px; text-align: center; }
.section-head p { color: var(--muted); }

/* Hero */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(180deg, #fff 0%, var(--sky) 100%);
}
.hero::before, .hero::after { /* hoạ tiết kim cương như TCVS */
  content: ""; position: absolute; width: 520px; height: 520px; border-radius: 48px;
  background: linear-gradient(135deg, rgba(1,68,216,.10), rgba(1,68,216,0)); transform: rotate(45deg);
  pointer-events: none;
}
.hero::before { right: -160px; top: -220px; }
.hero::after { left: -260px; bottom: -330px; }
.hero-inner { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; padding: 56px 16px 64px; }
.hero h1 span { color: var(--blue); display: block; }
.hero .lead { max-width: 560px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0 20px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.chips li { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; }
.chips svg { width: 16px; height: 16px; color: var(--ok); }
.hero-media { position: relative; }
.hero-media img { border-radius: 20px; box-shadow: var(--shadow); aspect-ratio: 4/3; object-fit: cover; object-position: 72% center; width: 100%; }
.hero-badge {
  position: absolute; left: -18px; bottom: 22px; background: #fff; border-radius: 14px; box-shadow: var(--shadow);
  padding: 12px 16px; display: flex; gap: 12px; align-items: center; max-width: 290px;
}
.hero-badge .num { font-family: var(--font-head); font-size: 26px; font-weight: 900; color: var(--blue); line-height: 1; }
.hero-badge .txt { font-size: 13px; line-height: 1.35; color: var(--muted); }
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: minmax(0, 1fr); padding-top: 36px; }
  .hero-badge { left: 12px; }
}

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.stat .label { font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; font-family: var(--font-head); }
.stat .value { font-family: var(--font-head); font-size: 28px; font-weight: 900; color: var(--blue); line-height: 1.2; margin: 6px 0 4px; }
.stat .note { font-size: 13px; color: var(--muted); }
.source-line { font-size: 13px; color: var(--muted); margin-top: 14px; text-align: center; }
@media (max-width: 900px) { .stats { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .stats { grid-template-columns: minmax(0, 1fr); } }

/* Alert / callout */
.callout {
  display: grid; grid-template-columns: auto 1fr auto; gap: 18px; align-items: center;
  border-radius: var(--radius); padding: 22px 24px; background: var(--warn-bg); border: 1px solid #f6d9a8;
}
.callout .ico { width: 44px; height: 44px; border-radius: 50%; background: #fde7bf; color: var(--warn); display: grid; place-items: center; }
.callout h3 { margin: 0 0 4px; font-size: 18px; }
.callout p { margin: 0; color: #5b4a2a; }
.callout.info { background: var(--sky); border-color: var(--sky-2); }
.callout.info .ico { background: var(--sky-2); color: var(--blue); }
.callout.info p { color: var(--text); }
@media (max-width: 720px) { .callout { grid-template-columns: minmax(0, 1fr); } }

/* Visa cards */
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.visa-card {
  background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 22px; display: flex; flex-direction: column;
  transition: .2s; box-shadow: 0 1px 0 rgba(0,0,0,.02);
}
.visa-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.visa-card img { width: 120px; border-radius: 14px; margin-bottom: 14px; }
.visa-card .code { font-family: var(--font-head); font-weight: 900; color: var(--blue); font-size: 14px; letter-spacing: .06em; }
.visa-card h3 { margin: 4px 0 8px; }
.visa-card ul { list-style: none; padding: 0; margin: 8px 0 18px; font-size: 15px; }
.visa-card li { padding: 7px 0; border-top: 1px dashed var(--line); display: flex; justify-content: space-between; gap: 10px; }
.visa-card li b { font-family: var(--font-head); color: var(--navy); text-align: right; }
.visa-card .btn { margin-top: auto; }
@media (max-width: 900px) { .cards-3 { grid-template-columns: minmax(0, 1fr); } }

/* Steps timeline */
.steps { list-style: none; counter-reset: s; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.steps li {
  counter-increment: s; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 20px 18px 68px; position: relative;
}
.steps li::before {
  content: counter(s); position: absolute; left: 18px; top: 18px; width: 36px; height: 36px; border-radius: 50%;
  background: var(--blue); color: #fff; font-family: var(--font-head); font-weight: 900; display: grid; place-items: center;
}
.steps h3 { font-size: 17px; margin-bottom: 4px; }
.steps p { margin: 0; font-size: 15px; color: var(--muted); }
.steps .tag { display: inline-block; margin-top: 8px; font-size: 12px; font-weight: 700; color: var(--blue); background: var(--sky); padding: 2px 10px; border-radius: 999px; font-family: var(--font-head); }
@media (max-width: 900px) { .steps { grid-template-columns: minmax(0, 1fr); } }

/* Calculator */
.calc { display: grid; grid-template-columns: 1fr 1fr; gap: 0; background: #fff; border-radius: 20px; box-shadow: var(--shadow); overflow: hidden; border: 1px solid var(--line); }
.calc-form { padding: 28px; }
.calc-result { padding: 28px; background: linear-gradient(160deg, var(--blue) 0%, var(--blue-800) 100%); color: #fff; }
.calc-result h3 { color: #fff; }
.field { margin-bottom: 16px; }
.field label { display: block; font-family: var(--font-head); font-weight: 700; font-size: 14px; margin-bottom: 6px; color: var(--navy); }
.field select, .field input {
  width: 100%; font: inherit; padding: 11px 14px; border: 1px solid #cfd7e6; border-radius: 10px; background: #fff; color: var(--text);
}
.field select:focus, .field input:focus { outline: 2px solid var(--blue); outline-offset: 1px; border-color: var(--blue); }
.stepper { display: flex; align-items: center; gap: 10px; }
.stepper button { width: 40px; height: 40px; border-radius: 50%; border: 1px solid #cfd7e6; background: #fff; font-size: 20px; cursor: pointer; color: var(--blue); }
.stepper button:hover { background: var(--sky); }
.stepper output { min-width: 28px; text-align: center; font-family: var(--font-head); font-weight: 900; font-size: 20px; }
.total { font-family: var(--font-head); font-size: 44px; font-weight: 900; line-height: 1.1; margin: 6px 0 16px; }
.breakdown { list-style: none; padding: 0; margin: 0 0 16px; }
.breakdown li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,.18); font-size: 15px; }
.calc-result .small { color: #d5e1ff; }
@media (max-width: 820px) { .calc { grid-template-columns: minmax(0, 1fr); } }

/* Features */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.feature { padding: 22px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.feature .ico { width: 46px; height: 46px; border-radius: 12px; background: var(--sky); color: var(--blue); display: grid; place-items: center; margin-bottom: 12px; }
.feature .ico svg { width: 24px; height: 24px; }
.feature h3 { font-size: 17px; margin-bottom: 6px; }
.feature p { margin: 0; font-size: 15px; color: var(--muted); }
@media (max-width: 960px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .features { grid-template-columns: minmax(0, 1fr); } }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.split img { border-radius: 20px; box-shadow: var(--shadow); }
@media (max-width: 900px) { .split { grid-template-columns: minmax(0, 1fr); } }

/* FAQ */
.faq { max-width: 860px; margin: 0 auto; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 10px; }
.faq summary {
  list-style: none; cursor: pointer; padding: 16px 52px 16px 20px; font-family: var(--font-head); font-weight: 700; color: var(--navy); position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 20px; top: 12px; font-size: 24px; color: var(--blue); font-weight: 400; }
.faq details[open] summary::after { content: "–"; }
.faq .answer { padding: 0 20px 16px; }
.faq .answer p:last-child { margin-bottom: 0; }

/* Contact / form */
.contact { display: grid; grid-template-columns: 1fr 1.1fr; gap: 32px; align-items: start; }
.contact-card { background: #fff; border-radius: 20px; padding: 28px; box-shadow: var(--shadow); border: 1px solid var(--line); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.radio-group { display: flex; flex-wrap: wrap; gap: 8px; }
.radio-group label { font-family: var(--font-body); font-weight: 500; display: inline-flex; align-items: center; gap: 6px; border: 1px solid #cfd7e6; border-radius: 999px; padding: 8px 14px; cursor: pointer; font-size: 14px; color: var(--text); margin: 0; }
.radio-group input { accent-color: var(--blue); width: auto; }
.form-note { font-size: 13px; color: var(--muted); margin-top: 10px; }
.form-msg { display: none; margin-top: 14px; padding: 12px 14px; border-radius: 10px; background: var(--sky); color: var(--navy); font-size: 14px; }
.form-msg.show { display: block; }
.form-msg.ok { background: #e8f8f1; color: #0b6b4a; }
.form-msg.err { background: #fdecec; color: #b42318; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
form[data-contact] { position: relative; }
form[data-contact] button:disabled { opacity: .7; cursor: wait; }
.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li { position: relative; padding: 6px 0 6px 30px; }
.checklist li::before { content: ""; position: absolute; left: 0; top: 10px; width: 18px; height: 18px; border-radius: 50%; background: var(--ok) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center/12px no-repeat; }
@media (max-width: 900px) { .contact, .form-row { grid-template-columns: minmax(0, 1fr); } }

/* Footer — xanh như TCVS */
.site-footer { background: linear-gradient(160deg, var(--blue) 0%, var(--blue-800) 100%); color: #e6edff; padding: 56px 0 0; }
.site-footer h3, .site-footer h4 { color: #fff; }
.site-footer h4 { font-size: 18px; margin-bottom: 14px; }
.site-footer a { color: #e6edff; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 36px; }
.footer-title { font-family: var(--font-head); font-weight: 900; text-transform: uppercase; font-size: 18px; color: #fff; margin-bottom: 14px; line-height: 1.35; }
.hotline { display: inline-flex; align-items: center; gap: 8px; border: 2px solid #fff; border-radius: 999px; padding: 8px 18px; color: #fff !important; font-family: var(--font-head); font-weight: 700; margin: 0 8px 10px 0; text-decoration: none !important; }
.hotline:hover { background: rgba(255,255,255,.12); }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { padding: 4px 0; }
.footer-bottom { margin-top: 40px; padding: 18px 0; border-top: 1px solid rgba(255,255,255,.18); font-size: 13px; color: #c9d6fb; }
.footer-bottom .container { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: minmax(0, 1fr); } }

/* Floating call (mobile) */
/* Thanh gọi nhanh trên mobile: 2 số nằm ngang ở đáy màn hình */
.float-call { display: none; }
@media (max-width: 720px) {
  .float-call {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: flex; gap: 8px;
    padding: 8px 10px calc(8px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.97);
    border-top: 1px solid var(--line); box-shadow: 0 -6px 18px rgba(13, 38, 99, .10);
  }
  .float-call a {
    flex: 1; min-width: 0; display: flex; align-items: center; justify-content: center; gap: 8px;
    padding: 8px 10px; border-radius: 999px; background: var(--blue); color: #fff; text-decoration: none !important;
    font-family: var(--font-head); font-weight: 700; font-size: 15px; line-height: 1.15; white-space: nowrap;
  }
  .float-call a:active { background: var(--blue-600); }
  .float-call svg { width: 18px; height: 18px; flex-shrink: 0; }
  .float-call small { display: block; font-size: 11.5px; font-weight: 500; opacity: .85; }
  body { padding-bottom: calc(66px + env(safe-area-inset-bottom)); }
}

/* ===== Trang bài viết (pillar / visa) ===== */
.page-hero { background: linear-gradient(180deg, var(--sky) 0%, #fff 100%); padding: 36px 0 28px; border-bottom: 1px solid var(--line); }
.breadcrumb { font-size: 14px; color: var(--muted); margin-bottom: 14px; }
.breadcrumb a { color: var(--muted); }
.breadcrumb span { margin: 0 6px; }
.meta { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 14px; color: var(--muted); margin-top: 8px; }
.meta b { color: var(--navy); }
.article-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 48px; padding: 40px 16px 72px; }
.toc { position: sticky; top: 96px; align-self: start; font-size: 14px; }
.toc h2 { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 10px; }
.toc ol { list-style: none; padding: 0; margin: 0; border-left: 2px solid var(--line); }
.toc a { display: block; padding: 6px 12px; color: var(--text); border-left: 2px solid transparent; margin-left: -2px; text-decoration: none; }
.toc a:hover { color: var(--blue); }
.toc a.active { color: var(--blue); border-left-color: var(--blue); font-weight: 700; }
.toc .toc-cta { margin-top: 20px; padding: 16px; background: var(--sky); border-radius: 12px; }
.toc .toc-cta p { margin: 0 0 10px; font-size: 14px; }
.article { max-width: 780px; }
.article h2 { margin-top: 48px; padding-top: 4px; }
.article h2:first-child { margin-top: 0; }
.article h3 { margin-top: 28px; }
.article ul, .article ol { padding-left: 22px; }
.article li { margin-bottom: 6px; }
.summary-box { background: #fff; border: 2px solid var(--blue); border-radius: 16px; padding: 20px 24px; margin-bottom: 28px; }
.summary-box h2 { font-size: 18px; margin: 0 0 12px !important; text-transform: uppercase; letter-spacing: .04em; color: var(--blue); }
.summary-box dl { display: grid; grid-template-columns: 170px 1fr; gap: 8px 16px; margin: 0; }
.summary-box dt { font-family: var(--font-head); font-weight: 700; color: var(--navy); }
.summary-box dd { margin: 0; }
@media (max-width: 560px) { .summary-box dl { grid-template-columns: minmax(0, 1fr); } .summary-box dd { margin-bottom: 8px; } }
.table-wrap { overflow-x: auto; margin: 16px 0 8px; border: 1px solid var(--line); border-radius: 12px; }
table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 520px; }
th, td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--sky); font-family: var(--font-head); color: var(--navy); font-size: 14px; }
tr:last-child td { border-bottom: 0; }
td.num { font-family: var(--font-head); font-weight: 700; white-space: nowrap; }
.table-caption { font-size: 13px; color: var(--muted); }
.pillars { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 16px 0; }
.pillar { border: 1px solid var(--line); border-radius: 12px; padding: 16px; background: var(--bg-soft); }
.pillar h3 { margin: 0 0 6px; font-size: 16px; }
.pillar p { margin: 0; font-size: 15px; }
@media (max-width: 640px) { .pillars { grid-template-columns: minmax(0, 1fr); } }
.box-note { border-left: 4px solid var(--blue); background: var(--sky); padding: 14px 18px; border-radius: 0 10px 10px 0; margin: 18px 0; }
.box-warn { border-left: 4px solid #f59e0b; background: var(--warn-bg); padding: 14px 18px; border-radius: 0 10px 10px 0; margin: 18px 0; }
.box-note p:last-child, .box-warn p:last-child { margin-bottom: 0; }
.sources { font-size: 14px; }
.sources li { word-break: break-word; }
.inline-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 24px; border-radius: 16px; background: linear-gradient(160deg, var(--blue) 0%, var(--blue-800) 100%); color: #fff; margin: 36px 0; }
.inline-cta h3 { color: #fff; margin: 0 0 4px; }
.inline-cta p { margin: 0; color: #d5e1ff; }
.timeline-bar { display: grid; grid-template-columns: 2fr 1fr 1.4fr; gap: 4px; margin: 18px 0 6px; font-size: 13px; font-family: var(--font-head); }
.timeline-bar div { padding: 10px 12px; color: #fff; border-radius: 8px; }
.timeline-bar .t1 { background: var(--blue); }
.timeline-bar .t2 { background: #4f7ef0; }
.timeline-bar .t3 { background: var(--navy); }
@media (max-width: 1040px) {
  .article-layout { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .toc { position: static; margin-bottom: 24px; }
  .toc ol { columns: 2; }
}
@media (max-width: 560px) { .toc ol { columns: 1; } .timeline-bar { grid-template-columns: minmax(0, 1fr); } }

/* ===== Tin tức, danh mục, bài viết ===== */
.section-head-row { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.section-head-row h2 { margin: 0; }
.main-nav a.nav-parent::after { margin-left: 6px; }
.footer-grid-4 { grid-template-columns: 1.3fr 1fr 1fr 1.1fr; }
@media (max-width: 1040px) { .footer-grid-4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .footer-grid-4 { grid-template-columns: minmax(0, 1fr); } }

.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 960px) { .post-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .post-grid { grid-template-columns: minmax(0, 1fr); } }
.post-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; transition: .2s; }
.post-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.post-card .thumb { display: block; aspect-ratio: 768/515; background: var(--sky); overflow: hidden; } /* ảnh bài viết gốc 3:2, giữ đủ logo + số điện thoại */
.post-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: .3s; }
.post-card:hover .thumb img { transform: scale(1.03); }
.thumb-ph { display: block; width: 100%; height: 100%; background: linear-gradient(135deg, var(--sky), var(--sky-2)); }
.post-card-body { padding: 16px 18px 18px; display: flex; flex-direction: column; flex: 1; }
.post-card h3 { font-size: 17px; line-height: 1.4; margin: 6px 0 8px; }
.post-card h3 a { color: var(--navy); }
.post-card h3 a:hover { color: var(--blue); text-decoration: none; }
.post-card p { font-size: 14.5px; color: var(--muted); margin: 0 0 12px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.post-card time { margin-top: auto; font-size: 13px; color: var(--muted); }
.post-cat { display: inline-block; align-self: flex-start; font-family: var(--font-head); font-size: 12px; font-weight: 700; color: var(--blue); background: var(--sky); padding: 3px 10px; border-radius: 999px; text-decoration: none !important; margin-right: 6px; }
.post-cat:hover { background: var(--sky-2); }

.chips-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; border: 1px solid #cfd7e6; background: #fff; color: var(--navy); font-family: var(--font-head); font-size: 14px; font-weight: 500; text-decoration: none !important; }
.chip span { font-size: 12px; color: var(--muted); background: var(--bg-soft); border-radius: 999px; padding: 1px 8px; }
.chip:hover { border-color: var(--blue); color: var(--blue); }
.chip.active { background: var(--blue); border-color: var(--blue); color: #fff; }
.chip.active span { background: rgba(255,255,255,.2); color: #fff; }

.guide-banner { display: grid; gap: 4px; padding: 20px 24px; margin-bottom: 24px; border-radius: 16px; background: linear-gradient(160deg, var(--blue) 0%, var(--blue-800) 100%); color: #fff; text-decoration: none !important; }
.guide-banner .eyebrow { color: #bcd0ff; }
.guide-banner b { font-family: var(--font-head); font-size: 20px; }
.guide-banner span:last-child { color: #d5e1ff; font-size: 15px; }

.pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 36px; }
.pagination a, .pagination span { min-width: 42px; height: 42px; padding: 0 12px; display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; border: 1px solid var(--line); font-family: var(--font-head); font-size: 15px; color: var(--navy); text-decoration: none !important; }
.pagination a:hover { border-color: var(--blue); color: var(--blue); }
.pagination .pg-cur { background: var(--blue); border-color: var(--blue); color: #fff; font-weight: 700; }
.pagination .pg-gap { border: 0; }

.post-title { font-size: clamp(26px, 3.4vw, 38px); }
.post-cats .post-cat { margin: 0 4px 0 0; }
.post-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 48px; padding: 36px 16px 72px; }
@media (max-width: 1040px) { .post-layout { grid-template-columns: minmax(0, 1fr); } }
.post-content { max-width: 760px; }
.post-content h2 { margin-top: 36px; font-size: clamp(22px, 2.4vw, 28px); }
.post-content h3 { margin-top: 28px; font-size: 20px; }
.post-content h4 { margin-top: 22px; font-size: 18px; }
.post-content p { text-align: left; }
.post-content img { border-radius: 12px; margin: 8px auto; }
.post-content figure { margin: 24px 0; }
.post-content figcaption { font-size: 14px; color: var(--muted); text-align: center; margin-top: 6px; }
.post-content blockquote { margin: 20px 0; padding: 12px 18px; border-left: 4px solid var(--blue); background: var(--sky); border-radius: 0 10px 10px 0; }
.post-cover { margin: 0 0 24px; }
.post-cover img { width: 100%; height: auto; border-radius: 16px; } /* hiện đủ ảnh, không cắt */
.related-title { font-size: 24px; margin: 8px 0 18px !important; }
.post-content .post-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; }
.post-content .post-card h3 { font-size: 15px; margin-top: 0; }
.post-content .post-card p { display: none; }
@media (max-width: 720px) { .post-content .post-grid { grid-template-columns: minmax(0, 1fr); } }

.sidebar { display: grid; gap: 20px; align-content: start; position: sticky; top: 96px; }
@media (max-width: 1040px) { .sidebar { position: static; } }
.widget { border: 1px solid var(--line); border-radius: 16px; padding: 20px; background: #fff; }
.widget h3 { font-size: 17px; margin: 0 0 12px; }
.widget-cta { background: linear-gradient(160deg, var(--blue) 0%, var(--blue-800) 100%); border: 0; color: #e6edff; }
.widget-cta h3 { color: #fff; }
.widget-cta p { font-size: 15px; }
.hotline-dark { display: block; text-align: center; border: 2px solid #fff; border-radius: 999px; padding: 8px 14px; margin-top: 8px; color: #fff !important; font-family: var(--font-head); font-weight: 700; text-decoration: none !important; }
.hotline-dark:hover { background: rgba(255,255,255,.12); }
.cat-list, .latest-list, .topic-list { list-style: none; padding: 0; margin: 0; }
.cat-list a { display: flex; justify-content: space-between; padding: 9px 0; border-bottom: 1px solid var(--line); color: var(--navy); }
.cat-list li:last-child a { border-bottom: 0; }
.cat-list span { color: var(--muted); font-size: 13px; }
.latest-list li { padding: 10px 0; border-bottom: 1px solid var(--line); }
.latest-list li:last-child { border-bottom: 0; }
.latest-list a { display: block; color: var(--navy); font-size: 14.5px; line-height: 1.45; font-weight: 600; }
.latest-list time { font-size: 12.5px; color: var(--muted); }
.topic-list a { display: block; padding: 12px 0; border-bottom: 1px solid var(--line); text-decoration: none !important; }
.topic-list li:last-child a { border-bottom: 0; }
.topic-list b { display: block; color: var(--navy); font-family: var(--font-head); }
.topic-list span { font-size: 14px; color: var(--muted); }

/* Liên hệ */
.contact-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 960px) { .contact-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .contact-grid { grid-template-columns: minmax(0, 1fr); } }
.contact-tile { display: grid; gap: 2px; padding: 20px; border: 1px solid var(--line); border-radius: 16px; background: #fff; text-decoration: none !important; transition: .2s; }
.contact-tile:hover { box-shadow: var(--shadow); border-color: var(--sky-2); }
.contact-tile .ico { width: 44px; height: 44px; border-radius: 12px; background: var(--sky); color: var(--blue); display: grid; place-items: center; margin-bottom: 10px; }
.contact-tile .ico svg { width: 22px; height: 22px; }
.contact-tile .label { font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; font-family: var(--font-head); }
.contact-tile b { font-family: var(--font-head); font-size: clamp(15px, 1.5vw, 19px); color: var(--navy); overflow-wrap: anywhere; }
.map-wrap { margin-top: 18px; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); aspect-ratio: 4/3; }
.map-wrap iframe { width: 100%; height: 100%; border: 0; display: block; }
.field textarea { width: 100%; font: inherit; padding: 11px 14px; border: 1px solid #cfd7e6; border-radius: 10px; resize: vertical; }
.field textarea:focus { outline: 2px solid var(--blue); outline-offset: 1px; border-color: var(--blue); }

/* Mục lục trong bài viết (thu gọn / mở rộng) */
.post-toc { margin: 0 0 28px; border: 1px solid var(--sky-2); border-radius: 14px; background: var(--sky); }
.post-toc summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 10px; padding: 14px 18px; font-family: var(--font-head); }
.post-toc summary::-webkit-details-marker { display: none; }
.post-toc-title { font-weight: 800; color: var(--navy); font-size: 17px; }
.post-toc-count { font-size: 13px; color: var(--muted); background: #fff; border-radius: 999px; padding: 2px 10px; }
.post-toc summary::after { content: "Mở rộng ▾"; margin-left: auto; font-size: 14px; font-weight: 700; color: var(--blue); }
.post-toc[open] summary::after { content: "Thu gọn ▴"; }
.post-toc > ol { margin: 0; padding: 0 18px 16px 40px; counter-reset: none; }
.post-toc li { margin: 6px 0; line-height: 1.45; }
.post-toc a { color: var(--navy); }
.post-toc a:hover { color: var(--blue); }
.post-toc ol ol { padding-left: 20px; margin: 4px 0 8px; list-style: disc; font-size: 15px; }
.post-toc ol ol a { color: var(--muted); }
.post-content h2[id], .post-content h3[id] { scroll-margin-top: 96px; }

/* Khối liên hệ "Tổ chức Toàn Cầu Visa" cuối bài viết */
.post-content .contact-block { margin: 28px 0 8px; padding-top: 20px; position: relative; }
.post-content .contact-block::before { content: ""; position: absolute; top: 0; left: 0; width: 80px; height: 3px; background: var(--line); border-radius: 2px; }
.post-content .contact-block .contact-title { margin: 0 0 10px; text-transform: uppercase; color: var(--navy); }
.post-content .contact-block ul { margin: 0; padding-left: 22px; }
.post-content .contact-block li { margin: 8px 0; }
.post-content .contact-block a { color: var(--blue); word-break: break-word; }
