/* ═══════════════════════════════════════════════════════════════
   LEARNHUB — Education Template
   Palette: White bg · Indigo accent · Yellow highlight
   Font: Nunito
═══════════════════════════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:         #ffffff;
  --bg-2:       #fafaf7;
  --surface:    #f4f4fd;
  --surface-2:  #ece8ff;
  --border:     #e0d9ff;
  --text:       #1e1b4b;
  --text-muted: #6b7280;
  --indigo:     #4f46e5;
  --indigo-lt:  #818cf8;
  --yellow:     #f59e0b;
  --yellow-lt:  #fde68a;
  --indigo-bg:  rgba(79,70,229,.08);
  --indigo-glow:rgba(79,70,229,.25);
  --font:       'Nunito', sans-serif;
  --radius:     10px;
  --radius-lg:  18px;
  --ease:       cubic-bezier(.22,1,.36,1);
  --tr:         .3s var(--ease);
  --shadow:     0 4px 20px rgba(0,0,0,.07);
  --shadow-lg:  0 12px 36px rgba(0,0,0,.12);
}

html { scroll-behavior: smooth; }
body { font-family: var(--font); background: var(--bg); color: var(--text); line-height: 1.7; overflow-x: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }

.lh-yellow { color: var(--yellow); }
.lh-text-link { color: var(--indigo); font-weight: 700; text-decoration: underline; }

/* ── CONTAINER ───────────────────────────────────────────────── */
.lh-container { width: 100%; max-width: 1160px; margin-inline: auto; padding-inline: 1.5rem; }

/* ── BUTTONS ─────────────────────────────────────────────────── */
.lh-btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .5rem; padding: .7rem 1.5rem;
  border-radius: var(--radius); font-weight: 800; font-size: .9rem;
  transition: var(--tr); white-space: nowrap;
}
.lh-btn--primary { background: var(--indigo); color: #fff; }
.lh-btn--primary:hover { background: #4338ca; transform: translateY(-2px); box-shadow: 0 8px 24px var(--indigo-glow); }
.lh-btn--ghost { background: transparent; color: var(--indigo); border: 1.5px solid var(--indigo); }
.lh-btn--ghost:hover { background: var(--indigo-bg); }
.lh-btn--dark { background: var(--text); color: #fff; }
.lh-btn--dark:hover { background: #312e81; transform: translateY(-2px); }
.lh-btn--sm { padding: .45rem 1rem; font-size: .82rem; }

/* ── TYPOGRAPHY ──────────────────────────────────────────────── */
.lh-label { font-size: .78rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: var(--indigo); margin-bottom: .5rem; }
.lh-section-title { font-size: clamp(1.9rem, 4vw, 2.8rem); font-weight: 900; line-height: 1.2; margin-bottom: 2rem; }

/* ── REVEAL ──────────────────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal--delay-1 { transition-delay: .1s; }
.reveal--delay-2 { transition-delay: .2s; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ── HEADER ──────────────────────────────────────────────────── */
.lh-header {
  position: sticky; top: 0; z-index: 900;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.lh-header__inner { display: flex; align-items: center; gap: 2rem; padding: .9rem 1.5rem; }
.lh-logo { font-size: 1.2rem; font-weight: 900; color: var(--text); display: flex; align-items: center; gap: .35rem; flex-shrink: 0; }
.lh-logo span { color: var(--indigo); }
.lh-logo__icon { font-size: 1.3rem; }
.lh-nav { margin-left: auto; }
.lh-nav ul { display: flex; gap: 2rem; }
.lh-nav a { font-size: .9rem; font-weight: 600; color: var(--text-muted); transition: color .2s; }
.lh-nav a:hover { color: var(--indigo); }
.lh-header__actions { display: flex; gap: 1rem; flex-shrink: 0; }

.lh-burger { display: none; flex-direction: column; gap: 5px; padding: 4px; margin-left: auto; }
.lh-burger span { display: block; width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: var(--tr); }
.lh-burger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.lh-burger.active span:nth-child(2) { opacity: 0; }
.lh-burger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.lh-drawer {
  position: fixed; top: 65px; left: 0; right: 0; bottom: 0;
  background: var(--bg); padding: 2rem 1.5rem;
  border-top: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 2rem;
  transform: translateX(-100%); transition: transform .35s var(--ease); z-index: 850;
}
.lh-drawer.open { transform: none; }
.lh-drawer ul { display: flex; flex-direction: column; gap: 1.25rem; }
.lh-drawer__link { font-size: 1.25rem; font-weight: 800; color: var(--text); }
.lh-drawer__link:hover { color: var(--indigo); }
.lh-backdrop { display: none; position: fixed; inset: 0; z-index: 800; background: rgba(0,0,0,.35); }
.lh-backdrop.show { display: block; }

/* ── HERO ────────────────────────────────────────────────────── */
.lh-hero { position: relative; background: var(--bg); padding: 5rem 0 0; overflow: hidden; }
.lh-hero__bg { position: absolute; inset: 0; pointer-events: none; }
.lh-blob {
  position: absolute; border-radius: 50%;
  filter: blur(70px);
}
.lh-blob--1 { width: 500px; height: 500px; top: -150px; right: -100px; background: rgba(79,70,229,.1); }
.lh-blob--2 { width: 300px; height: 300px; bottom: 40px; left: -80px; background: rgba(245,158,11,.1); }
.lh-blob--3 { width: 200px; height: 200px; top: 40%; left: 40%; background: rgba(79,70,229,.06); }

.lh-hero__inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 4rem; align-items: center; padding-bottom: 3rem;
}
.lh-hero__badge {
  display: inline-flex; align-items: center; gap: .5rem;
  background: var(--indigo-bg); color: var(--indigo);
  font-size: .82rem; font-weight: 700; padding: .35rem .9rem;
  border-radius: 99px; border: 1px solid var(--border);
  margin-bottom: 1.25rem;
}
.lh-badge-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--yellow); box-shadow: 0 0 8px var(--yellow); animation: blink 1.4s ease-in-out infinite; }
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:.3} }
.lh-hero__title { font-size: clamp(2rem, 4.5vw, 3.2rem); font-weight: 900; line-height: 1.15; margin-bottom: 1.25rem; }
.lh-hero__sub { color: var(--text-muted); font-size: 1.05rem; max-width: 440px; margin-bottom: 2rem; }

.lh-hero__search {
  display: flex; gap: .5rem;
  background: #fff; border: 1.5px solid var(--border);
  border-radius: var(--radius-lg); padding: .5rem .5rem .5rem 1rem;
  box-shadow: var(--shadow); margin-bottom: 1.25rem;
}
.lh-hero__search input { flex: 1; border: none; background: none; font-family: var(--font); font-size: .9rem; color: var(--text); }
.lh-hero__search input:focus { outline: none; }
.lh-hero__search input::placeholder { color: var(--text-muted); }

.lh-hero__topics { font-size: .85rem; color: var(--text-muted); display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }
.lh-topic { background: var(--surface-2); color: var(--indigo); padding: .2rem .65rem; border-radius: 99px; font-size: .8rem; font-weight: 700; transition: background .2s; }
.lh-topic:hover { background: var(--indigo); color: #fff; }

/* Hero visual cards */
.lh-hero__visual { position: relative; height: 320px; }
.lh-hero__card {
  position: absolute; background: #fff; border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); padding: 1.25rem;
  border: 1px solid var(--border);
}
.lh-hero__card--main { width: 300px; top: 20px; right: 0; }
.lh-hcard__top { display: flex; justify-content: space-between; margin-bottom: .75rem; }
.lh-hcard__category { font-size: .75rem; font-weight: 800; color: var(--indigo); background: var(--indigo-bg); padding: .2rem .5rem; border-radius: 4px; }
.lh-hcard__stars { color: #f59e0b; font-size: .85rem; }
.lh-hcard__title { font-size: .9rem; font-weight: 800; margin-bottom: 1rem; }
.lh-hcard__progress { height: 6px; background: var(--border); border-radius: 99px; overflow: hidden; margin-bottom: .5rem; }
.lh-hcard__bar { height: 100%; background: linear-gradient(to right, var(--indigo), var(--indigo-lt)); border-radius: 99px; }
.lh-hcard__meta { font-size: .78rem; color: var(--text-muted); }

.lh-hero__card--sm {
  display: flex; align-items: center; gap: .5rem;
  padding: .7rem 1rem; font-size: .82rem; font-weight: 700;
}
.lh-hero__card--left  { bottom: 60px; left: 0; }
.lh-hero__card--right { bottom: 0; right: 80px; }

/* Stats */
.lh-hero__stats { padding: 2.5rem 0; border-top: 1px solid var(--border); background: linear-gradient(135deg, #f0eeff, #fff7e0); }
.lh-stats-row { display: flex; justify-content: space-around; flex-wrap: wrap; gap: 1.5rem; }
.lh-stat { display: flex; flex-direction: column; align-items: center; }
.lh-stat__val { font-size: 2.2rem; font-weight: 900; color: var(--indigo); line-height: 1; }
.lh-stat__val + span { font-size: 1.4rem; font-weight: 900; color: var(--yellow); }
.lh-stat__label { font-size: .78rem; color: var(--text-muted); font-weight: 600; margin-top: .2rem; }

/* ── COURSES ─────────────────────────────────────────────────── */
.lh-courses { padding: 6rem 0; }
.lh-course-tabs { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 2.5rem; }
.lh-ctab {
  padding: .45rem 1.1rem; border-radius: 99px;
  font-size: .85rem; font-weight: 700;
  border: 1.5px solid var(--border); color: var(--text-muted);
  transition: var(--tr);
}
.lh-ctab.active, .lh-ctab:hover { background: var(--indigo); border-color: var(--indigo); color: #fff; }

.lh-courses__grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.lh-course {
  background: #fff; border-radius: var(--radius-lg);
  border: 1.5px solid var(--border); overflow: hidden;
  box-shadow: var(--shadow); transition: var(--tr);
  display: flex; flex-direction: column;
}
.lh-course:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: var(--indigo-lt); }
.lh-course__img {
  height: 160px; position: relative; overflow: hidden;
  display: flex; align-items: flex-end; padding: .75rem;
}
.lh-course__img--1 { background: linear-gradient(135deg, #ddd6fe, #818cf8); }
.lh-course__img--2 { background: linear-gradient(135deg, #d1fae5, #34d399); }
.lh-course__img--3 { background: linear-gradient(135deg, #fce7f3, #f9a8d4); }
.lh-course__img--4 { background: linear-gradient(135deg, #fef3c7, #fcd34d); }
.lh-course__img--5 { background: linear-gradient(135deg, #cffafe, #67e8f9); }
.lh-course__img--6 { background: linear-gradient(135deg, #e0e7ff, #6366f1); }
.lh-course__level {
  background: rgba(0,0,0,.45); color: #fff;
  font-size: .72rem; font-weight: 700; padding: .2rem .6rem; border-radius: 4px;
  backdrop-filter: blur(4px);
}
.lh-course__body { padding: 1.25rem; display: flex; flex-direction: column; gap: .6rem; flex: 1; }
.lh-course__cat { font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.lh-course__cat.webdev  { color: #4f46e5; }
.lh-course__cat.ai      { color: #059669; }
.lh-course__cat.design  { color: #db2777; }
.lh-course__cat.business{ color: #d97706; }
.lh-course h3 { font-size: 1rem; font-weight: 800; }
.lh-course p { font-size: .86rem; color: var(--text-muted); flex: 1; line-height: 1.5; }
.lh-course__meta { display: flex; gap: .75rem; flex-wrap: wrap; font-size: .78rem; color: var(--text-muted); }
.lh-course__footer { display: flex; justify-content: space-between; align-items: center; margin-top: auto; }
.lh-course__price { font-size: 1.3rem; font-weight: 900; color: var(--text); }

/* ── HOW IT WORKS ────────────────────────────────────────────── */
.lh-how { padding: 6rem 0; background: var(--bg-2); }
.lh-how__steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; }
.lh-step {
  background: #fff; border-radius: var(--radius-lg);
  padding: 2rem; border: 1.5px solid var(--border);
  display: flex; flex-direction: column; gap: .75rem;
  position: relative; overflow: hidden;
}
.lh-step__num {
  font-size: 4rem; font-weight: 900; color: var(--surface-2);
  position: absolute; top: -8px; right: 12px; line-height: 1;
}
.lh-step__icon { font-size: 1.8rem; }
.lh-step h3 { font-size: 1rem; font-weight: 800; color: var(--text); }
.lh-step p { font-size: .86rem; color: var(--text-muted); line-height: 1.6; }

/* ── INSTRUCTORS ─────────────────────────────────────────────── */
.lh-instructors { padding: 6rem 0; }
.lh-instructors__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.lh-instructor {
  background: #fff; border-radius: var(--radius-lg);
  border: 1.5px solid var(--border); overflow: hidden;
  box-shadow: var(--shadow); transition: var(--tr);
}
.lh-instructor:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.lh-instructor__avatar { height: 160px; }
.lh-instructor__avatar--1 { background: linear-gradient(160deg, #e0e7ff, #818cf8); }
.lh-instructor__avatar--2 { background: linear-gradient(160deg, #d1fae5, #34d399); }
.lh-instructor__avatar--3 { background: linear-gradient(160deg, #fce7f3, #f472b6); }
.lh-instructor__avatar--4 { background: linear-gradient(160deg, #fef3c7, #fbbf24); }
.lh-instructor__body { padding: 1.25rem; display: flex; flex-direction: column; gap: .5rem; }
.lh-instructor h3 { font-size: 1rem; font-weight: 800; }
.lh-instructor__spec { font-size: .8rem; color: var(--indigo); font-weight: 700; }
.lh-instructor__body p { font-size: .84rem; color: var(--text-muted); line-height: 1.5; }
.lh-instructor__badges { display: flex; gap: .4rem; flex-wrap: wrap; margin-top: .25rem; }
.lh-instructor__badges span { background: var(--surface); color: var(--text-muted); font-size: .72rem; font-weight: 700; padding: .2rem .5rem; border-radius: 4px; }

/* ── FAQ ─────────────────────────────────────────────────────── */
.lh-faq { padding: 6rem 0; background: var(--bg-2); }
.lh-faq__inner { display: grid; grid-template-columns: 1fr 2fr; gap: 5rem; align-items: start; }
.lh-faq__intro .lh-section-title { margin-bottom: 1rem; }
.lh-faq__intro p { font-size: .95rem; color: var(--text-muted); }

.lh-accordions { display: flex; flex-direction: column; gap: .75rem; }
.lh-accordion {
  background: #fff; border: 1.5px solid var(--border);
  border-radius: var(--radius); overflow: hidden; transition: border-color .2s;
}
.lh-accordion[open] { border-color: var(--indigo-lt); }
.lh-accordion summary {
  padding: 1.1rem 1.25rem;
  font-size: .95rem; font-weight: 700; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center;
  list-style: none; user-select: none;
}
.lh-accordion summary::-webkit-details-marker { display: none; }
.lh-accordion summary::after {
  content: '+'; font-size: 1.2rem; color: var(--indigo);
  font-weight: 900; transition: transform .25s;
  flex-shrink: 0; margin-left: .5rem;
}
.lh-accordion[open] summary::after { transform: rotate(45deg); }
.lh-accordion__body { padding: 0 1.25rem 1.25rem; font-size: .9rem; color: var(--text-muted); }

/* ── CTA BANNER ──────────────────────────────────────────────── */
.lh-cta {
  padding: 5rem 0;
  background: linear-gradient(135deg, #4f46e5, #7c3aed);
}
.lh-cta__inner {
  display: flex; justify-content: space-between;
  align-items: center; gap: 3rem; flex-wrap: wrap;
}
.lh-cta__content h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); font-weight: 900; color: #fff; margin-bottom: .5rem; }
.lh-cta__content p { color: rgba(255,255,255,.75); font-size: 1rem; }

.lh-cta__form { display: flex; flex-direction: column; gap: .75rem; min-width: 340px; }
.lh-cta__form input {
  padding: .85rem 1.25rem; border-radius: var(--radius);
  border: none; font-family: var(--font); font-size: .95rem;
  background: rgba(255,255,255,.15); color: #fff;
  backdrop-filter: blur(4px);
}
.lh-cta__form input::placeholder { color: rgba(255,255,255,.6); }
.lh-cta__form input:focus { outline: 2px solid #fff; }
.lh-cta__ok { font-size: .85rem; color: rgba(255,255,255,.9); min-height: 1.2em; }

/* ── FOOTER ──────────────────────────────────────────────────── */
.lh-footer { padding: 2rem 0; border-top: 1px solid var(--border); background: var(--text); }
.lh-footer__inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; }
.lh-footer__logo { font-size: 1.1rem; font-weight: 900; color: #fff; }
.lh-footer__logo strong { color: var(--yellow); }
.lh-footer__copy { font-size: .82rem; color: rgba(255,255,255,.5); }
.lh-footer__nav { display: flex; gap: 1.5rem; }
.lh-footer__nav a { font-size: .82rem; color: rgba(255,255,255,.5); }
.lh-footer__nav a:hover { color: var(--indigo-lt); }

/* ── RESPONSIVE ──────────────────────────────────────────────── */
@media (max-width: 1050px) {
  .lh-nav, .lh-header__actions { display: none; }
  .lh-burger { display: flex; }
  .lh-hero__inner { grid-template-columns: 1fr; }
  .lh-hero__visual { display: none; }
  .lh-how__steps { grid-template-columns: repeat(2, 1fr); }
  .lh-instructors__grid { grid-template-columns: repeat(2, 1fr); }
  .lh-faq__inner { grid-template-columns: 1fr; }
  .lh-cta__form { min-width: auto; width: 100%; }
}
@media (max-width: 768px) {
  .lh-courses__grid { grid-template-columns: 1fr 1fr; }
  .lh-cta__inner { flex-direction: column; }
}
@media (max-width: 520px) {
  .lh-courses__grid { grid-template-columns: 1fr; }
  .lh-how__steps { grid-template-columns: 1fr; }
  .lh-instructors__grid { grid-template-columns: 1fr; }
  .lh-footer__inner { flex-direction: column; text-align: center; }
}
