/* Bé Giỏi Kỹ Năng (Kids Life Skills) — MathHero Space pages.
   Playful Learning theme: warm paper, capybara orange, chunky rounded shapes. */
:root {
    --paper: #fffcf7;
    --card: #ffffff;
    --ink: #273449;
    --muted: #596579;
    --brand: #ff8c42;
    --brand-deep: #b94e12;
    --brand-soft: #fff0e3;
    --sun: #ffc93c;
    --leaf: #2ba84a;
    --leaf-bg: #eaf7ed;
    --sky: #eaf3ff;
    --line: #eadfd2;
    --radius: 18px;
    --shadow: 0 4px 0 rgba(185, 78, 18, .16);
}

* { box-sizing: border-box; }

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

.page-shell { max-width: 1080px; margin: 0 auto; padding: 0 24px 40px; }

h1, h2, h3 {
    font-family: "Baloo 2", "Nunito", system-ui, sans-serif;
    line-height: 1.2;
    color: var(--ink);
}

h1 { font-size: 2.4rem; margin: 18px 0 12px; }
h2 { font-size: 1.5rem; margin: 0 0 10px; }
h3 { font-size: 1.15rem; margin: 0 0 6px; }
h1 em, h2 em { font-style: normal; color: var(--brand-deep); }

a { color: var(--brand-deep); }
a:hover { color: #933d0d; }

.lede { font-size: 1.15rem; color: var(--muted); max-width: 62ch; }

/* Nav */
.nav {
    display: flex; align-items: center; justify-content: space-between;
    gap: 16px; padding: 20px 0; flex-wrap: wrap;
}

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark {
    width: 46px; height: 46px; border-radius: 16px;
    background: var(--brand); color: #fff;
    font-family: "Baloo 2", sans-serif; font-weight: 800; font-size: 1.5rem;
    display: flex; align-items: center; justify-content: center;
    box-shadow: var(--shadow);
}
.brand-copy { display: flex; flex-direction: column; line-height: 1.25; }
.brand-copy strong { color: var(--ink); font-size: 1.02rem; }
.brand-copy span { color: var(--muted); font-size: .85rem; }

.nav-links { display: flex; gap: 6px 18px; flex-wrap: wrap; }
.nav-links a { text-decoration: none; font-weight: 700; color: var(--ink); }
.nav-links a:hover { color: var(--brand-deep); }

/* Hero */
.hero { padding: 12px 0 8px; }

.eyebrow, .kicker {
    display: inline-block;
    background: var(--brand-soft); color: var(--brand-deep);
    font-weight: 800; font-size: .8rem; letter-spacing: .04em;
    padding: 5px 14px; border-radius: 999px;
}

.hero-grid {
    display: grid; grid-template-columns: 1.5fr 1fr;
    gap: 28px; align-items: start; margin-top: 18px;
}

.actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 20px; }

.button {
    display: inline-block; text-decoration: none; font-weight: 800;
    padding: 12px 22px; border-radius: 16px;
    background: var(--card); color: var(--ink);
    border: 2px solid var(--line); box-shadow: var(--shadow);
}
.button.primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.button.primary:hover { background: #f67d2e; color: #fff; }

/* Sections & cards */
.section { margin-top: 44px; }

.section-heading {
    display: flex; justify-content: space-between; align-items: end;
    gap: 20px; flex-wrap: wrap; margin-bottom: 18px;
}
.section-heading p { color: var(--muted); max-width: 52ch; margin: 8px 0 0; }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }

.card {
    background: var(--card); border: 2px solid var(--line);
    border-radius: var(--radius); padding: 22px;
}
.card p { color: var(--muted); margin: 0 0 12px; font-size: .98rem; }
.card .step-num {
    display: inline-flex; width: 34px; height: 34px; border-radius: 12px;
    background: var(--sun); color: var(--ink);
    font-family: "Baloo 2", sans-serif; font-weight: 800;
    align-items: center; justify-content: center; margin-bottom: 10px;
}

.card-link { font-weight: 800; text-decoration: none; }
.card-link:hover { text-decoration: underline; }

/* Showcase shots */
.shots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.shots img {
    width: 100%; height: auto; border-radius: var(--radius);
    border: 2px solid var(--line); background: var(--card);
}

/* FAQ */
.faq details {
    background: var(--card); border: 2px solid var(--line);
    border-radius: var(--radius); padding: 16px 20px; margin-bottom: 12px;
}
.faq summary { font-weight: 800; cursor: pointer; font-size: 1.05rem; }
.faq details p { color: var(--muted); margin: 10px 0 0; }

/* Legal layout */
.legal-layout { display: grid; grid-template-columns: 2fr 1fr; gap: 24px; align-items: start; }

.legal-card {
    background: var(--card); border: 2px solid var(--line);
    border-radius: var(--radius); padding: 30px 32px;
}
.legal-card h2 { margin-top: 26px; }
.legal-card h2:first-child { margin-top: 0; }
.legal-card p, .legal-card li { color: var(--muted); }
.legal-card ul { padding-left: 22px; }

.legal-aside {
    background: var(--sky); border-radius: var(--radius);
    padding: 22px; position: sticky; top: 20px;
}
.legal-aside h3 { margin-bottom: 10px; }
.legal-aside p { margin: 6px 0; }

.notice {
    background: var(--leaf-bg); border-radius: var(--radius);
    padding: 18px 22px; margin-top: 24px;
}
.notice p { margin: 0; color: var(--ink); }

/* Footer */
.footer {
    margin-top: 52px; padding-top: 22px;
    border-top: 2px solid var(--line);
    display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
    color: var(--muted); font-size: .92rem;
}
.footer a { color: var(--muted); }

@media (max-width: 860px) {
    .hero-grid, .legal-layout { grid-template-columns: 1fr; }
    .grid { grid-template-columns: 1fr 1fr; }
    .shots { grid-template-columns: repeat(2, 1fr); }
    h1 { font-size: 1.9rem; }
    .legal-aside { position: static; }
}

@media (max-width: 560px) {
    .grid { grid-template-columns: 1fr; }
    body { font-size: 16px; }
}
