/* ============================================================
   MODULE CSS 02 · layout.css — Header/dieu huong, hero, thong ke, cac khoi section, giao trinh, gia sach, video, giong noi, gioi thieu, cong dong, khoa hoc, footer.
   ============================================================ */
/* ---------- Header: luôn sáng, gọn, dễ nhìn ---------- */
header.site {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 94%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-in {
  max-width: var(--wrap-w); margin: 0 auto; padding: 0 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 64px;
}
.brand {
  font-weight: 800; font-size: 1.05rem; letter-spacing: 0.02em;
  color: var(--ink); text-decoration: none; white-space: nowrap; line-height: 1.25;
}
.brand small { display: block; font-weight: 600; font-size: 0.6rem; letter-spacing: 0.28em; color: var(--accent); }
nav.nav { display: flex; align-items: center; gap: 2px; flex-wrap: wrap; justify-content: flex-end; }
nav.nav a {
  color: var(--ink-soft); text-decoration: none; font-size: 0.88rem; font-weight: 500;
  padding: 8px 11px; border-radius: var(--radius-pill);
  cursor: pointer; touch-action: manipulation; -webkit-tap-highlight-color: transparent;
}
nav.nav a:hover { color: var(--accent); background: var(--accent-soft); }
nav.nav a.active { color: var(--accent); background: var(--accent-soft); font-weight: 700; }
nav.nav a.cta {
  background: var(--accent); color: #ffffff; margin-left: 8px; padding: 9px 16px; border-radius: var(--radius-pill); font-weight: 600;
}
nav.nav a.cta:hover { background: var(--accent); color: #ffffff; }
.burger {
  display: none; background: none; border: 0; cursor: pointer; padding: 10px;
  min-width: 44px; min-height: 44px; touch-action: manipulation;
}
.burger span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px auto; border-radius: 2px; }
@media (max-width: 960px) {
  .burger { display: block; }
  nav.nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 2px; flex-wrap: nowrap;
    background: var(--surface); border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow); padding: 10px 16px 16px;
    display: none;
  }
  nav.nav.open { display: flex; }
  nav.nav a { padding: 12px 12px; }
  nav.nav a.cta { text-align: center; margin: 8px 0 0; }
}

/* ---------- Hero: nền sáng, ảnh bo tròn, chữ gọn ---------- */
.hero {
  background: var(--bg-soft);
  color: var(--ink);
  padding: 104px 20px 56px;
}
.hero-in {
  max-width: var(--wrap-w); margin: 0 auto;
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 44px; align-items: center;
}
.hero-copy { padding: 12px 0; }
.hero .rule { width: 48px; height: 4px; border-radius: 4px; background: var(--accent); margin: 0 0 20px; }
.hero h1 {
  /* Tiêu đề luôn nằm gọn trên MỘT dòng ở mọi màn hình: cấm xuống hàng
     (nowrap) và cỡ chữ co theo chiều rộng màn hình (vw) để không tràn
     hay bị cắt ở màn hình hẹp. Màu chữ đặt cố định bằng mã hex cho cả
     tiêu đề lẫn chữ nhấn — không dùng biến màu, không phụ thuộc chế độ
     sáng/tối của trình duyệt. */
  font-size: clamp(1.95rem, 6.8vw, 3.7rem); line-height: 1.12; font-weight: 800;
  margin: 0 0 12px; letter-spacing: -0.01em;
  white-space: nowrap; color: #26351c;
}
.hero h1 em { font-style: normal; color: #26351c; }
.hero .role {
  font-size: clamp(0.85rem, 1.8vw, 1rem); letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent); margin: 0 0 22px; font-weight: 700;
}
.hero .lede { font-size: clamp(1.02rem, 2vw, 1.18rem); line-height: 1.65; max-width: 34em; margin: 0 0 12px; color: var(--ink-soft); }
.hero .cred { color: var(--muted); font-size: 0.95rem; margin: 0 0 28px; }
.hero .cred strong { color: var(--ink); font-weight: 700; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px; border-radius: var(--radius-pill); text-decoration: none;
  font-weight: 600; font-size: 0.94rem; min-height: 46px;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.btn-gold { background: var(--accent); color: #ffffff; }
.btn-gold:hover { background: var(--accent); }
.btn-mint { background: var(--accent); color: #ffffff; }
.btn-mint:hover { background: var(--accent); }
.btn-ghost { background: var(--surface); border: 1px solid var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-dark { background: var(--ink); color: var(--bg); }
.btn-dark:hover { background: var(--accent); color: #ffffff; }
.hero-photo img {
  width: 100%; max-height: 520px; object-fit: cover; object-position: top center;
  border-radius: var(--radius-l); box-shadow: var(--shadow);
}
.hero-photo figcaption { padding: 10px 4px 0; font-size: 0.82rem; color: var(--muted); text-align: center; }
@media (max-width: 860px) {
  .hero { padding-top: 92px; }
  .hero-in { grid-template-columns: 1fr; gap: 24px; }
  .hero-photo img { max-height: 420px; }
}

/* ---------- Stats: thẻ trắng nhỏ, số xanh lá ---------- */
.stats { background: var(--bg); }
.stats-in {
  max-width: var(--wrap-w); margin: 0 auto; padding: 28px 20px 4px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
}
.stat {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-m);
  padding: 18px 20px; text-align: center;
}
.stat b { display: block; font-size: clamp(1.5rem, 3vw, 2rem); color: var(--accent); font-weight: 800; line-height: 1.15; }
.stat span { color: var(--muted); font-size: 0.86rem; }
.stats-note { max-width: var(--wrap-w); margin: 0 auto; padding: 10px 20px 0; text-align: center; color: var(--muted); font-size: 0.82rem; }
@media (max-width: 700px) { .stats-in { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Sections ---------- */
section.block { padding: var(--space-8) 20px; }
.wrap { max-width: var(--wrap-w); margin: 0 auto; }
.sec-head { max-width: 44em; margin-bottom: 32px; }
.sec-head h2 { font-size: var(--text-h2); line-height: 1.2; margin: 0 0 10px; font-weight: 800; }
.sec-head h2 em { color: var(--accent); font-style: normal; }
.sec-head p { color: var(--muted); margin: 0; font-size: 1rem; }
.alt { background: var(--bg-soft); }

/* Method */
.method { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; }
.method figure { margin: 0; }
.method figure img { border-radius: var(--radius-m); box-shadow: var(--shadow); width: 100%; }
.method figure figcaption { font-size: 0.82rem; color: var(--muted); margin-top: 10px; text-align: center; }
blockquote.big {
  margin: 0 0 18px; padding: 18px 20px;
  background: var(--surface); border-radius: var(--radius-m);
  font-size: clamp(1.08rem, 2.2vw, 1.3rem); font-weight: 600; line-height: 1.55; color: var(--ink);
}
.method p { color: var(--ink-soft); margin: 0 0 14px; }
.method .sign { font-weight: 600; font-size: 1rem; color: var(--accent); }
@media (max-width: 860px) { .method { grid-template-columns: 1fr; gap: 26px; } }

/* Filters + books */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.chip {
  border: 1px solid var(--line); background: var(--surface); color: var(--ink-soft);
  border-radius: var(--radius-pill); padding: 8px 16px; font: inherit; font-size: 0.88rem; font-weight: 500;
  cursor: pointer; min-height: 38px;
}
.chip:hover { border-color: var(--accent); color: var(--accent); }
.chip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #ffffff; font-weight: 600; }
.books { display: grid; grid-template-columns: repeat(auto-fill, minmax(205px, 1fr)); gap: 18px; }
.book .cover {
  border-radius: var(--radius-m); padding: 20px 18px 16px; min-height: 248px;
  display: flex; flex-direction: column; color: #f4f9ea; position: relative;
  box-shadow: var(--shadow); overflow: hidden;
}
/* Bìa sách: phẳng, đúng một màu nhấn duy nhất — không gradient, không nhiều sắc xanh */
.c1, .c2, .c3, .c4 { background: var(--accent); }
.cover .series { font-size: 0.62rem; letter-spacing: 0.22em; text-transform: uppercase; color: rgba(255, 255, 255, 0.88); font-weight: 700; }
.cover .vol { font-size: 2.1rem; font-weight: 800; line-height: 1; margin: 12px 0 4px; color: #ffffff; }
.cover .rhythm { font-size: 0.8rem; color: rgba(255, 255, 255, 0.88); }
.cover .style { font-size: 1.22rem; font-weight: 700; line-height: 1.3; margin-top: auto; color: #ffffff; }
.cover .status {
  margin-top: 12px; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--ink); background: #eef5df; align-self: flex-start; padding: 4px 10px; border-radius: var(--radius-pill);
}
.cover .status.done { background: rgba(255,255,255,0.24); color: #ffffff; }
.book .meta { padding: 10px 4px 0; font-size: 0.84rem; color: var(--muted); margin: 0; }
.book[hidden] { display: none; }
.featured-book {
  display: grid; grid-template-columns: 280px 1fr; gap: 36px; align-items: center;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-l);
  padding: 30px; margin-bottom: 40px; box-shadow: var(--shadow);
}
.featured-book .cover { min-height: 350px; }
.featured-book h3 { font-size: var(--text-h3); font-weight: 800; margin: 0 0 10px; line-height: 1.3; }
.featured-book p { color: var(--ink-soft); margin: 0 0 14px; }
.price-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0 20px; }
.price { border: 1px solid var(--line); border-radius: var(--radius-s); padding: 10px 14px; background: var(--bg); font-size: 0.9rem; color: var(--ink-soft); }
.price b { display: block; font-size: 1.02rem; color: var(--accent); }

/* Giá sách & cách mua */
.buy-guide { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-l); padding: 30px; margin-bottom: 40px; box-shadow: var(--shadow); }
.buy-guide h3 { font-size: var(--text-h3); font-weight: 800; margin: 0 0 8px; line-height: 1.3; }
.buy-guide .bg-intro { color: var(--ink-soft); margin: 0 0 20px; max-width: 46em; }
.bg-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.bg-card { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-m); padding: 20px; }
.bg-card h4 { margin: 0 0 8px; font-size: 1.05rem; font-weight: 700; }
.bg-card h4 b { color: var(--accent); white-space: nowrap; }
.bg-card p, .bg-card li { color: var(--ink-soft); font-size: 0.95rem; }
.bg-card p { margin: 0; }
.bg-card ol { margin: 10px 0 0; padding-left: 20px; display: grid; gap: 6px; }
.buy-guide .bg-note { margin: 18px 0 0; color: var(--ink-soft); background: var(--accent-soft); border-radius: var(--radius-m); padding: 14px 18px; font-size: 0.95rem; }
.buy-guide .bg-note a { font-weight: 600; }
.paper-note { margin: 14px 0 0; background: var(--accent-soft); border: 1px solid var(--line); border-radius: var(--radius-m); padding: 12px 16px; color: var(--ink-soft); font-size: 0.93rem; }
.paper-note[hidden] { display: none; }
.paper-note a { font-weight: 600; }
@media (max-width: 760px) { .bg-grid { grid-template-columns: 1fr; } .buy-guide { padding: 22px; } }
@media (max-width: 760px) {
  .featured-book { grid-template-columns: 1fr; padding: 22px; }
  .featured-book .cover { min-height: 280px; max-width: 260px; }
}

/* Videos */
.videos { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.video-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-m); overflow: hidden; box-shadow: var(--shadow); }
.facade { position: relative; aspect-ratio: 16 / 9; background: #000; cursor: pointer; border: 0; padding: 0; width: 100%; display: block; }
.facade img { width: 100%; height: 100%; object-fit: cover; opacity: 0.94; }
.facade .play { position: absolute; inset: 0; display: grid; place-items: center; }
.facade .play i {
  width: 60px; height: 60px; border-radius: 50%; background: var(--accent);
  display: grid; place-items: center; box-shadow: 0 8px 24px rgba(0,0,0,0.35);
}
.facade .play svg { width: 24px; height: 24px; fill: #ffffff; margin-left: 4px; }
.facade iframe { width: 100%; height: 100%; border: 0; display: block; }
.video-card .vmeta { padding: 16px 18px 18px; }
.video-card h3 { margin: 0 0 5px; font-size: var(--text-card); font-weight: 700; }
.video-card p { margin: 0; color: var(--muted); font-size: 0.9rem; }
.link-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 20px; }
.link-card {
  display: flex; gap: 14px; align-items: flex-start; text-decoration: none;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-m); padding: 20px;
  color: var(--ink); transition: border-color 0.2s ease;
}
.link-card:hover { border-color: var(--accent); }
.link-card .ic { flex: 0 0 44px; width: 44px; height: 44px; border-radius: var(--radius-m); background: var(--accent-soft); display: grid; place-items: center; }
.link-card .ic svg { width: 21px; height: 21px; fill: var(--accent); }
.link-card h3 { margin: 0 0 4px; font-size: 0.98rem; font-weight: 700; }
.link-card p { margin: 0; color: var(--muted); font-size: 0.88rem; }
@media (max-width: 860px) { .videos, .link-cards { grid-template-columns: 1fr; } }

/* Voices */
.voices { display: grid; grid-template-columns: 1.2fr 1fr 1fr 1fr; gap: 16px; }
.voice { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-m); padding: 22px; display: flex; flex-direction: column; gap: 12px; }
.voice.expert { background: var(--accent-soft); border-color: var(--line); }
.voice blockquote { margin: 0; font-size: 0.96rem; line-height: 1.6; color: var(--ink-soft); }
.voice.expert blockquote { color: var(--ink); font-weight: 600; font-size: 1.02rem; }
.voice .who { margin-top: auto; font-size: 0.84rem; }
.voice .who b { display: block; font-weight: 700; }
.voice .who span { color: var(--muted); }
@media (max-width: 1000px) { .voices { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .voices { grid-template-columns: 1fr; } }

/* About */
.about { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 44px; align-items: start; }
.about figure { margin: 0; position: sticky; top: 88px; }
.about figure img { border-radius: var(--radius-m); box-shadow: var(--shadow); width: 100%; max-height: 540px; object-fit: cover; object-position: top; }
.about figure figcaption { font-size: 0.82rem; color: var(--muted); margin-top: 10px; text-align: center; }
.about p { color: var(--ink-soft); margin: 0 0 14px; }
.about p strong { color: var(--ink); font-weight: 700; }
.motto {
  background: var(--accent-soft); border-radius: var(--radius-m); padding: 16px 20px; margin: 22px 0;
  font-weight: 700; font-size: 1.15rem; color: var(--accent); text-align: center;
}
@media (max-width: 860px) { .about { grid-template-columns: 1fr; gap: 26px; } .about figure { position: static; } }

/* Community: thẻ xanh nhạt thay cho khối xanh đậm */
.community {
  background: var(--accent-soft); border: 1px solid var(--line);
  border-radius: var(--radius-l); padding: clamp(26px, 4vw, 44px);
  display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 32px; align-items: center;
}
.community h2 { font-size: var(--text-h2); font-weight: 800; margin: 0 0 10px; line-height: 1.25; }
.community p { color: var(--ink-soft); margin: 0 0 22px; max-width: 36em; }
.comm-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.comm-stat { background: var(--surface); border-radius: var(--radius-m); padding: 16px; text-align: center; }
.comm-stat b { display: block; font-size: 1.55rem; font-weight: 800; color: var(--accent); line-height: 1.15; }
.comm-stat span { font-size: 0.84rem; color: var(--muted); }
@media (max-width: 860px) { .community { grid-template-columns: 1fr; } }

/* Nhóm Zalo chờ lịch học — thẻ trắng gọn ngay dưới khối cộng đồng Skool */
.zalo-wait {
  margin-top: 16px; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-m); padding: 20px 24px; box-shadow: var(--shadow);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 20px;
}
.zalo-wait h3 { font-size: var(--text-card); font-weight: 700; margin: 0 0 4px; }
.zalo-wait p { color: var(--ink-soft); margin: 0; }
@media (max-width: 600px) { .zalo-wait .btn { width: 100%; justify-content: center; } }

/* Khóa học từ fanpage Facebook */
.fb-course { margin-top: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-l); padding: clamp(24px, 4vw, 40px); box-shadow: var(--shadow); }
.fb-course h2 { font-size: var(--text-h2); font-weight: 800; margin: 0 0 10px; line-height: 1.25; }
.fb-course h2 em { color: var(--accent); font-style: normal; }
.fb-course > p { color: var(--ink-soft); margin: 0 0 18px; max-width: 46em; }
.outcomes { list-style: none; margin: 0 0 20px; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 24px; }
.outcomes li { position: relative; padding-left: 24px; color: var(--ink-soft); font-size: 0.96rem; }
.outcomes li::before { content: ""; position: absolute; left: 2px; top: 0.52em; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.outcomes li b { color: var(--ink); font-weight: 700; }
@media (max-width: 700px) { .outcomes { grid-template-columns: 1fr; } }
.fb-note { font-size: 0.85rem; color: var(--muted); margin-top: 14px; }
.fb-note a { font-weight: 600; }

/* Footer: nền xanh lá nhạt cùng tông trang, chữ đậm rõ — không còn khối xanh đậm */
footer.site { background: var(--footer-bg); color: var(--footer-muted); padding: 52px 20px 30px; margin-top: 64px; border-top: 1px solid var(--line); }
.foot-in { max-width: var(--wrap-w); margin: 0 auto; display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 36px; }
footer.site h3 { color: var(--footer-ink); letter-spacing: 0.06em; margin: 0 0 12px; font-size: 1rem; font-weight: 800; }
footer.site p, footer.site li { font-size: 0.92rem; }
footer.site ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
footer.site a { color: var(--footer-muted); text-decoration: none; padding: 3px 0; display: inline-block; }
footer.site a:hover { color: var(--accent); text-decoration: underline; }
.foot-bottom {
  max-width: var(--wrap-w); margin: 36px auto 0; padding-top: 20px;
  border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; font-size: 0.82rem;
}
@media (max-width: 860px) { .foot-in { grid-template-columns: 1fr; gap: 26px; } }
