@font-face{font-family:'Work Sans';font-style:normal;font-weight:400;font-display:swap;src:url('/assets/fonts/worksans-400.woff2') format('woff2')}
@font-face{font-family:'Work Sans';font-style:normal;font-weight:600;font-display:swap;src:url('/assets/fonts/worksans-600.woff2') format('woff2')}
/* SchoolBuddy — tokens lifted from the live Debut theme's computed styles, so the
   rebuild matches rather than approximates. */
:root {
  --ink: #3d4246;
  --ink-soft: #6b7177;
  --accent: #557b97;
  --accent-dark: #43647c;
  --rule: #e8e9eb;
  --bg: #ffffff;
  --bg-soft: #f5f5f5;
  --free: #2e7d5b;
  --radius: 2px;
  --page: 1200px;
  --gutter: 20px;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: 'Work Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI',
               'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--ink); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { font-weight: 600; line-height: 1.2; margin: 0 0 0.5em; }
h1 { font-size: 2.25rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.25rem; }

.page-width { max-width: var(--page); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: 55px 0; }
.section--soft { background: var(--bg-soft); }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* ── buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-block;
  padding: 12px 24px;
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--accent);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1.12px;
  text-transform: uppercase;
  text-align: center;
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
}
.btn:hover { background: var(--accent); color: #fff; text-decoration: none; }
.btn--solid { background: var(--accent); color: #fff; }
.btn--solid:hover { background: var(--accent-dark); }
.btn--wa { background: #25d366; border-color: #25d366; color: #fff; }
.btn--wa:hover { background: #1da851; border-color: #1da851; color: #fff; }
.btn--full { display: block; width: 100%; }

/* ── header ──────────────────────────────────────────────── */
.site-header { border-bottom: 1px solid var(--rule); background: var(--bg); }
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; padding: 16px var(--gutter); max-width: var(--page); margin: 0 auto;
}
.site-header__logo img { width: 200px; }
.site-nav { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.site-nav a { font-size: 15px; }
.site-nav a[aria-current='page'] { border-bottom: 2px solid var(--ink); }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 4px 0; }

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .site-nav {
    display: none; width: 100%; order: 3; flex-direction: column;
    align-items: flex-start; gap: 0; padding-bottom: 8px;
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { display: block; width: 100%; padding: 12px 0; border-bottom: 1px solid var(--rule); }
  .site-header__logo img { width: 150px; }
}

/* ── hero ────────────────────────────────────────────────── */
.hero { position: relative; background: #2b2f33; color: #fff; }
.hero img { width: 100%; max-height: 620px; object-fit: cover; opacity: .82; }
.hero__text {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center;
  padding: 20px; text-shadow: 0 1px 12px rgba(0,0,0,.45);
}
.hero__text h1 { color: #fff; font-size: clamp(1.7rem, 5vw, 3.4rem); margin-bottom: .3em; }
.hero__text p { font-size: clamp(.95rem, 2vw, 1.3rem); margin: 0 0 1.4em; }
.hero .btn { background: rgba(255,255,255,.95); border-color: transparent; }

/* ── course grid ─────────────────────────────────────────── */
.grid { display: grid; gap: 30px 22px; grid-template-columns: repeat(4, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 1000px) { .grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 749px)  {
  .grid { grid-template-columns: repeat(2, 1fr); gap: 22px 14px; }
  .grid--3 { grid-template-columns: 1fr; } /* testimonials read badly at 2-up */
}

/* 81 of 95 course covers are 16:9 banners with text baked in, so a square crop
   ate the wording. `contain` fits those exactly and letterboxes the few odd
   ones rather than cutting them. */
.card__media {
  background: var(--bg-soft); border: 1px solid var(--rule); border-radius: var(--radius);
  aspect-ratio: 16 / 9; overflow: hidden; margin-bottom: 10px;
}
.card__media img { width: 100%; height: 100%; object-fit: contain; }
.card__title { font-size: 15px; line-height: 1.35; margin: 0 0 4px; font-weight: 400; }
.card__price { font-size: 15px; color: var(--ink-soft); }
.card:hover .card__title { text-decoration: underline; }

.price--was { text-decoration: line-through; color: var(--ink-soft); margin-right: 6px; }
.price--now { color: var(--accent); font-weight: 600; }
.price--free { color: var(--free); font-weight: 600; }

/* ── course page ─────────────────────────────────────────── */
.product { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: start; }
@media (max-width: 900px) { .product { grid-template-columns: 1fr; gap: 28px; } }

.gallery__main {
  border: 1px solid var(--rule); border-radius: var(--radius); overflow: hidden; background: var(--bg-soft);
}
.gallery__thumbs {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-top: 10px;
}
.gallery__thumbs button {
  padding: 0; border: 1px solid var(--rule); border-radius: var(--radius);
  background: none; cursor: pointer; overflow: hidden; aspect-ratio: 1/1;
}
.gallery__thumbs button[aria-current='true'] { border-color: var(--accent); border-width: 2px; }
.gallery__thumbs img { width: 100%; height: 100%; object-fit: cover; }

.product__price { font-size: 1.4rem; margin: 4px 0 20px; }
.product__meta { border-top: 1px solid var(--rule); padding-top: 18px; margin-top: 18px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 0; padding: 0; list-style: none; }
.chips li {
  font-size: 13px; padding: 4px 10px; border: 1px solid var(--rule);
  border-radius: 100px; color: var(--ink-soft);
}
.actions { display: flex; flex-direction: column; gap: 10px; margin: 22px 0; }
.note { font-size: 14px; color: var(--ink-soft); }

.rte { line-height: 1.7; }
.rte img { margin: 16px 0; }
.rte h2, .rte h3 { margin-top: 1.4em; }
.rte table { width: 100%; border-collapse: collapse; display: block; overflow-x: auto; }
.rte td, .rte th { border: 1px solid var(--rule); padding: 8px; }
.rte iframe { max-width: 100%; }

/* ── breadcrumb / misc ───────────────────────────────────── */
.breadcrumb { font-size: 14px; color: var(--ink-soft); margin: 22px 0; }
.breadcrumb a { color: var(--ink-soft); }
.empty { color: var(--ink-soft); padding: 40px 0; }

.bank-box {
  border: 1px solid var(--rule); border-radius: var(--radius);
  padding: 22px; background: var(--bg-soft); max-width: 520px;
}
.bank-box dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 8px 18px; }
.bank-box dt { color: var(--ink-soft); }
.bank-box dd { margin: 0; font-weight: 600; }

/* width:100% + max-width, never max-width alone — a bare inline max-width beats
   the `img { max-width:100% }` reset and overflows narrow viewports. */
.guide-img {
  display: block; width: 100%; max-width: 900px; height: auto;
  margin: 24px 0; border: 1px solid var(--rule); border-radius: var(--radius);
}

.steps { counter-reset: step; list-style: none; padding: 0; max-width: 640px; }
.steps li {
  counter-increment: step; position: relative; padding: 0 0 22px 46px; line-height: 1.6;
}
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: -2px;
  width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: #fff;
  display: grid; place-items: center; font-size: 14px; font-weight: 600;
}

.en-block { margin-top: 34px; border-top: 1px solid var(--rule); padding-top: 18px; }
.en-block > summary {
  cursor: pointer; color: var(--ink-soft); font-size: 14px;
  letter-spacing: .04em; text-transform: uppercase;
}
.en-block > summary::-webkit-details-marker { display: none; }
.en-block > summary::before { content: '+ '; color: var(--accent); }
.en-block[open] > summary::before { content: '\2212 '; }

.rte hr { border: 0; border-top: 1px solid var(--rule); margin: 28px 0; }

.faq details { border-bottom: 1px solid var(--rule); padding: 16px 0; }
.faq summary { cursor: pointer; font-weight: 600; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; float: right; color: var(--accent); font-size: 20px; line-height: 1; }
.faq details[open] summary::after { content: '\2212'; }
.faq details p { margin: 12px 0 0; color: var(--ink-soft); }

/* ── footer ──────────────────────────────────────────────── */
.site-footer { background: var(--bg-soft); margin-top: 60px; padding: 48px 0 30px; font-size: 15px; }
.site-footer__cols { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; }
@media (max-width: 749px) { .site-footer__cols { grid-template-columns: 1fr; gap: 26px; } }
.site-footer h4 { font-size: 15px; margin-bottom: 12px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer__legal {
  border-top: 1px solid var(--rule); margin-top: 34px; padding-top: 20px;
  color: var(--ink-soft); font-size: 13px; line-height: 1.7;
}

/* ── floating WhatsApp ───────────────────────────────────── */
.wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 50;
  width: 54px; height: 54px; border-radius: 50%; background: #25d366;
  display: grid; place-items: center; box-shadow: 0 3px 14px rgba(0,0,0,.28);
}
.wa-float:hover { background: #1da851; }
.wa-float svg { width: 30px; height: 30px; fill: #fff; }
@media print { .wa-float, .site-header, .site-footer { display: none; } }
