/* =========================================================
   IELTS Đà Lạt — ieltsdl.com
   ========================================================= */

:root {
    --navy-900: #0b1730;
    --navy-800: #0f1f3d;
    --navy-700: #182c54;
    --navy-500: #34508a;
    --gold-500: #d4a94c;
    --gold-400: #e2bf6f;
    --gold-100: #f7eed8;
    --cream: #faf7f1;
    --ink: #1d2433;
    --muted: #5d6679;
    --line: #e6e1d6;
    --white: #ffffff;
    --success: #1f7a4d;
    --error: #b42318;

    --font-sans: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", sans-serif;
    --font-serif: "Lora", Georgia, "Times New Roman", serif;

    --radius: 14px;
    --shadow: 0 12px 40px rgba(11, 23, 48, .10);
    --shadow-lg: 0 24px 60px rgba(11, 23, 48, .22);

    /* Ảnh nền: ưu tiên ảnh đặt tại assets/img/, dự phòng ảnh Wikimedia Commons */
    --hero-img: url("../img/hero.jpg"),
                url("https://commons.wikimedia.org/wiki/Special:FilePath/Radcliffe_Camera%2C_Oxford.jpg?width=1920");
    --register-img: url("../img/register.jpg"),
                url("https://commons.wikimedia.org/wiki/Special:FilePath/University_of_Sydney_Quadrangle.jpg?width=1920");
}

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

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
    margin: 0;
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.7;
    color: var(--ink);
    background: var(--cream);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: var(--navy-500); }

h1, h2, h3 {
    font-family: var(--font-serif);
    color: var(--navy-800);
    line-height: 1.25;
    margin: 0 0 .6em;
}
h1 { font-size: clamp(2.2rem, 5.5vw, 4rem); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); }
h3 { font-size: 1.2rem; }
h1 em, h2 em { color: var(--gold-500); font-style: italic; }
p { margin: 0 0 1em; }

.container { width: min(1160px, 100% - 32px); margin-inline: auto; }
.container.narrow { width: min(820px, 100% - 32px); }
.muted { color: var(--muted); }

.kicker {
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--gold-500);
    margin-bottom: .6rem;
}
.kicker.light { color: var(--gold-400); }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    padding: .8rem 1.4rem;
    border-radius: 999px;
    font-family: inherit;
    font-weight: 600;
    font-size: .95rem;
    text-decoration: none;
    border: 2px solid transparent;
    cursor: pointer;
    transition: transform .15s ease, background .2s ease, box-shadow .2s ease, color .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-sm { padding: .5rem 1.1rem; font-size: .88rem; }
.btn-lg { padding: 1rem 1.8rem; font-size: 1rem; }
.btn-block { width: 100%; }
.btn-gold { background: var(--gold-500); color: var(--navy-900); box-shadow: 0 8px 24px rgba(212, 169, 76, .35); }
.btn-gold:hover { background: var(--gold-400); }
.btn-ghost { border-color: rgba(255,255,255,.6); color: var(--white); }
.btn-ghost:hover { background: rgba(255,255,255,.12); }
.btn-navy { background: var(--navy-800); color: var(--white); word-break: break-all; }
.btn-navy:hover { background: var(--navy-700); }

/* ---------- Header ---------- */
.site-header {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 50;
    transition: background .3s ease, box-shadow .3s ease;
}
.site-header.scrolled {
    background: rgba(11, 23, 48, .94);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0,0,0,.18);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--white); }
.brand-mark {
    display: grid;
    place-items: center;
    width: 42px; height: 42px;
    border-radius: 11px;
    background: var(--gold-500);
    color: var(--navy-900);
    font-family: var(--font-serif);
    font-weight: 700;
}
.brand-text { font-family: var(--font-serif); font-weight: 700; font-size: 1.15rem; line-height: 1.15; display: flex; flex-direction: column; }
.brand-text small { font-family: var(--font-sans); font-weight: 400; font-size: .72rem; opacity: .75; letter-spacing: .04em; }

.nav-menu { display: flex; align-items: center; gap: 1.6rem; }
.nav-menu a:not(.btn) {
    color: rgba(255,255,255,.88);
    text-decoration: none;
    font-size: .93rem;
    font-weight: 500;
    position: relative;
}
.nav-menu a:not(.btn)::after {
    content: "";
    position: absolute; left: 0; bottom: -4px;
    width: 0; height: 2px;
    background: var(--gold-500);
    transition: width .2s ease;
}
.nav-menu a:not(.btn):hover::after { width: 100%; }

.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--white); margin: 5px 0; transition: transform .25s, opacity .25s; }

/* ---------- Hero ---------- */
.hero {
    position: relative;
    min-height: min(620px, 82vh);
    display: flex;
    align-items: center;
    color: var(--white);
    padding: 120px 0 100px;
    overflow: hidden;
    background: var(--navy-900);
}
.hero-bg {
    position: absolute; inset: 0;
    background-image:
        linear-gradient(100deg, rgba(11,23,48,.94) 0%, rgba(11,23,48,.78) 45%, rgba(11,23,48,.35) 100%),
        var(--hero-img);
    background-size: cover;
    background-position: 70% 30%;
    transform: scale(1.04);
    animation: slowZoom 22s ease-out forwards;
}
@keyframes slowZoom { to { transform: scale(1); } }
.hero-inner { position: relative; max-width: 1160px; }
.hero h1 { color: var(--white); max-width: 18ch; font-size: clamp(2.1rem, 4.6vw, 3.4rem); }
.hero h1 em { color: var(--gold-400); }
.hero .lead { font-size: clamp(1rem, 1.6vw, 1.15rem); max-width: 60ch; color: rgba(255,255,255,.88); }
.hero .lead strong { color: var(--white); }
.eyebrow {
    display: inline-flex; align-items: center; gap: .55rem;
    padding: .4rem 1rem;
    border: 1px solid rgba(255,255,255,.3);
    border-radius: 999px;
    background: rgba(255,255,255,.08);
    font-size: .85rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 0 4px rgba(74,222,128,.25); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 1rem; margin: 1.6rem 0 1.8rem; }
.hero-tags { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .6rem 1.6rem; font-size: .9rem; color: rgba(255,255,255,.8); }
.hero-tags li::before { content: "✓"; color: var(--gold-400); margin-right: .45rem; font-weight: 700; }
.photo-credit { position: absolute; right: 16px; bottom: 10px; margin: 0; font-size: .68rem; color: rgba(255,255,255,.45); }

/* ---------- Stats ---------- */
.stats { position: relative; z-index: 2; margin-top: -54px; }
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}
.stat { padding: 1.7rem 1.4rem; text-align: center; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat-num { display: block; font-family: var(--font-serif); font-size: 2.2rem; font-weight: 700; color: var(--navy-800); line-height: 1.1; }
.stat-label { display: block; margin-top: .35rem; font-size: .88rem; color: var(--muted); }

/* ---------- Sections ---------- */
.section { padding: 100px 0; }
.section-alt { background: var(--white); }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 3.2rem; }

/* Features */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.feature {
    padding: 2rem;
    border-radius: var(--radius);
    background: var(--white);
    border: 1px solid var(--line);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--gold-400); }
.feature-ic { font-family: var(--font-serif); font-size: 1.8rem; font-weight: 700; color: var(--gold-500); margin-bottom: .6rem; }
.feature p { color: var(--muted); margin: 0; font-size: .95rem; }

/* Courses */
.courses { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; align-items: stretch; }
.course {
    position: relative;
    background: var(--white);
    padding: 2.2rem 2rem;
    border-radius: 18px;
    box-shadow: var(--shadow);
    border: 1px solid var(--line);
}
.course-band {
    display: inline-block;
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--gold-500);
    margin-bottom: .5rem;
}
.course h3 { font-size: 1.6rem; }
.course p { font-size: .95rem; }
.course ul { list-style: none; padding: 0; margin: 1.2rem 0 0; }
.course ul li { padding: .35rem 0; font-size: .93rem; }
.course ul li::before { content: "✓"; color: var(--gold-500); font-weight: 700; margin-right: .6rem; }


/* Method flow */
.flow { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; position: relative; }
.flow::before {
    content: "";
    position: absolute; top: 22px; left: 12%; right: 12%;
    height: 2px;
    background: repeating-linear-gradient(90deg, var(--gold-400) 0 8px, transparent 8px 16px);
}
.flow li { position: relative; text-align: center; padding: 0 .4rem; }
.flow-num {
    position: relative;
    display: grid; place-items: center;
    width: 46px; height: 46px;
    margin: 0 auto 1.1rem;
    border-radius: 50%;
    background: var(--navy-800);
    color: var(--gold-400);
    font-family: var(--font-serif);
    font-weight: 700;
    font-size: 1.15rem;
    box-shadow: 0 0 0 6px var(--white);
}
.flow p { color: var(--muted); font-size: .94rem; margin: 0; }


/* Developmental approach */
.dev {
    display: grid; grid-template-columns: 1.1fr .9fr; gap: 3rem; align-items: center;
    background: var(--cream);
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 2.4rem;
    margin-bottom: 4rem;
}
.dev-text h3 { font-size: 1.4rem; }
.dev-text p { color: #384055; }
.dev-text p:last-child { margin-bottom: 0; }
.stairs { list-style: none; padding: 0; margin: 0; display: flex; align-items: flex-end; gap: .6rem; height: 230px; }
.stairs li {
    flex: 1;
    display: flex; flex-direction: column; justify-content: flex-start; gap: .4rem;
    padding: .9rem .7rem;
    border-radius: 12px 12px 4px 4px;
    background: var(--navy-800);
    color: var(--white);
    font-size: .82rem;
    font-weight: 600;
    line-height: 1.35;
}
.stairs li:nth-child(1) { height: 40%; background: var(--navy-500); }
.stairs li:nth-child(2) { height: 60%; background: var(--navy-700); }
.stairs li:nth-child(3) { height: 80%; }
.stairs li:nth-child(4) { height: 100%; background: var(--gold-500); color: var(--navy-900); }
.stairs span { font-family: var(--font-serif); font-size: 1.3rem; color: var(--gold-400); }
.stairs li:nth-child(4) span { color: var(--navy-900); }
.flow-title { text-align: center; font-size: 1.3rem; margin-bottom: 2.2rem; }

/* Session structure */
.session { display: grid; grid-template-columns: .9fr 1.1fr; gap: 4rem; align-items: center; }
.timeline { list-style: none; padding: 0; margin: 0; counter-reset: t; }
.timeline li {
    position: relative;
    padding: 0 0 1.6rem 3.2rem;
    counter-increment: t;
}
.timeline li::before {
    content: counter(t);
    position: absolute; left: 0; top: 0;
    width: 2.1rem; height: 2.1rem;
    display: grid; place-items: center;
    border-radius: 50%;
    background: var(--gold-100);
    color: var(--navy-800);
    font-weight: 700;
    font-size: .9rem;
}
.timeline li::after {
    content: "";
    position: absolute; left: 1.03rem; top: 2.3rem; bottom: .2rem;
    width: 2px;
    background: var(--line);
}
.timeline li:last-child { padding-bottom: 0; }
.timeline li:last-child::after { display: none; }
.timeline h3 { margin-bottom: .2rem; font-size: 1.1rem; }
.timeline p { margin: 0; color: var(--muted); font-size: .94rem; }
.tag {
    display: inline-block;
    margin-top: .5rem;
    padding: .15rem .7rem;
    border-radius: 999px;
    background: var(--navy-800);
    color: var(--gold-400);
    font-size: .76rem;
    font-weight: 600;
}

/* Pricing */
.pricing { display: grid; grid-template-columns: repeat(2, minmax(0, 380px)); justify-content: center; gap: 1.5rem; }
.price-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-top: 5px solid var(--gold-500);
    border-radius: 18px;
    padding: 2.2rem 2rem;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
}
.price-name { font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; font-size: .82rem; margin: 0 0 .4rem; }
.price { font-family: var(--font-serif); font-size: 2.6rem; font-weight: 700; color: var(--navy-800); line-height: 1.1; margin: 0 0 1.2rem; }
.price span { font-family: var(--font-sans); font-size: .95rem; font-weight: 500; color: var(--muted); margin-left: .35rem; }
.price-card ul { list-style: none; padding: 0; margin: 0 0 1.8rem; flex: 1; }
.price-card li { padding: .4rem 0 .4rem 1.6rem; position: relative; font-size: .94rem; }
.price-card li::before { content: "✓"; position: absolute; left: 0; color: var(--gold-500); font-weight: 700; }

/* Hours */
.hours {
    max-width: 800px;
    margin: 3.2rem auto 0;
    background: var(--navy-800);
    color: var(--white);
    border-radius: 20px;
    padding: 1.6rem 1.8rem;
    box-shadow: var(--shadow-lg);
}
.hours-scale, .hours-row { display: grid; grid-template-columns: 90px 1fr; align-items: center; gap: 1rem; }
.hours-scale { font-size: .75rem; color: var(--gold-400); margin-bottom: .4rem; }
.hours-ticks { position: relative; height: 1.2em; }
.hours-ticks span { position: absolute; top: 0; transform: translateX(-50%); white-space: nowrap; }
.hours-ticks span:first-child { transform: none; }
.hours-ticks span:last-child { transform: translateX(-100%); }
.hours-row { padding: .45rem 0; }
.hours-day { font-weight: 600; font-size: .92rem; }
.hours-bar {
    display: block;
    height: 30px;
    border-radius: 8px;
    background: linear-gradient(90deg, var(--gold-500), var(--gold-400));
    color: var(--navy-900);
    font-size: .8rem;
    font-weight: 600;
    line-height: 30px;
    text-align: center;
}
.hours-row.off .hours-bar { background: rgba(255,255,255,.08); color: rgba(255,255,255,.5); }
.hours-note { margin: 1rem 0 0; font-size: .84rem; color: rgba(255,255,255,.65); }


/* Why us */
.edge { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; }
.edge-card {
    position: relative;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 1.9rem 1.6rem;
    box-shadow: var(--shadow);
}
.edge-card--accent { background: var(--navy-800); border-color: var(--navy-800); color: rgba(255,255,255,.85); }
.edge-card--accent h3 { color: var(--white); }
.edge-num {
    display: inline-grid; place-items: center;
    min-width: 54px; height: 54px;
    padding: 0 .6rem;
    border-radius: 14px;
    background: var(--gold-100);
    color: var(--navy-800);
    font-family: var(--font-serif);
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 1.1rem;
}
.edge-card--accent .edge-num { background: var(--gold-500); color: var(--navy-900); }
.edge-card p { font-size: .94rem; margin: 0; color: var(--muted); }
.edge-card--accent p { color: rgba(255,255,255,.82); }
.limited {
    margin-top: 2.4rem;
    display: flex; align-items: center; gap: 1.2rem; flex-wrap: wrap;
    padding: 1.3rem 1.6rem;
    border: 2px dashed var(--gold-400);
    border-radius: var(--radius);
    background: var(--gold-100);
}
.limited p { flex: 1 1 380px; margin: 0; color: var(--navy-800); }
.limited-ic {
    flex-shrink: 0;
    display: grid; place-items: center;
    width: 38px; height: 38px;
    border-radius: 50%;
    background: var(--gold-500);
    color: var(--navy-900);
    font-weight: 800;
}
.limited-note {
    margin: 1.4rem 0 0;
    padding: 1rem 1.2rem;
    border-left: 4px solid var(--gold-500);
    border-radius: 0 10px 10px 0;
    background: rgba(212,169,76,.14);
    color: rgba(255,255,255,.9);
    font-size: .95rem;
}
.limited-note strong { color: var(--gold-400); }
.accept-note { margin: 1rem 0 0; font-size: .9rem; color: rgba(255,255,255,.78); }
.accept-note strong { color: var(--white); }

/* Benefits */
.benefits { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.benefit {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.8rem;
    transition: transform .2s ease, box-shadow .2s ease;
}
.benefit:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.benefit-ic {
    display: grid; place-items: center;
    width: 52px; height: 52px;
    border-radius: 14px;
    background: var(--gold-100);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}
.benefit p { color: var(--muted); font-size: .95rem; margin: 0; }
.benefit-note {
    margin-top: 2.4rem;
    display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap;
    padding: 1.4rem 1.8rem;
    border-radius: var(--radius);
    background: var(--navy-800);
    color: rgba(255,255,255,.88);
}
.benefit-note p { margin: 0; flex: 1 1 420px; font-size: .95rem; }
.benefit-note strong { color: var(--gold-400); }

/* Blog cards */
.post-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; }
.post-grid--list { grid-template-columns: repeat(2, 1fr); gap: 1.6rem; }
.post-card {
    display: flex; flex-direction: column;
    padding: 1.7rem;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    text-decoration: none;
    color: var(--ink);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--gold-400); }
.post-card h3, .post-card h2 { font-size: 1.15rem; margin: .8rem 0 .5rem; }
.post-grid--list .post-card h2 { font-size: 1.4rem; }
.post-card p { color: var(--muted); font-size: .92rem; flex: 1; }
.post-meta { font-size: .82rem; font-weight: 600; color: var(--navy-500); }
.post-skill {
    align-self: flex-start;
    display: inline-block;
    padding: .2rem .75rem;
    border-radius: 999px;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}
.post-skill--listening { background: #e3eefc; color: #1f4f8f; }
.post-skill--reading   { background: #e6f4ea; color: #1f6b3a; }
.post-skill--writing   { background: #fbeedd; color: #8a4b0f; }
.post-skill--speaking  { background: #f3e6f7; color: #6b2a7f; }
.center { text-align: center; margin: 2.4rem 0 0; }

/* Page hero (blog) */
.page-hero {
    position: relative;
    overflow: hidden;
    background: var(--navy-900);
    color: var(--white);
    padding: 150px 0 80px;
}
.page-hero .hero-bg { animation: none; transform: none; }
.page-hero-inner { position: relative; }
.page-hero h1 { color: var(--white); font-size: clamp(2rem, 4.4vw, 3.1rem); max-width: 22ch; }
.page-hero--post h1 { max-width: none; margin-top: 1rem; }
.page-hero-lead { max-width: 60ch; color: rgba(255,255,255,.85); font-size: 1.05rem; }
.page-hero-meta { color: rgba(255,255,255,.7); font-size: .9rem; margin: 0; }
.crumbs { font-size: .85rem; color: rgba(255,255,255,.65); margin-bottom: 1.2rem; }
.crumbs a { color: rgba(255,255,255,.85); text-decoration: none; }
.crumbs a:hover { color: var(--gold-400); }

/* Post body */
.post { padding-top: 64px; }
.post-body { font-size: 1.05rem; line-height: 1.8; }
.post-body h2 { font-size: 1.6rem; margin-top: 2.6rem; }
.post-body h3 { font-size: 1.2rem; margin-top: 1.8rem; }
.post-body ul, .post-body ol { padding-left: 1.3rem; margin: 0 0 1.2rem; }
.post-body li { margin-bottom: .45rem; }
.post-body li::marker { color: var(--gold-500); }
.post-lead { font-size: 1.18rem; color: var(--navy-800); }
.post-body blockquote {
    margin: 1.2rem 0 1.4rem;
    padding: 1rem 1.3rem;
    background: var(--gold-100);
    border-left: 4px solid var(--gold-500);
    border-radius: 0 12px 12px 0;
    font-family: var(--font-serif);
    font-style: italic;
    color: var(--navy-800);
}
.post-box {
    margin: 2.6rem 0;
    padding: 1.6rem 1.8rem;
    background: var(--white);
    border: 1px solid var(--line);
    border-top: 5px solid var(--gold-500);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.post-box-title { font-family: var(--font-serif); font-weight: 700; font-size: 1.2rem; color: var(--navy-800); margin-bottom: .6rem; }
.post-box ul { margin: 0; }
.post-cta {
    display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap;
    margin: 2.6rem 0;
    padding: 1.6rem 1.8rem;
    border-radius: var(--radius);
    background: var(--navy-800);
    color: rgba(255,255,255,.85);
}
.post-cta.wide { margin-top: 3rem; }
.post-cta p { margin: 0; font-size: .95rem; }
.post-cta > div { flex: 1 1 320px; }
.post-cta-title { font-family: var(--font-serif); font-size: 1.25rem !important; font-weight: 700; color: var(--white); margin-bottom: .3rem !important; }
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.post-nav-link {
    display: block;
    padding: 1.1rem 1.3rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
    text-decoration: none;
    color: var(--navy-800);
    font-weight: 600;
    font-size: .95rem;
    line-height: 1.5;
}
.post-nav-link span { display: block; font-size: .8rem; font-weight: 500; color: var(--muted); margin-bottom: .2rem; }
.post-nav-link.next { text-align: right; grid-column: 2; }
.post-nav-link:hover { border-color: var(--gold-400); }

.footer-links { display: flex; gap: 1.4rem; flex-wrap: wrap; }
.footer-links a { color: rgba(255,255,255,.75); text-decoration: none; }
.footer-links a:hover { color: var(--gold-400); }
.nav-menu a[aria-current="page"] { color: var(--gold-400); }

/* ---------- Register ---------- */
.register { position: relative; overflow: hidden; background: var(--navy-900); color: var(--white); }
.register-bg {
    position: absolute; inset: 0;
    background-image:
        linear-gradient(180deg, rgba(11,23,48,.93), rgba(11,23,48,.86)),
        var(--register-img);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}
.register-inner { position: relative; display: grid; grid-template-columns: .9fr 1.1fr; gap: 4rem; align-items: start; }
.register-intro { position: sticky; top: 110px; }
.register h2 { color: var(--white); }
.register-intro > p { color: rgba(255,255,255,.82); }
.mini-steps { list-style: none; padding: 0; margin: 1.6rem 0; counter-reset: m; }
.mini-steps li { counter-increment: m; position: relative; padding: .45rem 0 .45rem 2.4rem; color: rgba(255,255,255,.88); }
.mini-steps li::before {
    content: counter(m);
    position: absolute; left: 0; top: .4rem;
    width: 1.6rem; height: 1.6rem;
    display: grid; place-items: center;
    border-radius: 50%;
    background: rgba(212,169,76,.2);
    color: var(--gold-400);
    font-size: .8rem; font-weight: 700;
}
.field-hint { font-size: .8rem; color: var(--muted); margin: .35rem 0 0; }
.field select option:disabled { color: #b5b9c3; }
.direct { font-size: .95rem; }
.direct a { color: var(--gold-400); font-weight: 600; }

.form-card {
    background: var(--white);
    color: var(--ink);
    border-radius: 20px;
    padding: 2.2rem;
    box-shadow: var(--shadow-lg);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem 1.2rem; margin-bottom: 1.6rem; }
.field { display: flex; flex-direction: column; min-width: 0; }
.field.full { grid-column: 1 / -1; }
fieldset.field { border: 0; padding: 0; margin: 0; }
.field label, .field legend { font-size: .88rem; font-weight: 600; color: var(--navy-800); margin-bottom: .4rem; padding: 0; }
.req { color: var(--error); }
.opt { font-weight: 400; color: var(--muted); }
.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field select,
.field textarea {
    width: 100%;
    padding: .78rem .95rem;
    font: inherit;
    font-size: .95rem;
    color: var(--ink);
    background: var(--cream);
    border: 1.5px solid var(--line);
    border-radius: 10px;
    transition: border-color .2s, box-shadow .2s, background .2s;
}
.field select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%235d6679' stroke-width='1.8' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right .95rem center;
    padding-right: 2.4rem;
}
.field textarea { resize: vertical; min-height: 100px; }
.field input:focus, .field select:focus, .field textarea:focus {
    outline: none;
    border-color: var(--gold-500);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(212,169,76,.18);
}
.has-error input, .has-error select, .has-error textarea { border-color: var(--error); }
.field-error { color: var(--error); font-size: .82rem; margin: .35rem 0 0; }

.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip { cursor: pointer; margin: 0 !important; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span {
    display: inline-block;
    padding: .5rem 1rem;
    border: 1.5px solid var(--line);
    border-radius: 999px;
    background: var(--cream);
    font-size: .88rem;
    font-weight: 500;
    color: var(--ink);
    transition: all .15s ease;
}
.chip:hover span { border-color: var(--gold-400); }
.chip input:checked + span { background: var(--navy-800); border-color: var(--navy-800); color: var(--white); }
.chip input:focus-visible + span { box-shadow: 0 0 0 4px rgba(212,169,76,.3); }
.has-error .chip span { border-color: rgba(180,35,24,.5); }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-privacy { font-size: .8rem; color: var(--muted); text-align: center; margin: 1rem 0 0; }

.alert { padding: 1rem 1.2rem; border-radius: 10px; margin-bottom: 1.4rem; font-size: .93rem; }
.alert strong { display: block; }
.alert-success { background: #e8f5ee; color: var(--success); border: 1px solid #b9e0cb; }
.alert-error { background: #fdecea; color: var(--error); border: 1px solid #f5c2bd; }

/* ---------- FAQ ---------- */
.faq details {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 12px;
    margin-bottom: .8rem;
    transition: box-shadow .2s;
}
.faq details[open] { box-shadow: var(--shadow); border-color: var(--gold-400); }
.faq summary {
    cursor: pointer;
    list-style: none;
    padding: 1.1rem 3rem 1.1rem 1.4rem;
    font-weight: 600;
    color: var(--navy-800);
    position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
    content: "+";
    position: absolute; right: 1.3rem; top: 50%;
    transform: translateY(-50%);
    font-size: 1.4rem;
    color: var(--gold-500);
    transition: transform .2s;
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { padding: 0 1.4rem 1.2rem; margin: 0; color: var(--muted); }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.contact-card { background: var(--white); border: 1px solid var(--line); border-radius: 20px; padding: 2rem; }
.contact-row { display: flex; justify-content: space-between; gap: 1rem; padding: .9rem 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.contact-row:last-of-type { border-bottom: 0; margin-bottom: 1.2rem; }
.contact-label { color: var(--muted); font-size: .9rem; }
.contact-row a { font-weight: 600; word-break: break-all; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: rgba(255,255,255,.7); padding: 2.4rem 0; font-size: .9rem; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.footer-inner p { margin: 0; }
.footer-inner a { color: var(--gold-400); }

.sticky-cta { display: none; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .hero-bg { animation: none; transform: none; }
    .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .features, .courses, .benefits, .post-grid, .edge { grid-template-columns: 1fr 1fr; }
    .flow { grid-template-columns: 1fr 1fr; row-gap: 2.4rem; }
    .dev { grid-template-columns: 1fr; gap: 2rem; padding: 1.8rem; }
    .flow::before { display: none; }
    .register-inner, .session, .contact { grid-template-columns: 1fr; gap: 2.6rem; }
    .register-intro { position: static; }
    .register-bg { background-attachment: scroll; }
}

@media (max-width: 860px) {
    .nav-toggle { display: block; }
    .nav-menu {
        position: fixed;
        top: 72px; left: 0; right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 1rem 16px 1.5rem;
        background: rgba(11,23,48,.98);
        transform: translateY(-120%);
        visibility: hidden;
        transition: transform .3s ease, visibility .3s;
    }
    .nav-menu.open { transform: none; visibility: visible; }
    .nav-menu a:not(.btn) { padding: .85rem 0; border-bottom: 1px solid rgba(255,255,255,.08); }
    .nav-menu .btn { margin-top: 1rem; }
    .site-header.menu-open { background: rgba(11,23,48,.98); }
    .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
    .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

    .stats-grid { grid-template-columns: 1fr 1fr; }
    .stat:nth-child(2) { border-right: 0; }
    .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}

@media (max-width: 640px) {
    .section { padding: 72px 0; }
    .features, .courses, .flow, .benefits, .edge, .post-grid, .post-grid--list, .post-nav { grid-template-columns: 1fr; }
    .post-nav-link.next { grid-column: auto; }
    .page-hero { padding: 120px 0 56px; }
    .post-body { font-size: 1rem; }
    .flow li { text-align: left; padding-left: 3.6rem; }
    .flow-num { position: absolute; left: 0; top: 0; margin: 0; }
    .pricing { grid-template-columns: 1fr; }
    .hours { padding: 1.3rem 1rem; }
    .stairs { height: 200px; gap: .4rem; }
    .stairs li { font-size: .74rem; padding: .7rem .5rem; }
    .dev { padding: 1.4rem 1.2rem; }
    .hours-scale, .hours-row { grid-template-columns: 64px 1fr; gap: .6rem; }
    .hours-day { font-size: .82rem; }
    .form-grid { grid-template-columns: 1fr; }
    .form-card { padding: 1.5rem 1.2rem; }
    .hero { padding-top: 110px; }
    .hero-cta .btn { width: 100%; }
    .stat { padding: 1.3rem .8rem; }
    .stat-num { font-size: 1.7rem; }
    .photo-credit { left: 16px; right: auto; }
    .footer-inner { flex-direction: column; text-align: center; }

    .sticky-cta {
        display: block;
        position: fixed;
        left: 16px; right: 16px; bottom: 16px;
        z-index: 40;
        padding: .9rem;
        text-align: center;
        border-radius: 999px;
        background: var(--gold-500);
        color: var(--navy-900);
        font-weight: 700;
        text-decoration: none;
        box-shadow: 0 10px 30px rgba(11,23,48,.35);
        transform: translateY(150%);
        transition: transform .3s ease;
    }
    .sticky-cta.show { transform: none; }
}
