/* ============================================================
   Mai Thơm — Cô giáo truyền cảm hứng — Design system
   ============================================================ */

:root {
  --terracotta: #D96C4A;
  --terracotta-dark: #B8502F;
  --navy: #1D3557;
  --navy-light: #2E4A73;
  --gold: #F2B134;
  --cream: #FFF8F0;
  --cream-deep: #FBEEE0;
  --ink: #2B2118;
  --muted: #6B6058;
  --border: #EDE0D4;
  --white: #FFFFFF;
  --shadow: 0 10px 30px rgba(43, 33, 24, 0.08);
  --radius: 16px;
  --radius-sm: 10px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
}

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

a { color: var(--terracotta-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}
.wrap-narrow {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3, h4 { font-family: "Segoe UI", system-ui, -apple-system, Arial, sans-serif; font-weight: 800; color: var(--navy); margin: 0 0 16px; line-height: 1.3; }
h1 { font-size: 42px; }
h2 { font-size: 30px; }
h3 { font-size: 21px; }
p { margin: 0 0 16px; }

.eyebrow {
  display: inline-block;
  font-family: "Segoe UI", system-ui, sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--terracotta-dark);
  background: var(--cream-deep);
  border: 1px solid var(--border);
  padding: 5px 14px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.center { text-align: center; }
.section-lead {
  max-width: 620px;
  margin: 0 auto 40px;
  text-align: center;
  color: var(--muted);
  font-size: 17px;
}

section { padding: 64px 0; }
.bg-white { background: var(--white); }
.bg-cream { background: var(--cream); }
.bg-deep  { background: var(--cream-deep); }
.bg-navy  { background: var(--navy); color: #EAF0FA; }
.bg-navy h2, .bg-navy h3 { color: #fff; }
.bg-terracotta { background: var(--terracotta); color: #fff; }
.bg-terracotta h2, .bg-terracotta h3 { color: #fff; }

hr.divider { border: none; border-top: 1px solid var(--border); margin: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-weight: 700;
  font-size: 15px;
  padding: 14px 28px;
  border-radius: 999px;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--terracotta); color: #fff; box-shadow: 0 8px 20px rgba(217,108,74,0.35); }
.btn-primary:hover { background: var(--terracotta-dark); }
.btn-outline { background: transparent; border-color: currentColor; color: inherit; }
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-row { display: flex; gap: 14px; flex-wrap: wrap; }
.btn-row.center { justify-content: center; }

/* ---------- Header / Nav ---------- */
header.site-header {
  background: rgba(255,248,240,0.96);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav-bar {
  max-width: 1120px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand {
  font-family: "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  font-size: 21px;
  font-weight: 700;
  color: var(--navy);
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}
.brand .dot { color: var(--terracotta); }
.brand small {
  display: block;
  font-family: "Segoe UI", sans-serif;
  font-size: 11px;
  font-weight: 400;
  color: var(--muted);
  letter-spacing: 0.03em;
}
nav.main-nav {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  font-size: 14.5px;
  font-weight: 600;
}
nav.main-nav a { color: var(--ink); }
nav.main-nav a:hover { color: var(--terracotta-dark); text-decoration: none; }
nav.main-nav a.active { color: var(--terracotta-dark); border-bottom: 2px solid var(--terracotta); padding-bottom: 4px; }
.nav-cta { flex-shrink: 0; }
.nav-toggle { display: none; }
.hamburger { display: none; }

@media (max-width: 860px) {
  .nav-bar { flex-wrap: wrap; }
  nav.main-nav {
    order: 3;
    width: 100%;
    max-height: 0;
    overflow: hidden;
    flex-direction: column;
    gap: 0;
    transition: max-height 0.25s ease;
  }
  nav.main-nav a { padding: 10px 0; border-bottom: 1px solid var(--border); }
  .nav-toggle:checked ~ nav.main-nav { max-height: 600px; }
  .hamburger {
    display: block;
    background: none;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 20px;
    padding: 6px 12px;
    cursor: pointer;
    color: var(--navy);
  }
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, #16283F 100%);
  color: #fff;
  padding: 72px 0 80px;
}
.hero .wrap { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 48px; align-items: center; }
.hero h1 { color: #fff; font-size: 40px; }
.hero .role { font-size: 19px; color: var(--gold); font-weight: 700; margin-bottom: 10px; }
.hero .tagline { font-size: 17px; color: #D9E2EF; max-width: 480px; margin-bottom: 30px; }
.avatar-wrap { display: flex; justify-content: center; }
.avatar-monogram {
  width: 260px; height: 260px; border-radius: 50%;
  background: linear-gradient(135deg, var(--terracotta), var(--gold));
  display: flex; align-items: center; justify-content: center;
  font-family: "Segoe UI", system-ui, -apple-system, Arial, sans-serif; font-size: 88px; color: #fff;
  border: 6px solid rgba(255,255,255,0.25);
  box-shadow: var(--shadow);
}
.avatar-photo {
  width: 260px; height: 260px; border-radius: 50%;
  object-fit: cover;
  object-position: center 22%;
  box-shadow: var(--shadow);
}
.avatar-photo.avatar-sm { width: 140px; height: 140px; }
@media (max-width: 760px) {
  .hero .wrap { grid-template-columns: 1fr; text-align: center; }
  .hero .tagline { margin-left: auto; margin-right: auto; }
  .btn-row.hero-btns { justify-content: center; }
  h1 { font-size: 32px; }
}

/* ---------- Cards ---------- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 22px; }
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
}
.card .icon { font-size: 28px; margin-bottom: 10px; display: block; }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 15px; margin-bottom: 0; }

.pill-list { display: flex; flex-wrap: wrap; gap: 10px; }
.pill {
  background: var(--cream-deep);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
}

/* ---------- Timeline (About) ---------- */
.timeline { display: flex; flex-direction: column; gap: 0; max-width: 760px; margin: 0 auto; }
.timeline .step { display: grid; grid-template-columns: 90px 26px 1fr; gap: 0; }
.timeline .year { font-family: "Segoe UI", system-ui, -apple-system, Arial, sans-serif; font-size: 24px; color: var(--terracotta-dark); font-weight: 700; text-align: right; padding-right: 18px; padding-top: 4px; }
.timeline .line-wrap { display: flex; flex-direction: column; align-items: center; }
.timeline .node { width: 16px; height: 16px; border-radius: 50%; background: var(--terracotta); margin-top: 6px; border: 3px solid var(--cream-deep); }
.timeline .line { flex: 1; width: 2px; background: var(--border); margin: 2px 0; min-height: 36px; }
.timeline .step:last-child .line { display: none; }
.timeline .content { padding: 0 0 34px 20px; }
.timeline .content h4 { margin: 0 0 6px; color: var(--navy); font-size: 17px; }
.timeline .content p { color: var(--muted); font-size: 15px; margin: 0; }

/* ---------- Stats ---------- */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 24px; text-align: center; }
.stat b { display: block; font-family: "Segoe UI", system-ui, -apple-system, Arial, sans-serif; font-size: 36px; color: var(--gold); }
.stat span { font-size: 14px; color: #C9D4E4; }

/* ---------- Blog ---------- */
.category-tag {
  display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--terracotta-dark); background: var(--cream-deep); border-radius: 6px; padding: 4px 10px; margin-bottom: 10px;
}
.post-list { display: grid; gap: 16px; }
.post-row {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 18px 22px;
}
.post-row h4 { margin: 0; font-size: 16.5px; color: var(--navy); }
.post-row.disabled { opacity: 0.6; }
.post-row .badge { font-size: 12px; color: var(--muted); white-space: nowrap; font-weight: 600; }

article.post-body { max-width: 700px; margin: 0 auto; }
article.post-body h2 { margin-top: 36px; }
article.post-body ul, article.post-body ol { color: var(--ink); padding-left: 22px; }
article.post-body li { margin-bottom: 8px; }
.post-meta { color: var(--muted); font-size: 14px; margin-bottom: 30px; }
blockquote {
  background: var(--cream-deep);
  border-left: 4px solid var(--terracotta);
  margin: 20px 0;
  padding: 16px 20px;
  border-radius: 8px;
  font-style: italic;
  color: var(--navy-light);
}

/* ---------- Forms ---------- */
form.lead-form { max-width: 460px; margin: 0 auto; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow); }
form.lead-form label { display: block; font-weight: 700; font-size: 14px; margin-bottom: 6px; color: var(--navy); }
form.lead-form input {
  width: 100%; padding: 12px 14px; border: 1px solid var(--border); border-radius: 8px; margin-bottom: 18px; font-size: 15px;
  font-family: inherit;
}
form.lead-form .btn { width: 100%; text-align: center; border: none; }

/* ---------- Feedback photo grid ---------- */
.feedback-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.feedback-grid a { display: block; }
.feedback-grid img {
  width: 100%; display: block; border-radius: 12px;
  border: 1px solid var(--border); box-shadow: var(--shadow);
}

/* ---------- Testimonials ---------- */
.testimonial-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.testimonial-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.testimonial-card .stars { color: var(--gold); margin-bottom: 10px; }
.testimonial-card footer { margin-top: 14px; font-size: 14px; color: var(--muted); font-weight: 700; }

/* ---------- Video ---------- */
.video-embed { position: relative; padding-top: 56.25%; background: var(--navy); border-radius: var(--radius); overflow: hidden; }
.video-embed iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0; }

.reel-embed { position: relative; padding-top: 177.78%; background: var(--navy); border-radius: var(--radius); overflow: hidden; max-width: 300px; margin: 0 auto; }
.reel-embed iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0; }

/* ---------- Table (courses) ---------- */
table.compare { width: 100%; border-collapse: collapse; background: var(--white); border-radius: var(--radius-sm); overflow: hidden; }
table.compare th, table.compare td { border: 1px solid var(--border); padding: 12px 14px; text-align: left; font-size: 14.5px; }
table.compare th { background: var(--navy); color: #fff; }

/* ---------- Footer ---------- */
footer.site-footer { background: var(--navy); color: #C9D4E4; padding: 50px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 36px; }
.footer-grid h4 { color: #fff; font-size: 15px; margin-bottom: 14px; font-family: "Segoe UI", sans-serif; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 8px; font-size: 14px; }
.footer-grid a { color: #C9D4E4; }
.footer-grid a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 20px;
  font-size: 13px;
  color: #93A2B8;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
}
@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* ---------- Sticky CTA (mobile) ---------- */
.sticky-cta {
  position: sticky; bottom: 0; background: #fff; border-top: 1px solid var(--border);
  text-align: center; padding: 12px; box-shadow: 0 -4px 12px rgba(0,0,0,0.08); z-index: 90;
}
.sticky-cta a { background: var(--terracotta); color: #fff; font-weight: 800; padding: 12px 28px; border-radius: 999px; text-decoration: none; font-size: 15px; }

.notice-box {
  border: 1px dashed var(--terracotta);
  background: var(--cream-deep);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  font-size: 13.5px;
  color: var(--terracotta-dark);
  margin-bottom: 24px;
}
