/* Trang chủ. */
.hero { background-color: var(--hero); background-image: linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px); background-size: 32px 32px; color: #fff; }
.hero-in { max-width: 1160px; margin: 0 auto; padding: 72px 32px 88px; display: flex; align-items: center; justify-content: space-between; gap: 48px; }
.hero-text { max-width: 620px; display: flex; flex-direction: column; gap: 24px; }
.eyebrow { align-self: flex-start; padding: 6px 14px; border-radius: 999px; background: rgba(245,184,61,.16); color: var(--amber); font-size: 13px; font-weight: 700; letter-spacing: .06em; }
.hero h1 { font-family: var(--serif); font-size: clamp(36px, 5vw, 60px); line-height: 1.08; font-weight: 600; }
.hero h1 em { color: var(--amber); }
.hero p { font-size: 18px; line-height: 1.65; color: var(--hero-muted); }
.hero-search { display: flex; background: #fff; border-radius: 16px; padding: 6px; box-shadow: 0 12px 40px rgba(0,0,0,.28); }
.hero-search input { flex: 1; min-width: 0; height: 52px; border: 0; background: transparent; color: #0F1B3D; font-size: 17px; padding: 0 18px; outline: 0; }
.hero-search:focus-within { outline: 3px solid var(--amber); outline-offset: 2px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.chips span { font-size: 14px; color: var(--hero-muted); margin-right: 4px; }
.hero-art { flex: none; }

.topics { max-width: 1160px; margin: 0 auto; padding: 56px 32px 80px; }
.topics-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 28px; }
.topics-head h2 { font-size: 28px; font-weight: 700; }
.topics-head span { font-size: 15px; color: var(--muted); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; }
.chapter-card { padding: 22px; display: flex; flex-direction: column; gap: 14px; transition: transform .2s, box-shadow .2s; }
.chapter-card:hover { transform: translateY(-4px); box-shadow: 0 14px 36px rgba(36,71,201,.18); }
.chapter-top { display: flex; align-items: center; justify-content: space-between; }
.badge-letter { width: 42px; height: 42px; border-radius: 12px; background: var(--hero); color: var(--amber); display: flex; align-items: center; justify-content: center; font-family: var(--serif); font-size: 24px; font-weight: 600; }
.chapter-card h3 { font-size: 20px; font-weight: 700; }
.preview { background: var(--bg); border-radius: 12px; min-height: 68px; padding: 12px; display: flex; align-items: center; justify-content: center; text-align: center; font-size: 18px; }
.chapter-card p { font-size: 14px; line-height: 1.6; color: var(--ink-2); }
.more { margin-top: auto; font-size: 14px; font-weight: 700; color: var(--accent); }
.guide-card { background: var(--primary); color: #fff; border-radius: 20px; padding: 22px; display: flex; flex-direction: column; gap: 12px; justify-content: flex-end; transition: transform .2s; }
.guide-card:hover { transform: translateY(-4px); }
.guide-card h3 { font-size: 20px; }
.guide-card p { font-size: 14px; line-height: 1.6; color: #E3EAFF; }
.guide-card .more { color: #fff; }

@media (max-width: 960px) {
  .hero-in { padding: 40px 16px 56px; flex-direction: column; align-items: flex-start; }
  .hero-art { align-self: center; max-width: 100%; }
  .hero-art svg { width: 100%; height: auto; }
  .topics { padding: 40px 16px 56px; }
  .hero-search .btn-primary { padding: 0 20px; }
}
