/* ==========================================================
   PAGE.CSS — Dùng riêng cho các trang tĩnh
   (Giới thiệu, Chính sách bảo hành, Điều khoản, FAQ…)
   Không sidebar — chỉ hiển thị nội dung tập trung
   Palette: --brand #055360 | --accent #FF5E14
   ========================================================== */

/* ==========================================================
   [1] BREADCRUMB
   ========================================================== */
.page-breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .5rem;
  font-size: .85rem;
  color: rgba(255, 255, 255, .7);
}
.page-breadcrumb a {
  color: rgba(255, 255, 255, .85);
  transition: color .2s ease;
}
.page-breadcrumb a:hover { color: #fff; }
.page-breadcrumb svg { flex-shrink: 0; opacity: .6; }
.page-breadcrumb span.current {
  color: #fff;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 320px;
}

/* ==========================================================
   [2] PAGE HERO (banner mỏng phía trên)
   ========================================================== */
.page-hero {
  position: relative;
  overflow: hidden;
  padding: 2.5rem 0;
  background:
    radial-gradient(900px 400px at 85% -20%, rgba(255, 94, 20, .20), transparent 60%),
    linear-gradient(135deg, #055360 0%, #044650 55%, #022A31 100%);
}
.page-hero::after {
  content: "";
  position: absolute;
  right: -80px; bottom: -120px;
  width: 340px; height: 340px;
  border-radius: 9999px;
  background: rgba(255, 94, 20, .12);
  filter: blur(50px);
  pointer-events: none;
}
@media (min-width: 768px) {
  .page-hero { padding: 3.25rem 0; }
}

/* ==========================================================
   [3] PAGE WRAPPER (khu vực nội dung chính)
   ========================================================== */
.page-wrapper {
  padding: 2.5rem 0 4rem;
  background: #f8fafb;
}
@media (min-width: 768px) {
  .page-wrapper { padding: 3.5rem 0 5rem; }
}

/* ==========================================================
   [4] ARTICLE HEADER (tiêu đề trang)
   ========================================================== */
.article-header {
  text-align: center;
  margin-bottom: 2rem;
}
@media (min-width: 768px) {
  .article-header { margin-bottom: 3rem; }
}
.article-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent, #FF5E14);
  margin-bottom: .85rem;
}
.article-eyebrow::before,
.article-eyebrow::after {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--accent, #FF5E14);
  display: inline-block;
  border-radius: 2px;
}
.article-title {
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--brand-deep, #022A31);
  line-height: 1.2;
  letter-spacing: -.02em;
}
@media (min-width: 768px) {
  .article-title { font-size: 2.5rem; }
}
@media (min-width: 1024px) {
  .article-title { font-size: 2.75rem; }
}
.article-subtitle {
  margin-top: 1rem;
  font-size: .98rem;
  color: #64748b;
  line-height: 1.65;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

/* ==========================================================
   [5] ARTICLE CARD (khung nội dung)
   ========================================================== */
.article-card {
  background: #fff;
  border-radius: 20px;
  padding: 1.75rem 1.35rem;
  border: 1px solid #e2e8f0;
  box-shadow: 0 18px 40px -28px rgba(5, 83, 96, .35);
}
@media (min-width: 640px) {
  .article-card { padding: 2.25rem 2rem; }
}
@media (min-width: 1024px) {
  .article-card { padding: 3rem 3.25rem; }
}

/* ==========================================================
   [6] ARTICLE CONTENT (typography nội dung)
   ========================================================== */
.article-content {
  color: #334155;
  font-size: 1rem;
  line-height: 1.78;
  word-wrap: break-word;
}
@media (min-width: 768px) {
  .article-content { font-size: 1.05rem; }
}

.article-content > * + * { margin-top: 1.15rem; }

/* Tiêu đề trong bài */
.article-content h1,
.article-content h2,
.article-content h3,
.article-content h4,
.article-content h5,
.article-content h6 {
  color: var(--brand-deep, #022A31);
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -.01em;
  margin-top: 2rem;
  margin-bottom: .75rem;
}
.article-content h1 { font-size: 1.65rem; }
.article-content h2 {
  font-size: 1.45rem;
  padding-left: .85rem;
  border-left: 4px solid var(--accent, #FF5E14);
}
.article-content h3 { font-size: 1.2rem; }
.article-content h4 { font-size: 1.05rem; }
.article-content h5 { font-size: .98rem; }
.article-content h6 { font-size: .92rem; }

@media (max-width: 640px) {
  .article-content h1 { font-size: 1.35rem; }
  .article-content h2 { font-size: 1.2rem; }
  .article-content h3 { font-size: 1.08rem; }
}

/* Đoạn văn */
.article-content p {
  margin-bottom: 1rem;
}

/* Link */
.article-content a {
  color: var(--brand, #055360);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color .2s ease;
}
.article-content a:hover { color: var(--accent, #FF5E14); }

/* Đậm / nghiêng */
.article-content strong {
  color: var(--brand-deep, #022A31);
  font-weight: 700;
}
.article-content em { font-style: italic; }

/* Danh sách */
.article-content ul,
.article-content ol {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}
.article-content ul { list-style: disc; }
.article-content ol { list-style: decimal; }
.article-content li { margin-bottom: .45rem; }
.article-content li::marker { color: var(--accent, #FF5E14); }
.article-content ul ul,
.article-content ol ol,
.article-content ul ol,
.article-content ol ul {
  margin-top: .35rem;
  margin-bottom: .35rem;
}

/* Trích dẫn */
.article-content blockquote {
  position: relative;
  background: #E9F4F5;
  border-left: 4px solid var(--brand, #055360);
  padding: 1.1rem 1.25rem 1.1rem 1.6rem;
  border-radius: 0 12px 12px 0;
  color: var(--brand-deep, #022A31);
  font-style: italic;
  margin: 1.5rem 0;
}
.article-content blockquote::before {
  content: "\201C";
  position: absolute;
  top: -.5rem; left: .5rem;
  font-size: 3rem;
  color: var(--brand, #055360);
  opacity: .2;
  font-family: Georgia, serif;
  line-height: 1;
}
.article-content blockquote p:last-child { margin-bottom: 0; }

/* Đường kẻ */
.article-content hr {
  border: none;
  height: 1px;
  background: #e2e8f0;
  margin: 2rem 0;
}

/* Ảnh */
.article-content img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  margin: 1.25rem 0;
  display: block;
}
.article-content figure {
  margin: 1.75rem 0;
}
.article-content figure img { margin: 0; }
.article-content figcaption {
  text-align: center;
  font-size: .82rem;
  color: #94a3b8;
  margin-top: .5rem;
  font-style: italic;
}

/* Bảng */
.article-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: .92rem;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 8px -4px rgba(5, 83, 96, .15);
}
.article-content table th,
.article-content table td {
  padding: .7rem 1rem;
  text-align: left;
  border-bottom: 1px solid #e2e8f0;
  vertical-align: top;
}
.article-content table th {
  background: var(--brand, #055360);
  color: #fff;
  font-weight: 700;
  white-space: nowrap;
}
.article-content table tr:nth-child(even) td { background: #f8fafb; }
.article-content table tr:last-child td { border-bottom: none; }

/* Responsive bảng */
@media (max-width: 640px) {
  .article-content table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }
  .article-content table th,
  .article-content table td { padding: .55rem .75rem; font-size: .85rem; }
}

/* Code inline / block */
.article-content code {
  background: #f1f5f9;
  color: var(--brand, #055360);
  padding: .15rem .45rem;
  border-radius: 6px;
  font-size: .88em;
  font-family: 'Courier New', monospace;
}
.article-content pre {
  background: #022A31;
  color: #E9F4F5;
  padding: 1.1rem 1.25rem;
  border-radius: 12px;
  overflow-x: auto;
  font-size: .88rem;
  line-height: 1.6;
  margin: 1.5rem 0;
}
.article-content pre code {
  background: transparent;
  color: inherit;
  padding: 0;
}

/* ==========================================================
   [7] FOOTER TRONG BÀI (CTA nhỏ gọn, tùy chọn)
   ========================================================== */
.article-footer {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e2e8f0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.article-footer__note {
  font-size: .85rem;
  color: #94a3b8;
  font-style: italic;
}
.article-footer__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}
.article-footer__btn {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .65rem 1.2rem;
  border-radius: 9999px;
  font-size: .85rem;
  font-weight: 700;
  transition: all .2s ease;
}
.article-footer__btn svg { width: 16px; height: 16px; }
.article-footer__btn--primary {
  background: var(--accent, #FF5E14);
  color: #fff;
  box-shadow: 0 10px 20px -10px rgba(255, 94, 20, .9);
}
.article-footer__btn--primary:hover {
  background: #E94C05;
  transform: translateY(-2px);
}
.article-footer__btn--ghost {
  background: #fff;
  color: var(--brand, #055360);
  border: 2px solid var(--brand, #055360);
}
.article-footer__btn--ghost:hover {
  background: var(--brand, #055360);
  color: #fff;
}

/* ==========================================================
   [8] REVEAL ANIMATION (dùng chung home.html)
   ========================================================== */
html.js .page-wrapper .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s ease, transform .7s ease;
}
html.js .page-wrapper .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================
   [9] RESPONSIVE TINH CHỈNH
   ========================================================== */
@media (max-width: 640px) {
  .page-breadcrumb span.current { max-width: 180px; }
  .article-card { padding: 1.5rem 1.15rem; }
  .article-footer { flex-direction: column; align-items: stretch; }
  .article-footer__actions { justify-content: center; }
}

/* ==========================================================
   [10] REDUCED MOTION
   ========================================================== */
@media (prefers-reduced-motion: reduce) {
  html.js .page-wrapper .reveal {
    opacity: 1;
    transform: none;
  }
}