/* Anh ngữ Hiên Nắng (trung-tam-tieng-anh 4.5): warm like an afternoon porch. Cream and terracotta with olive notes,
   a photo set on a terracotta block, the learning path drawn as stops on a line, a teacher spotlight, a reading corner.
   Fonts: Lora (titles) + Be Vietnam Pro (text). */
:root {
  --cream: #faf3e8;
  --warm: #f3e6d3;
  --terra: #c8553d;
  --terra-2: #a8432f;
  --olive: #5b6b3a;
  --ink: #2e2620;
  --muted: #6e6257;
  --line: #e6d8c4;
  --k-font: 'Be Vietnam Pro', system-ui, sans-serif;
  --k-font-display: 'Lora', Georgia, serif;
  --k-accent: #c8553d;
  --k-accent-ink: #ffffff;
  --k-ink: #2e2620;
  --k-paper: #fffaf3;
  --k-muted: #6e6257;
  --k-line: #e6d8c4;
  --k-radius: 14px;
}

body {
  background: var(--cream);
  color: var(--ink);
  font:
    400 16px/1.65 'Be Vietnam Pro',
    system-ui,
    sans-serif;
}
a {
  color: inherit;
}
h1,
h2,
h3 {
  margin: 0;
  font-family: 'Lora', Georgia, serif;
  font-weight: 700;
  line-height: 1.2;
  text-wrap: balance;
}
.plain {
  margin: 0;
  padding: 0;
  list-style: none;
}
.kicker {
  margin: 0 0 8px;
  color: var(--olive);
  font-size: 14px;
  font-weight: 700;
}
.lead {
  max-width: 62ch;
  margin: -8px 0 24px;
  color: var(--muted);
}
.fine {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 14px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  border: 2px solid var(--terra);
  border-radius: 12px;
  background: var(--terra);
  color: #fff;
  font:
    600 16px/1.2 'Be Vietnam Pro',
    sans-serif;
  text-decoration: none;
  cursor: pointer;
}
.btn:hover {
  background: var(--terra-2);
  border-color: var(--terra-2);
}
.btn-line {
  background: transparent;
  color: var(--terra-2);
}
.btn-line:hover {
  background: var(--warm);
}
.btn-sm {
  min-height: 44px;
  padding: 0 16px;
  font-size: 15px;
}
.btn-block {
  width: 100%;
}
.link {
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-decoration: underline;
  cursor: pointer;
}
.link-big {
  font-family: 'Lora', serif;
  font-size: 24px;
  font-weight: 700;
  text-decoration: none;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}
.more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--terra-2);
  font-weight: 700;
  text-decoration: none;
}
.back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 14px;
  color: var(--terra-2);
  font-weight: 600;
  text-decoration: none;
}

/* Header */
.hdr {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: var(--cream);
  border-bottom: 1px solid var(--line);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 auto 0 0;
  font-family: 'Lora', serif;
  font-size: 21px;
  font-weight: 700;
  text-decoration: none;
}
.sun {
  position: relative;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--terra);
  box-shadow: 0 0 0 5px var(--warm);
}
.hdr-menu {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fffaf3;
  color: var(--ink);
  cursor: pointer;
}
.menu {
  display: none;
  flex-basis: 100%;
  flex-direction: column;
  padding: 6px 0;
}
.menu[data-open] {
  display: flex;
}
.menu a {
  padding: 12px 4px;
  border-top: 1px solid var(--line);
  font-weight: 600;
  text-decoration: none;
}
.menu .menu-cta {
  color: var(--terra-2);
}

/* Sections */
.sec {
  padding: 48px 16px;
}
.sec > * {
  max-width: 1128px;
  margin-left: auto;
  margin-right: auto;
}
.page {
  max-width: 1160px;
  margin: 0 auto;
}
.sec-warm {
  background: var(--warm);
}
.sec-terra {
  background: var(--terra);
  color: #fff;
}
.h1 {
  font-size: 32px;
}
.h2 {
  margin-bottom: 20px;
  font-size: 28px;
}
.h3 {
  margin: 0 0 10px;
  font-size: 22px;
}
.sec-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 16px;
}

/* Hero */
.hero {
  display: grid;
  gap: 30px;
  max-width: 1160px;
  margin: 0 auto;
  padding: 28px 16px 48px;
}
.hero-photo {
  position: relative;
  margin: 0 14px 14px 0;
}
.hero-photo::before {
  content: '';
  position: absolute;
  inset: 14px -14px -14px 14px;
  border-radius: 24px;
  background: var(--terra);
}
.hero-photo img {
  position: relative;
  display: block;
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: 24px;
}
.hero-title {
  font-size: 34px;
}
.hero-lead {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 17px;
}

/* Learning path */
.path {
  position: relative;
  display: grid;
  gap: 14px;
  counter-reset: stop;
}
.path::before {
  content: '';
  position: absolute;
  top: 20px;
  bottom: 20px;
  left: 39px;
  border-left: 3px dotted var(--terra);
}
.stop {
  position: relative;
  counter-increment: stop;
}
.stop a {
  display: grid;
  grid-template-columns: 80px 1fr;
  grid-template-rows: auto auto;
  align-items: center;
  gap: 0 16px;
  text-decoration: none;
}
.stop img {
  grid-row: span 2;
  width: 80px;
  height: 80px;
  object-fit: cover;
  border: 4px solid var(--cream);
  border-radius: 50%;
  box-shadow: 0 0 0 2px var(--terra);
}
.stop-name {
  align-self: end;
  font-family: 'Lora', serif;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.25;
}
.stop-name::before {
  content: 'Chặng ' counter(stop) ' · ';
  color: var(--olive);
  font-family: 'Be Vietnam Pro', sans-serif;
  font-size: 13px;
  font-weight: 700;
}
.stop-count {
  align-self: start;
  color: var(--muted);
  font-size: 14px;
}
.stop a:hover .stop-name {
  color: var(--terra-2);
}

/* Courses */
.courses {
  display: grid;
  gap: 16px;
}
.course {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 20px;
  background: #fffaf3;
}
.course-img img {
  display: block;
  width: 100%;
  height: 180px;
  object-fit: cover;
}
.course-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  padding: 16px 18px 18px;
}
.course-cat {
  margin: 0;
  color: var(--olive);
  font-size: 13px;
  font-weight: 700;
}
.course-name {
  margin: 4px 0 6px;
  font-size: 20px;
}
.course-name a {
  text-decoration: none;
}
.course-short {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 15px;
}
.course-fee {
  margin: auto 0 12px;
}
.course-fee b {
  font-family: 'Lora', serif;
  font-size: 18px;
  color: var(--terra-2);
}
.course-fee small {
  color: var(--muted);
}

/* Teacher spotlight */
.spot {
  display: grid;
  gap: 18px;
}
.spot-main {
  display: grid;
  gap: 16px;
  margin: 0;
}
.spot-main img {
  width: 100%;
  height: 340px;
  object-fit: cover;
  object-position: top;
  border-radius: 24px;
}
.spot-main figcaption {
  display: flex;
  flex-direction: column;
}
.spot-main b {
  font-family: 'Lora', serif;
  font-size: 26px;
}
.spot-main span {
  color: var(--terra-2);
  font-weight: 700;
}
.spot-main p {
  margin: 8px 0 0;
  font-family: 'Lora', serif;
  font-size: 18px;
  font-style: italic;
}
.spot-side {
  display: grid;
  gap: 12px;
}
.mate {
  display: grid;
  grid-template-columns: 72px 1fr;
  align-items: center;
  gap: 14px;
  margin: 0;
  padding: 12px;
  border-radius: 18px;
  background: var(--warm);
}
.mate:first-of-type {
  display: none;
}
.mate img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 50%;
}
.mate figcaption {
  display: flex;
  flex-direction: column;
  line-height: 1.4;
}
.mate b {
  font-family: 'Lora', serif;
  font-size: 18px;
}
.mate span {
  color: var(--muted);
  font-size: 14px;
}

/* Numbers */
.nums {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 0;
  margin-bottom: 0;
}
.nums dd {
  margin: 0;
  font-family: 'Lora', serif;
  font-size: 34px;
  font-weight: 700;
}
.nums dt {
  color: rgba(255, 255, 255, 0.82);
  font-size: 15px;
}

/* Voices */
.voices {
  columns: 1;
  column-gap: 16px;
}
.voice {
  break-inside: avoid;
  margin: 0 0 16px;
  padding: 18px;
  border-radius: 20px;
  background: #fffaf3;
  border: 1px solid var(--line);
}
.voice-stars {
  margin: 0;
  color: var(--terra);
  letter-spacing: 2px;
}
.voice blockquote {
  margin: 6px 0 10px;
}
.voice figcaption {
  color: var(--muted);
  font-size: 14px;
}
.voice b {
  color: var(--ink);
}

/* Posts */
.posts {
  display: grid;
  gap: 14px;
}
.post {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 14px;
  align-items: center;
  padding: 10px;
  border-radius: 18px;
  background: #fffaf3;
  text-decoration: none;
}
.post img {
  width: 110px;
  height: 90px;
  object-fit: cover;
  border-radius: 12px;
}
.post-body {
  display: flex;
  flex-direction: column;
}
.post-date {
  color: var(--olive);
  font-size: 13px;
  font-weight: 700;
}
.post-title {
  font-family: 'Lora', serif;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
}
.post-excerpt {
  margin-top: 6px;
  color: var(--muted);
  font-size: 15px;
}
.post:hover .post-title {
  color: var(--terra-2);
}

/* FAQ */
.faqs {
  display: grid;
  gap: 10px;
}
.faq {
  border-radius: 16px;
  background: #fffaf3;
  border: 1px solid var(--line);
}
.faq summary {
  position: relative;
  padding: 15px 44px 15px 18px;
  font-family: 'Lora', serif;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: '';
  position: absolute;
  top: 22px;
  right: 18px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--terra);
}
.faq[open] summary::after {
  background: var(--olive);
}
.faq p {
  margin: 0;
  padding: 0 18px 18px;
  color: var(--muted);
}

/* Visit */
.visit {
  display: grid;
  gap: 18px;
}
.visit > * {
  max-width: none;
  margin: 0;
}
.hours li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  max-width: 380px;
  padding: 8px 0;
  border-bottom: 1px dashed var(--line);
}
.map {
  min-height: 280px;
  overflow: hidden;
  border-radius: 24px;
  background: var(--cream);
}

/* List */
.finder {
  display: grid;
  gap: 10px;
  margin: 18px 0 14px;
}
.search {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 16px;
  border-radius: 14px;
  background: #fffaf3;
  border: 2px solid var(--line);
  color: var(--terra);
}
.search input {
  flex: 1;
  min-width: 0;
  min-height: 50px;
  border: 0;
  background: none;
  color: var(--ink);
  font: inherit;
  outline: none;
}
.select {
  min-height: 50px;
  padding: 0 12px;
  border: 2px solid var(--line);
  border-radius: 14px;
  background: #fffaf3;
  color: var(--ink);
  font: inherit;
}
.pills,
.pills-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.pills {
  margin-bottom: 22px;
}
.pill {
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fffaf3;
  color: var(--ink);
  font:
    600 15px/1 'Be Vietnam Pro',
    sans-serif;
  cursor: pointer;
}
.pill[aria-pressed='true'] {
  border-color: var(--terra);
  background: var(--terra);
  color: #fff;
}
.empty {
  padding: 22px;
  border-radius: 18px;
  background: var(--warm);
  text-align: center;
}

/* Detail */
.dhero {
  display: grid;
  gap: 28px;
  max-width: 1160px;
  margin: 0 auto;
  padding: 26px 16px 36px;
}
.dshort {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 17px;
}
.dfee {
  margin: 14px 0 0;
}
.dfee b {
  font-family: 'Lora', serif;
  font-size: 26px;
  color: var(--terra-2);
}
.dfee small {
  color: var(--muted);
}
.dgrid {
  display: grid;
  gap: 24px;
  max-width: 1160px;
  margin: 0 auto;
}
.dgrid > * {
  max-width: none;
  margin: 0;
}
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}
.tags li {
  padding: 3px 12px;
  border-radius: 999px;
  background: var(--warm);
  color: var(--olive);
  font-size: 14px;
  font-weight: 700;
}
.card-facts {
  display: grid;
  gap: 10px;
  margin: 0;
}
.card-facts div {
  padding: 14px 16px;
  border-left: 4px solid var(--terra);
  border-radius: 0 14px 14px 0;
  background: #fffaf3;
}
.card-facts dt {
  color: var(--muted);
  font-size: 14px;
}
.card-facts dd {
  margin: 0;
  font-weight: 600;
}

/* Order */
.order {
  display: grid;
  gap: 18px;
  margin-top: 20px;
}
.paper {
  padding: 20px;
  border-radius: 22px;
  background: #fffaf3;
  border: 1px solid var(--line);
}
.order-side {
  order: -1;
  padding: 20px;
  border-radius: 22px;
  background: var(--warm);
}
.order-item {
  margin: 0;
  font-family: 'Lora', serif;
  font-size: 21px;
  font-weight: 700;
  line-height: 1.3;
}
.order-item:empty::before {
  content: 'Chọn khoá ở ô “Khoá học”, chưa rõ thì chọn buổi kiểm tra và học thử.';
  font-family: 'Be Vietnam Pro', sans-serif;
  font-size: 15px;
  font-weight: 400;
}
.order-mate {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 12px;
  align-items: center;
  margin: 16px 0 0;
  font-size: 15px;
}
.order-mate img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 50%;
}

/* Article */
.read {
  max-width: 740px;
  margin: 0 auto;
}
.read > * {
  max-width: none;
}
.read-lead {
  margin: 12px 0 20px;
  font-family: 'Lora', serif;
  font-size: 20px;
  font-style: italic;
}
.read-img {
  width: 100%;
  height: 240px;
  margin-bottom: 20px;
  object-fit: cover;
  border-radius: 22px;
}
.read-body p {
  margin: 0 0 16px;
  font-size: 17px;
}
.read-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 26px;
  padding: 20px;
  border-radius: 20px;
  background: var(--warm);
}
.read-cta p {
  margin: 0;
  font-family: 'Lora', serif;
  font-size: 20px;
  font-weight: 700;
}
.posts-all {
  margin-top: 22px;
}

/* Footer */
.ftr {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.82);
  font-size: 15px;
}
.ftr-in {
  display: grid;
  gap: 22px;
  max-width: 1160px;
  margin: 0 auto;
  padding: 38px 16px;
}
.ftr p {
  margin: 0 0 6px;
}
.brand-ftr {
  margin-bottom: 12px !important;
  color: #fff;
}
.ftr-h {
  color: #f0b49f;
  font-weight: 700;
}
.ftr .link-big {
  color: #fff;
}

@media (min-width: 720px) {
  .path {
    grid-template-columns: repeat(3, 1fr);
    gap: 26px 18px;
  }
  .path::before {
    display: none;
  }
  .stop a {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }
  .stop img {
    grid-row: auto;
    width: 120px;
    height: 120px;
    margin-bottom: 10px;
  }
  .courses {
    grid-template-columns: 1fr 1fr;
  }
  .nums {
    grid-template-columns: repeat(4, 1fr);
  }
  .voices {
    columns: 2;
  }
  .posts {
    grid-template-columns: 1fr 1fr;
  }
  .card-facts {
    grid-template-columns: 1fr 1fr;
  }
  .ftr-in {
    grid-template-columns: 1.4fr 1fr 1fr;
  }
}

@media (min-width: 960px) {
  .hdr {
    padding: 14px max(16px, calc((100% - 1128px) / 2));
  }
  .hdr-menu {
    display: none;
  }
  .menu {
    display: flex;
    flex-basis: auto;
    flex-direction: row;
    align-items: center;
    gap: 26px;
    padding: 0;
  }
  .menu a {
    padding: 0;
    border: 0;
  }
  .menu .menu-cta {
    padding: 10px 18px;
    border-radius: 12px;
    background: var(--terra);
    color: #fff;
  }
  .hero {
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 64px;
    padding: 56px 16px 72px;
  }
  .hero-photo img {
    height: 460px;
  }
  .hero-title {
    font-size: 48px;
  }
  .sec {
    padding: 72px 16px;
  }
  .h1 {
    font-size: 42px;
  }
  .h2 {
    font-size: 36px;
  }
  .path {
    grid-template-columns: repeat(6, 1fr);
  }
  .path::before {
    display: block;
    top: 62px;
    bottom: auto;
    left: 8%;
    right: 8%;
    border-left: 0;
    border-top: 3px dotted var(--terra);
  }
  .courses {
    grid-template-columns: repeat(3, 1fr);
  }
  .courses-all {
    grid-template-columns: repeat(3, 1fr);
  }
  .spot {
    grid-template-columns: 1.4fr 1fr;
    gap: 32px;
    align-items: start;
  }
  .spot-main {
    grid-template-columns: 1fr 1fr;
    align-items: end;
  }
  .spot-main img {
    height: 440px;
  }
  .spot-side {
    align-content: end;
  }
  .voices {
    columns: 3;
  }
  .faqs {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
  .visit {
    grid-template-columns: 1fr 1.3fr;
    max-width: none;
    padding-left: max(16px, calc((100% - 1128px) / 2));
    padding-right: max(16px, calc((100% - 1128px) / 2));
  }
  .finder {
    grid-template-columns: 1fr 260px;
  }
  .dhero {
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 56px;
    padding-top: 44px;
  }
  .dgrid {
    grid-template-columns: 1.3fr 1fr;
    gap: 48px;
    align-items: start;
  }
  .card-facts {
    grid-template-columns: 1fr;
  }
  .order {
    grid-template-columns: 1fr 360px;
    align-items: start;
  }
  .order-side {
    order: 0;
    position: sticky;
    top: 100px;
  }
  .read-img {
    height: 400px;
  }
}
