/* =========================================================
   Hải Châu — Giao diện cổng thông tin (đơn giản, dễ đọc)
   ========================================================= */
:root {
  --navy: #10455d;
  --navy-dark: #0b3548;
  --accent: #166b88;
  --bg: #f7fafb;
  --bg-soft: #f4f7f8;
  --ink: #1d2b33;
  --muted: #5c6f79;
  --line: #d8e1e5;
  --font: "Open Sans", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.portal {
  margin: 0;
  /* Nền trắng ngà, pha xanh rất nhẹ ở đầu trang — không hoa văn, không ảnh */
  background: linear-gradient(180deg, #eaf4f8 0, var(--bg) 260px);
  color: var(--ink);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
body.portal a { color: inherit; text-decoration: none; }
/* Dùng Open Sans cho toàn bộ cổng, kể cả tiêu đề và nút */
html, body.portal, body.portal * { font-family: "Open Sans", sans-serif !important; }
img { max-width: 100%; display: block; }
button, input, textarea { font: inherit; }
[hidden] { display: none !important; }

.pt-wrap { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }

/* ---------- Header ---------- */
.pt-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--navy);
  color: #fff;
}
.pt-header-inner {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 64px;
}
.pt-brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; flex-shrink: 0; }
.pt-schoolmark {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border: 1px solid rgba(255,255,255,.5);
  border-radius: 50%;
  color: #fff;
  font-weight: 700;
  font-size: .85rem;
  letter-spacing: -.02em;
}
.pt-schoolmark-img {
  flex: 0 0 auto;
  width: 38px; height: 38px;
  object-fit: contain;
  background: #fff;
  border: 1px solid rgba(255,255,255,.5);
  border-radius: 50%;
}
.pt-brand b { display: block; font-size: .95rem; letter-spacing: .01em; }
.pt-brand small { display: block; color: #cfe0e8; font-size: .7rem; }
.pt-topnav { margin-left: auto; display: flex; gap: 2px; }
.pt-topnav a { color: #eaf3f6; text-decoration: none; font-size: .9rem; padding: 8px 12px; border-radius: 6px; }
.pt-topnav a:hover, .pt-topnav a.is-active { background: rgba(255,255,255,.14); color: #fff; }
.pt-menu-btn { display: none; background: none; border: 1px solid rgba(255,255,255,.4); color: #fff; border-radius: 6px; padding: 7px 11px; }

/* ---------- Ảnh bìa ---------- */
.pt-hero {
  position: relative;
  background: linear-gradient(90deg, rgba(9,45,62,.94), rgba(9,45,62,.72)),
              url("assets/hc-2-9-giai-nhat.webp") center/cover no-repeat;
  color: #fff;
}
.pt-hero-inner {
  display: grid;
  grid-template-columns: 1.5fr .7fr;
  gap: 36px;
  align-items: center;
  padding: 56px 0 70px;
}
.pt-hero-badge { font-size: .8rem; color: #cfe0e8; letter-spacing: .06em; }
.pt-hero h1 { font-size: clamp(2.1rem, 4.6vw, 3.6rem); line-height: 1.12; margin: 12px 0 10px; letter-spacing: -.01em; }
.pt-hero h1 em { display: block; font-style: normal; font-size: .46em; font-weight: 400; color: #dcebf1; margin-top: 10px; letter-spacing: .02em; }
.pt-hero-lead { max-width: 48ch; color: #e2edf1; font-size: .98rem; margin: 0 0 20px; }
.pt-hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.pt-btn {
  display: inline-block; padding: 10px 17px; border-radius: 6px;
  text-decoration: none; font-size: .9rem; font-weight: 600;
  background: #fff; color: var(--navy); border: 1px solid #fff;
}
.pt-btn:hover { background: #eaf3f6; }
.pt-btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.pt-btn--ghost:hover { background: rgba(255,255,255,.12); }
.pt-committee {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px;
}
.pt-committee img { width: 100%; height: 210px; object-fit: cover; border-radius: 4px; }
.pt-committee figcaption { color: var(--muted); font-size: .76rem; text-align: center; padding: 8px 2px 1px; }

/* ---------- 8 mục ngang ---------- */
.pt-navstrip { position: relative; z-index: 20; margin-top: -34px; }
.pt-navstrip-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 12px; }
.pt-navstrip-head h2 { font-size: 1.15rem; margin: 0; font-weight: 600; }
.pt-navstrip-head span { color: var(--muted); font-size: .82rem; }
.pt-tiles { display: grid; grid-template-columns: repeat(8, 1fr); gap: 8px; }
.pt-tile { position: relative; }
.pt-tile > a {
  display: flex; align-items: center; justify-content: center;
  min-height: 84px;
  padding: 12px 10px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  text-align: center;
  text-decoration: none;
  transition: background .15s ease, border-color .15s ease;
}
.pt-tile > a:hover, .pt-tile:focus-within > a { background: var(--bg-soft); border-color: var(--accent); }
.pt-tile-name { font-weight: 600; font-size: .86rem; line-height: 1.35; }
.pt-mega {
  position: absolute; top: calc(100% + 8px); left: 0;
  width: min(310px, 82vw);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px 16px;
  box-shadow: 0 10px 26px rgba(16,69,93,.14);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .15s ease, transform .15s ease, visibility .15s;
  pointer-events: none;
}
.pt-tile:nth-child(n+6) .pt-mega { left: auto; right: 0; }
.pt-tile:hover .pt-mega, .pt-tile:focus-within .pt-mega, .pt-tile.is-open .pt-mega { opacity: 1; visibility: visible; transform: translateY(0); pointer-events: auto; }
.pt-mega h4 { margin: 0 0 6px; font-size: 1rem; }
.pt-mega > p { margin: 0 0 8px; color: var(--muted); font-size: .84rem; }
.pt-mega ul { list-style: none; margin: 0; padding: 0; }
.pt-mega li { position: relative; padding-left: 13px; font-size: .84rem; margin-bottom: 4px; }
.pt-mega li::before { content: "•"; position: absolute; left: 0; color: var(--accent); }
.pt-mega .pt-btn { margin-top: 10px; padding: 7px 12px; font-size: .8rem; background: var(--accent); color: #fff; border-color: var(--accent); }
.pt-mega .pt-btn:hover { background: var(--navy); }

/* ---------- Nội dung ---------- */
.pt-section { padding: 52px 0 12px; }
.pt-section-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.pt-section-head h2 { font-size: 1.55rem; margin: 3px 0 0; font-weight: 600; }
.pt-label { color: var(--accent); font-size: .74rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.pt-section-head p { max-width: 48ch; color: var(--muted); margin: 0; font-size: .9rem; }
.pt-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.pt-card { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 20px; }
.pt-card h3 { margin: 0 0 8px; font-size: 1.1rem; }
.pt-card p { color: var(--muted); margin: 0 0 12px; font-size: .9rem; }
.pt-card a.pt-more { color: var(--accent); font-weight: 600; text-decoration: none; font-size: .86rem; }
.pt-card a.pt-more:hover { text-decoration: underline; }

/* ---------- Bản đồ ---------- */
.pt-map-layout { display: grid; grid-template-columns: 1.6fr .9fr; gap: 14px; align-items: stretch; }
.pt-map-box { background: #fff; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
#ptMapCanvas, #ptMapFrame { width: 100%; height: 380px; border: 0; display: block; background: #e5edef; }
.pt-map-side { background: var(--bg-soft); border: 1px solid var(--line); border-radius: 8px; padding: 18px; }
.pt-map-side h3 { font-size: 1.1rem; margin: 0 0 4px; }
.pt-map-side p { color: var(--muted); font-size: .85rem; margin: 0 0 12px; }
.pt-map-points { display: grid; gap: 7px; max-height: 340px; overflow: auto; }
.pt-point-card { border: 1px solid var(--line); border-radius: 6px; background: #fff; overflow: hidden; }
.pt-point-card.is-active { border-color: var(--accent); box-shadow: 0 0 0 2px rgba(22,107,136,.12); }
.pt-point-btn {
  width: 100%; text-align: left; background: #fff; color: var(--ink);
  border: 0; border-radius: 0; padding: 9px 11px 6px; cursor: pointer;
}
.pt-point-btn:hover, .pt-point-btn.is-active { background: var(--accent); color: #fff; }
.pt-point-btn:hover small, .pt-point-btn.is-active small { color: #e6f1f5; }
.pt-point-btn b { display: block; font-size: .86rem; }
.pt-point-btn small { color: var(--muted); font-size: .74rem; }
.pt-point-links { display: flex; flex-wrap: wrap; gap: 12px; padding: 0 11px 9px; }
.pt-point-links a { color: var(--accent); font-size: .74rem; font-weight: 600; text-decoration: none; }
.pt-point-links a:hover { text-decoration: underline; }
.pt-map-note { color: var(--muted); font-size: .74rem; margin-top: 10px; }
.pt-map-note a { color: var(--accent); }

/* ---------- Video ---------- */
.pt-video-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.pt-video-card { background: #fff; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; scroll-margin-top: 150px; }
.pt-video-card iframe, .pt-video-card video { width: 100%; aspect-ratio: 16 / 9; border: 0; display: block; background: var(--navy-dark); }
.pt-video-card div:last-child { padding: 12px 15px 15px; }
.pt-video-card b { display: block; font-size: .92rem; }
.pt-video-card p { color: var(--muted); font-size: .82rem; margin: 6px 0; }
.pt-video-card a { color: var(--accent); font-size: .8rem; font-weight: 600; text-decoration: none; }

/* ---------- Góc cộng đồng & Cảm xúc du khách ---------- */
.duc-note { margin: 0 0 12px; color: var(--muted); font-size: .85rem; max-width: 78ch; }
.duc-quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 18px; }
.duc-quote { margin: 0; background: var(--bg-soft); border: 1px solid var(--line); border-radius: 8px; padding: 16px 18px; }
.duc-quote::before { content: "“"; display: block; color: var(--accent); font-size: 2rem; line-height: .8; }
.duc-quote blockquote { margin: 0 0 10px; color: var(--ink); font-size: .9rem; line-height: 1.55; }
.duc-quote figcaption { display: grid; gap: 1px; font-size: .78rem; }
.duc-quote figcaption b { color: var(--navy); }
.duc-quote figcaption span { color: var(--muted); }
.duc-panel { display: grid; grid-template-columns: 1fr; gap: 14px; align-items: start; }
.duc-form { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 18px 20px; }
.duc-form h3 { margin: 0 0 12px; font-size: 1.05rem; color: var(--navy); }
.duc-row { display: grid; gap: 5px; margin-bottom: 12px; }
.duc-row label { font-size: .82rem; font-weight: 600; color: var(--navy); }
.duc-row input[type="text"], .duc-row select, .duc-row textarea, .duc-row input[type="file"] {
  width: 100%; border: 1px solid var(--line); border-radius: 6px; padding: 8px 10px;
  background: #fff; color: var(--ink); font-size: .88rem;
}
.duc-row textarea { resize: vertical; min-height: 100px; }
.duc-row input[type="file"] { padding: 6px; }
.duc-preview { margin-top: 8px; max-width: 180px; max-height: 120px; object-fit: cover; border: 1px solid var(--line); border-radius: 6px; }
.duc-check { display: flex; gap: 8px; align-items: flex-start; font-size: .78rem; color: var(--muted); margin: 2px 0 14px; line-height: 1.5; }
.duc-check input { margin-top: 2px; }
.duc-submit { background: var(--accent); color: #fff; border: 1px solid var(--accent); border-radius: 6px; padding: 9px 18px; font-size: .88rem; font-weight: 600; cursor: pointer; }
.duc-submit:hover { background: var(--navy); border-color: var(--navy); }
.duc-status { margin: 10px 0 0; font-size: .8rem; color: #1a6b4a; font-weight: 600; }
.duc-status.is-error { color: #b3261e; }
.duc-subtitle { font-size: 1.05rem; margin: 22px 0 10px; color: var(--navy); }
.duc-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.duc-post { display: grid; grid-template-columns: 96px 1fr; gap: 12px; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 12px; }
.duc-post img { width: 96px; height: 76px; object-fit: cover; border-radius: 6px; }
.duc-post b { font-size: .88rem; color: var(--navy); }
.duc-post small { display: block; color: var(--muted); font-size: .72rem; }
.duc-post p { font-size: .84rem; margin: 6px 0; overflow-wrap: anywhere; }
.duc-del, .duc-clear { background: none; border: 1px solid var(--line); border-radius: 999px; padding: 4px 10px; font-size: .72rem; color: var(--muted); cursor: pointer; }
.duc-del:hover, .duc-clear:hover { border-color: #b3261e; color: #b3261e; }
.duc-clear { margin-top: 12px; padding: 6px 12px; }
.duc-empty { color: var(--muted); font-size: .84rem; grid-column: 1 / -1; margin: 0; padding: 12px; background: var(--bg-soft); border: 1px dashed var(--line); border-radius: 6px; }

/* ---------- Footer ---------- */
.pt-footer { margin-top: 48px; background: var(--navy-dark); color: #d7e6ec; padding: 34px 0 20px; }
.pt-footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr .95fr; gap: 26px; }
.pt-footer h3 { color: #fff; font-size: 1.05rem; margin: 0 0 8px; }
.pt-footer p { font-size: .87rem; margin: 0 0 8px; }
.pt-footer a { color: #d7e6ec; text-decoration: none; font-size: .86rem; }
.pt-footer a:hover { color: #fff; text-decoration: underline; }
.pt-school-credit { display: flex; align-items: center; gap: 12px; margin-top: 14px; padding-top: 12px; border-top: 1px solid rgba(255,255,255,.15); }
.pt-school-credit b { color: #fff; }
.pt-bottom { text-align: center; margin-top: 22px; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.12); font-size: .78rem; color: #a9c3ce; }

/* ---------- Trang chuyên mục ---------- */
.pt-page-hero { background: var(--navy); color: #fff; padding: 38px 0 44px; }
.pt-crumb { font-size: .8rem; color: #c7dde6; margin-bottom: 10px; }
.pt-crumb a { color: #fff; text-decoration: none; }
.pt-crumb a:hover { text-decoration: none; }
.pt-page-hero h1 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); margin: 0 0 10px; font-weight: 600; }
.pt-page-hero p { max-width: 70ch; color: #d7e7ed; margin: 0; }
.pt-stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 22px; }
.pt-stat { background: var(--bg-soft); border: 1px solid var(--line); border-radius: 6px; padding: 12px 14px; }
.pt-stat b { display: block; font-size: 1.15rem; color: var(--navy); }
.pt-stat span { font-size: .78rem; color: var(--muted); }
.pt-body { padding: 36px 0 12px; }
.pt-block { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 22px; margin-bottom: 14px; scroll-margin-top: 150px; }
.pt-block h2 { font-size: 1.3rem; margin: 0 0 10px; font-weight: 600; }
.pt-block p { color: var(--muted); margin: 0 0 10px; }
.hc-notes { margin: 10px 0 2px; padding: 10px 12px; background: var(--bg-soft); border-left: 3px solid var(--accent); border-radius: 4px; }
.hc-notes > b { display: block; color: var(--navy); font-size: .84rem; margin-bottom: 6px; }
.hc-notes ul { margin: 0; padding-left: 20px; color: var(--muted); font-size: .84rem; }
.hc-notes li { margin-bottom: 5px; }
.hc-notes li:last-child { margin-bottom: 0; }
.pt-block-gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; margin-top: 12px; }
.pt-block-photo { margin: 0; border: 1px solid var(--line); background: #fff; overflow: hidden; }
.pt-block-photo img { width: 100%; height: 110px; object-fit: cover; display: block; }
.pt-block-photo figcaption { padding: 6px 8px; font-size: .76rem; color: var(--muted); }
.pt-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.pt-links a { background: var(--bg-soft); color: var(--navy); border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; font-size: .82rem; text-decoration: none; font-weight: 600; }
.pt-links a:hover { background: var(--accent); color: #fff; }
.pt-sources { margin-top: 24px; border-top: 1px solid var(--line); padding-top: 16px; }
.pt-sources h2 { font-size: 1.1rem; margin: 0 0 10px; font-weight: 600; }
.pt-sources ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.pt-sources a { display: inline-block; background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 7px 11px; font-size: .82rem; text-decoration: none; color: var(--accent); }
.pt-back { display: inline-block; margin-top: 20px; color: var(--accent); font-weight: 600; text-decoration: none; }
.gov-blocks { display: grid; gap: 10px; }
.gov-blocks .pt-block { padding: 14px 16px; margin: 0; }
.gov-blocks .pt-block h2 { font-size: .98rem; color: var(--navy); }
.gov-blocks .pt-block p { font-size: .86rem; }
.gov-gallery-note { margin: 0 0 12px; color: var(--muted); font-size: .78rem; }
.gov-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.gov-photo { margin: 0; border: 1px solid var(--line); background: #fff; overflow: hidden; }
.gov-photo a { display: block; }
.gov-photo img { width: 100%; height: 150px; object-fit: cover; display: block; }
.gov-photo figcaption { display: grid; gap: 2px; padding: 8px 10px; font-size: .78rem; }
.gov-photo figcaption b { color: var(--navy); }
.gov-photo figcaption span { color: var(--muted); font-size: .72rem; }
.gov-photo figcaption a { color: var(--accent); text-decoration: none; font-weight: 600; }
.gov-photo figcaption a:hover { text-decoration: underline; }
.gov-inline-section { padding: 26px 0 0; }
.gov-inline-section + .gov-inline-section { margin-top: 6px; }
.pt-credit-note { color: #a9c3ce; font-size: .74rem !important; line-height: 1.5; }

/* ---------- Giao diện cổng thông tin xã Hải Châu (3 cột) ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.gov-topbar { background: #f4f7f8; border-bottom: 1px solid var(--line); font-size: .78rem; }
.gov-topbar-inner { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 40px; }
.gov-topbar-brand { display: flex; align-items: center; gap: 9px; color: #164b63; }
.gov-topbar-brand b { display: block; font-size: .78rem; letter-spacing: .02em; }
.gov-topbar-brand small { display: block; font-size: .66rem; color: var(--muted); letter-spacing: .08em; }
.gov-emblem { flex: 0 0 auto; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: #b7121c; color: #fff; font-weight: 700; font-size: .7rem; }
.gov-emblem-img { flex: 0 0 auto; width: 34px; height: 34px; display: block; object-fit: contain; border-radius: 50%; background: #fff; }
.gov-topbar-tools { display: flex; align-items: center; gap: 8px; }
.gov-date { color: var(--muted); white-space: nowrap; }
.gov-social { width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; background: #166b88; color: #fff; font-weight: 700; font-size: .72rem; text-decoration: none; }
.gov-social:hover { background: var(--navy); }
.gov-search { display: flex; align-items: stretch; border: 1px solid var(--line); border-radius: 4px; overflow: hidden; background: #fff; }
.gov-search input { width: 150px; border: 0; padding: 5px 8px; font-size: .76rem; outline: none; }
.gov-search button { border: 0; background: var(--accent); color: #fff; padding: 0 9px; cursor: pointer; font-size: .8rem; }

.gov-banner { background: #0b3548; }
.gov-banner-inner { position: relative; }
.gov-banner img { width: 100%; height: 152px; object-fit: cover; object-position: center; display: block; }
.gov-banner-caption { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 26px 14px 10px; background: linear-gradient(transparent, rgba(8,32,44,.86)); color: #fff; }
.gov-banner-caption b { font-size: 1rem; letter-spacing: .04em; }
.gov-banner-caption span { font-size: .76rem; color: #d8e9ef; }
.gov-menu { background: #b7121c; color: #fff; position: relative; z-index: 30; }
.gov-menu-inner { display: flex; flex-wrap: nowrap; align-items: stretch; min-width: 0; }
.gov-menu-inner > a,
.gov-menu-item > a { white-space: nowrap; }
.gov-menu-inner > a,
.gov-menu-item > a { padding: 11px 13px; color: #fff; text-decoration: none; font-size: .78rem; font-weight: 600; letter-spacing: .02em; border-right: 1px solid rgba(255,255,255,.18); display: block; }
.gov-menu a:hover, .gov-menu a.is-active,
.gov-menu-item.is-open > a { background: #8e0e16; }
.gov-menu-item { position: relative; }
.gov-menu-item > a::after { content: " ▾"; font-size: .7em; opacity: .8; }
.gov-submenu {
  position: absolute; top: 100%; left: 0; z-index: 40;
  min-width: 215px; max-width: 260px;
  display: grid; padding: 6px 0;
  background: #fff; border: 1px solid var(--line);
  border-top: 3px solid var(--accent);
  box-shadow: 0 12px 28px rgba(11,53,72,.18);
  opacity: 0; visibility: hidden; transform: translateY(-5px);
  transition: opacity .15s ease, transform .15s ease, visibility .15s;
  pointer-events: none;
}
.gov-menu-item:hover .gov-submenu,
.gov-menu-item:focus-within .gov-submenu,
.gov-menu-item.is-open .gov-submenu { opacity: 1; visibility: visible; transform: translateY(0); pointer-events: auto; }
.gov-submenu a { padding: 8px 13px !important; border-right: 0 !important; color: var(--ink) !important; font-size: .8rem !important; font-weight: 500 !important; letter-spacing: 0 !important; }
.gov-submenu a:hover { background: var(--bg-soft) !important; color: var(--accent) !important; }
.gov-submenu .gov-sub-all { color: var(--accent) !important; font-weight: 700 !important; border-bottom: 1px solid var(--line) !important; margin-bottom: 4px; }
.gov-submenu a.is-active { background: var(--bg-soft) !important; color: var(--accent) !important; }
.gov-menu-item:nth-child(n+7) .gov-submenu { left: auto; right: 0; }
.gov-main { padding-top: 16px; }
.gov-crumb { margin: 0 0 12px; color: var(--muted); font-size: .78rem; }
.gov-crumb a { color: var(--accent); text-decoration: none; }
.gov-crumb a:hover { text-decoration: underline; }
.gov-lead { margin: 12px 0 0; padding: 12px 14px; background: var(--bg-soft); border-left: 3px solid var(--accent); color: #3e5560; font-size: .88rem; }
.gov-list-item.is-current { background: #eaf3f6; }
.gov-list-item.is-current > a { color: var(--accent); font-weight: 700; }

.gov-topics { background: #f4f7f8; border: 1px solid var(--line); padding: 14px; margin-bottom: 18px; }
.gov-topics-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.gov-topics-head h2 { margin: 0; font-size: 1rem; font-weight: 600; color: var(--navy); }
.gov-topics-head span { color: var(--muted); font-size: .76rem; }
.gov-topics .pt-tile > a { min-height: 68px; font-size: .82rem; }
.gov-topics .pt-tile-name { font-size: .8rem; }

.gov-columns { display: grid; grid-template-columns: 248px minmax(0, 1fr) 292px; gap: 14px; align-items: start; }
.gov-col { min-width: 0; }
.gov-box { background: #fff; border: 1px solid var(--line); margin-bottom: 14px; overflow: hidden; }
.gov-box > h2 { margin: 0; padding: 9px 12px; background: linear-gradient(#166b88, #10455d); color: #fff; font-size: .82rem; font-weight: 600; letter-spacing: .03em; }

/* Thống kê truy cập — widget kiểu cổng nhà nước */
.gov-visits { margin-top: 24px; }
.gov-visits > h2 { background: #fff; border-bottom: 1px solid #feefec; color: #3b5061; font-size: .8rem; font-weight: 600; letter-spacing: 0; padding: 10px 12px 8px; text-align: center; }
.gov-visits-list { margin: 0; padding: 0; }
.gov-visits-row { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 5px 12px; font-size: .78rem; line-height: 1.4; }
.gov-visits-row + .gov-visits-row { border-top: 1px dashed #eef2f4; }
.gov-visits-row dt { color: #555f66; }
.gov-visits-row dd { margin: 0; color: #0170a7; font-weight: 700; font-variant-numeric: tabular-nums; }
.gov-visits-note { margin: 0; padding: 8px 12px 10px; border-top: 1px dashed #eef2f4; color: var(--muted); font-size: .72rem; text-align: center; }

.gov-visits--footer .gov-visits-list { display: block; }
.gov-visits--footer .gov-visits-row { flex-direction: row; align-items: baseline; justify-content: space-between; gap: 8px; padding: 6px 12px; text-align: left; }
.gov-visits--footer .gov-visits-row + .gov-visits-row { border-top: 1px dashed #eef2f4; border-left: 0; }
.gov-visits--footer .gov-visits-row dt { font-size: .74rem; }
.gov-visits--footer .gov-visits-row dd { font-size: .95rem; }
.gov-visits--footer .gov-visits-note { padding: 6px 12px 8px; font-size: .68rem; }

/* Thống kê nằm trong chân trang xanh đậm */
.pt-footer .gov-visits { margin: 0; background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.18); }
.pt-footer .gov-visits > h2 { background: transparent; border-bottom-color: rgba(255,255,255,.18); color: #fff; }
.pt-footer .gov-visits-row dt { color: #cfe0e8; }
.pt-footer .gov-visits-row dd { color: #8ad8ff; }
.pt-footer .gov-visits-row + .gov-visits-row { border-top-color: rgba(255,255,255,.12); }
.pt-footer .gov-visits--footer .gov-visits-row + .gov-visits-row { border-top-color: rgba(255,255,255,.12); }
.pt-footer .gov-visits-note { border-top-color: rgba(255,255,255,.12); color: #b9ced8; }

.gov-link-list { list-style: none; margin: 0; padding: 5px 0; }
.gov-link-list li { position: relative; padding: 6px 12px 6px 24px; border-bottom: 1px dashed #e6ecef; font-size: .84rem; }
.gov-link-list li::before { content: "▸"; position: absolute; left: 11px; color: var(--accent); }
.gov-link-list a { color: var(--ink); text-decoration: none; }
.gov-link-list a:hover { color: var(--accent); text-decoration: underline; }
.gov-link-list--dense li { padding-top: 5px; padding-bottom: 5px; font-size: .79rem; }

.gov-page-title { margin: 0 0 12px; padding-bottom: 8px; border-bottom: 3px solid var(--accent); color: var(--navy); font-size: 1.3rem; font-weight: 600; }
.gov-feature { position: relative; border: 1px solid var(--line); background: var(--navy-dark); }
.gov-feature img { width: 100%; height: 300px; object-fit: cover; display: block; }
.gov-feature-cap { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: end; justify-content: space-between; gap: 12px; padding: 34px 14px 12px; background: linear-gradient(transparent, rgba(8,32,44,.94)); color: #fff; font-size: .9rem; }
.gov-feature-cap span { flex: 0 0 auto; font-size: .74rem; opacity: .85; }
.gov-feature-thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 8px; }
.gov-feature-thumbs a { display: block; border: 1px solid var(--line); overflow: hidden; text-decoration: none; }
.gov-feature-thumbs img { width: 100%; height: 72px; object-fit: cover; display: block; }
.gov-feature-thumbs span { display: block; padding: 5px 6px; background: #f4f7f8; color: var(--ink); font-size: .72rem; text-align: center; }
.gov-section-title { margin: 22px 0 8px; padding-left: 10px; border-left: 4px solid var(--accent); color: var(--navy); font-size: 1rem; font-weight: 600; }
.gov-news { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.gov-list-item { display: flex; gap: 12px; padding: 11px 3px; border-bottom: 1px dashed var(--line); font-size: .88rem; }
.gov-list-item a { color: var(--ink); text-decoration: none; }
.gov-list-item a:hover { color: var(--accent); }
.gov-list-item small { display: block; margin-top: 4px; color: var(--muted); font-size: .74rem; }
.gov-thumb { flex: 0 0 104px; position: relative; overflow: hidden; border-radius: 3px; }
.gov-thumb.is-illustrative::after { content: "Ảnh minh họa"; position: absolute; left: 3px; bottom: 3px; background: rgba(12, 46, 65, .82); color: #fff; font-size: 9px; line-height: 1; padding: 3px 5px; border-radius: 2px; }
.gov-thumb img { width: 104px; height: 66px; object-fit: cover; border-radius: 3px; transition: transform .4s ease; }
.gov-thumb:hover img { transform: scale(1.06); }
.gov-notice-list { list-style: none; margin: 0; padding: 3px 12px 10px; }
.gov-notice-list .gov-list-item { display: block; position: relative; padding: 9px 0 9px 14px; font-size: .82rem; line-height: 1.5; }
.gov-notice-list .gov-list-item::before { content: "•"; position: absolute; left: 0; color: var(--accent); }
.gov-about p { margin: 0; padding: 10px 12px; color: var(--muted); font-size: .82rem; }
.gov-about a { display: inline-block; margin: 0 12px 12px; color: var(--accent); font-size: .8rem; font-weight: 600; text-decoration: none; }
.gov-searchable .is-hidden { display: none !important; }
.gov-search-note { margin: 0 0 12px; padding: 8px 12px; background: #eaf3f6; border: 1px solid var(--line); border-radius: 6px; color: var(--navy); font-size: .84rem; }
.gov-search-results { margin: 0 0 16px; padding: 12px 0 0; border-top: 3px solid var(--hc-sea); }
.gov-search-results h2 { font-size: 1.05rem; margin: 0 0 12px; color: var(--hc-sea-deep); }
.gov-search-results ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.gov-search-results a { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 9px 12px; text-decoration: none; color: var(--navy); font-size: .88rem; }
.gov-search-results a:hover { border-color: var(--accent); background: var(--bg-soft); }
.gov-search-results a span { color: var(--muted); font-size: .76rem; flex: 0 0 auto; }
.gov-search-results p { margin: 0; color: var(--muted); font-size: .86rem; }

/* Gợi ý món ăn theo số người & lịch trình cho đoàn */
.hc-people-picker { background: var(--bg-soft); border: 1px solid var(--line); border-radius: 8px; padding: 14px 16px; margin-bottom: 14px; }
.hc-people-control { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.hc-people-control button { width: 34px; height: 34px; border: 1px solid var(--line); background: #fff; color: var(--navy); border-radius: 6px; font-size: 1rem; cursor: pointer; }
.hc-people-control button:hover { background: var(--navy); color: #fff; border-color: var(--navy); }
.hc-people-control label { font-weight: 600; color: var(--navy); }
.hc-people-control input { width: 76px; padding: 6px 8px; border: 1px solid var(--line); border-radius: 6px; text-align: center; }
.hc-people-presets { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.hc-people-presets button { border: 1px solid var(--line); background: #fff; color: var(--accent); border-radius: 999px; padding: 5px 12px; font-size: .8rem; cursor: pointer; }
.hc-people-presets button:hover { background: var(--accent); color: #fff; border-color: var(--accent); }
.hc-rule { margin: 12px 0 0; color: var(--muted); font-size: .86rem; }
.hc-rule b { display: block; color: var(--navy); font-size: .95rem; }
.suggest-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.suggest-card { display: block; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: #fff; }
.suggest-card:hover { border-color: var(--accent); box-shadow: 0 4px 14px rgba(16,69,93,.12); }
.suggest-media { display: block; }
.suggest-media img { width: 100%; height: 110px; object-fit: cover; }
.suggest-qty { display: block; padding: 6px 10px; background: var(--navy); color: #fff; font-size: .76rem; }
.suggest-body { display: block; padding: 10px 12px 12px; }
.suggest-body b, .suggest-body small, .suggest-more { display: block; }
.suggest-body b { color: var(--navy); font-size: .92rem; }
.suggest-body small { color: var(--muted); font-size: .78rem; margin-top: 4px; }
.suggest-more { color: var(--accent); font-size: .78rem; margin-top: 8px; }
.hc-itinerary-days { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.hc-itinerary-day { border: 1px solid var(--line); border-radius: 8px; padding: 14px 16px; background: #fff; }
.hc-itinerary-day h3 { margin: 0 0 10px; font-size: 1rem; color: var(--navy); }
.hc-stop-list { list-style: none; margin: 0; padding: 0; }
.hc-stop-list li { display: grid; grid-template-columns: 52px 1fr; gap: 8px; padding: 8px 0; border-top: 1px dashed var(--line); font-size: .85rem; }
.hc-stop-list li:first-child { border-top: 0; }
.hc-stop-time { color: var(--accent); font-weight: 600; }
.hc-stop-list p { margin: 2px 0 0; color: var(--muted); font-size: .78rem; }
.hc-meal-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.hc-meal-card { border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: #fff; }
.hc-meal-card img { width: 100%; height: 100px; object-fit: cover; }
.hc-meal-body { padding: 10px 12px 12px; font-size: .82rem; }
.hc-meal-body span { display: block; color: var(--accent); font-size: .74rem; }
.hc-meal-body a { display: block; font-weight: 600; color: var(--navy); }
.hc-meal-body p { margin: 4px 0 0; color: var(--muted); }
.hc-tips { margin: 0; padding-left: 20px; color: var(--muted); font-size: .85rem; }
.hc-tips li { margin-bottom: 6px; }

/* Bản đồ chỗ ở & nghỉ dưỡng trong lịch trình */
.hc-lodging-map { display: grid; grid-template-columns: minmax(0, 260px) minmax(0, 1fr); gap: 14px; align-items: start; margin-top: 8px; }
.hc-lodging-chips { display: grid; gap: 8px; }
.hc-lodging-chip { display: grid; gap: 2px; text-align: left; padding: 10px 12px; border: 1px solid var(--line); border-radius: 6px; background: #fff; color: var(--navy); cursor: pointer; }
.hc-lodging-chip:hover { border-color: var(--accent); }
.hc-lodging-chip.is-active { background: var(--navy); border-color: var(--navy); color: #fff; }
.hc-lodging-chip b { font-size: .86rem; }
.hc-lodging-chip small { font-size: .74rem; color: var(--muted); }
.hc-lodging-chip.is-active small { color: #d7e7ee; }
.hc-lodging-frame { min-width: 0; }
.hc-lodging-frame iframe { width: 100%; height: 300px; border: 1px solid var(--line); border-radius: 8px; display: block; }
.hc-lodging-desc { margin: 8px 0 0; font-size: .82rem; color: var(--muted); }
.hc-lodging-frame .pt-map-note { margin: 8px 0 0; font-size: .82rem; }
.hc-lodging-frame .pt-map-note a { color: var(--accent); font-weight: 600; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .gov-columns { grid-template-columns: 220px minmax(0, 1fr); }
  .gov-col-right { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .gov-col-right .gov-box { margin-bottom: 0; }
}
@media (max-width: 1050px) {
  .pt-tiles { grid-template-columns: repeat(4, 1fr); }
  .pt-mega { width: min(290px, 70vw); }
  .pt-tile:nth-child(n) .pt-mega { left: 0; right: auto; }
  .pt-tile:nth-child(4n) .pt-mega { left: auto; right: 0; }
  .pt-topnav { display: none; }
  .pt-menu-btn { display: block; margin-left: auto; }
  .pt-header.is-open .pt-topnav { display: flex; position: absolute; top: 64px; left: 0; right: 0; flex-wrap: wrap; background: var(--navy); padding: 10px 20px; }
}
/* Menu ngang: vẫn là một hàng ở cửa sổ hẹp/trung bình; chỉ xuống dòng ở mobile */
@media (min-width: 781px) and (max-width: 1000px) {
  .gov-menu-inner { flex-wrap: nowrap; }
  .gov-menu > .pt-wrap > a, .gov-menu-item > a { padding: 10px 7px; font-size: .72rem; letter-spacing: 0; }
}
@media (max-width: 760px) {
  .pt-wrap { width: min(100% - 28px, 1180px); }
  .pt-hero-inner { grid-template-columns: 1fr; padding-bottom: 60px; }
  .pt-committee { max-width: 420px; }
  .pt-hero-lead { font-size: .92rem; }
  .pt-navstrip { margin-top: -24px; }
  .pt-tiles { grid-template-columns: repeat(2, 1fr); }
  .pt-mega { width: min(270px, 78vw); }
  .pt-tile:nth-child(n) .pt-mega { left: 0; right: auto; }
  .pt-tile:nth-child(2n) .pt-mega { left: auto; right: 0; }
  .pt-cards, .pt-map-layout, .pt-stat-grid, .pt-video-grid, .gov-gallery, .gov-visits--footer .gov-visits-list,
  .duc-quotes, .duc-panel, .duc-list, .suggest-grid, .hc-meal-grid, .hc-itinerary-days, .hc-lodging-map { grid-template-columns: 1fr; }
  .hc-lodging-frame iframe { height: 260px; }
  .gov-visits--footer .gov-visits-row + .gov-visits-row { border-top: 1px dashed #eef2f4; border-left: 0; }
  .pt-footer .gov-visits--footer .gov-visits-row + .gov-visits-row { border-top-color: rgba(255,255,255,.12); }
  .pt-section-head { align-items: start; flex-direction: column; }
  .pt-footer-grid { grid-template-columns: 1fr; }
  #ptMapCanvas, #ptMapFrame { height: 320px; }
}
@media (max-width: 780px) {
  .gov-topbar-inner { flex-wrap: wrap; padding: 6px 0; }
  .gov-topbar-tools { flex-wrap: wrap; }
  .gov-search input { width: 120px; }
  .gov-banner img { height: 110px; }
  .gov-menu-inner { flex-wrap: wrap; }
  .gov-menu-inner > a, .gov-menu-item > a { padding: 9px 10px; font-size: .74rem; }
  .gov-menu-item { flex: 0 0 auto; }
  .gov-menu-item .gov-submenu { top: 100%; left: 0; right: auto !important; min-width: 190px; max-width: 220px; }
  .gov-menu-item:nth-child(3n) .gov-submenu { left: auto; right: 0 !important; }
  .gov-topics-head { flex-direction: column; gap: 2px; }
  .gov-topics .pt-tiles { grid-template-columns: repeat(2, 1fr); }
  .gov-columns { grid-template-columns: 1fr; }
  .gov-col-right { grid-column: auto; grid-template-columns: 1fr; }
  .gov-feature img { height: 220px; }
  .gov-feature-cap { flex-direction: column; align-items: start; gap: 2px; }
  .gov-thumb { flex-basis: 80px; }
  .gov-thumb img { width: 80px; height: 56px; }
}

/* =========================================================
   Nhận diện riêng HẢI CHÂU: sóng · cát · xanh biển
   Dùng CSS/SVG nội tuyến — không thêm ảnh, không đổi font,
   không làm thay đổi bố cục 3 cột hay menu một hàng.
   ========================================================= */
:root {
  --hc-sea: #0d5a73;
  --hc-sea-deep: #083a4e;
  --hc-sea-bright: #14809e;
  --hc-foam: #e8f4f7;
  --hc-sand: #d9b98a;
  --hc-sand-soft: #f7f0e4;
  --hc-wave-white: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 40' preserveAspectRatio='none'%3E%3Cpath d='M0,20 C100,0 200,40 300,20 C400,0 500,40 600,20 C700,0 800,40 900,20 C1000,0 1100,40 1200,20 L1200,40 L0,40 Z' fill='%23ffffff'/%3E%3C/svg%3E");
  --hc-wave-foam: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 40' preserveAspectRatio='none'%3E%3Cpath d='M0,20 C100,0 200,40 300,20 C400,0 500,40 600,20 C700,0 800,40 900,20 C1000,0 1100,40 1200,20 L1200,40 L0,40 Z' fill='%23e8f4f7'/%3E%3C/svg%3E");
  --hc-wave-soft: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 40' preserveAspectRatio='none'%3E%3Cpath d='M0,20 C100,0 200,40 300,20 C400,0 500,40 600,20 C700,0 800,40 900,20 C1000,0 1100,40 1200,20 L1200,40 L0,40 Z' fill='%23cfe4ec'/%3E%3C/svg%3E");
  --hc-wave-sea: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 40' preserveAspectRatio='none'%3E%3Cpath d='M0,20 C100,0 200,40 300,20 C400,0 500,40 600,20 C700,0 800,40 900,20 C1000,0 1100,40 1200,20 L1200,40 L0,40 Z' fill='%2314809e'/%3E%3C/svg%3E");
  --hc-wave-navy: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 40' preserveAspectRatio='none'%3E%3Cpath d='M0,20 C100,0 200,40 300,20 C400,0 500,40 600,20 C700,0 800,40 900,20 C1000,0 1100,40 1200,20 L1200,40 L0,40 Z' fill='%230b3548'/%3E%3C/svg%3E");
  --hc-wave-line: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 8' preserveAspectRatio='none'%3E%3Cpath d='M0,6 C10,0 20,8 30,4 C40,0 50,8 60,4 L60,8 L0,8 Z' fill='%2314809e'/%3E%3C/svg%3E");
  --hc-wave-corner: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 46 16' preserveAspectRatio='none'%3E%3Cpath d='M46,1 C34,1 32,11 20,11 C12,11 10,5 2,5 L2,8 C10,8 12,14 20,14 C32,14 34,4 46,4 Z' fill='%23d9b98a'/%3E%3C/svg%3E");
}

/* Thanh trên cùng: dải cát + dấu sóng nhỏ */
.gov-topbar {
  background: linear-gradient(90deg, var(--hc-foam) 0%, #fff 46%, var(--hc-sand-soft) 100%);
  border-bottom: 2px solid var(--hc-sand);
}
.gov-topbar-brand { color: var(--hc-sea-deep); }
.gov-topbar-brand b::before { content: "≈ "; color: var(--hc-sea-bright); font-weight: 700; }
.gov-social, .gov-search button { background: var(--hc-sea); }
.gov-social:hover, .gov-search button:hover { background: var(--hc-sea-deep); }

/* Biểu ngữ: đường sóng chuyển sang menu */
.gov-banner { position: relative; overflow: hidden; border-bottom: 3px solid var(--hc-sand); }
.gov-banner::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 22px;
  background: var(--hc-wave-foam) repeat-x bottom / 1200px 22px; pointer-events: none;
}
.gov-banner-caption { padding-bottom: 30px; }
.gov-banner-caption b { color: var(--hc-sand); }

/* Menu: xanh biển thay cho đỏ, viền cát và ô hiện có gạch chân đáy */
.gov-menu {
  background: linear-gradient(180deg, var(--hc-sea) 0%, var(--hc-sea-deep) 100%);
  border-bottom: 3px solid var(--hc-sand);
}
.gov-menu-inner > a,
.gov-menu-item > a { border-right-color: rgba(255,255,255,.14); }
.gov-menu-inner > a:hover,
.gov-menu-inner > a.is-active,
.gov-menu-item > a:hover,
.gov-menu-item > a.is-active,
.gov-menu-item.is-open > a {
  background: #062f41;
  box-shadow: inset 0 -3px 0 var(--hc-sand);
}
.gov-submenu { border-top-color: var(--hc-sand); }
.gov-submenu .gov-sub-all { color: var(--hc-sea-bright) !important; }

/* Ảnh bìa trang chủ: sóng trắng ở chân ảnh */
.pt-hero {
  background: linear-gradient(115deg, rgba(6,42,58,.96) 0%, rgba(13,90,115,.86) 62%, rgba(20,128,158,.72) 100%),
              url("assets/hc-2-9-giai-nhat.webp") center/cover no-repeat;
}
.pt-hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 34px;
  background: var(--hc-wave-white) repeat-x bottom / 1200px 34px; pointer-events: none;
}
.pt-hero-inner { position: relative; z-index: 1; }
.pt-hero-badge { color: var(--hc-sand); }
.pt-btn { background: var(--hc-sand); color: var(--hc-sea-deep); border-color: var(--hc-sand); }
.pt-btn:hover { background: #e9cfa6; }
.pt-btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.7); }
.pt-btn--ghost:hover { background: rgba(255,255,255,.14); }

/* 8 ô chuyên mục: gợn sóng ở chân ô */
.pt-tile > a { position: relative; overflow: hidden; }
.pt-tile > a::before {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 9px;
  background: var(--hc-wave-soft) repeat-x bottom / 120px 9px;
  opacity: .75; pointer-events: none;
}
.pt-tile > a:hover::before,
.pt-tile:focus-within > a::before { background-image: var(--hc-wave-sea); opacity: 1; }

/* Tiêu đề có gợn sóng nhỏ — nét nhận diện chung */
.gov-section-title { border-left-color: var(--hc-sea-bright); }
.gov-section-title::after {
  content: ""; display: block; width: 58px; height: 7px; margin-top: 5px;
  background: var(--hc-wave-line) no-repeat left / 58px 7px;
}
.pt-section-head h2 { color: var(--hc-sea-deep); }
.pt-label { color: var(--hc-sea-bright); }
.gov-box > h2 { background: linear-gradient(90deg, var(--hc-sea-deep), var(--hc-sea-bright)); }

/* Thẻ nội dung: góc sóng cát mờ */
.pt-card, .pt-block { position: relative; }
.pt-card::before, .pt-block::before {
  content: ""; position: absolute; top: 0; right: 0; width: 46px; height: 14px;
  background: var(--hc-wave-corner) no-repeat top right / 46px 14px;
  opacity: .65; pointer-events: none;
}

/* Trang chuyên mục: dải biển + điểm nhấn cát */
.pt-page-hero {
  background: linear-gradient(115deg, var(--hc-sea-deep), var(--hc-sea) 68%, var(--hc-sea-bright));
  border-bottom: 3px solid var(--hc-sand);
}
.pt-page-hero .pt-crumb a { color: var(--hc-sand); }
.pt-stat { border-left: 3px solid var(--hc-sand); }
.pt-stat b { color: var(--hc-sea-deep); }

/* Trang chi tiết: cùng dải màu, gạch chân tiêu đề */
.detail-page .detail-kind span { background: var(--hc-sea-bright); }
.detail-page .detail-h::after { background: var(--hc-sea-bright); width: 76px; height: 4px; }
.detail-page .btn-primary { background: var(--hc-sea); border-color: var(--hc-sea); }
.detail-page .btn-primary:hover { background: var(--hc-sea-deep); }

/* Chân trang: mép sóng xanh đậm */
.pt-footer { position: relative; margin-top: 52px; padding-top: 46px; }
.pt-footer::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 24px;
  background: var(--hc-wave-navy) repeat-x top / 1200px 24px; pointer-events: none;
}
.pt-footer h3, .pt-footer .pt-school-credit b { color: var(--hc-sand); }

/* Trang 404 cùng nhận diện */
.pt-404-card { border-top: 4px solid var(--hc-sand); }
.pt-404-code { color: var(--hc-sea-bright); }

/* Nhấn hero + CTA — bắt mắt hơn mà không đụng nền trắng */
.pt-hero {
  overflow: hidden;
  isolation: isolate;
  background: var(--hc-sea-deep);
}
.pt-hero::before {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(115deg, rgba(6,42,58,.94) 0%, rgba(13,90,115,.82) 62%, rgba(20,128,158,.68) 100%),
              url("assets/hc-2-9-giai-nhat.webp") center/cover no-repeat;
  transition: transform .8s ease;
}
.pt-hero:hover::before { transform: scale(1.05); }
.pt-hero-inner { padding: 64px 0 74px; }
.pt-hero-badge {
  display: inline-block; padding: 5px 12px; margin-bottom: 4px;
  border: 1px solid rgba(217,185,138,.7);
  border-radius: 999px;
  background: rgba(8,58,78,.34);
  color: var(--hc-sand);
  font-weight: 600;
}
.pt-hero h1 { font-size: clamp(2.4rem, 5.2vw, 4rem); margin: 14px 0 12px; text-shadow: 0 3px 14px rgba(3,24,34,.42); }
.pt-hero h1 em { color: var(--hc-sand); font-weight: 600; }
.pt-hero-lead { font-size: 1.02rem; }

/* Biểu ngữ trang chủ đang dùng .gov-banner — chỉ zoom nhẹ, không chèn nút che ảnh */
.gov-banner img { transition: transform .7s ease; }
.gov-banner:hover img { transform: scale(1.05); }
.gov-banner-caption {
  padding: 24px 14px 8px;
  background: linear-gradient(transparent, rgba(8,32,44,.8));
}
.gov-banner-caption b { text-shadow: 0 2px 8px rgba(0,0,0,.42); }

.pt-btn,
.detail-page .btn-primary {
  box-shadow: 0 6px 16px rgba(8,58,78,.22);
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.pt-btn:hover,
.detail-page .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(8,58,78,.28);
}
.pt-btn--ghost { box-shadow: none; }
.pt-btn--ghost:hover { box-shadow: none; }

.gov-page-title { font-size: 1.55rem; color: var(--hc-sea-deep); }
.gov-page-title::after {
  content: ""; display: block; width: 72px; height: 4px; margin-top: 8px;
  background: var(--hc-wave-line) no-repeat left / 72px 4px;
}
.gov-feature { overflow: hidden; }
.gov-feature img { transition: transform .7s ease; }
.gov-feature:hover img { transform: scale(1.04); }
.gov-feature-cap { background: linear-gradient(transparent, rgba(8,58,78,.95)); }
.gov-feature-cap b { color: var(--hc-sand); font-size: .96rem; text-shadow: 0 2px 8px rgba(0,0,0,.4); }

.detail-title { font-size: clamp(2.3rem, 5.4vw, 3.8rem); color: var(--hc-sea-deep); }
.detail-kind { color: var(--hc-sea-bright); }
.detail-sub { color: var(--hc-sea-bright); font-weight: 600; }
.detail-hero-media img { transition: transform .7s ease; }
.detail-hero-media:hover img { transform: scale(1.05); }
.detail-page .btn-primary { padding: 11px 18px; font-weight: 700; }

.pt-404-code { font-size: clamp(4.6rem, 16vw, 7rem); text-shadow: 0 6px 18px rgba(20,128,158,.2); }

@media (max-width: 760px) {
  .pt-hero::after { height: 22px; }
  .pt-hero-inner { padding: 48px 0 60px; }
  .pt-hero h1 { font-size: clamp(2.1rem, 9vw, 2.8rem); }
  .gov-banner-caption { padding-bottom: 20px; }
  .gov-section-title::after { width: 44px; }
}

/* Liên hệ cạnh ngày tháng: Facebook + Gmail */
.gov-social--facebook, .gov-social--facebook:hover,
.gov-social--gmail, .gov-social--gmail:hover { background: transparent; }
.gov-social img { width: 22px; height: 22px; display: block; }
.gov-social--facebook img { border-radius: 50%; object-fit: cover; }
.gov-social--gmail img { object-fit: contain; }
.gov-social:hover img { opacity: .82; }

/* =========================================================
   Giao diện riêng cho điện thoại — desktop giữ nguyên 100%
   (mọi rule ở đây nằm trong media query <=780px)
   ========================================================= */
@media (max-width: 780px) {
  /* Thanh trên cùng: 2 hàng gọn, ô tìm kiếm đủ rộng */
  .gov-topbar-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 6px 8px;
    padding: 6px 0;
  }
  .gov-topbar-tools { display: contents; }
  .gov-topbar-brand { grid-column: 1; grid-row: 1; min-width: 0; }
  .gov-topbar-brand span { min-width: 0; }
  .gov-topbar-brand b {
    display: block;
    font-size: .66rem;
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .gov-topbar-brand small { font-size: .6rem; letter-spacing: .04em; }
  .gov-emblem-img { width: 28px; height: 28px; }
  .gov-date {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
    font-size: .66rem;
    white-space: nowrap;
  }
  .gov-search {
    grid-column: 1;
    grid-row: 2;
    width: 100%;
    min-width: 0;
  }
  .gov-search input {
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
    padding: 7px 9px;
    font-size: .8rem;
  }
  .gov-search button { flex: 0 0 auto; padding: 0 13px; font-size: .9rem; }
  .gov-social { width: 28px; height: 28px; }
  .gov-social--facebook { grid-column: 2; grid-row: 2; justify-self: start; }
  .gov-social--gmail { grid-column: 2; grid-row: 2; justify-self: end; }
  .gov-social img { width: 24px; height: 24px; }

  /* Menu: lưới 3 cột đều, ô bấm to, submenu trải ngang toàn trang */
  .gov-menu-inner {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
  }
  .gov-menu-inner > a,
  .gov-menu-item > a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 8px 4px;
    font-size: .78rem;
    line-height: 1.2;
    text-align: center;
    white-space: normal;
    border-right: 1px solid rgba(255,255,255,.14);
    border-bottom: 1px solid rgba(255,255,255,.12);
  }
  .gov-menu-inner > a:nth-child(3n),
  .gov-menu-item:nth-child(3n) > a { border-right: 0; }
  .gov-menu-item { position: static; min-width: 0; }
  .gov-menu .gov-menu-item .gov-submenu {
    left: 14px !important;
    right: 14px !important;
    top: 100%;
    width: auto;
    min-width: 0;
    max-width: none;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 8px;
    padding: 8px;
    border-radius: 0 0 8px 8px;
    max-height: min(58vh, 340px);
    overflow-y: auto;
    box-shadow: 0 14px 26px rgba(8,32,44,.26);
  }
  .gov-menu .gov-menu-item.is-open .gov-submenu,
  .gov-menu .gov-menu-item:focus-within .gov-submenu {
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    transition: none;
  }
  .gov-menu .gov-menu-item .gov-submenu a {
    padding: 10px 11px !important;
    font-size: .82rem !important;
    border-right: 0 !important;
    border-bottom: 1px dashed var(--line) !important;
    text-align: left;
  }
  .gov-menu .gov-menu-item .gov-submenu .gov-sub-all {
    grid-column: 1 / -1;
    text-align: center;
    border-bottom: 1px solid var(--line) !important;
    margin-bottom: 4px;
  }
  .gov-menu .gov-menu-item .gov-submenu a:last-child { border-bottom: 0 !important; }

  /* Ảnh bìa: ảnh cao hơn, chữ chùm gọn hơn */
  .gov-banner img { height: 132px; }
  .gov-banner::after { height: 14px; background-size: 1200px 14px; }
  .gov-banner-caption {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    padding: 18px 12px 16px;
  }
  .gov-banner-caption b { font-size: .86rem; }
  .gov-banner-caption span { font-size: .7rem; }

  /* Nội dung gọn hơn trên màn hình hẹp */
  .pt-stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pt-footer { padding-top: 34px; }
  .pt-footer-grid { gap: 18px; }
  .pt-school-credit { margin-top: 10px; padding-top: 10px; }
  .detail-title { font-size: clamp(1.7rem, 6.5vw, 2.2rem); line-height: 1.2; }
}
