/* Anh ngữ Ô Li (trung-tam-tieng-anh 4.0): a squared school notebook. Blue grid paper with a red margin line,
   handwritten headings, a yellow sticky note, courses laid out as a timetable with a trial button on every line.
   Fonts: Patrick Hand (headings, notes) + Nunito (text). */
:root {
  --paper: #fdfdf8;
  --grid: rgba(64, 120, 200, 0.13);
  --margin: #e25b5b;
  --ink: #1d2b55;
  --blue: #1f4fbf;
  --blue-soft: #e5edfb;
  --marker: #fff1a1;
  --muted: #5a6382;
  --line: #cfdaee;
  --k-font: 'Nunito', system-ui, sans-serif;
  --k-font-display: 'Patrick Hand', 'Nunito', sans-serif;
  --k-accent: #1f4fbf;
  --k-accent-ink: #ffffff;
  --k-ink: #1d2b55;
  --k-paper: #ffffff;
  --k-muted: #5a6382;
  --k-line: #cfdaee;
  --k-radius: 8px;
}

body {
  background: var(--paper);
  color: var(--ink);
  font:
    500 16px/1.6 'Nunito',
    system-ui,
    sans-serif;
}
a {
  color: inherit;
}
h1,
h2,
h3 {
  margin: 0;
  font-family: 'Patrick Hand', 'Nunito', sans-serif;
  font-weight: 400;
  line-height: 1.15;
  text-wrap: balance;
}
.plain {
  margin: 0;
  padding: 0;
  list-style: none;
}
.paper {
  background-color: var(--paper);
  background-image:
    linear-gradient(90deg, transparent 27px, var(--margin) 27px, var(--margin) 29px, transparent 29px),
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size:
    100% 100%,
    22px 22px,
    22px 22px;
}
.hand-note {
  display: inline-block;
  margin: 0 0 10px;
  padding: 0 6px;
  background: linear-gradient(transparent 40%, var(--marker) 40%);
  font-family: 'Patrick Hand', sans-serif;
  font-size: 19px;
}
.lead {
  max-width: 64ch;
  margin: 8px 0 22px;
  color: var(--muted);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  border: 2px solid var(--blue);
  border-radius: 10px;
  background: var(--blue);
  color: #fff;
  font:
    800 16px/1.2 'Nunito',
    sans-serif;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 3px 3px 0 var(--ink);
}
.btn:active {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 var(--ink);
}
.btn-line {
  background: #fff;
  color: var(--blue);
}
.btn-block {
  width: 100%;
}
.link {
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-decoration: underline;
  cursor: pointer;
}
.link-big {
  font-family: 'Patrick Hand', sans-serif;
  font-size: 26px;
  text-decoration: none;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}
.more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--blue);
  font-weight: 800;
}
.back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 14px;
  color: var(--blue);
  font-weight: 800;
  text-decoration: none;
}

/* Header */
.hdr {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: #fff;
  border-bottom: 2px solid var(--ink);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-right: auto;
  font-family: 'Patrick Hand', sans-serif;
  font-size: 26px;
  line-height: 1;
  text-decoration: none;
}
.brand-ab {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: var(--marker);
  font-size: 22px;
  transform: rotate(-4deg);
}
.hdr-call {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 14px;
  border: 2px solid var(--ink);
  border-radius: 10px;
  background: var(--marker);
  color: var(--ink);
  font:
    800 15px/1 'Nunito',
    sans-serif;
  cursor: pointer;
}
.hdr-menu {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 2px solid var(--ink);
  border-radius: 10px;
  background: #fff;
  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 dashed var(--line);
  font-weight: 700;
  text-decoration: none;
}
.menu .menu-cta {
  color: var(--margin);
}

/* Sections */
.sec {
  padding: 40px 16px 40px 44px;
}
.sec > * {
  max-width: 1080px;
  margin-left: auto;
  margin-right: auto;
}
.page-paper {
  min-height: 60vh;
}
.h1 {
  font-size: 38px;
}
.h2 {
  margin-bottom: 18px;
  font-size: 32px;
}
.sec-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 16px;
}

/* Hero */
.hero {
  display: grid;
  gap: 28px;
  padding: 32px 16px 40px 44px;
}
.hero-title {
  font-size: 44px;
  line-height: 1.05;
}
.hero-lead {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 17px;
}
.sticky {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-width: 320px;
  padding: 22px 20px 20px;
  background: var(--marker);
  color: var(--ink);
  font-size: 15px;
  text-decoration: none;
  transform: rotate(2deg);
  box-shadow: 4px 6px 0 rgba(29, 43, 85, 0.18);
}
.sticky::before {
  content: '';
  position: absolute;
  top: -10px;
  left: 50%;
  width: 90px;
  height: 22px;
  background: rgba(255, 255, 255, 0.7);
  transform: translateX(-50%) rotate(-3deg);
}
.sticky-h {
  font-family: 'Patrick Hand', sans-serif;
  font-size: 23px;
  line-height: 1.15;
}
.sticky-price {
  font-family: 'Patrick Hand', sans-serif;
  font-size: 30px;
  color: var(--margin);
}

/* Tally */
.tally {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 0;
  margin-bottom: 0;
}
.tally div {
  text-align: center;
}
.tally dd {
  display: inline-grid;
  place-items: center;
  min-width: 96px;
  margin: 0 0 6px;
  padding: 4px 14px;
  border: 2px solid var(--margin);
  border-radius: 50% 46% 52% 48%;
  font-family: 'Patrick Hand', sans-serif;
  font-size: 32px;
  color: var(--margin);
}
.tally dt {
  color: var(--muted);
  font-size: 15px;
}

/* Timetable */
.book {
  display: grid;
  gap: 22px;
}
.book-group {
  border: 2px solid var(--ink);
  border-radius: 10px;
  background: #fff;
}
.book-h {
  padding: 8px 16px 6px;
  border-bottom: 2px solid var(--ink);
  background: var(--blue-soft);
  font-size: 24px;
}
.tts li:nth-of-type(even) {
  background: #fbfcff;
}
.tt {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px 12px;
  align-items: center;
  padding: 12px 16px;
  border-top: 1px dashed var(--line);
}
.tt:first-of-type {
  border-top: 0;
}
.tt-name {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  font-weight: 800;
  text-decoration: none;
}
.tt-name small {
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}
.tt-name:hover > span {
  text-decoration: underline;
  text-decoration-color: var(--margin);
}
.tt-fee b {
  padding: 0 4px;
  background: linear-gradient(transparent 45%, var(--marker) 45%);
}
.tt-fee small {
  color: var(--muted);
}
.tt-btn {
  min-height: 44px;
  padding: 0 16px;
  border: 2px solid var(--blue);
  border-radius: 10px;
  background: #fff;
  color: var(--blue);
  font:
    800 15px/1 'Nunito',
    sans-serif;
  cursor: pointer;
}
.tt-btn:hover {
  background: var(--blue);
  color: #fff;
}
.tts-card {
  border: 2px solid var(--ink);
  border-radius: 10px;
  background: #fff;
}

/* Teachers */
.teachers {
  display: grid;
  gap: 18px;
}
.teacher {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 14px;
  align-items: start;
  margin: 0;
}
.teacher img {
  width: 92px;
  height: 92px;
  object-fit: cover;
  border: 2px solid var(--ink);
  border-radius: 50%;
}
.teacher figcaption {
  display: flex;
  flex-direction: column;
  line-height: 1.45;
}
.teacher b {
  font-family: 'Patrick Hand', sans-serif;
  font-size: 24px;
  font-weight: 400;
}
.teacher span {
  color: var(--blue);
  font-weight: 700;
  font-size: 15px;
}
.teacher small {
  color: var(--muted);
  font-size: 15px;
}

/* Sticky-note reviews */
.notes {
  display: grid;
  gap: 18px;
}
.note {
  margin: 0;
  padding: 18px;
  background: #fff;
  border: 2px solid var(--ink);
  border-radius: 6px;
  box-shadow: 4px 4px 0 var(--blue-soft);
}
.note:nth-of-type(2n) {
  background: #eaf6ea;
}
.note:nth-of-type(3n) {
  background: #fdecef;
}
.note-stars {
  margin: 0;
  color: #e3a008;
  letter-spacing: 2px;
}
.note blockquote {
  margin: 6px 0 8px;
}
.note figcaption {
  font-family: 'Patrick Hand', sans-serif;
  font-size: 18px;
  color: var(--muted);
}

/* FAQ */
.faqs {
  display: grid;
  gap: 8px;
}
.faq {
  border: 2px solid var(--ink);
  border-radius: 10px;
  background: #fff;
}
.faq summary {
  position: relative;
  padding: 14px 44px 14px 16px;
  font-weight: 800;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: '?';
  position: absolute;
  top: 8px;
  right: 14px;
  font-family: 'Patrick Hand', sans-serif;
  font-size: 26px;
  color: var(--margin);
}
.faq[open] summary {
  background: linear-gradient(transparent 60%, var(--marker) 60%);
}
.faq p {
  margin: 0;
  padding: 0 16px 16px;
  color: var(--muted);
}

/* Contact */
.contact {
  display: grid;
  gap: 18px;
}
.contact > * {
  max-width: none;
  margin: 0;
}
.contact-row {
  display: flex;
  gap: 8px;
  margin: 0 0 10px;
  font-weight: 700;
}
.contact-row .k-icon {
  margin-top: 4px;
  color: var(--margin);
}
.hours li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  max-width: 360px;
  padding: 6px 0;
  border-bottom: 1px dashed var(--line);
}
.map {
  min-height: 280px;
  border: 2px solid var(--ink);
  border-radius: 10px;
  background: #fff;
}

/* Detail */
.detail {
  display: grid;
  gap: 22px;
}
.detail-photo {
  margin: 0;
  padding: 10px 10px 30px;
  background: #fff;
  border: 2px solid var(--ink);
  transform: rotate(-1.5deg);
}
.detail-photo img {
  display: block;
  width: 100%;
  height: 230px;
  object-fit: cover;
}
.detail-fee {
  margin: 8px 0;
  font-family: 'Patrick Hand', sans-serif;
  font-size: 30px;
  color: var(--margin);
}
.detail-fee small {
  color: var(--muted);
  font-size: 20px;
}
.detail-short {
  margin: 0 0 8px;
  font-weight: 700;
}
.spec {
  margin: 16px 0 0;
  border: 2px solid var(--ink);
  border-radius: 10px;
  background: #fff;
}
.spec div {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 12px;
  padding: 10px 14px;
  border-top: 1px dashed var(--line);
}
.spec div:first-of-type {
  border-top: 0;
}
.spec dt {
  color: var(--muted);
}
.spec dd {
  margin: 0;
  font-weight: 700;
}
.related {
  margin-top: 36px;
}

/* Order */
.order {
  display: grid;
  gap: 22px;
}
.slip {
  padding: 20px;
  border: 2px solid var(--ink);
  border-radius: 10px;
  background: #fff;
}
.sticky-side {
  order: -1;
  max-width: none;
  transform: rotate(-1deg);
}
.order-item {
  font-weight: 800;
  font-size: 18px;
}
.order-item:empty::before {
  content: 'Chọn khoá ở ô “Khoá học” trong phiếu.';
  font-weight: 600;
  font-size: 15px;
}

/* Footer */
.ftr {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.85);
  font-size: 15px;
}
.ftr-in {
  display: grid;
  gap: 22px;
  max-width: 1112px;
  margin: 0 auto;
  padding: 34px 16px;
}
.ftr p {
  margin: 0 0 6px;
}
.ftr-brand {
  color: var(--marker);
  font-family: 'Patrick Hand', sans-serif;
  font-size: 30px;
}
.ftr-h {
  color: #fff;
  font-weight: 800;
}
.ftr .link-big {
  color: #fff;
}

@media (min-width: 720px) {
  .tally {
    grid-template-columns: repeat(4, 1fr);
  }
  .tt {
    grid-template-columns: 1fr auto auto;
  }
  .tt-name {
    grid-column: auto;
  }
  .tt-fee {
    min-width: 180px;
    text-align: right;
  }
  .teachers,
  .notes {
    grid-template-columns: repeat(3, 1fr);
  }
  .notes {
    grid-template-columns: 1fr 1fr;
  }
  .teacher {
    grid-template-columns: 1fr;
    justify-items: start;
  }
  .teacher img {
    width: 130px;
    height: 130px;
  }
  .ftr-in {
    grid-template-columns: 1.4fr 1fr 1fr;
  }
}

@media (min-width: 960px) {
  .paper {
    background-image:
      linear-gradient(90deg, transparent 63px, var(--margin) 63px, var(--margin) 65px, transparent 65px),
      linear-gradient(var(--grid) 1px, transparent 1px),
      linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  }
  .hdr {
    padding: 12px max(16px, calc((100% - 1080px) / 2));
  }
  .hdr-menu {
    display: none;
  }
  .menu {
    display: flex;
    flex-basis: auto;
    flex-direction: row;
    align-items: center;
    order: -1;
    gap: 24px;
    margin-right: 10px;
    padding: 0;
  }
  .brand {
    order: -2;
  }
  .menu a {
    padding: 0;
    border: 0;
  }
  .sec,
  .hero {
    padding-left: 80px;
    padding-right: 32px;
  }
  .sec {
    padding-top: 60px;
    padding-bottom: 60px;
  }
  .hero {
    grid-template-columns: 1fr 340px;
    align-items: center;
    gap: 48px;
    max-width: none;
    padding: 64px max(32px, calc((100% - 1080px) / 2)) 72px max(80px, calc((100% - 1080px) / 2));
  }
  .hero > * {
    max-width: none;
  }
  .hero-title {
    font-size: 64px;
  }
  .h1 {
    font-size: 52px;
  }
  .h2 {
    font-size: 40px;
  }
  .contact {
    grid-template-columns: 1fr 1.3fr;
    align-items: center;
  }
  .detail {
    grid-template-columns: 1fr 1fr;
    gap: 44px;
    align-items: start;
  }
  .detail-photo img {
    height: 380px;
  }
  .order {
    grid-template-columns: 1fr 340px;
    align-items: start;
  }
  .sticky-side {
    order: 0;
    position: sticky;
    top: 100px;
  }
}
