/* ==========================================================================
   Giao diện các trang trong - VeXeQuangBinh.Com
   Nạp SAU style.css, dùng chung biến màu và đầu trang / chân trang của trang chủ.
   Ba tầng kích thước giống style.css: gốc (máy tính bảng) - trên 1100px - dưới 760px.
   ========================================================================== */

/* --- 1. Dải đầu trang có tên trang và đường dẫn phân cấp --- */
.page-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 26px 0 30px;
  color: #fff;
  background: linear-gradient(115deg, var(--navy-deep) 0%, #0a4477 52%, #0d5891 100%);
}
.page-hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background-image: radial-gradient(circle at 88% 18%, #ff790033 0, transparent 46%),
    radial-gradient(circle at 12% 92%, #14a3e01f 0, transparent 42%);
}
.page-hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  right: -60px;
  bottom: -70px;
  width: 260px;
  height: 260px;
  border: 26px solid #ffffff0a;
  border-radius: 50%;
}
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: #b9d4ea;
}
.breadcrumb a { display: inline-flex; align-items: center; gap: 5px; transition: color .18s ease; }
.breadcrumb a:hover { color: #fff; }
.breadcrumb .icon { width: 14px; height: 14px; }
.breadcrumb .sep { opacity: .55; }
.breadcrumb [aria-current="page"] { color: #fff; font-weight: 600; }
.page-hero h1 { margin-top: 10px; font-size: 26px; font-weight: 800; }
.page-hero__mo-ta { margin-top: 7px; max-width: 620px; font-size: 13px; color: #cfe2f2; }
.page-hero__meta { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 12px; font-size: 12px; color: #cfe2f2; }
.page-hero__meta span { display: inline-flex; align-items: center; gap: 6px; }
.page-hero__meta .icon { width: 16px; height: 16px; color: var(--orange); }

/* --- 2. Bố cục hai cột dùng chung cho mọi trang trong --- */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 292px; gap: 26px; padding: 26px 0 34px; align-items: start; }
.layout--rong { grid-template-columns: minmax(0, 1fr); }

/* --- 3. Thẻ bài viết trong lưới --- */
.post-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.post-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 2px 8px #10386014;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.post-card:hover { transform: translateY(-3px); border-color: #b9d3e8; box-shadow: 0 10px 22px #0e386022; }
/* Khung ảnh khoá cứng tỉ lệ 16/9 nên mọi thẻ trong cùng lưới luôn cao bằng nhau.
   Ảnh đặt absolute để chiều cao thật của tệp ảnh không kéo giãn khung được nữa. */
.post-card__anh { position: relative; display: block; flex: 0 0 auto; aspect-ratio: 16 / 9; min-height: 0; overflow: hidden; background: #dbe9f4; }
.post-card__anh img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; }
.the-loai {
  position: absolute;
  left: 10px;
  bottom: 10px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  font-size: 10px;
  font-weight: 700;
  color: #fff;
  background: var(--orange);
  border-radius: 4px;
  box-shadow: 0 2px 6px #83420033;
}
.the-loai .icon { width: 13px; height: 13px; }
.the-loai--xanh { background: var(--blue); }
.post-card__than { display: flex; flex-direction: column; gap: 7px; padding: 13px 14px 15px; flex: 1; }
/* Tiêu đề luôn chiếm đúng 2 dòng: dài thì cắt bằng dấu ba chấm, ngắn thì vẫn giữ chỗ. */
.post-card__tieu-de {
  font-size: 15px; font-weight: 700; color: var(--navy); line-height: 1.42;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2;
  overflow: hidden; min-height: calc(1.42em * 2);
}
.post-card__tieu-de a { transition: color .18s ease; }
.post-card:hover .post-card__tieu-de a { color: #0f5f9c; }
.bai-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; font-size: 11px; color: var(--muted); }
.bai-meta span { display: inline-flex; align-items: center; gap: 5px; }
.bai-meta .icon { width: 14px; height: 14px; color: #7d94ab; }
/* Tóm tắt luôn chiếm đúng 3 dòng để đáy thẻ và nút Đọc tiếp thẳng hàng nhau. */
.post-card__tom-tat {
  font-size: 12px; color: var(--muted); line-height: 1.65;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3;
  overflow: hidden; min-height: calc(1.65em * 3);
}
.doc-tiep { margin-top: auto; display: inline-flex; align-items: center; gap: 7px; padding-top: 4px; font-size: 12px; font-weight: 700; color: var(--orange); }
.doc-tiep .icon { width: 15px; height: 15px; transition: transform .18s ease; }
.post-card:hover .doc-tiep .icon { transform: translateX(3px); }

/* Bài nổi bật: chiếm trọn hàng đầu, ảnh bên trái */
.post-card--noi-bat { grid-column: 1 / -1; flex-direction: row; }
.post-card--noi-bat .post-card__anh { flex: 0 0 46%; aspect-ratio: auto; align-self: stretch; }
.post-card--noi-bat .post-card__than { padding: 18px 20px 20px; gap: 9px; }
.post-card--noi-bat .post-card__tieu-de { font-size: 19px; }
.post-card--noi-bat .post-card__tom-tat { font-size: 13px; -webkit-line-clamp: 4; line-clamp: 4; min-height: calc(1.65em * 4); }

/* Danh sách kết quả tìm kiếm - dạng hàng ngang gọn */
.ket-qua-list { display: flex; flex-direction: column; gap: 12px; }
.ket-qua {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 14px;
  padding: 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.ket-qua:hover { border-color: #b9d3e8; box-shadow: 0 6px 16px #0e38601a; }
.ket-qua__anh { display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 7px; background: #dbe9f4; }
.ket-qua__anh img { width: 100%; height: 100%; object-fit: cover; }
.ket-qua__than { display: flex; flex-direction: column; gap: 6px; justify-content: center; }
.ket-qua__tieu-de { font-size: 15px; font-weight: 700; color: var(--navy); }
.ket-qua__tieu-de mark { padding: 0 3px; color: inherit; background: #ffe6c9; border-radius: 3px; }
.ket-qua__tom-tat { font-size: 12px; color: var(--muted); line-height: 1.65; }

/* --- 4. Phân trang kiểu Google --- */
.pagination { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 7px; margin-top: 24px; }
.page-link {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-width: 38px;
  min-height: 38px;
  padding: 0 11px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 7px;
  transition: color .18s ease, border-color .18s ease, background-color .18s ease;
}
.page-link:hover { color: #0f5f9c; border-color: #9fc4de; }
.page-link .icon { width: 17px; height: 17px; }
.page-link.active { color: #fff; background: var(--navy); border-color: var(--navy); box-shadow: 0 3px 8px #07345d33; pointer-events: none; }
.page-link.disabled { color: #a9bcce; background: #f4f9fc; pointer-events: none; opacity: .65; }
.page-ellipsis { display: inline-flex; justify-content: center; align-items: center; min-width: 26px; min-height: 38px; color: #92a8bc; font-size: 13px; }

/* --- 5. Cột bên --- */
.cot-ben { display: flex; flex-direction: column; gap: 16px; }
.widget { padding: 15px 16px 17px; background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 2px 8px #10386010; }
.widget__tieu-de { position: relative; padding-bottom: 9px; margin-bottom: 12px; font-size: 14px; font-weight: 800; color: var(--navy); border-bottom: 1px solid var(--line); }
.widget__tieu-de::after { content: ""; position: absolute; left: 0; bottom: -1px; width: 42px; height: 2px; background: var(--orange); }

/* Khối tổng đài nổi bật */
.widget-hotline {
  position: relative;
  overflow: hidden;
  padding: 18px 16px 19px;
  color: #fff;
  text-align: center;
  background: linear-gradient(150deg, var(--navy-deep), #0c5088);
  border: 0;
}
.widget-hotline::after { content: ""; position: absolute; right: -46px; top: -46px; width: 140px; height: 140px; border: 20px solid #ffffff0f; border-radius: 50%; }
.widget-hotline__nhan { font-size: 11px; letter-spacing: .04em; text-transform: uppercase; color: #b8d5ea; }
.widget-hotline__so { display: inline-flex; align-items: center; gap: 8px; margin-top: 6px; font-size: 22px; font-weight: 800; color: #fff; }
.widget-hotline__so .icon { width: 22px; height: 22px; color: var(--orange); }
.widget-hotline p { margin-top: 7px; font-size: 12px; color: #cfe2f2; }
.widget-hotline .button { margin-top: 13px; width: 100%; }

/* Danh sách bài viết trong cột bên: ảnh 78x60 bên trái, chữ bên phải */
.ds-bai-widget { display: flex; flex-direction: column; gap: 12px; }
.ds-bai-widget__muc { display: grid; grid-template-columns: 78px minmax(0, 1fr); gap: 11px; align-items: center; }
.ds-bai-widget__anh { display: block; width: 78px; height: 60px; overflow: hidden; border-radius: 6px; background: #dbe9f4; }
.ds-bai-widget__anh img { width: 100%; height: 100%; object-fit: cover; }
.ds-bai-widget__tieu-de { font-size: 12px; font-weight: 600; line-height: 1.5; color: var(--ink); transition: color .18s ease; }
.ds-bai-widget__muc:hover .ds-bai-widget__tieu-de { color: #0f5f9c; }
.ds-bai-widget__ngay { display: inline-flex; align-items: center; gap: 5px; margin-top: 4px; font-size: 10px; color: var(--muted); }
.ds-bai-widget__ngay .icon { width: 12px; height: 12px; }

/* Danh sách chuyên mục */
.ds-chuyen-muc { display: flex; flex-direction: column; }
.ds-chuyen-muc a { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 0; font-size: 12px; font-weight: 600; color: var(--ink); border-bottom: 1px dashed var(--line); transition: color .18s ease, padding-left .18s ease; }
.ds-chuyen-muc a:last-child { border-bottom: 0; }
.ds-chuyen-muc a:hover { color: #0f5f9c; padding-left: 4px; }
.ds-chuyen-muc .so-luong { min-width: 24px; padding: 2px 7px; font-size: 10px; font-weight: 700; text-align: center; color: var(--blue); background: #e8f3fb; border-radius: 20px; }

/* Khối dịch vụ nhanh trong cột bên */
.ds-dich-vu { display: flex; flex-direction: column; gap: 9px; }
.ds-dich-vu a { display: flex; align-items: center; gap: 10px; padding: 10px 11px; font-size: 12px; font-weight: 600; color: var(--ink); background: #f5fafd; border: 1px solid var(--line); border-radius: 8px; transition: background-color .18s ease, border-color .18s ease; }
.ds-dich-vu a:hover { background: #eaf4fb; border-color: #a8cae4; }
.ds-dich-vu .icon-tron { display: grid; place-items: center; width: 30px; height: 30px; flex: 0 0 auto; color: #fff; background: var(--blue); border-radius: 7px; }
.ds-dich-vu .icon-tron .icon { width: 16px; height: 16px; }
.ds-dich-vu a:nth-child(2) .icon-tron { background: var(--orange); }
.ds-dich-vu a:nth-child(3) .icon-tron { background: #1d8f6b; }

/* --- 6. Bài viết đơn --- */
.bai-don { padding: 20px 22px 24px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 2px 10px #10386012; }
.bai-don__anh { margin: 0 0 16px; }
.bai-don__anh img { width: 100%; border-radius: 10px; }
.bai-don__anh figcaption { margin-top: 7px; font-size: 11px; font-style: italic; text-align: center; color: var(--muted); }
.noi-dung-bai { font-size: 14px; line-height: 1.85; color: #1f3d5c; }
.noi-dung-bai > * + * { margin-top: 14px; }
.noi-dung-bai h2 { font-size: 19px; font-weight: 800; color: var(--navy); margin-top: 24px; padding-left: 12px; border-left: 4px solid var(--orange); }
.noi-dung-bai h3 { font-size: 16px; font-weight: 700; color: var(--navy); margin-top: 20px; }
.noi-dung-bai a { color: #0f5f9c; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.noi-dung-bai a:hover { color: var(--orange); }
.noi-dung-bai ul, .noi-dung-bai ol { padding-left: 20px; }
.noi-dung-bai li + li { margin-top: 7px; }
.noi-dung-bai ul { list-style: none; padding-left: 0; }
.noi-dung-bai ul > li { position: relative; padding-left: 24px; }
.noi-dung-bai ul > li::before { content: ""; position: absolute; left: 6px; top: 9px; width: 7px; height: 7px; background: var(--orange); border-radius: 50%; }
.noi-dung-bai img { width: 100%; max-height: 460px; object-fit: cover; border-radius: 9px; }
.noi-dung-bai figure { margin: 18px 0; }
.noi-dung-bai figcaption { margin-top: 7px; font-size: 11px; font-style: italic; text-align: center; color: var(--muted); }
.noi-dung-bai blockquote { padding: 14px 16px; font-size: 14px; font-style: italic; color: var(--navy); background: #f0f8fd; border-left: 4px solid var(--blue); border-radius: 0 8px 8px 0; }
.noi-dung-bai blockquote p + p { margin-top: 9px; }
.bang-cuon { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.noi-dung-bai table { width: 100%; border-collapse: collapse; font-size: 13px; }
.noi-dung-bai th, .noi-dung-bai td { padding: 10px 12px; text-align: left; border: 1px solid var(--line); }
.noi-dung-bai th { color: #fff; font-weight: 700; background: var(--navy); border-color: #0d4372; }
.noi-dung-bai tbody tr:nth-child(even) { background: #f5fafd; }

/* Khối kêu gọi đặt vé chèn giữa hoặc cuối bài */
.khoi-goi-ve {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 22px;
  padding: 16px 18px;
  color: #fff;
  background: linear-gradient(120deg, var(--navy-deep), #0d5891);
  border-radius: 11px;
}
.khoi-goi-ve strong { display: block; font-size: 16px; font-weight: 800; }
.khoi-goi-ve p { margin-top: 4px; font-size: 12px; color: #cfe2f2; }
.khoi-goi-ve .button { flex: 0 0 auto; }

/* Thẻ và chia sẻ */
.bai-the { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 20px; }
.bai-the__nhan { font-size: 12px; font-weight: 700; color: var(--navy); }
.the-tag { display: inline-flex; align-items: center; gap: 5px; padding: 5px 11px; font-size: 11px; font-weight: 600; color: var(--blue); background: #eef7fc; border: 1px solid #d3e7f4; border-radius: 20px; transition: color .18s ease, background-color .18s ease; }
.the-tag:hover { color: #fff; background: var(--blue); }
.the-tag .icon { width: 12px; height: 12px; }
.chia-se { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; margin-top: 16px; padding-top: 15px; border-top: 1px dashed var(--line); }
.chia-se__nhan { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: var(--navy); }
.chia-se__nhan .icon { width: 15px; height: 15px; }
.nut-chia-se { display: inline-flex; align-items: center; gap: 7px; min-height: 34px; padding: 0 13px; font-size: 12px; font-weight: 600; color: #fff; background: #1877f2; border-radius: 6px; transition: opacity .18s ease; }
.nut-chia-se:hover { opacity: .88; }
.nut-chia-se .icon { width: 15px; height: 15px; }
.nut-chia-se--zalo { background: #0068ff; }
.nut-chia-se--sao-chep { color: var(--navy); background: #eaf2f8; }

/* Điều hướng bài trước / bài sau */
.dieu-huong-bai { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 18px; }
.dieu-huong-bai a { display: flex; align-items: center; gap: 11px; padding: 13px 15px; background: #fff; border: 1px solid var(--line); border-radius: 10px; transition: border-color .18s ease, box-shadow .18s ease; }
.dieu-huong-bai a:hover { border-color: #a8cae4; box-shadow: 0 5px 14px #0e386018; }
.dieu-huong-bai .icon { width: 18px; height: 18px; flex: 0 0 auto; color: var(--orange); }
.dieu-huong-bai small { display: block; font-size: 10px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.dieu-huong-bai strong { display: block; margin-top: 3px; font-size: 13px; font-weight: 700; line-height: 1.45; color: var(--navy); }
.dieu-huong-bai a:last-child { text-align: right; flex-direction: row-reverse; }

/* Bài liên quan */
.khoi-lien-quan { margin-top: 24px; }
.khoi-lien-quan > h2 { display: flex; align-items: center; gap: 9px; margin-bottom: 14px; font-size: 18px; font-weight: 800; color: var(--navy); }
.khoi-lien-quan > h2 .icon { width: 20px; height: 20px; color: var(--orange); }
.luoi-lien-quan { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }

/* --- 7. Trang tĩnh --- */
.trang-tinh { padding: 22px 24px 26px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 2px 10px #10386012; }
.khoi-gia-tri { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 20px; }
.the-gia-tri { padding: 17px 16px 19px; text-align: center; background: #f5fafd; border: 1px solid var(--line); border-radius: 11px; transition: transform .2s ease, box-shadow .2s ease; }
.the-gia-tri:hover { transform: translateY(-3px); box-shadow: 0 9px 20px #0e386018; }
.the-gia-tri__icon { display: grid; place-items: center; width: 48px; height: 48px; margin: 0 auto 11px; color: #fff; background: linear-gradient(140deg, var(--blue), var(--navy)); border-radius: 13px; }
.the-gia-tri__icon .icon { width: 24px; height: 24px; }
.the-gia-tri:nth-child(2) .the-gia-tri__icon { background: linear-gradient(140deg, #ff9a3c, var(--orange)); }
.the-gia-tri:nth-child(3) .the-gia-tri__icon { background: linear-gradient(140deg, #2fb489, #14775a); }
.the-gia-tri h3 { font-size: 15px; font-weight: 700; color: var(--navy); }
.the-gia-tri p { margin-top: 6px; font-size: 12px; line-height: 1.7; color: var(--muted); }

.khoi-so-lieu { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 22px; padding: 20px 18px; color: #fff; background: linear-gradient(120deg, var(--navy-deep), #0d5891); border-radius: 12px; }
.so-lieu { text-align: center; }
.so-lieu strong { display: block; font-size: 26px; font-weight: 800; color: var(--orange); }
.so-lieu span { display: block; margin-top: 4px; font-size: 11px; color: #cfe2f2; }

.moc-thoi-gian { display: flex; flex-direction: column; gap: 0; margin-top: 20px; }
.moc { position: relative; padding: 0 0 18px 28px; border-left: 2px solid var(--line); }
.moc:last-child { border-left-color: transparent; padding-bottom: 0; }
.moc::before { content: ""; position: absolute; left: -8px; top: 2px; width: 14px; height: 14px; background: var(--orange); border: 3px solid #fff; border-radius: 50%; box-shadow: 0 0 0 1px var(--line); }
.moc strong { display: block; font-size: 14px; font-weight: 800; color: var(--navy); }
.moc p { margin-top: 5px; font-size: 12px; line-height: 1.7; color: var(--muted); }

/* --- 8. Trang liên hệ --- */
.the-lien-he-luoi { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.the-lien-he { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 18px 16px 20px; text-align: center; background: #fff; border: 1px solid var(--line); border-radius: 11px; box-shadow: 0 2px 8px #10386012; }
.the-lien-he__icon { display: grid; place-items: center; width: 46px; height: 46px; color: #fff; background: linear-gradient(140deg, #ff9a3c, var(--orange)); border-radius: 50%; }
.the-lien-he__icon .icon { width: 22px; height: 22px; }
.the-lien-he h3 { font-size: 14px; font-weight: 700; color: var(--navy); }
.the-lien-he p, .the-lien-he a { font-size: 13px; color: var(--muted); line-height: 1.6; overflow-wrap: anywhere; }
.the-lien-he strong { font-size: 16px; font-weight: 800; color: var(--navy); }
.the-lien-he a:hover { color: var(--orange); }

.khoi-form-lien-he { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; margin-top: 20px; }
.form-lien-he { padding: 18px 20px 20px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 2px 10px #10386012; }
.form-lien-he h2, .khung-ban-do h2 { font-size: 17px; font-weight: 800; color: var(--navy); margin-bottom: 4px; }
.form-lien-he > p { font-size: 12px; color: var(--muted); margin-bottom: 14px; }
.form-hang { display: grid; gap: 13px; }
.form-hang--doi { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.o-nhap { display: flex; flex-direction: column; gap: 6px; }
.o-nhap label { font-size: 12px; font-weight: 600; color: var(--navy); }
.o-nhap input, .o-nhap textarea, .o-nhap select {
  width: 100%;
  padding: 11px 13px;
  font-size: 14px;
  color: var(--ink);
  background: #f8fbfd;
  border: 1px solid var(--line);
  border-radius: 8px;
  transition: border-color .18s ease, background-color .18s ease;
}
.o-nhap input:focus, .o-nhap textarea:focus, .o-nhap select:focus { background: #fff; border-color: #86b9dd; outline: 0; box-shadow: 0 0 0 3px #1265a11f; }
.o-nhap textarea { min-height: 118px; resize: vertical; }
.form-lien-he .button { margin-top: 15px; width: 100%; }
.ghi-chu-form { margin-top: 11px; padding: 11px 13px; font-size: 12px; line-height: 1.65; color: #7a4a00; background: #fff6e9; border: 1px solid #ffd9a8; border-radius: 8px; }
.ghi-chu-form a { font-weight: 700; color: #b35a00; text-decoration: underline; text-underline-offset: 3px; }

.khung-ban-do { display: flex; flex-direction: column; gap: 12px; padding: 18px 20px 20px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 2px 10px #10386012; }
.khung-ban-do .ban-do { flex: 1; min-height: 250px; overflow: hidden; border: 1px solid var(--line); border-radius: 10px; background: #e7f1f8; }
.khung-ban-do iframe { display: block; width: 100%; height: 100%; min-height: 250px; border: 0; }
.gio-lam-viec { display: flex; flex-direction: column; }
.gio-lam-viec div { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; font-size: 12px; border-bottom: 1px dashed var(--line); }
.gio-lam-viec div:last-child { border-bottom: 0; }
.gio-lam-viec span:first-child { color: var(--muted); }
.gio-lam-viec span:last-child { font-weight: 700; color: var(--navy); }

/* Câu hỏi thường gặp */
.faq { display: flex; flex-direction: column; gap: 10px; margin-top: 20px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 15px; font-size: 13px; font-weight: 700; color: var(--navy); cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { width: 18px; height: 18px; flex: 0 0 auto; color: var(--orange); transition: transform .2s ease; }
.faq details[open] summary .icon { transform: rotate(180deg); }
.faq p { padding: 0 15px 14px; font-size: 12px; line-height: 1.75; color: var(--muted); }

/* --- 9. Trang tìm kiếm và 404 --- */
.o-tim-lon { display: flex; gap: 9px; margin-bottom: 18px; }
.o-tim-lon input { flex: 1; padding: 12px 15px; font-size: 15px; background: #fff; border: 1px solid var(--line); border-radius: 8px; }
.o-tim-lon input:focus { border-color: #86b9dd; outline: 0; box-shadow: 0 0 0 3px #1265a11f; }
.tom-tat-tim { margin-bottom: 14px; font-size: 13px; color: var(--muted); }
.tom-tat-tim strong { color: var(--navy); }

.trang-404 { padding: 46px 24px 50px; text-align: center; }
.trang-404 .trang-404__so { font-size: 84px; font-weight: 800; line-height: 1; color: var(--navy); letter-spacing: -.02em; }
.trang-404 .trang-404__so span { color: var(--orange); }
.trang-404 h2 { margin-top: 12px; font-size: 24px; font-weight: 800; color: var(--navy); }
.trang-404 p { margin-top: 9px; font-size: 14px; color: var(--muted); }
.trang-404 .nhom-nut { display: flex; flex-wrap: wrap; justify-content: center; gap: 11px; margin-top: 20px; }
.trang-404 .o-tim-lon { max-width: 460px; margin: 22px auto 0; }
.goi-y-lien-ket { display: flex; flex-wrap: wrap; justify-content: center; gap: 9px; margin-top: 20px; }

/* Nút phụ dùng chung cho trang trong */
.button-outline { color: var(--navy); background: #fff; border-color: var(--line); }
.button-outline:hover { color: #0f5f9c; border-color: #9fc4de; background: #f5fafd; }
.button-navy { color: #fff; background: var(--navy); }
.button-navy:hover { background: #0a4477; }

/* Không tìm thấy nội dung */
.khong-co-noi-dung { padding: 34px 22px; text-align: center; background: #fff; border: 1px dashed var(--line); border-radius: 12px; }
.khong-co-noi-dung .icon { width: 36px; height: 36px; color: #9dbdd6; }
.khong-co-noi-dung h2 { margin-top: 10px; font-size: 17px; font-weight: 800; color: var(--navy); }
.khong-co-noi-dung p { margin-top: 7px; font-size: 13px; color: var(--muted); }

/* ==========================================================================
   Máy tính từ 1100px trở lên
   ========================================================================== */
@media (min-width: 1100px) {
  .page-hero { padding: 34px 0 40px; }
  .breadcrumb { font-size: 13px; }
  .breadcrumb .icon { width: 16px; height: 16px; }
  .page-hero h1 { margin-top: 13px; font-size: 36px; }
  .page-hero__mo-ta { font-size: 15px; margin-top: 9px; }
  .page-hero__meta { font-size: 13px; margin-top: 15px; }

  .layout { grid-template-columns: minmax(0, 1fr) 336px; gap: 34px; padding: 34px 0 46px; }
  .post-grid { gap: 24px; }
  .post-card__than { padding: 16px 18px 18px; gap: 9px; }
  .post-card__tieu-de { font-size: 18px; }
  .post-card__tom-tat { font-size: 14px; }
  .bai-meta { font-size: 12px; }
  .doc-tiep { font-size: 13px; }
  .the-loai { font-size: 11px; padding: 6px 12px; }
  .post-card--noi-bat .post-card__tieu-de { font-size: 23px; }
  .post-card--noi-bat .post-card__tom-tat { font-size: 15px; }
  .post-card--noi-bat .post-card__than { padding: 24px 26px; }

  .ket-qua { grid-template-columns: 190px minmax(0, 1fr); gap: 18px; padding: 14px; }
  .ket-qua__tieu-de { font-size: 18px; }
  .ket-qua__tom-tat { font-size: 14px; }

  .page-link { min-width: 42px; min-height: 42px; font-size: 14px; }
  .page-ellipsis { min-height: 42px; }

  .cot-ben { gap: 20px; }
  .widget { padding: 18px 20px 20px; }
  .widget__tieu-de { font-size: 16px; }
  .widget-hotline__so { font-size: 26px; }
  .widget-hotline p, .ds-bai-widget__tieu-de, .ds-chuyen-muc a, .ds-dich-vu a { font-size: 13px; }
  .ds-bai-widget__ngay { font-size: 11px; }

  .bai-don { padding: 28px 32px 32px; }
  .noi-dung-bai { font-size: 16px; line-height: 1.9; }
  .noi-dung-bai > * + * { margin-top: 17px; }
  .noi-dung-bai h2 { font-size: 24px; margin-top: 30px; }
  .noi-dung-bai h3 { font-size: 19px; margin-top: 24px; }
  .noi-dung-bai blockquote { font-size: 16px; padding: 17px 20px; }
  .noi-dung-bai table { font-size: 14px; }
  .khoi-goi-ve { padding: 20px 24px; }
  .khoi-goi-ve strong { font-size: 19px; }
  .khoi-goi-ve p { font-size: 14px; }
  .dieu-huong-bai strong { font-size: 15px; }
  .khoi-lien-quan > h2 { font-size: 22px; }

  .trang-tinh { padding: 30px 34px 34px; }
  .khoi-gia-tri { gap: 20px; margin-top: 26px; }
  .the-gia-tri h3 { font-size: 17px; }
  .the-gia-tri p { font-size: 14px; }
  .khoi-so-lieu { padding: 26px 24px; }
  .so-lieu strong { font-size: 34px; }
  .so-lieu span { font-size: 13px; }
  .moc strong { font-size: 16px; }
  .moc p { font-size: 14px; }

  .the-lien-he__icon { width: 54px; height: 54px; }
  .the-lien-he h3 { font-size: 16px; }
  .the-lien-he strong { font-size: 19px; }
  .khoi-form-lien-he { gap: 24px; margin-top: 26px; }
  .form-lien-he, .khung-ban-do { padding: 24px 26px 26px; }
  .form-lien-he h2, .khung-ban-do h2 { font-size: 20px; }
  .form-lien-he > p, .gio-lam-viec div { font-size: 13px; }
  .khung-ban-do .ban-do, .khung-ban-do iframe { min-height: 300px; }
  .faq summary { font-size: 15px; padding: 15px 18px; }
  .faq p { font-size: 14px; padding: 0 18px 16px; }

  .trang-404 { padding: 66px 24px 70px; }
  .trang-404 .trang-404__so { font-size: 120px; }
  .trang-404 h2 { font-size: 30px; }
  .trang-404 p { font-size: 16px; }
}

/* ==========================================================================
   Điện thoại dưới 760px
   ========================================================================== */
@media (max-width: 760px) {
  .page-hero { padding: 18px 0 22px; }
  .breadcrumb { font-size: 11px; gap: 5px; }
  .page-hero h1 { margin-top: 9px; font-size: 22px; }
  .page-hero__mo-ta { font-size: 13px; }
  .page-hero__meta { gap: 6px 14px; font-size: 12px; }
  .page-hero::after { display: none; }

  .layout { grid-template-columns: minmax(0, 1fr); gap: 22px; padding: 20px 0 28px; }
  .post-grid { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .post-card--noi-bat { flex-direction: column; }
  .post-card--noi-bat .post-card__anh { flex: none; aspect-ratio: 16 / 9; }
  .post-card--noi-bat .post-card__than { padding: 14px 15px 16px; }
  .post-card--noi-bat .post-card__tieu-de { font-size: 17px; }
  .post-card__tieu-de { font-size: 16px; }
  .post-card__tom-tat { font-size: 13px; }
  .doc-tiep { min-height: 40px; align-items: center; }

  .ket-qua { grid-template-columns: 110px minmax(0, 1fr); gap: 11px; }
  .ket-qua__tieu-de { font-size: 14px; }
  .ket-qua__tom-tat { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

  .pagination { gap: 6px; margin-top: 20px; }
  .page-link { min-width: 40px; min-height: 40px; }
  .page-ellipsis { min-width: 20px; min-height: 40px; }

  .bai-don { padding: 16px 15px 20px; border-radius: 10px; }
  .noi-dung-bai { font-size: 15px; }
  .noi-dung-bai h2 { font-size: 18px; margin-top: 22px; }
  .noi-dung-bai h3 { font-size: 16px; }
  .khoi-goi-ve { flex-direction: column; align-items: stretch; text-align: center; }
  .khoi-goi-ve .button { width: 100%; }
  .luoi-lien-quan { grid-template-columns: minmax(0, 1fr); }
  .dieu-huong-bai { grid-template-columns: minmax(0, 1fr); }
  .dieu-huong-bai a:last-child { text-align: left; flex-direction: row; }
  .chia-se { gap: 8px; }
  .nut-chia-se { min-height: 40px; flex: 1; justify-content: center; }

  .trang-tinh { padding: 17px 15px 20px; }
  .khoi-gia-tri { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .khoi-so-lieu { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 12px; padding: 18px 14px; }
  .so-lieu strong { font-size: 24px; }

  .the-lien-he-luoi { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .khoi-form-lien-he { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .form-lien-he, .khung-ban-do { padding: 16px 15px 18px; }
  .form-hang--doi { grid-template-columns: minmax(0, 1fr); }
  .o-nhap input, .o-nhap textarea, .o-nhap select { font-size: 16px; }
  .o-tim-lon input { font-size: 16px; }
  .o-tim-lon .button { padding-inline: 15px; }

  .trang-404 { padding: 34px 12px 40px; }
  .trang-404 .trang-404__so { font-size: 66px; }
  .trang-404 h2 { font-size: 21px; }
  .trang-404 p { font-size: 14px; }
  .trang-404 .nhom-nut .button { flex: 1; min-width: 150px; }
}

@media (max-width: 430px) {
  /* Màn hình rất hẹp: ô tìm kiếm và nút xuống thành hai hàng, tránh đẩy tràn ngang */
  .o-tim-lon { flex-wrap: wrap; }
  .o-tim-lon input, .o-tim-lon .button { flex: 1 1 100%; }
  .ket-qua { grid-template-columns: minmax(0, 1fr); }
  .ket-qua__anh { aspect-ratio: 16 / 9; }
  .khoi-so-lieu { grid-template-columns: minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  .post-card, .the-gia-tri, .doc-tiep .icon, .faq summary .icon { transition: none; }
  .post-card:hover, .the-gia-tri:hover { transform: none; }
}

/* Nhãn chỉ dành cho trình đọc màn hình */
.an-man-hinh {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* Thông báo trong biểu mẫu liên hệ dùng lại kiểu của trang chủ nhưng canh theo khung riêng */
.form-lien-he .form-message { margin: 13px 0 0; font-size: 13px; }
.form-lien-he .ghi-chu-form { margin-top: 13px; }
/* Ô chọn ngày trên iOS cần chiều cao cố định, nếu không sẽ co lại chỉ còn dòng chữ */
.o-nhap input[type="date"] { min-height: 44px; }

/* Ô chọn ngày trong biểu mẫu liên hệ: che ô gốc, hiển thị ngày theo d/m/Y giờ Việt Nam */
.ngay-vn {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 11px 13px;
  font-size: 14px;
  color: var(--ink);
  background: #f8fbfd;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
}
.ngay-vn input[type="date"] { position: absolute; inset: 0; width: 100%; height: 100%; min-height: 0; padding: 0; opacity: 0; border: 0; cursor: pointer; }
.ngay-vn:focus-within { background: #fff; border-color: #86b9dd; box-shadow: 0 0 0 3px #1265a11f; }
.ngay-vn__nhan { pointer-events: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ngay-vn__nhan.trong { color: #8ea4b8; }

/* ==========================================================================
   Phần thêm khi chuyển sang WordPress
   ========================================================================== */

/* Phân trang của khung cha dùng ul/li, cần khớp với kiểu .pagination sẵn có */
.phan-trang { margin-top: 24px; }
.pagination { list-style: none; padding: 0; margin: 0; }
.pagination li { display: flex; }
.page-link--mui-ten { font-size: 18px; line-height: 1; }

/* Khối bài viết mới ở trang chủ */
.tin-tuc-trang-chu { padding: 26px 0 4px; }
.tin-tuc-trang-chu .post-grid { margin-top: 4px; }
.post-grid--ba { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tin-tuc-trang-chu .center-action { margin-top: 18px; }

/* Ảnh đại diện do WordPress in ra cần lấp đầy khung thẻ bài */
.post-card__anh img,
.ds-bai-widget__anh img,
.ket-qua__anh img { width: 100%; height: 100%; object-fit: cover; }

/* Bình luận */
.khoi-binh-luan { margin-top: 24px; padding: 20px 22px 24px; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.khoi-binh-luan > h2 { font-size: 18px; font-weight: 800; color: var(--navy); margin-bottom: 14px; }
.danh-sach-binh-luan { list-style: none; margin: 0; padding: 0; }
.danh-sach-binh-luan ul.children { list-style: none; padding-left: 22px; }
.danh-sach-binh-luan li { padding: 12px 0; border-bottom: 1px dashed var(--line); }
.danh-sach-binh-luan .comment-author { font-size: 13px; font-weight: 700; color: var(--navy); }
.danh-sach-binh-luan .comment-meta { font-size: 11px; color: var(--muted); }
.khoi-binh-luan input[type="text"], .khoi-binh-luan input[type="email"], .khoi-binh-luan input[type="url"], .khoi-binh-luan textarea {
  width: 100%; padding: 11px 13px; font-size: 14px; background: #f8fbfd; border: 1px solid var(--line); border-radius: 8px;
}
.khoi-binh-luan textarea { min-height: 120px; }
.khoi-binh-luan .submit { display: inline-flex; justify-content: center; align-items: center; min-height: 42px; padding: 0 20px; font-size: 13px; font-weight: 700; color: #fff; background: var(--orange); border: 0; border-radius: 6px; cursor: pointer; }
.khoi-binh-luan .submit:hover { background: #e96800; }

/* Khối nội dung của trang tĩnh do trình soạn thảo sinh ra */
.trang-tinh .noi-dung-bai > *:first-child { margin-top: 0; }

@media (min-width: 1100px) {
  .tin-tuc-trang-chu { padding: 34px 0 6px; }
  .khoi-binh-luan { padding: 26px 30px 30px; }
  .khoi-binh-luan > h2 { font-size: 22px; }
}

@media (max-width: 760px) {
  .post-grid--ba { grid-template-columns: minmax(0, 1fr); }
  .tin-tuc-trang-chu { padding: 20px 0 2px; }
  .khoi-binh-luan { padding: 16px 15px 20px; }
  .khoi-binh-luan input[type="text"], .khoi-binh-luan input[type="email"], .khoi-binh-luan input[type="url"], .khoi-binh-luan textarea { font-size: 16px; }
}

/* Khối chờ bản đồ khi quản trị viên chưa dán mã nhúng */
.ban-do__cho { display: grid; place-items: center; height: 100%; min-height: 250px; padding: 20px; text-align: center; color: var(--muted); }
.ban-do__cho p { margin-top: 10px; font-size: 13px; line-height: 1.7; }
.ban-do__cho .button { margin-top: 12px; }
.icon--lon { width: 34px; height: 34px; color: var(--blue); }
.khung-ban-do__gio { margin-top: 6px; }

/* ==========================================================================
   Các khối nổi do giao diện cha sinh ra
   Đã bỏ CSS của cha nên phải tự tạo kiểu, nếu không nút sẽ hiện ra trần trụi.
   ========================================================================== */

/* Nút lên đầu trang */
.nut-len-dau {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 40;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  color: #fff;
  background: var(--navy);
  border: 0;
  border-radius: 50%;
  box-shadow: 0 6px 16px #07345d40;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity .22s ease, visibility .22s ease, transform .22s ease, background-color .18s ease;
}
.nut-len-dau.hien { opacity: 1; visibility: visible; transform: translateY(0); }
.nut-len-dau:hover { background: var(--orange); }
.nut-len-dau svg { width: 20px; height: 20px; }

/* Cụm nút liên hệ nhanh ở góc trái */
.cum-nut-noi { position: fixed; left: 14px; bottom: 18px; z-index: 40; display: flex; flex-direction: column; gap: 10px; }
.nut-noi {
  position: relative;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  color: #fff;
  border-radius: 50%;
  box-shadow: 0 6px 16px #04203a33;
  transition: transform .18s ease;
}
.nut-noi:hover { color: #fff; transform: scale(1.08); }
.nut-noi svg { width: 22px; height: 22px; }
.nut-noi--goi { background: var(--orange); }
.nut-noi--zalo { background: #0068ff; }
.nut-noi--messenger { background: #a334fa; }
/* Sóng lan quanh nút gọi để hút mắt khách */
.nut-noi--goi::after {
  content: "";
  position: absolute;
  width: 48px;
  height: 48px;
  border: 2px solid var(--orange);
  border-radius: 50%;
  animation: vxqb-song 1.8s infinite;
  pointer-events: none;
}
@keyframes vxqb-song {
  0% { transform: scale(1); opacity: .7; }
  100% { transform: scale(1.7); opacity: 0; }
}

/* Vùng quảng cáo của khung cha khi có widget */
.vung-quang-cao { margin: 18px 0; text-align: center; }
.vung-quang-cao img { display: inline-block; max-width: 100%; height: auto; border-radius: 8px; }

@media (max-width: 760px) {
  .nut-len-dau { right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); width: 42px; height: 42px; }
  .cum-nut-noi { left: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); gap: 9px; }
  .nut-noi { width: 46px; height: 46px; }
}

@media (prefers-reduced-motion: reduce) {
  .nut-noi--goi::after { animation: none; }
  .nut-len-dau, .nut-noi { transition: none; }
}
