/* Trang Liên hệ (build/contact_page.py → gen.py style "contact"), dùng biến màu của hv/policy.css.
   Điểm nhấn: dải hotline xanh với 2 số gọi được → 3 kênh (email, live chat, ticket) → văn phòng → giới thiệu → tài liệu. */
.entry-content.hv-contact { --ct-radius: .875rem; --ct-edge: #CFE3F8; --ct-soft: #F5FAFF; }
.entry-content.hv-contact .ct-lead { font-size: 1.0625rem; margin-bottom: 1.5rem; }

.entry-content.hv-contact .ct-icon {
  display: inline-flex; align-items: center; justify-content: center; flex: none; width: 2.75rem; height: 2.75rem;
  border-radius: .75rem; background: var(--pol-tint); color: var(--pol-blue);
}
.entry-content.hv-contact .ct-icon--sm { width: 2rem; height: 2rem; border-radius: .5rem; }
.entry-content.hv-contact .ct-icon--sm svg { width: 18px; height: 18px; }

/* ---------- hotline ---------- */
.entry-content.hv-contact .ct-hotline {
  position: relative; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem 2rem; flex-wrap: wrap;
  margin: 0 0 1rem; padding: 1.75rem 2rem; border-radius: var(--ct-radius); color: #fff;
  background: linear-gradient(115deg, #218BE7 0%, #1268C9 100%);
}
/* sóng tín hiệu mờ ở góc phải — gợi cuộc gọi, không chiếm chỗ chữ */
.entry-content.hv-contact .ct-hotline::after {
  content: ""; position: absolute; right: -4rem; top: 50%; width: 16rem; height: 16rem; transform: translateY(-50%); pointer-events: none;
  border-radius: 50%; background: repeating-radial-gradient(circle, rgba(255,255,255,.09) 0 1px, transparent 1px 1.75rem);
}
.entry-content.hv-contact .ct-hotline-text { position: relative; z-index: 1; display: flex; align-items: center; gap: 1rem; }
.entry-content.hv-contact .ct-hotline p { margin: 0; color: rgba(255,255,255,.88); font-size: .9375rem; }
.entry-content.hv-contact .ct-hotline p.ct-hotline-title { margin-bottom: .125rem; color: #fff; font-size: 1.125rem; font-weight: 700; }
.entry-content.hv-contact .ct-icon--inv { background: rgba(255,255,255,.16); color: #fff; }
.entry-content.hv-contact .ct-hotline-nums { position: relative; z-index: 1; display: flex; gap: .75rem; flex-wrap: wrap; }
.entry-content.hv-contact a.ct-hotline-num {
  display: flex; flex-direction: column; gap: .125rem; min-width: 12rem; padding: .75rem 1.125rem; border-radius: .75rem;
  background: #fff; color: var(--pol-ink); text-decoration: none; box-shadow: 0 6px 18px rgba(6, 50, 110, .18);
  transition: transform .15s;
}
.entry-content.hv-contact a.ct-hotline-num:hover { transform: translateY(-1px); }
.entry-content.hv-contact a.ct-hotline-num:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.entry-content.hv-contact .ct-hotline-city { color: var(--pol-text); font-size: .8125rem; font-weight: 600; }
.entry-content.hv-contact .ct-hotline-tel { color: var(--pol-blue); font-size: 1.375rem; line-height: 1.25; font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: .01em; }

/* ---------- 3 kênh ---------- */
.entry-content.hv-contact .ct-channels {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin: 0 0 1rem; padding: 0; list-style: none;
}
.entry-content.hv-contact .ct-channel {
  display: flex; flex-direction: column; margin: 0; padding: 1.5rem; border: 1px solid var(--pol-line); border-radius: var(--ct-radius);
  background: #fff;
}
.entry-content.hv-contact .ct-channel::before { content: none; }
.entry-content.hv-contact .ct-channel .ct-icon { margin-bottom: 1rem; }
.entry-content.hv-contact .ct-channel p { margin: 0; }
.entry-content.hv-contact .ct-channel p.ct-channel-title { margin-bottom: .375rem; color: var(--pol-ink); font-size: 1.125rem; font-weight: 700; line-height: 1.35; }
.entry-content.hv-contact .ct-channel p.ct-channel-desc { margin-bottom: 1.25rem; font-size: .9375rem; line-height: 1.6; }
.entry-content.hv-contact .ct-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: auto; }

.entry-content.hv-contact a.ct-btn {
  display: inline-flex; align-items: center; gap: .375rem; padding: .5625rem 1rem; border: 1px solid var(--pol-blue); border-radius: .5rem;
  background: #fff; color: var(--pol-blue); font-size: .875rem; font-weight: 600; line-height: 1.3; text-decoration: none;
  transition: background-color .15s;
}
.entry-content.hv-contact a.ct-btn:hover { background: var(--pol-tint); }
.entry-content.hv-contact a.ct-btn--primary { background: var(--pol-blue); color: #fff; }
.entry-content.hv-contact a.ct-btn--primary:hover { background: #1677CC; }
.entry-content.hv-contact a.ct-btn span { font-variant-numeric: tabular-nums; font-weight: 700; }
.entry-content.hv-contact a.ct-btn:focus-visible { outline: 2px solid var(--pol-blue); outline-offset: 2px; }

/* ---------- văn phòng ---------- */
.entry-content.hv-contact .ct-offices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.entry-content.hv-contact .ct-office {
  display: flex; flex-direction: column; padding: 1.5rem; border: 1px solid var(--ct-edge); border-radius: var(--ct-radius); background: var(--ct-soft);
}
.entry-content.hv-contact .ct-office p { margin: 0; }
.entry-content.hv-contact .ct-office p.ct-office-city {
  display: flex; align-items: center; gap: .625rem; margin-bottom: .875rem; color: var(--pol-ink); font-size: 1.0625rem; font-weight: 700;
}
.entry-content.hv-contact .ct-office .ct-icon--sm { background: #fff; }
.entry-content.hv-contact .ct-office p.ct-office-addr { margin-bottom: 1.25rem; color: var(--pol-ink); line-height: 1.6; }
.entry-content.hv-contact .ct-office-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: auto; padding-top: 1rem; border-top: 1px dashed var(--ct-edge);
}
.entry-content.hv-contact a.ct-office-tel {
  color: var(--pol-ink); font-size: 1.125rem; font-weight: 700; font-variant-numeric: tabular-nums; text-decoration: none;
}
.entry-content.hv-contact a.ct-office-tel:hover { color: var(--pol-blue); }
.entry-content.hv-contact a.ct-office-map { font-size: .875rem; font-weight: 600; }

/* ---------- giới thiệu ---------- */
.entry-content.hv-contact .ct-about { padding: 1.5rem; border-left: 3px solid var(--pol-blue); border-radius: 0 var(--ct-radius) var(--ct-radius) 0; background: var(--ct-soft); }
.entry-content.hv-contact .ct-about p { margin: 0; }
.entry-content.hv-contact .ct-about p.ct-about-name { margin-bottom: .5rem; color: var(--pol-ink); font-size: 1.0625rem; font-weight: 700; }

/* ---------- tài liệu ---------- */
.entry-content.hv-contact .ct-docs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; margin: 0; padding: 0; list-style: none; }
.entry-content.hv-contact .ct-docs li { margin: 0; padding: 0; }
.entry-content.hv-contact .ct-docs li::before { content: none; }
.entry-content.hv-contact a.ct-doc {
  display: flex; align-items: center; gap: .75rem; height: 100%; padding: .75rem 1rem; border: 1px solid var(--pol-line); border-radius: .75rem;
  color: var(--pol-ink); font-weight: 600; font-size: .9375rem; line-height: 1.4; text-decoration: none; transition: border-color .15s;
}
.entry-content.hv-contact a.ct-doc:hover { border-color: var(--pol-blue); color: var(--pol-blue); }
.entry-content.hv-contact a.ct-doc:focus-visible { outline: 2px solid var(--pol-blue); outline-offset: 2px; }

@media (max-width: 1023px) {
  .entry-content.hv-contact .ct-channels { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 767px) {
  .entry-content.hv-contact .ct-hotline { padding: 1.5rem 1.25rem; }
  .entry-content.hv-contact .ct-hotline-nums, .entry-content.hv-contact a.ct-hotline-num { width: 100%; }
  .entry-content.hv-contact .ct-channels, .entry-content.hv-contact .ct-offices, .entry-content.hv-contact .ct-docs { grid-template-columns: minmax(0, 1fr); }
  .entry-content.hv-contact .ct-channel, .entry-content.hv-contact .ct-office { padding: 1.25rem; }
}
@media (prefers-reduced-motion: reduce) {
  .entry-content.hv-contact a.ct-btn, .entry-content.hv-contact a.ct-doc, .entry-content.hv-contact a.ct-hotline-num { transition: none; }
  .entry-content.hv-contact a.ct-hotline-num:hover { transform: none; }
}

/* ===== Giới thiệu các kênh thông tin chính thức (build/channels_page.py) ===== */
/* 2 kênh chính (trang chủ, quản lý dịch vụ) chia đôi hàng đầu; các kênh hướng dẫn chia ba hàng sau */
.entry-content.hv-contact .ch-sites { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1rem; margin: 0; padding: 0; list-style: none; }
.entry-content.hv-contact .ch-sites > li { grid-column: span 2; }
.entry-content.hv-contact .ch-sites > li:nth-child(-n+2) { grid-column: span 3; }
/* thẻ hẹp (hàng 3 cột): biểu tượng nằm trên tiêu đề để tiêu đề đủ rộng */
.entry-content.hv-contact .ch-sites > li:nth-child(n+3) .ch-site-head { flex-direction: column; align-items: flex-start; gap: .75rem; }
.entry-content.hv-contact .ch-site {
  display: flex; flex-direction: column; gap: 1rem; margin: 0; padding: 1.5rem; border: 1px solid var(--pol-line); border-radius: var(--ct-radius); background: #fff;
}
.entry-content.hv-contact .ch-site::before { content: none; }
.entry-content.hv-contact .ch-site-head { display: flex; align-items: center; gap: .875rem; }
.entry-content.hv-contact .ch-site p { margin: 0; }
.entry-content.hv-contact .ch-site p.ch-site-name { color: var(--pol-ink); font-size: 1.0625rem; font-weight: 700; line-height: 1.35; }
.entry-content.hv-contact a.ch-site-host { font-size: .9375rem; font-weight: 600; text-decoration: none; }
.entry-content.hv-contact a.ch-site-host:hover { text-decoration: underline; }
.entry-content.hv-contact .ch-site p.ch-site-desc { font-size: .9375rem; line-height: 1.65; }
/* trang chủ + trang quản lý dịch vụ: hai kênh dùng nhiều nhất, nền nhạt */
.entry-content.hv-contact .ch-site:nth-child(-n+2) { border-color: var(--ct-edge); background: var(--ct-soft); }
.entry-content.hv-contact .ch-site:nth-child(-n+2) .ct-icon { background: #fff; }

.entry-content.hv-contact .ch-socials { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; margin: 0; padding: 0; list-style: none; }
.entry-content.hv-contact .ch-socials li { margin: 0; padding: 0; }
.entry-content.hv-contact .ch-socials li::before { content: none; }
.entry-content.hv-contact a.ch-social {
  display: flex; align-items: center; gap: .875rem; height: 100%; padding: .875rem 1rem; border: 1px solid var(--pol-line); border-radius: .75rem;
  color: var(--pol-ink); text-decoration: none; transition: border-color .15s;
}
.entry-content.hv-contact a.ch-social:hover { border-color: var(--pol-blue); }
.entry-content.hv-contact a.ch-social:focus-visible { outline: 2px solid var(--pol-blue); outline-offset: 2px; }
.entry-content.hv-contact .ch-badge {
  display: inline-flex; align-items: center; justify-content: center; flex: none; width: 2.5rem; height: 2.5rem; border-radius: .625rem;
  background: var(--brand); color: #fff; font-size: 1.125rem; font-weight: 800; line-height: 1;
}
.entry-content.hv-contact .ch-badge--wide { font-size: .8125rem; }
.entry-content.hv-contact .ch-social-text { display: flex; flex-direction: column; min-width: 0; }
.entry-content.hv-contact .ch-social-name { font-weight: 700; font-size: .9375rem; }
.entry-content.hv-contact .ch-social-url { color: var(--pol-blue); font-size: .875rem; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.entry-content.hv-contact .ch-signoff { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--pol-line); }
.entry-content.hv-contact .ch-signoff p { margin: 0 0 .75rem; }
.entry-content.hv-contact .ch-signoff p:last-child { margin: 0; }

@media (max-width: 1023px) {
  .entry-content.hv-contact .ch-sites > li { grid-column: span 3; }
  .entry-content.hv-contact .ch-sites > li:last-child:nth-child(odd) { grid-column: 1 / -1; }
}
@media (max-width: 767px) {
  .entry-content.hv-contact .ch-sites, .entry-content.hv-contact .ch-socials { grid-template-columns: minmax(0, 1fr); }
  .entry-content.hv-contact .ch-sites > li, .entry-content.hv-contact .ch-sites > li:nth-child(-n+2) { grid-column: auto; }
  .entry-content.hv-contact .ch-site { padding: 1.25rem; }
}
@media (prefers-reduced-motion: reduce) { .entry-content.hv-contact a.ch-social { transition: none; } }
