/* ============================================================
   PiPo Horizon Group — thành phần dùng cho các trang con.
   Đi kèm styles.css (trang chủ), dùng lại toàn bộ token màu/font
   khai báo trong :root của file đó.
   ============================================================ */

/* ---------- Dải mở đầu trang con ---------- */
.page-hero {
  background:
    linear-gradient(180deg, var(--bg-ocean-top) 0%, var(--bg-ocean-mid) 55%, var(--bg-ocean-hero) 100%);
  padding: 66px 0 62px;
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 -1px 0;
  height: 90px;
  background: radial-gradient(120% 100% at 50% 100%, rgba(255, 255, 255, .16), transparent 70%);
  pointer-events: none;
}
.page-hero-inner {
  max-width: 780px;
  position: relative;
  z-index: 1;
}
.page-crumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: rgba(226, 232, 240, .72);
  margin-bottom: 16px;
}
.page-crumb a { color: rgba(226, 232, 240, .9); }
.page-crumb a:hover { color: #ffe066; }
.page-crumb span[aria-current] { color: #ffe066; font-weight: 600; }

.page-eyebrow {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #7dd3fc;
  background: rgba(2, 132, 199, .22);
  border: 1px solid rgba(125, 211, 252, .4);
  padding: 7px 15px;
  border-radius: var(--radius-pill);
  margin-bottom: 18px;
}
.page-hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(1.9rem, 4.4vw, 3rem);
  font-weight: 800;
  line-height: 1.16;
  color: #fff;
  margin: 0 0 16px;
  text-shadow: 0 3px 18px rgba(0, 20, 60, .5);
}
.page-hero h1 .accent {
  background: var(--color-gold-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.page-hero p {
  font-size: clamp(0.98rem, 1.6vw, 1.1rem);
  line-height: 1.72;
  color: rgba(226, 232, 240, .95);
  margin: 0;
}

/* Khối nội dung đầu tiên cách dải hero một khoảng cho thoáng,
   để lộ ảnh nền đại dương giữa hai vùng. */
.page-hero + .site-container > :first-child {
  margin-top: 20px;
}

/* ---------- Khối chữ trong panel trắng ---------- */
.prose-block {
  max-width: 860px;
  margin: 0 auto;
}
.prose-block p {
  font-size: 1rem;
  line-height: 1.85;
  color: var(--color-text-body);
  margin: 0 0 18px;
}
.prose-block p:last-child { margin-bottom: 0; }
.prose-block strong { color: var(--color-text-dark); }

/* ---------- Lưới tính năng (biểu tượng + tiêu đề + mô tả) ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
}
.feature-item {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  padding: 26px 24px;
  box-shadow: var(--shadow-subtle);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.feature-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
  border-color: #bae6fd;
}
.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  margin-bottom: 16px;
  background: #e0f2fe;
}
.feature-item.t-purple .feature-icon { background: #ede9fe; }
.feature-item.t-blue   .feature-icon { background: #e0f2fe; }
.feature-item.t-green  .feature-icon { background: #dcfce7; }
.feature-item.t-orange .feature-icon { background: #ffedd5; }
.feature-item h3 {
  font-family: var(--font-heading);
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--color-text-dark);
  margin: 0 0 8px;
}
.feature-item p {
  font-size: 0.93rem;
  line-height: 1.7;
  color: var(--color-text-body);
  margin: 0;
}

/* ---------- Khối chia đôi: ảnh + nội dung ---------- */
.split-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
  padding: 10px 0;
}
.split-block + .split-block {
  margin-top: 42px;
  padding-top: 42px;
  border-top: 1px solid #e2e8f0;
}
.split-block:nth-child(even) .split-media { order: 2; }
.split-media img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  display: block;
}
.split-body h3 {
  font-family: var(--font-heading);
  font-size: clamp(1.2rem, 2.4vw, 1.6rem);
  font-weight: 700;
  color: var(--color-blue-title);
  margin: 0 0 14px;
}
.split-body p {
  font-size: 0.98rem;
  line-height: 1.8;
  color: var(--color-text-body);
  margin: 0 0 14px;
}
.split-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 11px; }
.split-list li {
  display: flex;
  gap: 11px;
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--color-text-body);
}
.split-list li::before {
  content: "";
  flex: none;
  width: 8px;
  height: 8px;
  margin-top: 8px;
  border-radius: 50%;
  background: var(--color-gold-text);
}

/* ---------- Bảng số liệu nhỏ ---------- */
.stat-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 18px;
}
.stat-box {
  background: linear-gradient(180deg, #f8fafc, #eff6ff);
  border: 1px solid #dbeafe;
  border-radius: var(--radius-md);
  padding: 24px 20px;
  text-align: center;
}
.stat-box b {
  display: block;
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 800;
  color: var(--color-blue-title);
  line-height: 1.1;
  margin-bottom: 6px;
}
.stat-box span { font-size: 0.86rem; color: var(--color-text-muted); }

/* ---------- Hỏi đáp ---------- */
.faq-list { display: grid; gap: 12px; max-width: 860px; margin: 0 auto; }
.faq-list details {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color .25s ease;
}
.faq-list details[open] { border-color: #7dd3fc; }
.faq-list summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 22px;
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  color: var(--color-text-dark);
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+";
  margin-left: auto;
  font-size: 1.4rem;
  line-height: 1;
  color: var(--color-blue-title);
  transition: transform .25s ease;
  flex: none;
}
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list .faq-answer {
  padding: 0 22px 20px;
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--color-text-body);
}

/* ---------- Tin tức ---------- */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.news-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-subtle);
  transition: transform .25s ease, box-shadow .25s ease;
}
.news-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); }
.news-card img { width: 100%; height: 180px; object-fit: cover; display: block; }
.news-card .news-body { padding: 20px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.news-tag {
  align-self: flex-start;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #0369a1;
  background: #e0f2fe;
  padding: 4px 11px;
  border-radius: var(--radius-pill);
  margin-bottom: 12px;
}
.news-card h3 {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--color-text-dark);
  margin: 0 0 10px;
}
.news-card p {
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--color-text-body);
  margin: 0 0 16px;
  flex: 1;
}
.news-date { font-size: 0.82rem; color: var(--color-text-muted); }

/* ---------- Liên hệ ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(26px, 4vw, 48px);
  align-items: start;
}
.contact-channels { display: grid; gap: 14px; }
.contact-channel {
  display: flex;
  align-items: center;
  gap: 15px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  padding: 18px 20px;
  box-shadow: var(--shadow-subtle);
  transition: transform .25s ease, border-color .25s ease;
}
.contact-channel:hover { transform: translateX(5px); border-color: #bae6fd; }
.contact-channel .ch-icon {
  width: 46px;
  height: 46px;
  flex: none;
  border-radius: var(--radius-md);
  display: grid;
  place-items: center;
  font-size: 1.3rem;
  background: #e0f2fe;
}
.contact-channel b {
  display: block;
  font-family: var(--font-heading);
  font-size: 1rem;
  color: var(--color-text-dark);
}
.contact-channel span { font-size: 0.9rem; color: var(--color-text-muted); }

.contact-form-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-lg);
  padding: clamp(24px, 3vw, 34px);
  box-shadow: var(--shadow-card);
}
.contact-form-card h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-text-dark);
  margin: 0 0 6px;
}
.contact-form-card > p {
  font-size: 0.92rem;
  color: var(--color-text-muted);
  margin: 0 0 22px;
}
.form-field { margin-bottom: 15px; }
.form-field label {
  display: block;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--color-text-dark);
  margin-bottom: 6px;
}
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-sm);
  font: inherit;
  font-size: 0.95rem;
  color: var(--color-text-dark);
  background: #fff;
}
.form-field textarea { resize: vertical; min-height: 96px; line-height: 1.65; }
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: #0284c7;
  box-shadow: 0 0 0 3px rgba(2, 132, 199, .15);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-note { font-size: 0.82rem; color: var(--color-text-muted); text-align: center; margin: 12px 0 0; }

/* ---------- Dải kêu gọi cuối trang ---------- */
.cta-band {
  background: linear-gradient(135deg, #001a47 0%, #0266b3 100%);
  border: 1.5px solid rgba(245, 158, 11, .55);
  border-radius: var(--radius-lg);
  padding: clamp(30px, 4.5vw, 52px);
  text-align: center;
  margin: 0 0 60px;
}
.cta-band h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 800;
  color: #fff;
  margin: 0 0 14px;
  line-height: 1.25;
}
.cta-band p {
  font-size: 1rem;
  line-height: 1.75;
  color: rgba(226, 232, 240, .92);
  max-width: 620px;
  margin: 0 auto 26px;
}
.cta-band-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .split-block { grid-template-columns: 1fr; }
  .split-block:nth-child(even) .split-media { order: 0; }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .page-hero { padding: 46px 0 44px; }
  .form-row { grid-template-columns: 1fr; }
}

/* ---------- Thân bài viết (trang chi tiết tin) ---------- */
.post-body { max-width: 780px; margin: 0 auto; }
.post-meta { font-size: 0.86rem; color: var(--color-text-muted); margin: 0 0 18px; }
.post-cover {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  margin: 0 0 26px;
  display: block;
}
.post-body h2, .post-body h3 {
  font-family: var(--font-heading);
  color: var(--color-blue-title);
  margin: 30px 0 12px;
  line-height: 1.3;
}
.post-body h2 { font-size: 1.4rem; }
.post-body h3 { font-size: 1.15rem; }
.post-body p {
  font-size: 1rem;
  line-height: 1.85;
  color: var(--color-text-body);
  margin: 0 0 18px;
}
.post-body ul, .post-body ol { margin: 0 0 18px; padding-left: 22px; }
.post-body li { font-size: 1rem; line-height: 1.8; color: var(--color-text-body); margin-bottom: 8px; }
.post-body a { color: var(--color-blue-title); text-decoration: underline; }
.post-body img,
.post-body figure img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-subtle);
  display: block;
  margin: 22px auto;
}
.post-body figure { margin: 0 0 22px; }
.post-body figcaption {
  font-size: 0.86rem;
  color: var(--color-text-muted);
  text-align: center;
  margin-top: -12px;
}
.post-body blockquote {
  margin: 0 0 20px;
  padding: 14px 20px;
  border-left: 4px solid var(--color-gold-text);
  background: #f8fafc;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--color-text-body);
}
.post-body table { width: 100%; border-collapse: collapse; margin: 0 0 20px; }
.post-body th, .post-body td {
  border: 1px solid #e2e8f0;
  padding: 10px 12px;
  font-size: 0.95rem;
  text-align: left;
}
.post-body th { background: #f1f5f9; font-weight: 700; }

/* Thẻ tin là liên kết — bỏ gạch chân, giữ nguyên màu chữ */
a.news-card { text-decoration: none; color: inherit; }
a.news-card:hover h3 { color: var(--color-blue-title); }
