/* =========================================================
   thuoc.info.vn — Thư viện tra cứu tờ hướng dẫn sử dụng thuốc
   Giao diện: Y tế cao cấp, tông xanh dương, chuẩn E-E-A-T
   ========================================================= */
@import url('https://fonts.googleapis.com/css2?family=Be+Vietnam+Pro:wght@400;500;600;700;800&display=swap');

:root {
  --blue-900: #0a3352;
  --blue-800: #0e4a76;
  --blue-700: #14639b;
  --blue-600: #1a73c2;
  --blue-500: #2e8bd6;
  --blue-400: #57a5e0;
  --blue-300: #9cc6e8;
  --blue-100: #e5f1fb;
  --blue-50:  #f2f8fd;
  --teal-600: #0f8a8a;
  --teal-500: #17a2a2;
  --teal-100: #d9f2f2;
  --green-600:#1f9d55;
  --green-100:#e3f6ec;
  --amber-500:#e0a800;
  --amber-100:#fdf3d6;
  --red-500:  #d64545;
  --red-100:  #fbe6e6;
  --ink-900:  #14212e;
  --ink-700:  #38495a;
  --ink-500:  #64757f;
  --ink-400:  #8b9aa5;
  --line:     #e4ebf1;
  --line-soft:#eef3f7;
  --bg:       #f4f8fb;
  --white:    #ffffff;
  --radius:   16px;
  --radius-lg:22px;
  --radius-sm:10px;
  --shadow-xs: 0 1px 2px rgba(16,54,84,.06);
  --shadow:    0 4px 14px rgba(16,54,84,.07);
  --shadow-md: 0 14px 34px rgba(16,54,84,.12);
  --shadow-lg: 0 26px 60px rgba(11,55,90,.18);
  --grad-brand: linear-gradient(135deg, #1a73c2 0%, #17a2a2 100%);
  --grad-deep:  linear-gradient(150deg, #0a3352 0%, #14639b 60%, #17a2a2 130%);
  --maxw:     1200px;
  --font:     "Be Vietnam Pro", "Segoe UI", Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink-900);
  background: var(--bg);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--blue-700); text-decoration: none; transition: color .15s; }
a:hover { text-decoration: none; color: var(--blue-600); }
img { max-width: 100%; display: block; }
::selection { background: var(--blue-100); }

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

/* ---------- Topbar ---------- */
.topbar { background: var(--blue-900); color: #b8d2e6; font-size: 13px; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; height: 40px; gap: 16px; }
.topbar a { color: #dcebf6; }
.topbar a:hover { color: #fff; }
.topbar .topbar-links { display: flex; gap: 20px; }
@media (max-width: 720px){ .topbar .topbar-links{ display:none; } }

/* ---------- Header ---------- */
.site-header { background: rgba(255,255,255,.86); backdrop-filter: saturate(180%) blur(12px); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 40; }
.site-header .container { display: flex; align-items: center; gap: 26px; height: 78px; }
.brand { display: flex; align-items: center; gap: 13px; }
.brand .logo {
  width: 46px; height: 46px; border-radius: 13px;
  background: var(--grad-brand);
  display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 21px;
  box-shadow: 0 8px 18px rgba(23,115,194,.35); letter-spacing: -.5px;
}
.brand .brand-text b { font-size: 20px; color: var(--blue-900); display:block; line-height:1.05; letter-spacing:-.4px; }
.brand .brand-text span { font-size: 11.5px; color: var(--ink-500); font-weight: 500; letter-spacing: .2px; }

.main-nav { display: flex; gap: 4px; margin-left: auto; }
.main-nav a { padding: 10px 15px; border-radius: 10px; color: var(--ink-700); font-weight: 600; font-size: 15px; }
.main-nav a:hover { background: var(--blue-50); color: var(--blue-700); }
.main-nav a.active { background: var(--blue-100); color: var(--blue-800); }

.nav-toggle { display: none; margin-left: auto; width: 46px; height: 46px; border: 1px solid var(--line); border-radius: 12px; background: #fff; font-size: 22px; cursor: pointer; color: var(--ink-700); }

@media (max-width: 920px){
  .nav-toggle { display: block; }
  .main-nav {
    position: absolute; top: 78px; left: 0; right: 0; flex-direction: column;
    background: #fff; border-bottom: 1px solid var(--line); padding: 12px 22px 20px;
    gap: 2px; display: none; box-shadow: var(--shadow-md);
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 13px 14px; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px; padding: 13px 22px;
  border-radius: 12px; border: 1px solid transparent; font-weight: 700; font-size: 15px;
  font-family: var(--font); cursor: pointer; transition: transform .12s, box-shadow .2s, background .15s; line-height: 1;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--grad-brand); color: #fff; box-shadow: 0 10px 22px rgba(23,115,194,.32); }
.btn-primary:hover { box-shadow: 0 14px 28px rgba(23,115,194,.42); color:#fff; }
.btn-ghost { background: #fff; color: var(--blue-700); border-color: var(--blue-100); box-shadow: var(--shadow-xs); }
.btn-ghost:hover { background: var(--blue-50); }
.btn-white { background:#fff; color: var(--blue-700); }
.btn-block { width: 100%; justify-content: center; }

/* ---------- Search box ---------- */
.searchbox { display: flex; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 7px; box-shadow: var(--shadow-md); }
.searchbox input { flex: 1; border: none; outline: none; padding: 13px 16px; font-size: 16px; background: transparent; color: var(--ink-900); font-family: var(--font); }
.searchbox select { border: none; outline: none; background: transparent; border-right: 1px solid var(--line); padding: 0 14px; font-size: 15px; color: var(--ink-700); cursor: pointer; font-family: var(--font); font-weight: 500; }
.searchbox .btn { border-radius: 11px; }
@media (max-width: 620px){
  .searchbox { flex-wrap: wrap; }
  .searchbox select { border-right: none; border-bottom: 1px solid var(--line); width: 100%; padding: 12px 14px; }
  .searchbox input { width: 100%; }
  .searchbox .btn { width: 100%; margin-top: 6px; }
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: linear-gradient(180deg, #eef6fd 0%, #f6fafd 60%, #fff 100%); border-bottom: 1px solid var(--line); padding: 66px 0 72px; }
.hero::before { content:""; position:absolute; top:-160px; right:-120px; width: 460px; height: 460px; border-radius: 50%; background: radial-gradient(circle at center, rgba(23,162,162,.20), transparent 68%); }
.hero::after { content:""; position:absolute; bottom:-180px; left:-140px; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(circle at center, rgba(23,115,194,.16), transparent 68%); }
.hero .container { position: relative; z-index: 2; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 46px; align-items: center; }
@media (max-width: 940px){ .hero-grid { grid-template-columns: 1fr; gap: 34px; } .hero-visual { display:none; } }

.eyebrow { display:inline-flex; align-items:center; gap:8px; font-size: 13px; font-weight: 700; letter-spacing:.3px; color: var(--teal-600); background: var(--teal-100); padding: 7px 14px; border-radius: 999px; margin-bottom: 18px; }
.hero h1 { font-size: 46px; line-height: 1.12; margin: 0 0 16px; color: var(--blue-900); letter-spacing: -1px; font-weight: 800; }
.hero h1 .grad { background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero p.lead { font-size: 18px; color: var(--ink-700); margin: 0 0 26px; max-width: 560px; }
.hero .quick-links { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 10px; align-items:center; }
.hero .quick-links span { color: var(--ink-500); font-size: 14px; font-weight: 500; }
.chip { display: inline-block; padding: 7px 15px; border-radius: 999px; background: #fff; border: 1px solid var(--blue-100); color: var(--blue-700); font-size: 14px; font-weight: 600; box-shadow: var(--shadow-xs); transition: .14s; }
.chip:hover { background: var(--blue-600); color:#fff; border-color: var(--blue-600); transform: translateY(-1px); }
@media (max-width: 620px){ .hero { padding: 44px 0 50px; } .hero h1 { font-size: 33px; } }

/* Hero visual — mockup panel */
.hero-visual { position: relative; }
.mock-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: 22px; position: relative; z-index: 2; }
.mock-card .mc-head { display:flex; align-items:center; gap:14px; padding-bottom: 16px; border-bottom: 1px solid var(--line-soft); }
.mock-card .mc-pill { width: 54px; height: 54px; border-radius: 14px; background: var(--blue-50); border:1px solid var(--blue-100); display:grid; place-items:center; font-size: 27px; }
.mock-card .mc-head b { display:block; font-size: 17px; color: var(--blue-900); }
.mock-card .mc-head span { font-size: 12.5px; color: var(--ink-500); }
.mc-badges { display:flex; gap:6px; margin: 14px 0 4px; flex-wrap: wrap; }
.mc-row { display:flex; justify-content:space-between; gap: 12px; padding: 11px 0; border-bottom: 1px dashed var(--line); font-size: 13.5px; }
.mc-row:last-child { border-bottom:none; }
.mc-row .k { color: var(--ink-500); font-weight: 500; }
.mc-row .v { color: var(--ink-900); font-weight: 600; text-align:right; }
.mock-float { position:absolute; background:#fff; border:1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-md); padding: 12px 15px; display:flex; align-items:center; gap:11px; z-index: 3; font-size: 13.5px; font-weight:600; color: var(--ink-900); }
.mock-float .dot { width: 34px; height: 34px; border-radius: 10px; display:grid; place-items:center; font-size: 17px; }
.mock-float.f1 { top: -22px; left: -26px; }
.mock-float.f2 { bottom: -20px; right: -22px; }
.mock-float .dot.g { background: var(--green-100); color: var(--green-600); }
.mock-float .dot.b { background: var(--blue-100); color: var(--blue-600); }

/* ---------- Stats band ---------- */
.stats { background: var(--grad-deep); color:#fff; }
.stats .grid-stats { display:grid; grid-template-columns: repeat(4,1fr); gap: 20px; padding: 30px 0; }
@media (max-width: 720px){ .stats .grid-stats { grid-template-columns: repeat(2,1fr); gap: 24px; padding: 28px 0; } }
.stat { text-align:center; position:relative; }
.stat + .stat::before { content:""; position:absolute; left:-10px; top:12%; height:76%; width:1px; background: rgba(255,255,255,.16); }
@media (max-width: 720px){ .stat + .stat::before { display:none; } }
.stat b { display:block; font-size: 32px; font-weight: 800; letter-spacing:-.5px; }
.stat span { font-size: 13.5px; color:#c6ddef; }

/* ---------- Sections ---------- */
.section { padding: 62px 0; }
.section.alt { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { display:flex; align-items:flex-end; justify-content:space-between; margin-bottom: 32px; gap:16px; flex-wrap:wrap; }
.section-head .eyebrow { margin-bottom: 10px; }
.section-head h2 { font-size: 30px; margin: 0; color: var(--blue-900); letter-spacing:-.5px; font-weight: 800; }
.section-head p { margin: 8px 0 0; color: var(--ink-500); font-size: 15.5px; }
.section-head a.more { font-weight: 700; white-space: nowrap; color: var(--blue-600); }
.section-head a.more:hover { color: var(--blue-800); }

/* ---------- Grid ---------- */
.grid { display: grid; gap: 20px; }
.grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 980px){ .grid.cols-4 { grid-template-columns: repeat(2,1fr);} .grid.cols-3{grid-template-columns:repeat(2,1fr);} }
@media (max-width: 620px){ .grid.cols-4, .grid.cols-3, .grid.cols-2 { grid-template-columns: 1fr; } }

/* Category cards */
.cat-card {
  position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px 22px; transition: transform .18s, box-shadow .22s, border-color .2s; display: block; overflow: hidden;
}
.cat-card::before { content:""; position:absolute; top:0; left:0; right:0; height: 4px; background: var(--grad-brand); transform: scaleX(0); transform-origin: left; transition: transform .28s; }
.cat-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: transparent; }
.cat-card:hover::before { transform: scaleX(1); }
.cat-card .ic { width: 52px; height: 52px; border-radius: 14px; background: var(--blue-100); color: var(--blue-700); display: grid; place-items: center; font-size: 25px; margin-bottom: 15px; transition: .2s; }
.cat-card:hover .ic { transform: scale(1.06); }
.cat-card.teal .ic { background: var(--teal-100); color: var(--teal-600); }
.cat-card.green .ic { background: var(--green-100); color: var(--green-600); }
.cat-card.amber .ic { background: var(--amber-100); color: #b98a00; }
.cat-card h3 { margin: 0 0 5px; font-size: 17.5px; color: var(--ink-900); font-weight: 700; }
.cat-card p { margin: 0; font-size: 13.5px; color: var(--ink-500); }
.cat-card .count { margin-top: 13px; font-size: 13px; color: var(--blue-600); font-weight: 700; display:inline-flex; align-items:center; gap:5px; }

/* ---------- Drug list ---------- */
.drug-list { display: grid; gap: 15px; }
.drug-item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; display: flex; gap: 18px; align-items: flex-start; transition: transform .15s, box-shadow .2s, border-color .2s; }
.drug-item:hover { box-shadow: var(--shadow-md); border-color: transparent; transform: translateY(-2px); }
.drug-item .thumb { width: 66px; height: 66px; flex: none; border-radius: 14px; background: linear-gradient(135deg, var(--blue-50), var(--teal-100)); border: 1px solid var(--blue-100); display: grid; place-items: center; font-size: 28px; }
.drug-item .body { flex: 1; }
.drug-item h3 { margin: 0 0 4px; font-size: 18.5px; font-weight: 700; }
.drug-item h3 a { color: var(--blue-900); }
.drug-item h3 a:hover { color: var(--blue-600); }
.drug-item .meta { font-size: 13px; color: var(--ink-500); margin-bottom: 10px; }
.drug-item .meta b { color: var(--ink-700); font-weight: 600; }
.drug-item .tags { display: flex; flex-wrap: wrap; gap: 7px; }
.tag { font-size: 12px; padding: 4px 11px; border-radius: 999px; background: var(--blue-50); color: var(--blue-700); border: 1px solid var(--blue-100); font-weight: 600; }
.tag.rx { background: var(--red-100); color: var(--red-500); border-color: #f3cccc; }
.tag.otc { background: var(--green-100); color: var(--green-600); border-color: #cbebd6; }

/* ---------- Filter sidebar ---------- */
.layout-2col { display: grid; grid-template-columns: 272px 1fr; gap: 30px; align-items: start; }
@media (max-width: 860px){ .layout-2col { grid-template-columns: 1fr; } }
.filter-box { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; position: sticky; top: 96px; box-shadow: var(--shadow); }
.filter-box h4 { margin: 0 0 14px; font-size: 15px; color: var(--blue-900); font-weight: 700; }
.filter-group { border-top: 1px solid var(--line-soft); padding: 15px 0; }
.filter-group:first-of-type { border-top: none; padding-top: 0; }
.filter-group label { display: flex; align-items: center; gap: 10px; font-size: 14.5px; color: var(--ink-700); padding: 6px 0; cursor: pointer; }
.filter-group input { accent-color: var(--blue-600); width: 17px; height: 17px; }

/* ---------- Tabs ---------- */
.tabs { display: inline-flex; gap: 4px; background:#fff; border:1px solid var(--line); border-radius: 14px; padding: 5px; margin-bottom: 30px; flex-wrap: wrap; box-shadow: var(--shadow-xs); }
.tab-btn { padding: 11px 20px; border: none; background: none; cursor: pointer; font-size: 15px; font-weight: 600; color: var(--ink-500); border-radius: 10px; font-family: var(--font); transition: .15s; }
.tab-btn:hover { color: var(--blue-700); }
.tab-btn.active { color: #fff; background: var(--grad-brand); box-shadow: 0 6px 14px rgba(23,115,194,.28); }
.tab-panel { display: none; }
.tab-panel.active { display: block; animation: fade .3s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- Drug detail ---------- */
.drug-header { position: relative; overflow:hidden; background: linear-gradient(180deg, #eef6fd, #fff); border-bottom: 1px solid var(--line); padding: 36px 0; }
.drug-header::before { content:""; position:absolute; top:-140px; right:-80px; width:340px; height:340px; border-radius:50%; background: radial-gradient(circle, rgba(23,162,162,.14), transparent 70%); }
.drug-header .container { position:relative; z-index:2; }
.drug-header .row { display: flex; gap: 24px; align-items: flex-start; }
.drug-header .thumb-lg { width: 116px; height: 116px; flex: none; border-radius: 20px; background: #fff; border: 1px solid var(--blue-100); display: grid; place-items: center; font-size: 52px; box-shadow: var(--shadow-md); }
.drug-header h1 { margin: 0 0 8px; font-size: 32px; color: var(--blue-900); font-weight: 800; letter-spacing:-.5px; }
.drug-header .sub { color: var(--ink-700); margin: 0 0 14px; font-size: 15.5px; }
.drug-header .badges { display: flex; gap: 8px; flex-wrap: wrap; }

.breadcrumb { font-size: 13.5px; color: var(--ink-500); padding: 16px 0; }
.breadcrumb a { color: var(--ink-500); }
.breadcrumb a:hover { color: var(--blue-600); }
.breadcrumb span { margin: 0 8px; color: var(--ink-400); }

.doc-layout { display: grid; grid-template-columns: 250px 1fr; gap: 40px; align-items: start; padding: 34px 0 66px; }
@media (max-width: 860px){ .doc-layout { grid-template-columns: 1fr; } .toc { display: none; } }

.toc { position: sticky; top: 96px; background:#fff; border:1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.toc h4 { font-size: 12px; text-transform: uppercase; letter-spacing: .6px; color: var(--ink-400); margin: 0 0 12px; font-weight: 700; }
.toc a { display: block; padding: 8px 13px; border-radius: 9px; font-size: 14.5px; color: var(--ink-700); border-left: 3px solid transparent; }
.toc a:hover, .toc a.active { background: var(--blue-50); color: var(--blue-800); border-left-color: var(--blue-600); font-weight: 600; }

.doc-section { margin-bottom: 34px; scroll-margin-top: 96px; }
.doc-section h2 { font-size: 22px; color: var(--blue-900); margin: 0 0 14px; padding-bottom: 12px; border-bottom: 2px solid var(--blue-100); font-weight: 800; }
.doc-section h3 { font-size: 17.5px; color: var(--ink-900); margin: 20px 0 8px; font-weight: 700; }
.doc-section p, .doc-section li { color: var(--ink-700); }
.doc-section ul { padding-left: 20px; }
.doc-section li { margin: 5px 0; }

.info-table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-xs); }
.info-table th, .info-table td { text-align: left; padding: 13px 18px; font-size: 14.5px; border-bottom: 1px solid var(--line-soft); }
.info-table th { width: 38%; background: var(--blue-50); color: var(--ink-700); font-weight: 600; }
.info-table tr:last-child th, .info-table tr:last-child td { border-bottom: none; }

/* ---------- Gallery ảnh thuốc ---------- */
.gallery { margin-bottom: 26px; }
.gallery-main {
  position: relative; border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden; background: #fff; box-shadow: var(--shadow); aspect-ratio: 16 / 10;
}
.g-slide {
  position: absolute; inset: 0; display: none; place-items: center; text-align: center;
  flex-direction: column; gap: 12px; color: var(--blue-800);
}
.g-slide.active { display: grid; animation: fade .3s ease; }
.g-slide img { width: 100%; height: 100%; object-fit: contain; }
.g-slide .ph { display: grid; place-items: center; gap: 10px; }
.g-slide .ph .big { font-size: 78px; line-height: 1; }
.g-slide .ph .cap { font-size: 14px; font-weight: 600; color: var(--ink-500); }
.g-slide.t0 { background: linear-gradient(135deg, #eaf3fb, #d9f2f2); }
.g-slide.t1 { background: linear-gradient(135deg, #e8f6ee, #eaf3fb); }
.g-slide.t2 { background: linear-gradient(135deg, #fdf3d6, #eaf3fb); }
.g-slide.t3 { background: linear-gradient(135deg, #f2e9fb, #d9f2f2); }

.g-nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 5;
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line);
  background: rgba(255,255,255,.92); cursor: pointer; font-size: 20px; color: var(--blue-700);
  display: grid; place-items: center; box-shadow: var(--shadow); transition: .15s;
}
.g-nav:hover { background: #fff; box-shadow: var(--shadow-md); }
.g-nav.prev { left: 14px; } .g-nav.next { right: 14px; }
.g-counter {
  position: absolute; bottom: 14px; right: 14px; z-index: 5;
  background: rgba(10,51,82,.82); color: #fff; font-size: 12.5px; font-weight: 600;
  padding: 5px 12px; border-radius: 999px;
}
.g-badge {
  position: absolute; top: 14px; left: 14px; z-index: 5;
  background: rgba(255,255,255,.92); color: var(--blue-800); font-size: 12px; font-weight: 700;
  padding: 6px 12px; border-radius: 999px; border: 1px solid var(--blue-100);
}
.gallery-thumbs { display: flex; gap: 10px; margin-top: 12px; overflow-x: auto; padding-bottom: 4px; }
.g-thumb {
  flex: 0 0 84px; height: 68px; border-radius: 12px; border: 2px solid var(--line);
  cursor: pointer; overflow: hidden; background: #fff; display: grid; place-items: center;
  font-size: 28px; transition: .15s; position: relative;
}
.g-thumb img { width: 100%; height: 100%; object-fit: cover; }
.g-thumb .tcap { position:absolute; bottom:0; left:0; right:0; font-size: 9.5px; font-weight:600; color: var(--ink-500); background: rgba(255,255,255,.85); padding: 1px 2px; line-height: 1.3; }
.g-thumb:hover { border-color: var(--blue-300); }
.g-thumb.active { border-color: var(--blue-600); box-shadow: 0 4px 12px rgba(23,115,194,.25); }
.g-thumb.t0 { background: linear-gradient(135deg, #eaf3fb, #d9f2f2); }
.g-thumb.t1 { background: linear-gradient(135deg, #e8f6ee, #eaf3fb); }
.g-thumb.t2 { background: linear-gradient(135deg, #fdf3d6, #eaf3fb); }
.g-thumb.t3 { background: linear-gradient(135deg, #f2e9fb, #d9f2f2); }

/* ---------- Callouts ---------- */
.callout { border-radius: var(--radius); padding: 17px 19px; margin: 18px 0; display: flex; gap: 13px; font-size: 14.5px; line-height: 1.65; }
.callout .ic { font-size: 20px; flex: none; line-height: 1.4; }
.callout.warn { background: var(--amber-100); border: 1px solid #f0dca0; color: #6b5200; }
.callout.danger { background: var(--red-100); border: 1px solid #f0c4c4; color: #7d2b2b; }
.callout.info { background: var(--blue-50); border: 1px solid var(--blue-100); color: var(--blue-900); }
.callout.source { background: #f4f7f9; border: 1px dashed #c2d2dd; color: var(--ink-700); }
.callout b { font-weight: 700; }

/* ---------- Article cards ---------- */
.article-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .18s, box-shadow .22s; display: flex; flex-direction: column; }
.article-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.article-card .cover { height: 158px; background: var(--grad-brand); display: grid; place-items: center; font-size: 46px; position: relative; }
.article-card .cover::after { content:""; position:absolute; inset:0; background: radial-gradient(circle at 70% 20%, rgba(255,255,255,.28), transparent 55%); }
.article-card .pad { padding: 18px 20px 20px; flex:1; display:flex; flex-direction:column; }
.article-card .kicker { font-size: 11.5px; font-weight: 800; color: var(--teal-600); text-transform: uppercase; letter-spacing: .5px; }
.article-card h3 { margin: 8px 0 7px; font-size: 17px; color: var(--ink-900); line-height: 1.4; font-weight: 700; }
.article-card p { margin: 0; font-size: 14px; color: var(--ink-500); }
.article-card .foot { margin-top: 14px; font-size: 12.5px; color: var(--ink-400); font-weight: 500; }

/* ---------- Trust strip ---------- */
.trust-strip { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.trust-strip .grid { padding: 44px 0; }
.trust-item { display: flex; gap: 15px; align-items: flex-start; }
.trust-item .ic { width: 50px; height: 50px; border-radius: 14px; flex: none; background: var(--green-100); color: var(--green-600); display: grid; place-items: center; font-size: 23px; }
.trust-item h4 { margin: 0 0 4px; font-size: 15.5px; color: var(--ink-900); font-weight: 700; }
.trust-item p { margin: 0; font-size: 13.5px; color: var(--ink-500); }

/* ---------- CTA band ---------- */
.cta-band { background: var(--grad-deep); border-radius: var(--radius-lg); padding: 48px; text-align:center; color:#fff; position:relative; overflow:hidden; box-shadow: var(--shadow-md); }
.cta-band::before { content:""; position:absolute; top:-100px; right:-60px; width:280px; height:280px; border-radius:50%; background: radial-gradient(circle, rgba(23,162,162,.4), transparent 70%); }
.cta-band > * { position:relative; z-index:2; }
.cta-band h2 { color:#fff; margin: 0 0 12px; font-size: 28px; font-weight: 800; }
.cta-band p { color:#cfe3f2; max-width: 560px; margin: 0 auto 24px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--blue-900); color: #a9c6de; margin-top: 0; }
.site-footer .grid-foot { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 34px; padding: 54px 0 34px; }
@media (max-width: 820px){ .site-footer .grid-foot { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px){ .site-footer .grid-foot { grid-template-columns: 1fr; } }
.site-footer h4 { color: #fff; font-size: 15px; margin: 0 0 15px; font-weight: 700; }
.site-footer a { color: #a9c6de; display: block; padding: 5px 0; font-size: 14px; }
.site-footer a:hover { color: #fff; }
.site-footer .brand .brand-text b { color: #fff; }
.site-footer .brand .brand-text span { color: #8fb2cc; }
.site-footer .foot-note { font-size: 13.5px; color: #8fb2cc; max-width: 340px; margin: 14px 0 0; line-height: 1.7; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding: 20px 0; font-size: 13px; color: #8fb2cc; display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; }

/* ---------- Disclaimer ---------- */
.global-disclaimer { background: var(--amber-100); border-top: 1px solid #f0dca0; font-size: 13px; color: #6b5200; text-align: center; padding: 13px 20px; }

/* ---------- Pagination ---------- */
.pagination { display: flex; gap: 7px; justify-content: center; margin-top: 34px; }
.pagination a { min-width: 42px; text-align:center; padding: 9px 14px; border: 1px solid var(--line); border-radius: 11px; background: #fff; color: var(--ink-700); font-weight: 600; box-shadow: var(--shadow-xs); }
.pagination a.active { background: var(--grad-brand); color: #fff; border-color: transparent; box-shadow: 0 6px 14px rgba(23,115,194,.3); }
.pagination a:hover { border-color: var(--blue-300); }
.pagination a.active:hover { border-color: transparent; }

/* ---------- Utilities ---------- */
.muted { color: var(--ink-500); }
.center { text-align: center; }
.result-count { font-size: 14.5px; color: var(--ink-500); margin-bottom: 18px; }
.prose { max-width: 780px; }
.prose h2 { color: var(--blue-900); font-size: 24px; margin-top: 36px; font-weight: 800; }
.prose h3 { color: var(--ink-900); font-size: 18.5px; margin-top: 26px; font-weight: 700; }
.prose p, .prose li { color: var(--ink-700); }
.prose li { margin: 6px 0; }
