/* ===== ENABLE ACADEMY - SHARED STYLES ===== */

:root {
  --navy: #1B3A6B;
  --navy-dark: #0f2347;
  --navy-light: #2a5298;
  --orange: #F5841F;
  --orange-light: #ff9d3d;
  --orange-pale: #fff4e8;
  --teal: #2eb89a;
  --teal-pale: #e8faf6;
  /* Darker variants meeting WCAG 4.5:1 contrast against white for interactive elements */
  --orange-btn: #B35400;
  --teal-btn: #0a6b55;
  --bg: #F8F9FF;
  --white: #ffffff;
  --text: #1a1a2e;
  --text-muted: #6b7280;
  --border: #e5e7f0;
  --shadow: 0 4px 24px rgba(27,58,107,0.10);
  --shadow-lg: 0 8px 48px rgba(27,58,107,0.16);
  --radius: 12px;
  --radius-lg: 20px;
  --radius-pill: 999px;
  --transition: 0.25s cubic-bezier(.4,0,.2,1);
  --font-head: 'Poppins', sans-serif;
  --font-body: 'Lora', serif;
}

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

html { scroll-behavior: smooth; overflow-x: hidden; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 16px;
  overflow-x: hidden;
  max-width: 100%;
}

img, svg, video, canvas, iframe { max-width: 100%; }

/* ── UTILITY ── */
.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.section { padding: 80px 0; }
.section-sm { padding: 48px 0; }
.text-center { text-align: center; }
.text-orange { color: var(--orange); }
.text-navy { color: var(--navy); }
.text-muted { color: var(--text-muted); }
.hidden { display: none !important; }

.badge {
  display: inline-block;
  background: var(--orange-pale);
  color: var(--orange-btn);
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  margin-bottom: 12px;
}
.badge-teal { background: var(--teal-pale); color: var(--teal-btn); }
.badge-navy { background: rgba(27,58,107,0.1); color: var(--navy); }

.section-title {
  font-family: var(--font-head);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.2;
  margin-bottom: 16px;
}
.section-sub {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 540px;
  margin: 0 auto 48px;
  line-height: 1.7;
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 600;
  padding: 13px 28px;
  border-radius: var(--radius-pill);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: all var(--transition);
  white-space: nowrap;
}
.btn-primary {
  background: var(--orange-btn);
  color: white;
  box-shadow: 0 4px 16px rgba(196,98,10,0.35);
}
.btn-primary:hover { background: #a05008; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(196,98,10,0.4); }
.btn-secondary {
  background: white;
  color: var(--navy);
  border: 2px solid var(--border);
}
.btn-secondary:hover { border-color: var(--navy); transform: translateY(-2px); }
.btn-navy {
  background: var(--navy);
  color: white;
  box-shadow: 0 4px 16px rgba(27,58,107,0.3);
}
.btn-navy:hover { background: var(--navy-light); transform: translateY(-2px); }
.btn-outline-white {
  background: transparent;
  color: white;
  border: 2px solid rgba(255,255,255,0.5);
}
.btn-outline-white:hover { background: white; color: var(--navy); }
.btn-sm { padding: 9px 20px; font-size: 13px; }
.btn-lg { padding: 17px 36px; font-size: 17px; }

/* ── CARDS ── */
.card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: all var(--transition);
}
.card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }

/* ── NAVBAR ── */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
}
.navbar-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.navbar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.navbar-logo-icon {
  width: 38px; height: 38px;
  object-fit: contain;
  flex-shrink: 0;
}
.footer-logo .navbar-logo-icon {
  filter: brightness(0) invert(1);
}
.navbar-logo-text {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 18px;
  color: var(--navy);
}
.navbar-logo-text span { color: var(--orange); }

.navbar-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}
.navbar-nav a {
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 8px;
  transition: all var(--transition);
}
.navbar-nav a:hover, .navbar-nav a.active { background: var(--bg); color: var(--navy); }
.navbar-cta { display: flex; align-items: center; gap: 10px; }
.navbar-hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 5px;
}
.navbar-hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: all var(--transition);
}
@media (max-width: 900px) {
  .navbar-nav, .navbar-cta .btn-secondary { display: none; }
  .navbar-hamburger { display: flex; }
}

/* ── FOOTER ── */
.footer {
  background: var(--navy-dark);
  color: rgba(255,255,255,0.8);
  padding: 64px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}
@media (max-width: 768px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

.footer-brand p { font-size: 14px; margin-top: 12px; line-height: 1.7; opacity: .75; }
.footer h4 {
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: white;
  margin-bottom: 16px;
}
.footer ul { list-style: none; }
.footer ul li { margin-bottom: 8px; }
.footer ul li a {
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  font-size: 14px;
  transition: color var(--transition);
}
.footer ul li a:hover { color: var(--orange); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  opacity: .6;
}
.footer-social { display: flex; gap: 12px; }
.footer-social a,
.footer-social .footer-social-link {
  width: 36px; height: 36px;
  background: rgba(255,255,255,0.1);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: white;
  text-decoration: none;
  font-size: 16px;
  transition: all var(--transition);
}
.footer-social a:hover,
.footer-social .footer-social-link:hover { background: var(--orange); }
.footer-social .footer-social-placeholder {
  opacity: 0.4;
  cursor: default;
}

/* ── HERO ── */
.hero {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 50%, var(--navy-light) 100%);
  color: white;
  padding: 100px 0 80px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Ccircle cx='30' cy='30' r='4'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
@media (max-width: 768px) { .hero-inner { grid-template-columns: 1fr; } }
.hero-eyebrow {
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 16px;
}
.hero h1 {
  font-family: var(--font-head);
  font-size: clamp(32px, 5vw, 58px);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 20px;
}
.hero h1 em { font-style: italic; color: var(--orange); }
.hero p {
  font-size: 17px;
  opacity: .85;
  margin-bottom: 36px;
  max-width: 480px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  margin-top: 48px;
  padding-top: 36px;
  border-top: 1px solid rgba(255,255,255,0.15);
}
.hero-stat-val {
  font-family: var(--font-head);
  font-size: 28px;
  font-weight: 800;
  color: var(--orange);
}
.hero-stat-lbl { font-size: 13px; opacity: .7; margin-top: 2px; }
.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-card-float {
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius-lg);
  padding: 32px;
  width: 100%;
  max-width: 380px;
}
.hero-card-float .level-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--orange);
  color: white;
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  margin-bottom: 20px;
}
.hero-card-float h3 {
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 16px;
}
.hero-progress-item { margin-bottom: 12px; }
.hero-progress-label {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  margin-bottom: 5px;
  opacity: .85;
}
.hero-progress-bar {
  height: 6px;
  background: rgba(255,255,255,0.15);
  border-radius: 3px;
  overflow: hidden;
}
.hero-progress-fill {
  height: 100%;
  background: var(--orange);
  border-radius: 3px;
}

/* ── PAGE HEADER ── */
.page-header {
  background: linear-gradient(135deg, var(--navy-dark), var(--navy));
  color: white;
  padding: 64px 0 56px;
  text-align: center;
}
.page-header h1 {
  font-family: var(--font-head);
  font-size: clamp(28px, 4vw, 46px);
  font-weight: 800;
  margin-bottom: 12px;
}
.page-header p { opacity: .8; font-size: 17px; }
.breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-head);
  font-size: 13px;
  margin-bottom: 20px;
  opacity: .7;
}
.breadcrumb a { color: var(--orange-btn); text-decoration: none; }

/* ── FORMS ── */
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--text);
  background: white;
  transition: border-color var(--transition);
  outline: none;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus { border-color: var(--navy); box-shadow: 0 0 0 3px rgba(27,58,107,0.1); }
.form-group textarea { resize: vertical; min-height: 120px; }

/* ── TABS ── */
.tabs { display: flex; gap: 4px; background: var(--bg); border-radius: var(--radius-pill); padding: 4px; border: 1px solid var(--border); width: fit-content; }
.tab {
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 500;
  padding: 8px 20px;
  border-radius: var(--radius-pill);
  border: none;
  background: none;
  cursor: pointer;
  color: var(--text-muted);
  transition: all var(--transition);
}
.tab.active { background: white; color: var(--navy); font-weight: 600; box-shadow: var(--shadow); }

/* ── TESTIMONIALS ── */
.testimonial-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 28px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.testimonial-stars { color: #f59e0b; font-size: 14px; margin-bottom: 12px; letter-spacing: 2px; }
.testimonial-text {
  font-style: italic;
  font-size: 15px;
  color: var(--text);
  margin-bottom: 20px;
  line-height: 1.7;
}
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.testimonial-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head);
  font-size: 16px;
  font-weight: 700;
  color: white;
  flex-shrink: 0;
}
.testimonial-name { font-family: var(--font-head); font-size: 14px; font-weight: 600; }
.testimonial-role { font-size: 12px; color: var(--text-muted); }

/* ── VIDEO TESTIMONIALS ── */
.video-testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 900px) { .video-testimonials-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .video-testimonials-grid { grid-template-columns: 1fr; max-width: 320px; margin: 0 auto; } }

.video-testimonial-card { background: white; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow); transition: all var(--transition); }
.video-testimonial-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.video-testimonial-thumb { position: relative; aspect-ratio: 9 / 16; background: var(--navy-dark); cursor: pointer; overflow: hidden; }
.video-testimonial-thumb::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(15,35,71,.55), transparent 45%);
  pointer-events: none;
}
.video-testimonial-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform var(--transition); }
.video-testimonial-card:hover .video-testimonial-thumb img { transform: scale(1.04); }
.video-testimonial-thumb iframe { width: 100%; height: 100%; border: 0; display: block; }
.video-testimonial-thumb:focus-visible { outline: 3px solid var(--orange); outline-offset: -3px; }
.video-testimonial-play {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: 58px; height: 58px; border-radius: 50%;
  background: rgba(255,255,255,.92); color: var(--orange-btn);
  display: flex; align-items: center; justify-content: center;
  font-size: 19px; box-shadow: 0 8px 24px rgba(0,0,0,.25);
  transition: all var(--transition); pointer-events: none;
}
.video-testimonial-card:hover .video-testimonial-play { background: var(--orange-btn); color: white; transform: translate(-50%,-50%) scale(1.08); }
.video-testimonial-thumb.is-playing::after,
.video-testimonial-thumb.is-playing .video-testimonial-play { display: none; }
.video-testimonial-info { padding: 16px 18px; }
.video-testimonial-info .testimonial-stars { margin-bottom: 8px; }
.video-testimonial-info .testimonial-name { color: var(--navy); }

/* ── GRID HELPERS ── */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .section { padding: 56px 0; }
  .hero { padding: 64px 0 56px; }
}

/* ── SKIP LINK (accessibility) ── */
.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 9999;
  background: var(--navy);
  color: white;
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: var(--radius);
  text-decoration: none;
  transition: top 0.2s;
}
.skip-link:focus { top: 16px; outline: 3px solid var(--orange); outline-offset: 2px; }

/* ── FOCUS VISIBLE (keyboard navigation) ── */
:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
  border-radius: 4px;
}
:focus:not(:focus-visible) { outline: none; }

/* ── MOBILE NAV open state ── */
@media (max-width: 900px) {
  .navbar-nav.is-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 68px;
    left: 0; right: 0;
    background: white;
    border-bottom: 1px solid var(--border);
    padding: 12px 16px 20px;
    box-shadow: var(--shadow-lg);
    z-index: 999;
    gap: 2px;
  }
  .navbar-nav.is-open a {
    display: block;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 16px;
  }
  .navbar { position: relative; }
}

/* Hamburger → X animation */
.navbar-hamburger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.navbar-hamburger.is-open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.navbar-hamburger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.navbar-hamburger span { transition: transform var(--transition), opacity var(--transition); }

/* ── BLOG CARD full-link variant ── */
.blog-card-full-link {
  display: flex;
  flex-direction: column;
  flex: 1;
  text-decoration: none;
  color: inherit;
}
.blog-card-full-link:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
  border-radius: var(--radius-lg);
}

/* ── MAIN LANDMARK ── */
main { display: block; }

/* ── PAGE HEADER TITLE (used in blog posts to avoid duplicate h1) ── */
.page-header-title {
  font-family: var(--font-head);
  font-size: clamp(22px, 3.5vw, 40px);
  font-weight: 800;
  color: white;
  line-height: 1.2;
  margin-top: 4px;
}

/* ════════════════════════════════════════════════════════════════════
   BLOG / LESSON POST PAGES
   All styles shared by every individual blog post and lesson page.
   Keeping them here avoids repeating a <style> block in every HTML file.
   ════════════════════════════════════════════════════════════════════ */

/* Compact breadcrumb strip — replaces the old full-height .page-header
   on individual post/lesson pages. Title is NOT repeated here;
   the <h1> lives inside the <article> card below.                     */
.post-breadcrumb-strip {
  background: white;
  border-bottom: 1px solid var(--border);
  padding: 13px 0;
}
.post-breadcrumb-strip .breadcrumb {
  justify-content: flex-start;
  margin-bottom: 0;
  opacity: 1;
}
.post-breadcrumb-strip .breadcrumb a { color: var(--navy); opacity: .6; }
.post-breadcrumb-strip .breadcrumb a:hover { opacity: 1; color: var(--orange); }
.post-breadcrumb-strip .breadcrumb span { color: var(--text-muted); }

/* Two-column layout: article + sidebar */
.post-layout { display: grid; grid-template-columns: 1fr 320px; gap: 48px; align-items: start; }
.post-layout > article, .post-layout > aside { min-width: 0; }
@media(max-width:900px) { .post-layout { grid-template-columns: 1fr; } }

/* Article card */
.post-body { background: white; border-radius: var(--radius-lg); padding: 48px; border: 1px solid var(--border); box-shadow: var(--shadow); }
@media(max-width:600px) { .post-body { padding: 28px 20px; } }

/* SVG hero image — works as a bare <img> (blogs) or a <div> wrapper (lessons) */
.post-header-img { width: 100%; border-radius: var(--radius-lg); margin-bottom: 32px; display: block; position: relative; overflow: hidden; }
.post-header-img img { width: 100%; display: block; }

/* Meta row */
.post-meta  { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 16px; }
.post-cat   { font-family: var(--font-head); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--orange); }
.post-date,
.post-read  { font-size: 13px; color: var(--text-muted); }

/* Article h1 */
.post-title { font-family: var(--font-head); font-size: clamp(22px,3vw,34px); font-weight: 800; color: var(--navy); line-height: 1.2; margin-bottom: 28px; }

/* Article body typography */
.post-content h2      { font-family: var(--font-head); font-size: 21px; font-weight: 700; color: var(--navy); margin: 36px 0 10px; }
.post-content h3      { font-family: var(--font-head); font-size: 17px; font-weight: 600; color: var(--navy); margin: 22px 0 8px; }
.post-content p       { font-size: 16px; line-height: 1.85; color: var(--text); margin-bottom: 16px; }
.post-content ul,
.post-content ol      { margin: 0 0 16px 24px; }
.post-content li      { font-size: 15px; line-height: 1.8; color: var(--text); margin-bottom: 6px; }
.post-content strong  { color: var(--navy); }
.post-content em      { color: var(--text-muted); font-style: italic; }
.post-content blockquote { border-left: 4px solid var(--navy); padding: 12px 20px; margin: 24px 0; background: var(--bg); border-radius: 0 var(--radius) var(--radius) 0; }
.post-content blockquote p { font-size: 18px; font-style: italic; color: var(--navy); margin: 0; }
.post-content table   { width: 100%; border-collapse: collapse; margin: 0; font-size: 15px; border-radius: var(--radius); overflow: hidden; }
.table-scroll-wrap    { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 20px 0; border-radius: var(--radius); box-shadow: var(--shadow); }
.post-content th      { background: var(--navy); color: white; padding: 10px 16px; text-align: left; font-family: var(--font-head); font-weight: 600; }
.post-content td      { padding: 10px 16px; border-bottom: 1px solid var(--border); background: white; }
.post-content tr:last-child td { border-bottom: none; }
@media(max-width:600px) {
  .post-content table { font-size: 13px; }
  .post-content th, .post-content td { padding: 8px 10px; }
  .table-scroll-wrap { margin: 16px 0; }
}

/* ── Sidebar cards ── */
.sidebar-card { background: white; border-radius: var(--radius-lg); padding: 24px; border: 1px solid var(--border); box-shadow: var(--shadow); margin-bottom: 20px; }

/* h2 used as section label inside sidebar cards */
.sidebar-card h2 {
  font-family: var(--font-head);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .10em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

/* Enhanced sidebar post items */
.sidebar-post { display: flex; gap: 12px; padding: 9px 8px; border-radius: var(--radius); text-decoration: none; transition: background var(--transition), transform var(--transition); }
.sidebar-post:hover { background: var(--bg); transform: translateX(3px); }
.sidebar-post-thumb { width: 44px; height: 44px; border-radius: 10px; flex-shrink: 0; overflow: hidden; }
.sidebar-post-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sidebar-post-title { font-family: var(--font-head); font-size: 13px; font-weight: 600; color: var(--navy); line-height: 1.35; margin-bottom: 5px; }
.sidebar-post-badge { font-family: var(--font-head); font-size: 10px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: white; padding: 2px 8px; border-radius: 999px; }
.sidebar-post-time  { font-size: 11px; color: var(--text-muted); }

/* Category pill links (used in lesson sidebar) */
.sidebar-cat-pill { display: inline-block; background: var(--bg); color: var(--text); font-family: var(--font-head); font-size: 12px; font-weight: 500; padding: 5px 12px; border-radius: 999px; text-decoration: none; border: 1px solid var(--border); margin: 3px 2px; transition: all var(--transition); }
.sidebar-cat-pill:hover { background: var(--navy); color: white; border-color: var(--navy); }

/* ── Lesson-specific ── */
/* Level badge overlaid on the header image */
.lesson-level-badge { position: absolute; top: 16px; left: 16px; font-family: var(--font-head); font-size: 11px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; padding: 4px 12px; border-radius: 999px; color: white; }

/* Callout boxes */
.lesson-box { border-radius: var(--radius); padding: 20px 24px; margin: 24px 0; }
.lesson-box.rule    { background: #eff6ff; border-left: 4px solid var(--navy); }
.lesson-box.example { background: #fff7ed; border-left: 4px solid var(--orange); }
.lesson-box.tip     { background: #f0fdf4; border-left: 4px solid #16a34a; }
.lesson-box-label   { font-family: var(--font-head); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 8px; color: var(--text-muted); }
.lesson-box p { margin: 0; }

/* Practice exercise block */
.lesson-practice { background: var(--bg); border-radius: var(--radius-lg); padding: 28px; margin: 32px 0; }
.lesson-practice h3 { font-family: var(--font-head); font-size: 16px; font-weight: 700; color: var(--navy); margin-bottom: 16px; }

/* ── Visually-hidden utility (screen-reader only) ── */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ── Reduced-motion: respect OS preference ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}


