/* ==========================================================================
   Home page v2 — mesh hero, tabbed "Popular Fields" explorer, animated
   counters, glass question cards. Scoped to .home-page.
   ========================================================================== */

.home-page { position: relative; overflow-x: clip; }

/* ---------- Hero ---------- */
.home-hero { position: relative; padding: 1.5rem 0 .5rem; }

.home-hero__mesh {
  position: absolute;
  inset: -80px -10% auto -10%;
  height: 480px;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(38% 55% at 15% 20%, rgba(var(--bs-primary-rgb), .30), transparent 70%),
    radial-gradient(32% 50% at 85% 10%, rgba(255, 122, 89, .24), transparent 70%),
    radial-gradient(30% 45% at 50% 60%, rgba(56, 189, 248, .22), transparent 70%);
  filter: blur(10px);
  animation: home-mesh-drift 16s ease-in-out infinite alternate;
}
@keyframes home-mesh-drift {
  0%   { transform: translate3d(0,0,0) scale(1); }
  100% { transform: translate3d(2%,-3%,0) scale(1.05); }
}
.home-hero__grid {
  position: absolute;
  inset: -80px 0 auto 0;
  height: 420px;
  z-index: 0;
  pointer-events: none;
  opacity: .5;
  background-image:
    linear-gradient(to right, rgba(var(--bs-body-color-rgb, 0,0,0), .05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(var(--bs-body-color-rgb, 0,0,0), .05) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(60% 70% at 50% 20%, #000 40%, transparent 90%);
}
@media (prefers-reduced-motion: reduce) {
  .home-hero__mesh { animation: none; }
}

.home-hero__inner { position: relative; z-index: 1; }

.home-badge {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--bs-primary);
  background: rgba(var(--bs-primary-rgb), .1);
  border: 1px solid rgba(var(--bs-primary-rgb), .18);
  border-radius: 50rem;
  padding: .35rem .9rem;
}
.home-badge .pulse-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--bs-primary);
  box-shadow: 0 0 0 0 rgba(var(--bs-primary-rgb), .6);
  animation: home-pulse 2s ease-out infinite;
}
@keyframes home-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(var(--bs-primary-rgb), .55); }
  70%  { box-shadow: 0 0 0 8px rgba(var(--bs-primary-rgb), 0); }
  100% { box-shadow: 0 0 0 0 rgba(var(--bs-primary-rgb), 0); }
}

.home-title {
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.08;
}
.home-title .grad {
  background: linear-gradient(100deg, var(--bs-primary), #ff7a59 60%, #38bdf8);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: home-grad-pan 6s ease-in-out infinite alternate;
}
@keyframes home-grad-pan {
  0% { background-position: 0% 50%; }
  100% { background-position: 100% 50%; }
}

.home-hero__search .input-group {
  border-radius: 1rem;  
  transition: box-shadow .25s ease, transform .25s ease;
}
.home-hero__search:focus-within .input-group {
  transform: translateY(-2px);
}
.home-hero__search .btn { transition: transform .2s ease; }
.home-hero__search .btn:hover { transform: scale(1.06); }

.home-quicklinks { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; }
.home-quicklink {
  font-size: .8125rem;
  padding: .35rem .8rem;
  border-radius: 50rem;
  border: 1px solid var(--bs-border-color);
  color: var(--bs-secondary-color);
  text-decoration: none;
  transition: all .18s ease;
}
.home-quicklink:hover {
  border-color: rgba(var(--bs-primary-rgb), .4);
  color: var(--bs-primary);
  background: rgba(var(--bs-primary-rgb), .08);
  transform: translateY(-1px);
}

.home-stat {
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  border: 1px solid transparent;
}
.home-stat:hover {
  transform: translateY(-3px);
  box-shadow: 0 .75rem 1.5rem -0.75rem rgba(var(--bs-primary-rgb), .35);
  border-color: rgba(var(--bs-primary-rgb), .25);
}

/* ---------- Section headings ---------- */
.home-section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--bs-primary);
  background: rgba(var(--bs-primary-rgb), .1);
  border-radius: 50rem;
  padding: .25rem .75rem;
}

/* ---------- Reveal-on-scroll ---------- */
.home-reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .55s ease, transform .55s ease;
  transition-delay: var(--home-reveal-delay, 0s);
}
.home-reveal.is-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .home-reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Popular Fields: column grid ---------- */
.pf-columns-wrap {
  border-radius: 1.25rem;
  border: 1px solid var(--bs-border-color);
  background: var(--bs-body-bg);
  overflow: hidden;
  box-shadow: 0 1rem 2.5rem -1.5rem rgba(0,0,0,.25);
}

.pf-columns {
  display: flex;
  align-items: stretch;
  overflow-x: auto;
  scrollbar-width: thin;
}
.pf-columns::-webkit-scrollbar { height: 6px; }
.pf-columns::-webkit-scrollbar-thumb { background: var(--bs-border-color); border-radius: 3px; }

.pf-column {
  flex: 1 1 220px;
  min-width: 200px;
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--bs-border-color);
  transition: background-color .2s ease;
}
.pf-column:last-child { border-right: none; }
.pf-column:hover { background: rgba(var(--bs-primary-rgb), .03); }

.pf-column-header {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: 1rem 1.1rem;
  font-weight: 700;
  font-size: .95rem;
  border-bottom: 1px solid var(--bs-border-color);
  background: linear-gradient(180deg, rgba(var(--bs-primary-rgb), .07), transparent);
  position: relative;
  overflow: hidden;
}
.pf-column-header::before {
  content: "";
  position: absolute;
  left: 0; top: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--bs-primary), #ff7a59, #38bdf8);
  background-size: 200% 100%;
  animation: home-grad-pan 5s ease-in-out infinite alternate;
}
.pf-column-header i { color: var(--bs-primary); font-size: 1rem; }

.pf-column-body { flex: 1 1 auto; padding: .5rem 0 .75rem; }

.pf-column-list { list-style: none; margin: 0; padding: 0; }
.pf-column-list li { border-bottom: 1px solid transparent; }
.pf-column-list a {
  display: block;
  padding: .55rem 1.1rem;
  font-size: .875rem;
  font-weight: 500;
  color: var(--bs-body-color);
  text-decoration: none;
  position: relative;
  transition: color .18s ease, padding-left .18s ease, background-color .18s ease;
}
.pf-column-list a::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--bs-primary);
  transform: scaleY(0);
  transition: transform .18s ease;
}
.pf-column-list a:hover {
  color: var(--bs-primary);
  padding-left: 1.4rem;
  background: rgba(var(--bs-primary-rgb), .06);
}
.pf-column-list a:hover::before { transform: scaleY(1); }

.pf-column-footer {
  padding: .85rem 1.1rem;
  text-align: center;
  border-top: 1px solid var(--bs-border-color);
}
.pf-column-footer a {
  font-size: .8125rem;
  font-weight: 700;
  letter-spacing: .03em;
  text-transform: uppercase;
  color: var(--bs-primary);
  text-decoration: none;
  transition: transform .18s ease;
  display: inline-block;
}
.pf-column-footer a:hover { transform: translateY(-1px); }

.pf-empty { color: var(--bs-secondary-color); font-size: .875rem; padding: .5rem 1.1rem; margin: 0; }

/* ---------- Interview question cards ---------- */
.qa-card {
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  border-radius: 1rem;
  position: relative;
  overflow: hidden;
}
.qa-card::after {
  content: "";
  position: absolute; inset: 0 0 auto 0; height: 3px;
  background: linear-gradient(90deg, var(--bs-primary), #ff7a59, #38bdf8);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s ease;
}
.qa-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 1rem 2rem -1rem rgba(var(--bs-primary-rgb), .4);
  border-color: rgba(var(--bs-primary-rgb), .3) !important;
}
.qa-card:hover::after { transform: scaleX(1); }

/* ---------- Sidebar: Most Popular Q&A ---------- */
.sidebar-qa-link { line-height: 1.3; }
.sidebar-qa-link:hover i { transform: scale(1.2); }
.sidebar-qa-link i { transition: transform .18s ease; }

/* ==========================================================================
   Home page v3 additions — bolder hero, promoted trust strip, compact
   animated "latest questions" carousel, steps, feature grid, FAQ, CTA.
   ========================================================================== */

/* ---------- Hero: subtitle + floating tech badges ---------- */
.home-subtitle {
  max-width: 640px;
  color: var(--bs-secondary-color);
  font-size: 1.05rem;
}

.home-hero__float {
  position: absolute;
  z-index: 0;
  align-items: center;
  gap: .35rem;
  font-size: .75rem;
  font-weight: 700;
  padding: .4rem .7rem;
  border-radius: 50rem;
  background: var(--bs-body-bg);
  border: 1px solid var(--bs-border-color);
  box-shadow: 0 .5rem 1.25rem -0.5rem rgba(0,0,0,.25);
  color: var(--bs-body-color);
  opacity: .9;
  animation: home-float-bob 5s ease-in-out infinite;
}
.home-hero__float i { color: var(--bs-primary); }
.home-hero__float--1 { top: 6%;  left: 4%;  animation-delay: 0s; }
.home-hero__float--2 { top: 62%; left: 1%;  animation-delay: .6s; }
.home-hero__float--3 { top: 2%;  right: 6%; animation-delay: 1.1s; }
.home-hero__float--4 { top: 58%; right: 2%; animation-delay: .3s; }
.home-hero__float--5 { top: 32%; right: 12%; animation-delay: 1.6s; }
@keyframes home-float-bob {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}
@media (prefers-reduced-motion: reduce) {
  .home-hero__float { animation: none; }
}

/* ---------- Hero: trust strip (counters promoted for visibility) ---------- */
.home-trust-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: .35rem 1.5rem;
  margin: 1.75rem auto 0;
  padding: .9rem 1.5rem;
  max-width: 780px;
  border-radius: 1rem;
  border: 1px solid var(--bs-border-color);
  background: var(--bs-body-bg);
  box-shadow: 0 1rem 2.5rem -1.75rem rgba(0,0,0,.3);
}
.home-trust-item {
  display: flex;
  align-items: baseline;
  gap: .3rem;
  font-size: .8125rem;
  color: var(--bs-secondary-color);
  white-space: nowrap;
}
.home-trust-item--tag { align-items: center; gap: .4rem; color: var(--bs-body-color); font-weight: 600; }
.home-trust-item--tag i { color: var(--bs-success, #198754); }
.home-trust-num {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--bs-body-color);
  line-height: 1;
}
.home-trust-plus { font-weight: 800; color: var(--bs-primary); font-size: 1rem; }
.home-trust-label { font-weight: 500; }
.home-trust-sep {
  width: 1px;
  height: 22px;
  background: var(--bs-border-color);
  display: inline-block;
}
@media (max-width: 575.98px) {
  .home-trust-strip { gap: .6rem 1rem; padding: .75rem 1rem; }
  .home-trust-sep { display: none; }
}

/* ---------- Compact, animated "Latest interview questions" carousel ---------- */
.qa-strip-wrap { position: relative; }
.qa-strip-wrap::before,
.qa-strip-wrap::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  width: 32px;
  z-index: 2;
  pointer-events: none;
}
.qa-strip-wrap::before { left: 0;  background: linear-gradient(90deg, var(--bs-body-bg), transparent); }
.qa-strip-wrap::after  { right: 0; background: linear-gradient(270deg, var(--bs-body-bg), transparent); }

.qa-strip {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  padding: .25rem .25rem 1rem;
  scrollbar-width: thin;
}
.qa-strip::-webkit-scrollbar { height: 6px; }
.qa-strip::-webkit-scrollbar-thumb { background: var(--bs-border-color); border-radius: 3px; }

.qa-nav-btn {
  width: 32px; height: 32px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--bs-border-color);
  background: var(--bs-body-bg);
  color: var(--bs-body-color);
  transition: all .18s ease;
}
.qa-nav-btn:hover { border-color: var(--bs-primary); color: var(--bs-primary); transform: translateY(-1px); }

.qa-chip {
  flex: 0 0 auto;
  width: 260px;
  scroll-snap-align: start;
  position: relative;
  padding: .9rem 1rem 1rem;
  border-radius: .85rem;
  border: 1px solid var(--bs-border-color);
  background: var(--bs-body-bg);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.qa-chip::before {
  content: "";
  position: absolute; inset: 0 0 auto 0; height: 2px;
  border-radius: .85rem .85rem 0 0;
  background: linear-gradient(90deg, var(--bs-primary), #ff7a59, #38bdf8);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s ease;
}
.qa-chip:hover {
  transform: translateY(-3px);
  box-shadow: 0 .9rem 1.75rem -1rem rgba(var(--bs-primary-rgb), .4);
  border-color: rgba(var(--bs-primary-rgb), .3);
}
.qa-chip:hover::before { transform: scaleX(1); }

.qa-chip__badge {
  font-size: .6875rem;
  font-weight: 600;
  background: rgba(var(--bs-primary-rgb), .1) !important;
  color: var(--bs-primary) !important;
}
.qa-chip__question {
  font-size: .875rem;
  font-weight: 600;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.4em;
}
.qa-chip__question a { color: inherit; text-decoration: none; }
.qa-chip__meta {
  display: flex;
  align-items: center;
  gap: .35rem;
  font-size: .75rem;
  color: var(--bs-secondary-color);
}
.qa-chip__meta .text-truncate { max-width: 90px; }
.qa-chip__sep { opacity: .6; }
.qa-chip__arrow {
  margin-left: auto;
  opacity: 0;
  transform: translate(-3px, 3px);
  transition: all .2s ease;
  color: var(--bs-primary);
}
.qa-chip:hover .qa-chip__arrow { opacity: 1; transform: translate(0, 0); }

.qa-level-dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; }
.qa-level--beginner     { background: #22c55e; }
.qa-level--intermediate { background: #f59e0b; }
.qa-level--advanced     { background: #ef4444; }

/* ---------- How it works ---------- */
.home-step {
  position: relative;
  height: 100%;
  padding: 1.5rem 1.25rem 1.25rem;
  border-radius: 1rem;
  border: 1px solid var(--bs-border-color);
  background: var(--bs-body-bg);
  transition: transform .25s ease, box-shadow .25s ease;
}
.home-step:hover { transform: translateY(-3px); box-shadow: 0 1rem 2rem -1.25rem rgba(0,0,0,.3); }
.home-step__num {
  position: absolute;
  top: .9rem; right: 1.1rem;
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--bs-border-color);
  line-height: 1;
}
.home-step__icon {
  width: 46px; height: 46px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: .75rem;
  margin-bottom: .75rem;
  font-size: 1.25rem;
  color: var(--bs-primary);
  background: rgba(var(--bs-primary-rgb), .1);
}

/* ---------- Why W3Teacher: feature grid ---------- */
.home-feature {
  height: 100%;
  padding: 1.25rem;
  border-radius: 1rem;
  transition: transform .25s ease, background-color .25s ease;
}
.home-feature:hover { transform: translateY(-3px); background: rgba(var(--bs-primary-rgb), .04); }
.home-feature__icon {
  width: 42px; height: 42px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  margin-bottom: .6rem;
  font-size: 1.1rem;
  color: var(--bs-primary);
  background: rgba(var(--bs-primary-rgb), .1);
}

/* ---------- FAQ accordion ---------- */
.home-faq .accordion-item {
  border: 1px solid var(--bs-border-color);
  border-radius: .85rem !important;
  overflow: hidden;
  margin-bottom: .75rem;
}
.home-faq .accordion-button {
  font-weight: 600;
  font-size: .9375rem;
}
.home-faq .accordion-button:not(.collapsed) {
  color: var(--bs-primary);
  background: rgba(var(--bs-primary-rgb), .06);
  box-shadow: none;
}
.home-faq .accordion-button:focus { box-shadow: none; }

/* ---------- CTA panel ---------- */
.home-cta {
  position: relative;
  overflow: hidden;
  padding: 2rem 1.5rem;
  border-radius: 1.25rem;
  border: 1px solid var(--bs-border-color);
  background: var(--bs-tertiary-bg, var(--bs-body-bg));
}
.home-cta__mesh { opacity: .6; }
@media (min-width: 992px) {
  .home-cta { padding: 2.5rem 3rem; }
}

/* ==========================================================================
   Home page v4 — educational lower half: study path on graph paper,
   "try one now" flashcard, difficulty staircase, notebook FAQ, chalkboard CTA.
   Works in light and dark (data-bs-theme) via Bootstrap variables.
   ========================================================================== */

.home-page {
  --edu-ink: #1f1b3a;
  --edu-board: #1d2a2b;
  --edu-chalk: rgba(255, 255, 255, .86);
  --edu-sticky: #fde68a;
  --edu-sticky-ink: #4a3a05;
  --edu-margin: #f87171;
  --edu-rule: rgba(var(--bs-primary-rgb), .12);
  --edu-beginner: #16a34a;
  --edu-intermediate: #d97706;
  --edu-advanced: #dc2626;
  --edu-hand: "Caveat", "Segoe Print", cursive;
}

.edu-h2 { font-family: "Geist", sans-serif; font-weight: 700; font-size: clamp(1.45rem, 1.1rem + 1.1vw, 2rem); letter-spacing: -.02em; line-height: 1.15; }
.edu-h3 { font-family: "Geist", sans-serif; font-weight: 600; font-size: 1.15rem; letter-spacing: -.01em; }
.edu-lead { color: var(--bs-secondary-color); font-size: 1rem; line-height: 1.6; max-width: 60ch; }

/* ---------- Level pills (shared) ---------- */
.edu-level {
  display: inline-flex; align-items: center; gap: .35rem;
  font-size: .75rem; font-weight: 600; padding: .2rem .6rem; border-radius: 999px;
  color: var(--lvl); background: color-mix(in srgb, var(--lvl) 12%, transparent);
}
.edu-level::before { content: ""; width: .45rem; height: .45rem; border-radius: 50%; background: var(--lvl); }
.edu-level--beginner { --lvl: var(--edu-beginner); }
.edu-level--intermediate { --lvl: var(--edu-intermediate); }
.edu-level--advanced { --lvl: var(--edu-advanced); }

/* ---------- How it works: graph-paper band ---------- */
.edu-how { position: relative; padding: 3rem 1.25rem; border-radius: 1.5rem; isolation: isolate; }
.edu-how__paper {
  position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background-color: var(--bs-tertiary-bg);
  background-image:
    linear-gradient(to right, var(--edu-rule) 1px, transparent 1px),
    linear-gradient(to bottom, var(--edu-rule) 1px, transparent 1px);
  background-size: 24px 24px;
  border: 1px solid var(--bs-border-color-translucent);
}
@media (min-width: 992px) { .edu-how { padding: 3.5rem 3rem; } }

/* Study path */
.edu-path { display: grid; gap: 1.25rem; counter-reset: none; position: relative; }
@media (min-width: 992px) {
  .edu-path { grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
  .edu-path::before {
    content: ""; position: absolute; top: 1.35rem; left: 1.4rem; right: 12%;
    border-top: 2px dashed rgba(var(--bs-primary-rgb), .45);
  }
}
.edu-stop { position: relative; display: flex; gap: 1rem; }
@media (min-width: 992px) { .edu-stop { flex-direction: column; gap: .9rem; } }
@media (max-width: 991.98px) {
  .edu-stop:not(:last-child)::after {
    content: ""; position: absolute; left: 1.35rem; top: 2.9rem; bottom: -1.25rem;
    border-left: 2px dashed rgba(var(--bs-primary-rgb), .45);
  }
}
.edu-stop__num {
  position: relative; z-index: 1; flex-shrink: 0;
  width: 2.75rem; height: 2.75rem; border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--edu-hand); font-size: 1.6rem; font-weight: 600; line-height: 1;
  color: var(--bs-primary); background: var(--bs-body-bg);
  border: 2px solid var(--bs-primary);
  box-shadow: 0 0 0 5px var(--bs-tertiary-bg);
}
.edu-stop__body {
  flex: 1; background: var(--bs-body-bg); border: 1px solid var(--bs-border-color-translucent);
  border-radius: 1rem; padding: 1.1rem 1.15rem 1rem;
  display: flex; flex-direction: column;
}
.edu-stop__title { font-family: "Geist", sans-serif; font-size: 1.05rem; font-weight: 600; margin-bottom: .35rem; }
.edu-stop__text { font-size: .875rem; color: var(--bs-secondary-color); line-height: 1.55; margin-bottom: .75rem; }
.edu-stop__tools { display: flex; flex-wrap: wrap; gap: .35rem; margin-bottom: .85rem; }
.edu-tool {
  display: inline-flex; align-items: center; gap: .3rem; font-size: .72rem; font-weight: 500;
  padding: .2rem .5rem; border-radius: .4rem;
  background: rgba(var(--bs-primary-rgb), .08); color: var(--bs-emphasis-color);
}
.edu-tool i { color: var(--bs-primary); }
.edu-stop__link { margin-top: auto; font-size: .85rem; font-weight: 600; text-decoration: none; color: var(--bs-primary); }
.edu-stop__link:hover, .edu-stop__link:focus-visible { text-decoration: underline; }
.edu-stop__link i { font-size: .7rem; }

/* Flashcard */
.edu-card {
  position: relative; background: var(--bs-body-bg);
  border: 1px solid var(--bs-border-color-translucent);
  border-left: 6px solid var(--bs-primary);
  border-radius: .5rem 1rem 1rem .5rem;
  padding: 1.5rem 1.5rem 1.25rem;
  box-shadow: 0 1.5rem 2.5rem -2rem rgba(var(--bs-primary-rgb), .55);
}
.edu-card__head { display: flex; justify-content: space-between; align-items: center; gap: .75rem; margin-bottom: 1rem; }
.edu-card__subject { font-size: .8rem; font-weight: 600; color: var(--bs-secondary-color); }
.edu-card__kicker { font-family: var(--edu-hand); font-size: 1.35rem; color: var(--bs-primary); line-height: 1; }
.edu-card__q { font-family: "Geist", sans-serif; font-size: clamp(1.1rem, 1rem + .5vw, 1.35rem); font-weight: 600; line-height: 1.35; margin-bottom: 1.1rem; }
.edu-card__answer-wrap { position: relative; min-height: 7.5rem; }
.edu-card__answer {
  font-size: .925rem; line-height: 1.65; color: var(--bs-body-color);
  padding: 1rem 1.1rem; border-radius: .75rem;
  background: rgba(var(--bs-primary-rgb), .05);
  outline: none;
  animation: edu-fade .35s ease-out;
}
.edu-card__answer-label { font-size: .75rem; font-weight: 600; color: var(--bs-primary); }
.edu-card__more { display: inline-block; margin-top: 1rem; font-size: .875rem; font-weight: 600; text-decoration: none; }
.edu-card__more i { font-size: .7rem; }

.edu-sticky {
  position: absolute; inset: 0; width: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .4rem;
  border: 0; border-radius: .35rem;
  background: var(--edu-sticky); color: var(--edu-sticky-ink);
  transform: rotate(-1.2deg);
  box-shadow: 0 .75rem 1.25rem -.75rem rgba(0,0,0,.35);
  transition: transform .45s cubic-bezier(.3,.7,.4,1), opacity .45s;
  transform-origin: top left;
}
.edu-sticky:hover { transform: rotate(-2.4deg) translateY(-2px); }
.edu-sticky:focus-visible { outline: 3px solid var(--bs-primary); outline-offset: 3px; }
.edu-sticky.is-peeled { transform: rotate(-14deg) translate(-6%, -18%); opacity: 0; pointer-events: none; }
.edu-sticky__hand { font-family: var(--edu-hand); font-size: 1.6rem; line-height: 1; }
.edu-sticky__cta { font-size: .85rem; font-weight: 600; }

@keyframes edu-fade { from { opacity: 0; } to { opacity: 1; } }

/* Answer anatomy */
.edu-anatomy li { display: flex; gap: .9rem; padding: .85rem 0; border-bottom: 1px dashed var(--bs-border-color); }
.edu-anatomy li:last-child { border-bottom: 0; }
.edu-anatomy i {
  flex-shrink: 0; width: 2.25rem; height: 2.25rem; border-radius: .6rem;
  display: grid; place-items: center; font-size: 1.05rem;
  color: var(--bs-primary); background: rgba(var(--bs-primary-rgb), .1);
}
.edu-anatomy strong { display: block; font-size: .95rem; font-weight: 600; }
.edu-anatomy span { display: block; font-size: .85rem; color: var(--bs-secondary-color); line-height: 1.5; }

/* ---------- Difficulty staircase ---------- */
.edu-stairs { display: grid; gap: 1rem; }
@media (min-width: 768px) {
  .edu-stairs { grid-template-columns: repeat(3, 1fr); align-items: end; }
  .edu-stair--beginner { min-height: 15rem; }
  .edu-stair--intermediate { min-height: 17.5rem; }
  .edu-stair--advanced { min-height: 20rem; }
}
.edu-stair {
  display: flex; flex-direction: column; justify-content: flex-start;
  padding: 1.35rem 1.35rem 1.5rem; border-radius: 1rem 1rem .4rem .4rem;
  background: color-mix(in srgb, var(--lvl) 6%, var(--bs-body-bg));
  border: 1px solid color-mix(in srgb, var(--lvl) 22%, transparent);
  border-top: 5px solid var(--lvl);
}
.edu-stair--beginner { --lvl: var(--edu-beginner); }
.edu-stair--intermediate { --lvl: var(--edu-intermediate); }
.edu-stair--advanced { --lvl: var(--edu-advanced); }
.edu-stair .edu-level { align-self: flex-start; margin-bottom: .9rem; }
.edu-stair__title { font-family: "Geist", sans-serif; font-size: 1.1rem; font-weight: 600; margin-bottom: .75rem; }
.edu-stair__list { padding-left: 1.1rem; margin: 0; font-size: .875rem; color: var(--bs-secondary-color); line-height: 1.7; }
.edu-stair__list li::marker { color: var(--lvl); }

.edu-facts {
  display: grid; gap: 1rem; margin: 2rem 0 0; padding-top: 1.5rem;
  border-top: 1px solid var(--bs-border-color);
}
@media (min-width: 768px) { .edu-facts { grid-template-columns: repeat(3, 1fr); } }
.edu-facts li { display: flex; gap: .75rem; font-size: .875rem; color: var(--bs-secondary-color); line-height: 1.5; }
.edu-facts i { color: var(--bs-primary); font-size: 1.2rem; line-height: 1.2; }
.edu-facts strong { color: var(--bs-emphasis-color); font-weight: 600; }

/* ---------- FAQ on notebook paper ---------- */
@media (min-width: 992px) { .edu-faq-intro { position: sticky; top: 6rem; } }
.edu-faq-note {
  padding: 1.1rem 1.2rem; border-radius: .75rem;
  border: 1.5px dashed rgba(var(--bs-primary-rgb), .45);
  background: rgba(var(--bs-primary-rgb), .04);
}
.edu-faq-note__hand { font-family: var(--edu-hand); font-size: 1.45rem; line-height: 1.1; color: var(--bs-primary); }

.edu-notebook {
  position: relative; border-radius: 1rem; overflow: hidden;
  background-color: var(--bs-body-bg);
  background-image: repeating-linear-gradient(to bottom, transparent 0, transparent 31px, var(--edu-rule) 31px, var(--edu-rule) 32px);
  border: 1px solid var(--bs-border-color-translucent);
  box-shadow: 0 1.25rem 2.5rem -2rem rgba(0,0,0,.35);
  padding: .75rem 0;
}
.edu-notebook::before {
  content: ""; position: absolute; top: 0; bottom: 0; left: 3.6rem;
  border-left: 2px solid color-mix(in srgb, var(--edu-margin) 55%, transparent);
}
.edu-faq { --bs-accordion-bg: transparent; --bs-accordion-border-width: 0; --bs-accordion-active-bg: transparent; --bs-accordion-btn-focus-box-shadow: none; }
.edu-faq .accordion-item { background: transparent; border-bottom: 1px dashed var(--bs-border-color) !important; }
.edu-faq .accordion-item:last-child { border-bottom: 0 !important; }
.edu-faq .accordion-button {
  gap: 1.25rem; padding: 1.05rem 1.25rem 1.05rem .9rem; background: transparent;
  font-family: "Geist", sans-serif; font-weight: 600; font-size: 1rem; color: var(--bs-emphasis-color); box-shadow: none;
}
.edu-faq .accordion-button:not(.collapsed) { color: var(--bs-primary); }
.edu-faq .accordion-button:focus-visible { outline: 2px solid var(--bs-primary); outline-offset: -2px; }
.edu-faq__q {
  flex-shrink: 0; width: 2rem; text-align: center;
  font-family: var(--edu-hand); font-size: 1.4rem; font-weight: 600; line-height: 1;
  color: color-mix(in srgb, var(--edu-margin) 85%, var(--bs-body-color));
}
.edu-faq .accordion-body { padding: 0 1.5rem 1.25rem 4.15rem; color: var(--bs-secondary-color); line-height: 1.7; font-size: .95rem; }

/* ---------- Chalkboard CTA ---------- */
.edu-board {
  position: relative; overflow: hidden; isolation: isolate;
  padding: 2.25rem 1.5rem; border-radius: 1.25rem;
  background-color: var(--edu-board);
  background-image:
    radial-gradient(120% 90% at 10% 0%, rgba(255,255,255,.08), transparent 60%),
    radial-gradient(80% 70% at 100% 100%, rgba(var(--bs-primary-rgb), .28), transparent 65%);
  border: 10px solid #6b4f36;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.06), 0 1.5rem 2.5rem -1.75rem rgba(0,0,0,.6);
  color: var(--edu-chalk);
}
@media (min-width: 992px) { .edu-board { padding: 3rem 3.25rem; } }
.edu-board__chalk { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.edu-board__chalk span {
  position: absolute; font-family: var(--edu-hand); color: rgba(255,255,255,.13); font-size: 1.6rem; white-space: nowrap;
}
.edu-board__chalk span:nth-child(1) { top: 8%; right: 6%; transform: rotate(-6deg); }
.edu-board__chalk span:nth-child(2) { bottom: 10%; right: 30%; transform: rotate(3deg); }
.edu-board__chalk span:nth-child(3) { top: 12%; left: 55%; transform: rotate(4deg); }
.edu-board__chalk span:nth-child(4) { bottom: 8%; left: 4%; transform: rotate(-4deg); }
.edu-board__title {
  font-family: var(--edu-hand); font-weight: 600; color: #fff;
  font-size: clamp(2rem, 1.4rem + 2vw, 2.9rem); line-height: 1.05; margin-bottom: .75rem;
}
.edu-board__text { color: var(--edu-chalk); font-size: 1rem; line-height: 1.6; max-width: 56ch; }
.edu-board .btn-light { color: var(--edu-board); font-weight: 600; }

@media (prefers-reduced-motion: reduce) {
  .edu-sticky, .edu-card__answer { transition: none; animation: none; }
}
