@import url("https://fonts.googleapis.com/css2?family=Be+Vietnam+Pro:wght@400;700&family=Playfair+Display:wght@700&display=swap&subset=vietnamese");
:root {
  /* App tokens (app/src/main/res/values/colors.xml) */
  --primary: #bb0000;
  --primary-dark: #7c0608;
  --primary-light: #ec1c23;
  --accent: #f3c42a;
  --bg: #f6f6f6;
  --surface: #ffffff;
  --tint: #fbeaea;
  --line: #d6d6d6;
  --text: #232323;
  --muted: #939393;
  /* Names the pages already use */
  --maroon: var(--primary);
  --maroon-dark: var(--primary-dark);
  --gold: var(--accent);
  --gold-light: #ffd95e;
  --green: #2e7d32;
  --black: #232323;
}
body {
  font-family: "Be Vietnam Pro", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
}
.navbar-brand {
  font-weight: 700;
  color: var(--gold) !important;
  letter-spacing: 0.5px;
}
.hero {
  background: linear-gradient(135deg, var(--maroon-dark), var(--maroon));
  color: #f5f0e1;
  padding: 70px 0;
  text-align: center;
}
.hero h1 {
  font-weight: 700;
  color: var(--gold-light);
  font-size: 2.5rem;
}
.hero p.lead {
  color: #eee;
  max-width: 700px;
  margin: 0 auto;
}
section {
  padding: 60px 0;
}
section.alt {
  background: var(--surface);
}
h2.section-title {
  color: var(--maroon);
  font-weight: 700;
  font-size: 1.85rem;
  margin-bottom: 30px;
  text-align: center;
  position: relative;
}
h2.section-title:after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  background: var(--gold);
  margin: 15px auto 0;
}
.card {
  border: none;
  border-top: 3px solid var(--gold);
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.08);
  height: 100%;
  transition: transform 0.2s ease;
}
.card:hover {
  transform: translateY(-5px);
}
.card-title {
  color: var(--maroon);
  font-weight: 600;
  font-size: 1.1rem;
}
.icon-circle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 15px;
}
.huong-table th, .huong-table td {
  vertical-align: middle;
}
.huong-table thead.thead-dark th {
  background-color: var(--black);
  border-color: var(--black);
}
footer {
  background: var(--black);
  color: #ccc;
  padding: 30px 0;
  text-align: center;
}
footer a {
  color: var(--gold-light);
}
.source-note {
  font-size: 0.85rem;
  color: #888;
}

@media (max-width: 576px) {
  .hero {
    padding: 45px 0;
  }
  .hero h1 {
    font-size: 1.6rem;
  }
  .hero p.lead {
    font-size: 0.95rem;
  }
  h2.section-title {
    font-size: 1.3rem;
    margin-bottom: 20px;
  }
  .card-title {
    font-size: 1rem;
  }
  .icon-circle {
    width: 44px;
    height: 44px;
    font-size: 1.2rem;
  }
  .huong-table thead {
    display: none;
  }
  .huong-table, .huong-table tbody, .huong-table tr, .huong-table td {
    display: block;
    width: 100%;
  }
  .huong-table {
    border: none;
  }
  .huong-table tr {
    margin-bottom: 15px;
    border: 1px solid var(--line);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  }
  .huong-table tr:last-child {
    margin-bottom: 0;
  }
  .huong-table td {
    border: none;
    border-bottom: 1px solid #eee;
    padding: 10px 15px;
    text-align: left;
  }
  .huong-table td:last-child {
    border-bottom: none;
  }
  .huong-table td::before {
    content: attr(data-label);
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    color: var(--maroon);
    margin-bottom: 3px;
  }
}

/* Legal pages (terms, privacy) */
.legal-page .hero{padding:50px 0}
.legal-page .hero h1{font-size:2.2rem}
.legal-page .hero p{margin:0;color:#eee}
.legal{padding:40px 0 60px}
.legal .updated{color:#888;font-size:.9rem;margin-bottom:24px}
.legal h2{color:var(--maroon);font-weight:700;font-size:1.3rem;margin:32px 0 12px;padding-bottom:8px;border-bottom:2px solid var(--gold)}
.legal ul{padding-left:1.2rem}
.legal a{color:var(--maroon);font-weight:600}
.legal .note{background:var(--tint);border-left:4px solid var(--gold);border-radius:6px;padding:14px 18px;margin:20px 0}
footer{font-size:.9rem}
@media (max-width:576px){.legal-page .hero{padding:34px 0}.legal-page .hero h1{font-size:1.5rem}.legal h2{font-size:1.15rem}}
@media (prefers-color-scheme:dark){
  .legal-page{background:#17130d;color:#e8e2d2}
  .legal-page .legal h2,.legal-page .legal a{color:var(--gold-light)}
  .legal-page .legal .note{background:#2a2216}
}


/* Embedded in the app: hide page header and footer */
.embed .hero, .embed footer, .embed .navbar, .embed .app-features { display: none !important; }
.embed .legal { padding-top: 20px; }

/* Title font */
h1, h2, h3, h4, h5, .navbar-brand, .card-title, h2.section-title {
  font-family: "Playfair Display", Georgia, "Times New Roman", serif;
  font-weight: 700;
}

/* Article pages (feng shui): same look on the web and inside the app */
.app-tip {
  background: var(--tint);
  border-left: 4px solid var(--gold);
  border-radius: 6px;
  padding: 14px 18px;
  margin: 24px 0 0;
}
.app-tip strong { color: var(--maroon); }
.related a {
  display: block;
  padding: 12px 16px;
  margin-bottom: 10px;
  background: #fff;
  border: 1px solid var(--line);
  border-left: 4px solid var(--gold);
  border-radius: 8px;
  color: var(--maroon);
  font-weight: 600;
  text-decoration: none;
}
.related a small { display: block; color: #777; font-weight: 400; }

/* Embedded in the app: the screen already shows the article title, so hide it and
   tighten the vertical spacing (60px sections are too airy on a phone). */
.embed .article-title { display: none !important; }
.embed .article-page section { padding: 20px 0; }
.embed .article-page section:first-of-type { padding-top: 16px; }
.embed .article-page section:last-of-type { padding-bottom: 28px; }
.embed .article-page h2.section-title { font-size: 1.35rem; margin-bottom: 18px; }
.embed .article-page .card { height: auto; }
.embed .article-page .table-responsive { margin-bottom: 0; }

/* Short data tables keep their table layout on phones instead of stacking into cards. */
@media (max-width: 576px) {
  .huong-table.compact { display: table; width: 100%; }
  .huong-table.compact thead { display: table-header-group; }
  .huong-table.compact tbody { display: table-row-group; width: auto; }
  .huong-table.compact tr { display: table-row; margin: 0; border: none; border-radius: 0; box-shadow: none; }
  .huong-table.compact th, .huong-table.compact td {
    display: table-cell; width: auto; padding: 8px 8px; font-size: 0.85rem;
    border: 1px solid #dee2e6; text-align: left;
  }
  .huong-table.compact td::before { display: none; }
  .huong-table.compact tr:last-child { margin-bottom: 0; }
}


/* Footer */
.site-footer { background: var(--primary-dark); color: #f3e3e3; padding: 44px 0 20px; text-align: left; font-size: .9rem; }
.site-footer a { color: #f3e3e3; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer h6 { color: #fff; font-weight: 700; margin-bottom: 12px; font-family: inherit; }
.footer-brand { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 700; font-size: 1.15rem; font-family: "Playfair Display", Georgia, serif; }
.footer-brand img { border-radius: 8px; }
.footer-slogan { margin: 10px 0 14px; max-width: 360px; }
.footer-socials { display: flex; gap: 10px; }
.footer-socials a { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: rgba(255, 255, 255, .14); color: #fff; }
.footer-socials a:hover { background: var(--accent); color: var(--black); text-decoration: none; }
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin-bottom: 2px; }
.footer-links li a { display: inline-block; padding: 8px 0; }
.footer-links .material-symbols-rounded { font-size: 18px; vertical-align: -4px; }
.footer-note { margin: 4px 0 0; opacity: .8; font-size: .82rem; }
.footer-copy { margin: 10px 0 0; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, .2); text-align: center; }
.footer-note { text-align: center; }

/* Floating buttons */
.material-symbols-rounded { font-family: "Material Symbols Rounded"; font-weight: normal; font-style: normal; line-height: 1; letter-spacing: normal; text-transform: none; white-space: nowrap; direction: ltr; font-variation-settings: "FILL" 1, "wght" 400, "opsz" 24; -webkit-font-feature-settings: "liga"; font-feature-settings: "liga"; }
.fab { position: fixed; right: 16px; z-index: 1040; display: flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 50%; border: 0; color: #fff; box-shadow: 0 6px 18px rgba(0, 0, 0, .3); cursor: pointer; text-decoration: none; }
.fab:hover { color: #fff; text-decoration: none; }
.fab-whatsapp { bottom: 16px; background: #25d366; }
.fab-top { bottom: 80px; background: var(--primary); opacity: 0; visibility: hidden; transition: opacity .2s; }
.fab-top .material-symbols-rounded { font-size: 30px; }
.fab-top.show { opacity: 1; visibility: visible; }
.embed .fab { display: none !important; }

/* Scroll reveal: site.js marks the blocks and adds .reveal-ready; without JS everything stays visible. */
@media (prefers-reduced-motion: no-preference) {
  .reveal-ready .reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s cubic-bezier(.2, .7, .2, 1); transition-delay: var(--d, 0ms); }
  .reveal-ready .reveal.is-visible { opacity: 1; transform: none; }
  .reveal-ready .card.reveal.is-visible:hover { transform: translateY(-5px); transition-delay: 0ms; }
}
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

@media (max-width: 576px) { .site-footer { padding-bottom: 88px; } }
