/* ============================================================
   Pengu — tiengtrungapp.com
   Claymorphism: bo tròn chunky, đổ bóng mềm, màu lấy từ linh vật
   ============================================================ */

:root {
  --ink: #22344c; /* thân Pengu — chữ chính */
  --ink-deep: #1b2a3e; /* cánh Pengu — footer, heading đậm */
  --muted: #55677c; /* chữ phụ, đạt 4.5:1 trên nền trắng */
  --ice: #eef6fc; /* nền băng */
  --white: #ffffff;
  --line: #dbe7f0; /* viền card */
  --orange: #ff9f1c; /* mỏ Pengu — CTA chính */
  --orange-deep: #d97b06; /* bóng dưới nút cam */
  --red: #e5484d; /* khăn quàng — chữ Hán, điểm nhấn */
  --green: #0a6b37; /* badge "dùng được ngay" */
  --green-bg: #ddf3e4;
  --amber: #8a5b00; /* badge "sắp ra mắt" */
  --amber-bg: #fdeeC8;
  --shadow-clay: 0 6px 0 rgba(34, 52, 76, 0.06), 0 24px 48px -24px rgba(34, 52, 76, 0.25);
  --radius: 24px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Be Vietnam Pro', system-ui, -apple-system, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--ice);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

h1,
h2,
h3 {
  font-family: 'Baloo 2', 'Be Vietnam Pro', sans-serif;
  line-height: 1.2;
  color: var(--ink-deep);
  margin: 0 0 0.5em;
}

h1 {
  font-size: clamp(2.1rem, 6vw, 3.3rem);
  font-weight: 800;
}

h2 {
  font-size: clamp(1.55rem, 4vw, 2.2rem);
  font-weight: 700;
}

h3 {
  font-size: 1.2rem;
  font-weight: 700;
}

p {
  margin: 0 0 1em;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
  border-radius: 6px;
}

.han {
  font-family: 'Noto Sans SC', 'PingFang SC', sans-serif;
  color: var(--red);
  font-weight: 700;
}

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(238, 246, 252, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 2px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Baloo 2', sans-serif;
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--ink-deep);
  text-decoration: none;
}

.brand img {
  width: 40px;
  height: 40px;
}

.nav-links {
  display: none;
  gap: 4px;
  margin-left: auto;
}

.nav-links a {
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--muted);
  padding: 10px 14px;
  border-radius: 999px;
  transition: color 0.2s, background-color 0.2s;
}

.nav-links a:hover,
.nav-links a[aria-current='page'] {
  color: var(--ink-deep);
  background: rgba(255, 255, 255, 0.9);
}

.nav-cta {
  margin-left: auto;
}

@media (min-width: 760px) {
  .nav-links {
    display: flex;
  }

  .nav-cta {
    margin-left: 8px;
  }
}

/* ---------- Nút clay ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 10px 26px;
  border-radius: 999px;
  border: 0;
  font-family: 'Baloo 2', 'Be Vietnam Pro', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease-out, box-shadow 0.15s ease-out, background-color 0.2s;
}

.btn-primary {
  background: var(--orange);
  color: var(--ink-deep);
  box-shadow: 0 5px 0 var(--orange-deep);
}

.btn-primary:hover {
  background: #ffab3d;
}

.btn-primary:active {
  transform: translateY(3px);
  box-shadow: 0 2px 0 var(--orange-deep);
}

.btn-secondary {
  background: var(--white);
  color: var(--ink-deep);
  border: 2px solid var(--line);
  box-shadow: 0 5px 0 #dce7f0;
}

.btn-secondary:hover {
  border-color: #b9cedd;
}

.btn-secondary:active {
  transform: translateY(3px);
  box-shadow: 0 2px 0 #dce7f0;
}

.btn-sm {
  min-height: 44px;
  padding: 8px 20px;
  font-size: 0.95rem;
}

/* ---------- Hero ---------- */

.hero {
  padding: 48px 0 40px;
}

.hero-grid {
  display: grid;
  gap: 32px;
  align-items: center;
}

@media (min-width: 820px) {
  .hero-grid {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 48px;
  }

  .hero {
    padding: 72px 0 64px;
  }
}

.hero-copy .lead {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 34em;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 24px;
}

.hero-note {
  margin-top: 14px;
  font-size: 0.9rem;
  color: var(--muted);
}

.hero-art {
  position: relative;
  max-width: 380px;
  margin: 0 auto;
  padding-bottom: 24px;
}

.hero-art > img {
  width: min(72vw, 340px);
  margin: 0 auto;
  animation: bob 5s ease-in-out infinite;
}

/* thẻ từ vựng nổi cạnh linh vật */
.float-card {
  position: absolute;
  right: -6px;
  bottom: 0;
  background: var(--white);
  border: 2px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow-clay);
  padding: 12px 18px;
  text-align: center;
  line-height: 1.35;
  animation: bob 5s ease-in-out 0.6s infinite;
}

.float-card .han {
  font-size: 1.5rem;
}

.float-card .pinyin {
  font-size: 0.85rem;
  color: var(--muted);
}

.float-card .viet {
  font-weight: 700;
  font-size: 0.95rem;
}

@keyframes bob {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero-art > img,
  .float-card {
    animation: none;
  }
}

/* ---------- Badge ---------- */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.01em;
}

.badge-live {
  background: var(--green-bg);
  color: var(--green);
}

.badge-soon {
  background: var(--amber-bg);
  color: var(--amber);
}

.badge-free {
  background: #fdecec;
  color: #ab1f24;
}

.badge svg {
  width: 14px;
  height: 14px;
}

/* ---------- Section ---------- */

.section {
  padding: 44px 0;
}

.section-head {
  max-width: 620px;
  margin-bottom: 32px;
}

.section-head p {
  color: var(--muted);
}

/* section-head có linh vật đứng cạnh */
.section-head.has-mascot {
  display: flex;
  align-items: center;
  gap: 20px;
  max-width: 720px;
}

.section-head.has-mascot p {
  margin-bottom: 0;
}

.head-mascot {
  width: 92px;
  height: 92px;
  flex-shrink: 0;
}

@media (max-width: 480px) {
  .head-mascot {
    width: 72px;
    height: 72px;
  }
}

@media (min-width: 820px) {
  .section {
    padding: 60px 0;
  }
}

/* ---------- Card clay ---------- */

.card {
  background: var(--white);
  border: 2px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-clay);
  padding: 26px;
}

/* lưới 4 app */
.apps-grid {
  display: grid;
  gap: 20px;
}

@media (min-width: 700px) {
  .apps-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.app-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform 0.2s ease-out, box-shadow 0.2s ease-out;
}

.app-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 0 rgba(34, 52, 76, 0.06), 0 32px 56px -24px rgba(34, 52, 76, 0.3);
}

.app-card-head {
  display: flex;
  align-items: center;
  gap: 14px;
}

.app-card-head img {
  width: 64px;
  height: 64px;
  flex-shrink: 0;
}

.app-card p {
  color: var(--muted);
  margin: 0;
  flex-grow: 1;
}

.app-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 6px;
}

.link-more {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 44px;
  padding: 8px 12px;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--ink-deep);
  text-decoration: none;
  border-radius: 10px;
}

.link-more:hover {
  color: var(--orange-deep);
}

/* ---------- Feature ---------- */

.features-grid {
  display: grid;
  gap: 20px;
}

@media (min-width: 700px) {
  .features-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1000px) {
  .features-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.feature {
  padding: 22px;
}

.feature .icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--ice);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.feature .icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--ink-deep);
}

.feature h3 {
  font-size: 1.05rem;
  margin-bottom: 6px;
}

.feature p {
  color: var(--muted);
  font-size: 0.95rem;
  margin: 0;
}

/* ---------- Checklist (trang app) ---------- */

.checklist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

@media (min-width: 700px) {
  .checklist.cols-2 {
    grid-template-columns: 1fr 1fr;
  }
}

.checklist li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: var(--white);
  border: 2px solid var(--line);
  border-radius: 16px;
  padding: 14px 16px;
}

.checklist .tick {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: var(--green-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}

.checklist .tick svg {
  width: 14px;
  height: 14px;
  stroke: var(--green);
}

.checklist strong {
  display: block;
}

.checklist span.desc {
  color: var(--muted);
  font-size: 0.93rem;
}

/* ---------- Lộ trình / các bước ---------- */

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 16px;
  counter-reset: step;
}

@media (min-width: 820px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
  }

  .steps.steps-4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

.steps li {
  counter-increment: step;
  background: var(--white);
  border: 2px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-clay);
  padding: 22px;
}

.steps li::before {
  content: counter(step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: var(--orange);
  color: var(--ink-deep);
  font-family: 'Baloo 2', sans-serif;
  font-weight: 800;
  font-size: 1.1rem;
  box-shadow: 0 3px 0 var(--orange-deep);
  margin-bottom: 12px;
}

.steps h3 {
  font-size: 1.05rem;
  margin-bottom: 4px;
}

.steps p {
  color: var(--muted);
  font-size: 0.93rem;
  margin: 0;
}

/* ---------- Banner CTA / cộng đồng ---------- */

.banner {
  background: var(--ink-deep);
  color: #e8f0f8;
  border-radius: var(--radius);
  padding: 36px 26px;
  display: grid;
  gap: 24px;
  align-items: center;
}

@media (min-width: 820px) {
  .banner {
    grid-template-columns: auto 1fr auto;
    padding: 40px 44px;
  }
}

.banner img {
  width: 110px;
  margin: 0 auto;
  background: var(--ice);
  border-radius: 999px;
  padding: 14px;
}

.banner h2 {
  color: #ffffff;
  margin-bottom: 6px;
}

.banner p {
  margin: 0;
  color: #b9c9da;
}

/* ---------- Hero trang con ---------- */

.page-hero {
  padding: 48px 0 8px;
  text-align: center;
}

.page-hero img.mascot {
  width: min(56vw, 240px);
  margin: 0 auto 20px;
}

.page-hero .lead {
  font-size: 1.12rem;
  color: var(--muted);
  max-width: 36em;
  margin: 0 auto 1em;
}

.page-hero .badges {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.page-hero .hero-ctas {
  justify-content: center;
}

/* chip công ty / chủ đề */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 22px;
}

.chip {
  background: var(--white);
  border: 2px solid var(--line);
  border-radius: 999px;
  padding: 7px 16px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--muted);
}

/* ---------- Footer ---------- */

.site-footer {
  margin-top: 40px;
  background: var(--ink-deep);
  color: #b9c9da;
  padding: 40px 0 32px;
  font-size: 0.95rem;
}

.footer-grid {
  display: grid;
  gap: 28px;
}

@media (min-width: 700px) {
  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
  }
}

.site-footer .brand {
  color: #ffffff;
}

.site-footer h3 {
  color: #ffffff;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 10px;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.site-footer a {
  color: #b9c9da;
  text-decoration: none;
  transition: color 0.2s;
}

.site-footer a:hover {
  color: #ffffff;
}

.footer-bottom {
  margin-top: 30px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.85rem;
  color: #8ba0b5;
}

.banner a:not(.btn) {
  color: #ffffff;
}

/* ---------- Bảng câu mẫu ---------- */

.table-wrap {
  padding: 8px 6px;
  overflow-x: auto;
}

.phrase-table {
  width: 100%;
  min-width: 480px;
  border-collapse: collapse;
}

.phrase-table th,
.phrase-table td {
  padding: 12px 16px;
  text-align: left;
}

.phrase-table th {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  border-bottom: 2px solid var(--line);
}

.phrase-table tbody tr + tr td {
  border-top: 1px solid var(--line);
}

.phrase-table td.han {
  font-size: 1.35rem;
  white-space: nowrap;
}

/* ---------- FAQ ---------- */

.faq-list {
  display: grid;
  gap: 14px;
  max-width: 760px;
}

.faq-item {
  padding: 0;
}

.faq-item summary {
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 22px;
  font-family: 'Baloo 2', 'Be Vietnam Pro', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  list-style: none;
  border-radius: var(--radius);
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '+';
  flex-shrink: 0;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--orange-deep);
}

.faq-item[open] summary::after {
  content: '−';
}

.faq-item p {
  padding: 0 22px 18px;
  margin: 0;
  color: var(--muted);
}

/* ---------- Dải số liệu (dưới hero) ---------- */

.stats-strip {
  padding: 6px 0 10px;
}

.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

@media (min-width: 820px) {
  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.stat {
  background: var(--white);
  border: 2px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow-clay);
  padding: 16px 18px;
  text-align: center;
}

.stat strong {
  display: block;
  font-family: 'Baloo 2', sans-serif;
  font-weight: 800;
  font-size: 1.6rem;
  color: var(--orange-deep);
  line-height: 1.2;
}

.stat span {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--muted);
}

/* ---------- Bên trong app (mockup điện thoại) ---------- */

.screens-grid {
  display: grid;
  gap: 32px;
}

@media (min-width: 760px) {
  .screens-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }
}

.screen-item {
  margin: 0;
  text-align: center;
}

.screen-item figcaption {
  margin-top: 14px;
  font-size: 0.93rem;
  font-weight: 600;
  color: var(--muted);
  max-width: 24em;
  margin-left: auto;
  margin-right: auto;
}

.phone {
  width: min(100%, 250px);
  margin: 0 auto;
  background: var(--ink-deep);
  border-radius: 34px;
  padding: 10px;
  box-shadow: var(--shadow-clay);
}

.phone-screen {
  background: var(--ice);
  border-radius: 25px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 420px;
  text-align: left;
  font-size: 0.8rem;
  line-height: 1.45;
}

.p-appbar {
  display: flex;
  align-items: center;
  gap: 7px;
  background: var(--white);
  border-bottom: 2px solid var(--line);
  padding: 10px 14px;
  font-family: 'Baloo 2', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--ink-deep);
}

.p-appbar img {
  width: 22px;
  height: 22px;
}

.p-body {
  padding: 10px;
  display: grid;
  gap: 8px;
}

.p-topic {
  display: flex;
  align-items: center;
  gap: 9px;
  background: var(--white);
  border: 2px solid var(--line);
  border-radius: 14px;
  padding: 9px 10px;
}

.p-topic strong {
  display: block;
  font-size: 0.8rem;
  color: var(--ink-deep);
  line-height: 1.3;
}

.p-topic span:not(.p-emoji):not(.p-check) {
  font-size: 0.7rem;
  color: var(--muted);
}

.p-topic > div {
  flex: 1;
  min-width: 0;
}

.p-emoji {
  font-size: 1.15rem;
  flex-shrink: 0;
}

.p-done {
  border-color: #bfe6cd;
}

.p-active {
  border-color: var(--orange);
}

.p-check {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: var(--green-bg);
  color: var(--green);
  font-weight: 700;
  font-size: 0.7rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* màn hình học từ */
.p-flash {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 4px;
  margin: 10px;
  background: var(--white);
  border: 2px solid var(--line);
  border-radius: 18px;
  padding: 18px 12px;
}

.p-han {
  font-size: 2.4rem;
  line-height: 1.2;
}

.p-pinyin {
  color: var(--muted);
  font-size: 0.85rem;
}

.p-viet {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--ink-deep);
}

.p-mean {
  color: var(--muted);
  font-size: 0.85rem;
}

.p-audio {
  margin-top: 10px;
  background: var(--ice);
  border: 2px solid var(--line);
  border-radius: 999px;
  padding: 6px 16px;
  font-weight: 700;
  font-size: 0.8rem;
  color: var(--ink-deep);
}

.p-next {
  margin: 0 10px 10px;
  background: var(--orange);
  color: var(--ink-deep);
  border-radius: 999px;
  box-shadow: 0 3px 0 var(--orange-deep);
  padding: 9px;
  text-align: center;
  font-family: 'Baloo 2', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
}

/* màn hình luyện tập */
.p-quiz {
  flex: 1;
  padding: 14px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.p-progress {
  height: 8px;
  border-radius: 999px;
  background: var(--line);
  overflow: hidden;
  margin-bottom: 6px;
}

.p-progress span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: var(--orange);
}

.p-q {
  margin: 0 0 4px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--ink-deep);
}

.p-q .han {
  font-size: 1.25rem;
}

.p-opt {
  background: var(--white);
  border: 2px solid var(--line);
  border-radius: 12px;
  padding: 9px 12px;
  font-weight: 600;
  font-size: 0.82rem;
  color: var(--ink);
}

.p-opt-right {
  border-color: #7fce9f;
  background: var(--green-bg);
  color: var(--green);
}

.screens-cta {
  margin-top: 32px;
  text-align: center;
}

/* ---------- Lộ trình 3 tháng ---------- */

.milestone-note {
  margin: 20px auto 0;
  max-width: 640px;
  text-align: center;
  font-size: 0.9rem;
  color: var(--muted);
}

/* ---------- Feedback học viên ---------- */

.testimonials-grid {
  display: grid;
  gap: 20px;
}

@media (min-width: 820px) {
  .testimonials-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.t-card {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 24px;
}

.t-card blockquote {
  margin: 0;
  flex-grow: 1;
  color: var(--ink);
  font-size: 0.98rem;
}

.t-person {
  display: flex;
  align-items: center;
  gap: 12px;
}

.t-person strong {
  display: block;
  font-size: 0.95rem;
  color: var(--ink-deep);
  line-height: 1.3;
}

.t-meta {
  font-size: 0.83rem;
  color: var(--muted);
}

.t-avatar {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Baloo 2', sans-serif;
  font-weight: 800;
  font-size: 1.15rem;
}

.t-avatar-1 {
  background: #fdecec;
  color: #ab1f24;
}

.t-avatar-2 {
  background: var(--green-bg);
  color: var(--green);
}

.t-avatar-3 {
  background: var(--amber-bg);
  color: var(--amber);
}

.t-invite {
  margin: 24px 0 0;
  text-align: center;
  font-size: 0.93rem;
  color: var(--muted);
}

.t-invite a {
  color: var(--orange-deep);
  font-weight: 700;
}

/* ---------- Trang 404 ---------- */

.page-404 {
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
}

.page-404 img {
  width: 200px;
  margin-bottom: 24px;
}

/* ---------- Bài viết (/hoc/) ---------- */

.breadcrumb {
  font-size: 0.85rem;
  color: var(--muted);
  padding: 20px 0 0;
}

.breadcrumb a {
  color: var(--muted);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--ink-deep);
  text-decoration: underline;
}

.article {
  max-width: 760px;
  margin: 0 auto;
  padding: 12px 20px 48px;
}

.article-meta {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 24px;
}

.article h1 {
  font-size: clamp(1.8rem, 5vw, 2.6rem);
  margin-top: 8px;
}

.article h2 {
  margin-top: 1.8em;
}

.article h3 {
  margin-top: 1.4em;
}

.article .lead {
  font-size: 1.1rem;
  color: var(--muted);
}

.article ul,
.article ol {
  padding-left: 1.3em;
}

.article li {
  margin-bottom: 0.4em;
}

.article .table-wrap {
  margin: 1.2em 0;
}

.article .phrase-table {
  min-width: 560px;
}

/* hộp lưu ý về phiên âm kiểu Việt */
.note-box {
  background: var(--white);
  border: 2px solid var(--line);
  border-left: 6px solid var(--orange);
  border-radius: 14px;
  padding: 14px 18px;
  font-size: 0.93rem;
  color: var(--muted);
  margin: 1.2em 0;
}

/* CTA giữa/cuối bài */
.cta-inline {
  background: var(--ink-deep);
  color: #e8f0f8;
  border-radius: 18px;
  padding: 22px 24px;
  margin: 1.8em 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}

.cta-inline img {
  width: 64px;
  flex-shrink: 0;
}

.cta-inline .cta-text {
  flex: 1;
  min-width: 200px;
}

.cta-inline strong {
  color: #fff;
  display: block;
  font-family: 'Baloo 2', sans-serif;
  font-size: 1.1rem;
}

.cta-inline p {
  margin: 4px 0 0;
  font-size: 0.9rem;
  color: #b9c9da;
}

/* danh sách bài trên hub /hoc/ */
.post-list {
  display: grid;
  gap: 18px;
}

@media (min-width: 700px) {
  .post-list {
    grid-template-columns: 1fr 1fr;
  }
}

.post-card {
  display: block;
  text-decoration: none;
  transition: transform 0.2s ease-out, box-shadow 0.2s ease-out;
}

.post-card:hover {
  transform: translateY(-4px);
}

.post-card .tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--orange-deep);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}

.post-card h2 {
  margin: 0 0 8px;
  font-size: 1.2rem;
}

.post-card p {
  color: var(--muted);
  font-size: 0.93rem;
  margin: 0;
}
