/* ============================================================
   Brilliant 아카데미 — Study Dashboard Template
   Self-contained. No frameworks, no external assets.
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  --teal: #0ea5a5;
  --teal-dark: #0b807f;
  --teal-deep: #075e5d;
  --mint: #eafaf6;
  --mint-2: #d5f3ec;
  --ink: #1e2a32;
  --ink-soft: #47616f;
  --muted: #7c96a3;
  --line: #e3ede9;
  --bg: #f4faf8;
  --card: #ffffff;
  --white: #ffffff;
  --amber: #f5a623;

  --sidebar-w: 250px;
  --radius: 18px;
  --radius-sm: 12px;
  --radius-lg: 26px;
  --shadow-sm: 0 2px 10px rgba(11, 128, 127, 0.06);
  --shadow: 0 12px 32px rgba(11, 128, 127, 0.10);
  --shadow-lg: 0 22px 60px rgba(7, 94, 93, 0.16);
  --ring: 0 0 0 3px rgba(14, 165, 165, 0.35);

  --ff: 'Segoe UI', 'Malgun Gothic', 'Apple SD Gothic Neo', system-ui, -apple-system, sans-serif;
  --t-fast: 180ms cubic-bezier(.4, 0, .2, 1);
  --t: 320ms cubic-bezier(.4, 0, .2, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--ff);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; }

:focus-visible { outline: none; box-shadow: var(--ring); border-radius: 8px; }

/* ============================================================
   Layout: fixed left sidebar + offset main
   ============================================================ */
.layout { min-height: 100vh; }

.sidebar {
  position: fixed;
  top: 0; left: 0;
  width: var(--sidebar-w);
  height: 100vh;
  background: linear-gradient(185deg, #ffffff 0%, #f2fbf8 100%);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  padding: 22px 18px;
  z-index: 60;
  transition: transform var(--t);
  overflow-y: auto;
}

/* Brand */
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 4px 6px 18px;
  border-bottom: 1px solid var(--line);
}
.brand-mark {
  width: 42px; height: 42px;
  flex-shrink: 0;
  border-radius: 13px;
  background: linear-gradient(135deg, var(--teal) 0%, var(--teal-deep) 100%);
  display: grid; place-items: center;
  box-shadow: var(--shadow-sm);
}
.brand-mark svg { width: 24px; height: 24px; }
.brand-text strong {
  display: block;
  font-size: 1.06rem;
  letter-spacing: -.01em;
  color: var(--ink);
  line-height: 1.2;
}
.brand-text span {
  font-size: .72rem;
  color: var(--muted);
  letter-spacing: .02em;
}

/* Progress widget */
.progress-widget {
  margin: 18px 4px;
  background: var(--mint);
  border: 1px solid var(--mint-2);
  border-radius: var(--radius-sm);
  padding: 15px 15px 17px;
}
.progress-widget .pw-head {
  display: flex; align-items: center; gap: 8px;
  font-size: .74rem; font-weight: 700;
  color: var(--teal-deep);
  letter-spacing: .02em;
  margin-bottom: 12px;
}
.progress-widget .pw-head svg { width: 15px; height: 15px; }
.pw-ring-row { display: flex; align-items: center; gap: 13px; }
.pw-ring { width: 62px; height: 62px; flex-shrink: 0; }
.pw-ring circle { fill: none; stroke-width: 7; stroke-linecap: round; }
.pw-ring .track { stroke: #cdeee6; }
.pw-ring .fill {
  stroke: var(--teal);
  stroke-dasharray: 163;
  stroke-dashoffset: 163;
  transform: rotate(-90deg);
  transform-origin: 50% 50%;
  transition: stroke-dashoffset 1.4s cubic-bezier(.2,.7,.2,1);
}
.pw-ring-label {
  font-size: .95rem; font-weight: 800;
  fill: var(--teal-deep);
}
.pw-meta strong { font-size: 1.35rem; color: var(--teal-deep); line-height: 1; }
.pw-meta span { display: block; font-size: .72rem; color: var(--ink-soft); margin-top: 3px; }
.pw-bars { margin-top: 13px; display: grid; gap: 9px; }
.pw-bar-label { display: flex; justify-content: space-between; font-size: .68rem; color: var(--ink-soft); margin-bottom: 4px; }
.pw-bar { height: 6px; background: #cdeee6; border-radius: 99px; overflow: hidden; }
.pw-bar > i {
  display: block; height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--teal) 0%, var(--teal-dark) 100%);
  border-radius: 99px;
  transition: width 1.3s cubic-bezier(.2,.7,.2,1);
}

/* Nav */
.side-nav { margin-top: 6px; flex: 1; }
.side-nav .nav-title {
  font-size: .68rem; font-weight: 700; letter-spacing: .12em;
  color: var(--muted); text-transform: uppercase;
  padding: 8px 12px 6px;
}
.side-nav a {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 13px;
  border-radius: 12px;
  color: var(--ink-soft);
  font-weight: 600; font-size: .93rem;
  transition: background var(--t-fast), color var(--t-fast);
  margin-bottom: 2px;
}
.side-nav a svg { width: 19px; height: 19px; flex-shrink: 0; opacity: .82; }
.side-nav a:hover { background: var(--mint); color: var(--teal-deep); }
.side-nav a.active {
  background: linear-gradient(135deg, var(--teal) 0%, var(--teal-dark) 100%);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.side-nav a.active svg { opacity: 1; }

/* Bottom CTA */
.side-cta {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.side-cta .cta-card {
  background: linear-gradient(150deg, var(--teal-deep) 0%, var(--teal) 100%);
  border-radius: var(--radius-sm);
  padding: 16px;
  color: #eafaf6;
  position: relative;
  overflow: hidden;
}
.side-cta .cta-card p { font-size: .78rem; margin-bottom: 11px; position: relative; }
.side-cta .cta-card strong { color: #fff; }
.side-cta .btn-consult {
  display: inline-flex; align-items: center; gap: 7px;
  width: 100%; justify-content: center;
  background: #fff; color: var(--teal-deep);
  font-weight: 700; font-size: .88rem;
  padding: 10px 14px; border-radius: 10px;
  transition: transform var(--t-fast), box-shadow var(--t-fast);
}
.side-cta .btn-consult:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(0,0,0,.18); }
.side-cta .btn-consult svg { width: 15px; height: 15px; }

/* ---------- Topbar (mobile only) ---------- */
.topbar {
  display: none;
  position: sticky; top: 0;
  z-index: 55;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 18px;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.topbar .brand { border: none; padding: 0; }
.topbar .brand-mark { width: 36px; height: 36px; border-radius: 11px; }
.topbar .brand-mark svg { width: 20px; height: 20px; }
.topbar .brand-text strong { font-size: .98rem; }
.hamburger {
  width: 44px; height: 44px;
  border-radius: 11px;
  display: grid; place-items: center;
  background: var(--mint);
  color: var(--teal-deep);
}
.hamburger svg { width: 22px; height: 22px; }
.hamburger .x { display: none; }

/* Backdrop */
.backdrop {
  position: fixed; inset: 0;
  background: rgba(15, 45, 45, .45);
  opacity: 0; pointer-events: none;
  transition: opacity var(--t);
  z-index: 58;
}

/* ---------- Main ---------- */
.main {
  margin-left: var(--sidebar-w);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.container {
  width: 100%;
  max-width: 1120px;
  margin-inline: auto;
  padding-inline: clamp(18px, 4vw, 48px);
}
section { padding-block: clamp(48px, 7vw, 88px); }

/* ============================================================
   Typography helpers
   ============================================================ */
.eyebrow {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: .76rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--teal-dark);
  background: var(--mint);
  border: 1px solid var(--mint-2);
  padding: 6px 13px;
  border-radius: 99px;
  margin-bottom: 18px;
}
.eyebrow svg { width: 14px; height: 14px; }
h1, h2, h3 { line-height: 1.22; letter-spacing: -.02em; color: var(--ink); }
h1 { font-size: clamp(2rem, 4.6vw, 3.15rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.3vw, 2.35rem); font-weight: 800; }
h3 { font-size: clamp(1.1rem, 1.7vw, 1.3rem); font-weight: 700; }
.lead { font-size: clamp(1rem, 1.5vw, 1.14rem); color: var(--ink-soft); max-width: 60ch; }
.section-head { max-width: 62ch; margin-bottom: clamp(28px, 4vw, 46px); }
.section-head.center { margin-inline: auto; text-align: center; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-weight: 700; font-size: .95rem;
  padding: 13px 24px;
  border-radius: 13px;
  transition: transform var(--t-fast), box-shadow var(--t-fast), background var(--t-fast);
}
.btn svg { width: 18px; height: 18px; }
.btn-primary {
  background: linear-gradient(135deg, var(--teal) 0%, var(--teal-dark) 100%);
  color: #fff;
  box-shadow: var(--shadow);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.btn-ghost {
  background: #fff; color: var(--teal-deep);
  border: 1.5px solid var(--mint-2);
  box-shadow: var(--shadow-sm);
}
.btn-ghost:hover { transform: translateY(-3px); border-color: var(--teal); }

/* ============================================================
   Hero
   ============================================================ */
.hero {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
  padding-top: clamp(40px, 6vw, 76px);
}
.hero-copy h1 { margin-bottom: 20px; }
.hero-copy h1 .hl {
  background: linear-gradient(120deg, var(--teal) 0%, var(--teal-deep) 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-copy .lead { margin-bottom: 28px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 13px; margin-bottom: 26px; }
.hero-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: .82rem; font-weight: 600; color: var(--ink-soft);
  background: #fff; border: 1px solid var(--line);
  padding: 8px 14px; border-radius: 99px;
  box-shadow: var(--shadow-sm);
}
.chip svg { width: 15px; height: 15px; color: var(--teal); }
.chip.c svg { color: var(--teal); }

.hero-art {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow);
}
.hero-art svg { width: 100%; height: auto; }

/* ============================================================
   Roadmap
   ============================================================ */
.roadmap-wrap {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 4vw, 46px);
  box-shadow: var(--shadow);
}
.roadmap {
  position: relative;
  display: grid;
  gap: 20px;
}
.roadmap::before {
  content: "";
  position: absolute;
  left: 27px; top: 34px; bottom: 34px;
  width: 4px;
  background: var(--mint-2);
  border-radius: 99px;
}
.roadmap .rm-progress {
  position: absolute;
  left: 27px; top: 34px;
  width: 4px;
  height: 0;
  background: linear-gradient(180deg, var(--teal) 0%, var(--teal-deep) 100%);
  border-radius: 99px;
  transition: height 1.4s cubic-bezier(.3,.7,.2,1);
  z-index: 1;
}
.rm-node {
  position: relative;
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 18px;
  align-items: start;
  z-index: 2;
}
.rm-dot {
  width: 56px; height: 56px;
  border-radius: 16px;
  background: #fff;
  border: 3px solid var(--mint-2);
  display: grid; place-items: center;
  color: var(--muted);
  font-weight: 800;
  transition: all var(--t);
}
.rm-dot svg { width: 24px; height: 24px; }
.rm-node.on .rm-dot {
  background: linear-gradient(135deg, var(--teal) 0%, var(--teal-deep) 100%);
  border-color: var(--teal);
  color: #fff;
  box-shadow: 0 10px 22px rgba(11,128,127,.28);
  transform: scale(1.04);
}
.rm-body {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  transition: border-color var(--t), background var(--t);
}
.rm-node.on .rm-body { border-color: var(--mint-2); background: var(--mint); }
.rm-body .rm-lv { font-size: .72rem; font-weight: 800; color: var(--teal-dark); letter-spacing: .05em; }
.rm-body h4 { font-size: 1.05rem; margin: 3px 0 5px; color: var(--ink); }
.rm-body p { font-size: .88rem; color: var(--ink-soft); margin-bottom: 11px; }
.rm-mini-bar { height: 6px; background: #dcefe9; border-radius: 99px; overflow: hidden; }
.rm-mini-bar > i {
  display: block; height: 100%; width: 0;
  background: linear-gradient(90deg, var(--teal), var(--teal-dark));
  border-radius: 99px;
  transition: width 1.2s ease .3s;
}
.rm-node.on .rm-mini-bar > i { width: var(--p, 60%); }
.rm-pct { font-size: .72rem; color: var(--muted); margin-top: 5px; font-weight: 600; }

/* ============================================================
   Feature cards / grids
   ============================================================ */
.grid {
  display: grid;
  gap: clamp(16px, 2.2vw, 24px);
}
.grid.cols-auto { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.grid.cols-2 { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.grid.cols-3 { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }

.feature-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--t), box-shadow var(--t), border-color var(--t);
}
.feature-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--mint-2); }
.feature-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: var(--mint);
  border: 1px solid var(--mint-2);
  display: grid; place-items: center;
  color: var(--teal-dark);
  margin-bottom: 16px;
}
.feature-icon svg { width: 26px; height: 26px; }
.feature-card h3 { margin-bottom: 8px; }
.feature-card p { font-size: .92rem; color: var(--ink-soft); }

/* ============================================================
   Stats (count-up)
   ============================================================ */
.stats {
  background: linear-gradient(160deg, var(--teal-deep) 0%, var(--teal) 100%);
  border-radius: var(--radius-lg);
  padding: clamp(30px, 5vw, 54px);
  color: #eafaf6;
  box-shadow: var(--shadow);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 24px;
  text-align: center;
}
.stat .num {
  font-size: clamp(2.1rem, 4vw, 3rem);
  font-weight: 800; line-height: 1;
  color: #fff;
  letter-spacing: -.02em;
}
.stat .num .suffix { font-size: .55em; margin-left: 2px; }
.stat .label { font-size: .88rem; margin-top: 8px; opacity: .9; }

/* ============================================================
   Instructor highlights / cards
   ============================================================ */
.instructor-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 22px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform var(--t), box-shadow var(--t);
}
.instructor-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.avatar {
  width: 92px; height: 92px;
  margin: 0 auto 15px;
  border-radius: 50%;
  background: var(--mint);
  border: 3px solid var(--mint-2);
  display: grid; place-items: center;
  overflow: hidden;
}
.avatar svg { width: 92px; height: 92px; }
.instructor-card h3 { margin-bottom: 3px; }
.instructor-card .role { font-size: .82rem; color: var(--teal-dark); font-weight: 700; margin-bottom: 10px; }
.instructor-card p { font-size: .86rem; color: var(--ink-soft); }
.instructor-card .tags { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 13px; }
.instructor-card .tags span {
  font-size: .72rem; font-weight: 600; color: var(--teal-deep);
  background: var(--mint); border-radius: 99px; padding: 4px 10px;
}

/* Featured instructor split */
.featured {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: clamp(24px, 4vw, 48px);
  align-items: center;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 4vw, 44px);
  box-shadow: var(--shadow);
}
.featured .f-art { text-align: center; }
.featured .f-art .avatar { width: 160px; height: 160px; }
.featured .f-art .avatar svg { width: 160px; height: 160px; }
.featured .f-art .role { margin-top: 12px; font-weight: 700; color: var(--teal-dark); }
.featured .f-art h3 { margin-top: 4px; }
.featured blockquote {
  font-size: clamp(1.1rem, 1.9vw, 1.4rem);
  line-height: 1.5; color: var(--ink);
  font-weight: 600;
  border-left: 4px solid var(--teal);
  padding-left: 20px;
  margin-bottom: 18px;
}
.featured .f-list { display: grid; gap: 10px; }
.featured .f-list li { display: flex; gap: 10px; align-items: flex-start; font-size: .93rem; color: var(--ink-soft); }
.featured .f-list svg { width: 20px; height: 20px; color: var(--teal); flex-shrink: 0; margin-top: 1px; }

/* ============================================================
   Community / support blurb
   ============================================================ */
.blurb {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: clamp(24px, 4vw, 48px);
  align-items: center;
  background: var(--mint);
  border: 1px solid var(--mint-2);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 4vw, 50px);
}
.blurb h2 { margin-bottom: 14px; }
.blurb p { color: var(--ink-soft); margin-bottom: 20px; }
.blurb .b-art svg { width: 100%; height: auto; }

/* ============================================================
   CTA band
   ============================================================ */
.cta-band {
  background: linear-gradient(150deg, var(--teal-deep) 0%, var(--teal) 100%);
  border-radius: var(--radius-lg);
  padding: clamp(34px, 5vw, 62px);
  text-align: center;
  color: #eafaf6;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}
.cta-band h2 { color: #fff; margin-bottom: 12px; }
.cta-band p { max-width: 52ch; margin: 0 auto 26px; opacity: .92; }
.cta-band .btn-primary { background: #fff; color: var(--teal-deep); }
.cta-band .btn-primary:hover { background: #fff; }
.cta-band .deco {
  position: absolute; opacity: .12; pointer-events: none;
}
.cta-band .deco.a { top: -40px; right: -30px; width: 180px; }
.cta-band .deco.b { bottom: -50px; left: -30px; width: 200px; }

/* ============================================================
   Page hero (inner pages)
   ============================================================ */
.page-hero {
  background: linear-gradient(170deg, var(--mint) 0%, #f4faf8 100%);
  border-bottom: 1px solid var(--line);
}
.page-hero .container { padding-block: clamp(44px, 6vw, 72px); }
.page-hero .lead { margin-top: 16px; }
.breadcrumb { display: flex; gap: 8px; align-items: center; font-size: .8rem; color: var(--muted); margin-bottom: 14px; }
.breadcrumb a:hover { color: var(--teal-dark); }
.breadcrumb svg { width: 13px; height: 13px; }

/* ============================================================
   Curriculum accordion / levels
   ============================================================ */
.level-cards { margin-bottom: 44px; }
.level-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-top: 4px solid var(--teal);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}
.level-card .lv-tag {
  display: inline-block;
  font-size: .74rem; font-weight: 800; color: var(--teal-dark);
  background: var(--mint); border-radius: 99px; padding: 4px 12px;
  margin-bottom: 12px;
}
.level-card h3 { margin-bottom: 8px; }
.level-card p { font-size: .9rem; color: var(--ink-soft); margin-bottom: 14px; }
.level-card .lv-meta { display: flex; gap: 16px; font-size: .8rem; color: var(--muted); }
.level-card .lv-meta span { display: flex; align-items: center; gap: 6px; }
.level-card .lv-meta svg { width: 15px; height: 15px; color: var(--teal); }

/* Accordion modules */
.modules { display: grid; gap: 14px; }
.module {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--t), border-color var(--t);
}
.module.open { box-shadow: var(--shadow); border-color: var(--mint-2); }
.module-head {
  width: 100%;
  display: flex; align-items: center; gap: 16px;
  padding: 20px 22px;
  text-align: left;
}
.module-num {
  width: 44px; height: 44px; flex-shrink: 0;
  border-radius: 12px;
  background: var(--mint);
  border: 1px solid var(--mint-2);
  display: grid; place-items: center;
  color: var(--teal-deep); font-weight: 800;
}
.module-head .m-info { flex: 1; min-width: 0; }
.module-head .m-lv { font-size: .72rem; font-weight: 800; color: var(--teal-dark); letter-spacing: .04em; }
.module-head h3 { font-size: 1.08rem; margin-top: 2px; }
.module-head .m-sub { font-size: .84rem; color: var(--muted); margin-top: 3px; }
.module-head .chev {
  width: 26px; height: 26px; flex-shrink: 0;
  color: var(--teal-dark);
  transition: transform var(--t);
}
.module.open .chev { transform: rotate(180deg); }
.module-body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows var(--t);
}
.module.open .module-body { grid-template-rows: 1fr; }
.module-body-inner { overflow: hidden; }
.module-topics {
  padding: 0 22px 22px 82px;
  display: grid; gap: 10px;
}
.module-topics li {
  display: flex; align-items: flex-start; gap: 11px;
  font-size: .92rem; color: var(--ink-soft);
  padding: 9px 0;
  border-top: 1px dashed var(--line);
}
.module-topics li:first-child { border-top: none; }
.module-topics svg { width: 19px; height: 19px; color: var(--teal); flex-shrink: 0; margin-top: 1px; }

/* ============================================================
   Support: resources / FAQ / form
   ============================================================ */
.resource-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--t), box-shadow var(--t);
}
.resource-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.resource-card .feature-icon { margin-bottom: 14px; }
.resource-card h3 { margin-bottom: 7px; }
.resource-card p { font-size: .9rem; color: var(--ink-soft); margin-bottom: 12px; }
.resource-card .r-link { font-size: .86rem; font-weight: 700; color: var(--teal-dark); display: inline-flex; align-items: center; gap: 6px; }
.resource-card .r-link svg { width: 15px; height: 15px; transition: transform var(--t-fast); }
.resource-card:hover .r-link svg { transform: translateX(4px); }

/* FAQ */
.faq { display: grid; gap: 12px; max-width: 820px; }
.faq details {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.faq details[open] { border-color: var(--mint-2); }
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 22px;
  font-weight: 700; font-size: 1rem;
  color: var(--ink);
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .q-ico {
  width: 24px; height: 24px; flex-shrink: 0;
  color: var(--teal-dark);
  transition: transform var(--t);
}
.faq details[open] summary .q-ico { transform: rotate(45deg); }
.faq .faq-a { padding: 0 22px 20px; color: var(--ink-soft); font-size: .93rem; }

/* Form */
.form-wrap {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: clamp(24px, 4vw, 44px);
  align-items: start;
}
.form-aside {
  background: linear-gradient(160deg, var(--teal-deep) 0%, var(--teal) 100%);
  border-radius: var(--radius-lg);
  padding: clamp(26px, 4vw, 40px);
  color: #eafaf6;
  box-shadow: var(--shadow);
}
.form-aside h2 { color: #fff; margin-bottom: 14px; }
.form-aside p { opacity: .92; margin-bottom: 22px; font-size: .95rem; }
.form-aside .contact-item { display: flex; gap: 13px; align-items: flex-start; margin-bottom: 16px; }
.form-aside .contact-item svg { width: 22px; height: 22px; flex-shrink: 0; opacity: .95; }
.form-aside .contact-item strong { display: block; color: #fff; font-size: .95rem; }
.form-aside .contact-item span { font-size: .85rem; opacity: .85; }

.form-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(26px, 4vw, 40px);
  box-shadow: var(--shadow);
}
.form-row { margin-bottom: 18px; }
.form-grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 18px; }
.form-row label {
  display: block; font-weight: 700; font-size: .88rem;
  color: var(--ink); margin-bottom: 7px;
}
.form-row label .req { color: var(--teal); }
.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  font-family: inherit; font-size: .95rem;
  color: var(--ink);
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: 11px;
  background: var(--bg);
  transition: border-color var(--t-fast), box-shadow var(--t-fast), background var(--t-fast);
}
.form-row textarea { resize: vertical; min-height: 120px; }
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--teal);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(14,165,165,.14);
}
.form-row input.invalid,
.form-row select.invalid,
.form-row textarea.invalid {
  border-color: #e05353;
  background: #fff5f5;
}
.form-error {
  display: none;
  font-size: .78rem; color: #d64545;
  margin-top: 6px;
}
.form-row.has-error .form-error { display: block; }
.form-note { font-size: .78rem; color: var(--muted); margin-top: 4px; }
.form-success {
  display: none;
  align-items: center; gap: 12px;
  background: var(--mint);
  border: 1px solid var(--mint-2);
  border-radius: 13px;
  padding: 16px 18px;
  color: var(--teal-deep);
  font-weight: 600;
  margin-bottom: 18px;
}
.form-success.show { display: flex; }
.form-success svg { width: 26px; height: 26px; flex-shrink: 0; color: var(--teal); }

/* ============================================================
   Footer (inside main)
   ============================================================ */
.site-footer {
  margin-top: auto;
  background: #fff;
  border-top: 1px solid var(--line);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 32px;
  padding-block: clamp(40px, 5vw, 60px);
}
.footer-brand .brand { border: none; padding: 0 0 14px; }
.footer-brand p { font-size: .86rem; color: var(--ink-soft); max-width: 32ch; }
.footer-col h4 { font-size: .82rem; font-weight: 800; letter-spacing: .04em; color: var(--ink); margin-bottom: 14px; text-transform: uppercase; }
.footer-col a { display: block; font-size: .88rem; color: var(--ink-soft); padding: 5px 0; transition: color var(--t-fast); }
.footer-col a:hover { color: var(--teal-dark); }
.footer-bottom {
  border-top: 1px solid var(--line);
  padding-block: 20px;
  display: flex; flex-wrap: wrap; gap: 12px;
  justify-content: space-between; align-items: center;
  font-size: .82rem; color: var(--muted);
}
.footer-bottom .socials { display: flex; gap: 10px; }
.footer-bottom .socials a {
  width: 34px; height: 34px; border-radius: 10px;
  background: var(--mint); color: var(--teal-deep);
  display: grid; place-items: center;
  transition: background var(--t-fast), transform var(--t-fast);
}
.footer-bottom .socials a:hover { background: var(--mint-2); transform: translateY(-2px); }
.footer-bottom .socials svg { width: 17px; height: 17px; }

/* ============================================================
   Reveal animations
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1);
}
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; }
.reveal.d4 { transition-delay: .32s; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
.floaty { animation: float 5s ease-in-out infinite; }
.floaty.slow { animation-duration: 7s; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1080px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; }
  .hero-art { order: -1; max-width: 460px; }
  .featured { grid-template-columns: 1fr; }
  .blurb { grid-template-columns: 1fr; }
  .form-wrap { grid-template-columns: 1fr; }
}

/* Sidebar -> drawer */
@media (max-width: 860px) {
  .topbar { display: flex; }
  .sidebar {
    transform: translateX(-100%);
    pointer-events: none;
    box-shadow: var(--shadow-lg);
    width: min(300px, 84vw);
  }
  body.nav-open .sidebar {
    transform: translateX(0);
    pointer-events: auto;
  }
  body.nav-open .backdrop { opacity: 1; pointer-events: auto; }
  body.nav-open .hamburger .bars { display: none; }
  body.nav-open .hamburger .x { display: block; }
  .main { margin-left: 0; }
}

@media (max-width: 640px) {
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { justify-content: center; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .module-topics { padding-left: 22px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .floaty { animation: none !important; }
  .rm-progress, .rm-mini-bar > i, .pw-ring .fill, .pw-bar > i, .module-body { transition: none !important; }
}
