/* ============================================================
   UrduCraft — shared lesson stylesheet
   Used by all /learn lesson pages and the /learn hub.
   ============================================================ */

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { font-family: 'Outfit', sans-serif; color: #1a1a1a; overflow-x: hidden; background: #FFF8EC; scroll-behavior: smooth; }
a { text-decoration: none; color: inherit; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

:root {
  --cream: #FFF8EC;
  --tan: #F3E9D2;
  --ink: #1a1a1a;
  --red: #E8472A;
  --green: #1A6B3C;
  --blue: #2C3E8C;
  --purple: #7B2D8B;
  --gold: #FFD166;
  --brand-blue: #3A6BB1;
  --brand-green: #1FA85C;
}

.urdu { font-family: 'Noto Nastaliq Urdu', serif; direction: rtl; }
.serif { font-family: 'Crimson Pro', serif; }

/* ============ NAV ============ */
nav.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 48px;
  background: rgba(255, 248, 236, 0.9);
  backdrop-filter: blur(14px);
  border-bottom: 1.5px solid rgba(26,26,26,0.08);
}
.channel-logo {
  display: flex; align-items: center; gap: 12px;
  background: #FFFFFF; padding: 8px 16px 8px 10px;
  border-radius: 100px; box-shadow: 0 2px 12px rgba(26,26,26,0.06);
}
.channel-logo-face {
  width: 40px; height: 40px; background: #FFF8EC;
  border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.channel-logo-text { display: flex; flex-direction: column; line-height: 1.2; }
.channel-logo-text .cl-main { font-size: 17px; font-weight: 900; letter-spacing: 0.01em; color: var(--brand-blue); }
.channel-logo-text .cl-sub { font-size: 10.5px; font-weight: 700; letter-spacing: 0.06em; color: var(--brand-blue); opacity: 0.55; margin-top: 2px; }
.nav-links { display: flex; gap: 26px; }
.nav-links a { font-size: 15px; font-weight: 700; letter-spacing: 0.04em; opacity: 0.75; transition: opacity 200ms; }
.nav-links a:hover { opacity: 1; }
@media (max-width: 900px) { .nav-links { display: none; } .channel-logo-text .cl-sub { font-size: 9.5px; } }
.nav-cta {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--red); color: white;
  padding: 10px 20px; border-radius: 100px;
  font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  white-space: nowrap; transition: transform 200ms, box-shadow 200ms;
}
.nav-cta:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(232,71,42,0.4); }
@media (max-width: 768px) { nav.topbar { padding: 12px 18px; } }

/* ============ HERO ============ */
.lesson-hero {
  padding: 140px 48px 80px;
  background: linear-gradient(160deg, #FFF8EC 0%, #F3E9D2 60%, #FFE8B0 100%);
  position: relative; overflow: hidden;
}
.hero-ghost {
  position: absolute; top: 8%; right: -1%;
  font-family: 'Noto Nastaliq Urdu', serif; direction: rtl;
  font-size: clamp(90px, 16vw, 220px); font-weight: 700;
  color: var(--gold); opacity: 0.16; pointer-events: none; user-select: none;
  line-height: 1;
}
.breadcrumb {
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink); opacity: 0.5; margin-bottom: 24px;
}
.breadcrumb a { opacity: 1; color: var(--brand-blue); }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span { opacity: 0.5; }
.lesson-label {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--gold); color: var(--ink);
  padding: 6px 16px; border-radius: 100px;
  font-size: 11px; font-weight: 800; letter-spacing: 0.18em; text-transform: uppercase;
  margin-bottom: 20px;
}
.lesson-label .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ink); opacity: 0.4; }
.lesson-hero h1 {
  font-size: clamp(36px, 6vw, 72px); font-weight: 900;
  line-height: 1.05; letter-spacing: -0.02em; color: var(--ink);
  max-width: 700px; margin-bottom: 16px;
}
.lesson-hero h1 em { font-family: 'Crimson Pro', serif; font-style: italic; font-weight: 600; color: var(--brand-green); }
.lesson-hero-sub {
  font-family: 'Crimson Pro', serif; font-style: italic;
  font-size: clamp(17px, 2.2vw, 21px); color: var(--ink);
  opacity: 0.7; max-width: 580px; line-height: 1.6; margin-bottom: 36px;
}
.hero-pills { display: flex; gap: 10px; flex-wrap: wrap; }
.hero-pill {
  background: white; border: 1.5px solid rgba(26,26,26,0.12);
  border-radius: 100px; padding: 6px 14px;
  font-size: 12px; font-weight: 600; color: var(--ink); opacity: 0.8;
  display: flex; align-items: center; gap: 6px;
}
.hero-pill .pip { width: 8px; height: 8px; border-radius: 50%; }
.pip-green { background: var(--brand-green); }
.pip-gold { background: var(--gold); }
.pip-blue { background: var(--brand-blue); }
.pip-red { background: var(--red); }
.pip-purple { background: var(--purple); }

/* ============ MAIN ============ */
.lesson-body { max-width: 960px; margin: 0 auto; padding: 0 48px 80px; }
@media (max-width: 768px) {
  .lesson-hero { padding: 120px 20px 60px; }
  .lesson-body { padding: 0 20px 60px; }
}

.section-label {
  font-size: 11px; font-weight: 800; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--brand-green); margin-bottom: 12px; margin-top: 64px;
  display: flex; align-items: center; gap: 10px;
}
.section-label::after { content: ''; flex: 1; height: 1.5px; background: currentColor; opacity: 0.2; }
.section-title { font-size: clamp(24px, 3.5vw, 36px); font-weight: 800; letter-spacing: -0.01em; margin-bottom: 8px; }
.section-intro {
  font-family: 'Crimson Pro', serif; font-style: italic;
  font-size: 18px; color: var(--ink); opacity: 0.65; margin-bottom: 32px; line-height: 1.6;
}

/* ============ WORD CARDS ============ */
.word-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px; margin-bottom: 8px;
}
@media (max-width: 600px) { .word-grid { grid-template-columns: repeat(2, 1fr); } }
.word-card {
  background: white; border-radius: 18px;
  border: 1.5px solid rgba(26,26,26,0.07);
  padding: 22px 18px 18px;
  box-shadow: 0 2px 12px rgba(26,26,26,0.04);
  transition: transform 200ms, box-shadow 200ms;
  position: relative; overflow: hidden; text-align: center;
}
.word-card:hover { transform: translateY(-3px); box-shadow: 0 8px 28px rgba(26,26,26,0.10); }
.word-emoji { font-size: 30px; display: block; margin-bottom: 8px; }
.word-swatch { width: 100%; height: 44px; border-radius: 10px; margin-bottom: 12px; border: 1px solid rgba(26,26,26,0.1); }
.word-urdu {
  font-family: 'Noto Nastaliq Urdu', serif; direction: rtl;
  font-size: clamp(24px, 3.6vw, 32px); font-weight: 700;
  color: var(--ink); display: block; line-height: 1.4; margin-bottom: 8px;
}
.word-roman {
  font-family: 'Crimson Pro', serif; font-style: italic;
  font-size: 22px; color: var(--ink); opacity: 0.72;
  display: block; margin-bottom: 4px;
}
.word-english {
  font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink); opacity: 0.35; display: block;
}

/* ============ PHRASE / DISH CARDS ============ */
.phrase-grid, .dish-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px; margin-bottom: 8px;
}
.phrase-card, .dish-card {
  background: white; border-radius: 20px;
  border: 1.5px solid rgba(26,26,26,0.07);
  padding: 24px 24px 20px;
  box-shadow: 0 2px 16px rgba(26,26,26,0.04);
  transition: transform 200ms, box-shadow 200ms;
  position: relative; overflow: hidden;
}
.phrase-card:hover, .dish-card:hover { transform: translateY(-3px); box-shadow: 0 8px 32px rgba(26,26,26,0.10); }
.phrase-card-accent, .dish-card-accent { position: absolute; top: 0; left: 0; right: 0; height: 4px; border-radius: 20px 20px 0 0; }
.acc-green { background: var(--brand-green); }
.acc-blue { background: var(--brand-blue); }
.acc-gold { background: var(--gold); }
.acc-red { background: var(--red); }
.acc-purple { background: var(--purple); }

.phrase-tag {
  display: inline-block;
  font-size: 10px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  padding: 3px 10px; border-radius: 100px; margin-bottom: 14px;
}
.tag-green { background: rgba(26,168,92,0.12); color: var(--brand-green); }
.tag-blue { background: rgba(58,107,177,0.12); color: var(--brand-blue); }
.tag-gold { background: rgba(255,209,102,0.3); color: #9a7300; }
.tag-purple { background: rgba(123,45,139,0.12); color: var(--purple); }
.tag-red { background: rgba(232,71,42,0.10); color: var(--red); }

.phrase-urdu, .dish-urdu {
  font-family: 'Noto Nastaliq Urdu', serif; direction: rtl;
  font-size: clamp(22px, 3vw, 28px); font-weight: 700;
  line-height: 1.5; color: var(--ink);
  display: block; text-align: right; margin-bottom: 8px;
}
.phrase-roman, .dish-roman {
  font-family: 'Crimson Pro', serif; font-style: italic;
  font-size: 23px; color: var(--ink); opacity: 0.75;
  margin-bottom: 6px; display: block;
}
.phrase-english, .dish-english {
  font-size: 14px; font-weight: 700; letter-spacing: 0.04em;
  color: var(--ink); display: block; margin-bottom: 12px;
}
.phrase-tip, .dish-tip {
  font-size: 12.5px; color: var(--ink); opacity: 0.55;
  line-height: 1.55; border-top: 1px solid rgba(26,26,26,0.07);
  padding-top: 12px; margin-top: 4px;
}
.phrase-card.wide { grid-column: 1 / -1; }
.phrase-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 600px) {
  .phrase-pair { grid-template-columns: 1fr; }
  .phrase-grid, .dish-grid { grid-template-columns: 1fr; }
  .phrase-card.wide { grid-column: auto; }
}

/* ============ COMPARE TABLE ============ */
.compare-wrap {
  background: white; border-radius: 20px;
  border: 1.5px solid rgba(26,26,26,0.07);
  overflow: hidden; box-shadow: 0 2px 16px rgba(26,26,26,0.04);
  margin-bottom: 8px;
}
.compare-header { display: grid; grid-template-columns: 1fr 1fr; }
.compare-col-head {
  padding: 14px 24px;
  font-size: 11px; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase;
  color: white;
}
.compare-col-head.a { background: var(--brand-blue); }
.compare-col-head.b { background: var(--brand-green); }
.compare-row { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid rgba(26,26,26,0.06); }
.compare-row:last-child { border-bottom: none; }
.compare-cell { padding: 16px 24px; border-right: 1px solid rgba(26,26,26,0.06); }
.compare-cell:last-child { border-right: none; }
.compare-cell:nth-child(odd) { background: rgba(58,107,177,0.03); }
.compare-cell:nth-child(even) { background: rgba(26,168,92,0.03); }
.cc-urdu { font-family: 'Noto Nastaliq Urdu', serif; direction: rtl; font-size: 22px; font-weight: 700; display: block; text-align: right; margin-bottom: 4px; }
.cc-roman { font-family: 'Crimson Pro', serif; font-style: italic; font-size: 18px; opacity: 0.72; display: block; margin-bottom: 2px; }
.cc-english { font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; opacity: 0.4; }

/* ============ GRAMMAR / TEMPLATE BOX ============ */
.grammar-box {
  background: linear-gradient(135deg, rgba(255,209,102,0.15) 0%, rgba(255,248,236,1) 100%);
  border: 2px solid var(--gold); border-radius: 20px;
  padding: 28px 32px; margin-bottom: 8px;
}
.grammar-box h4 {
  font-size: 13px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase;
  color: #9a7300; margin-bottom: 16px;
}
.poss-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 16px; }
@media (max-width: 500px) { .poss-grid { grid-template-columns: 1fr; } }
.poss-card { background: white; border-radius: 12px; padding: 14px 16px; border: 1px solid rgba(26,26,26,0.07); text-align: center; }
.poss-urdu { font-family: 'Noto Nastaliq Urdu', serif; direction: rtl; font-size: 26px; font-weight: 700; display: block; margin-bottom: 4px; }
.poss-roman { font-family: 'Crimson Pro', serif; font-style: italic; font-size: 19px; opacity: 0.72; display: block; margin-bottom: 3px; }
.poss-rule { font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; opacity: 0.4; }
.gex-list { display: flex; flex-direction: column; gap: 8px; }
.gex-row {
  background: white; border-radius: 10px; padding: 11px 16px;
  display: flex; justify-content: space-between; align-items: center;
  border: 1px solid rgba(26,26,26,0.06); gap: 12px; flex-wrap: wrap;
}
.gex-en { font-size: 13px; font-weight: 600; }
.gex-roman { font-family: 'Crimson Pro', serif; font-style: italic; font-size: 18px; opacity: 0.72; }
.gex-urdu { font-family: 'Noto Nastaliq Urdu', serif; direction: rtl; font-size: 18px; }

/* ============ QUICK REFERENCE ============ */
.quick-ref {
  background: white; border-radius: 20px;
  border: 1.5px solid rgba(26,26,26,0.07);
  overflow: hidden; margin-top: 8px;
  box-shadow: 0 2px 16px rgba(26,26,26,0.04);
}
.quick-ref-header {
  background: var(--ink); color: white;
  display: grid; grid-template-columns: 2fr 2fr 2fr;
  padding: 12px 24px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
}
.quick-ref-header span:last-child { text-align: right; }
.quick-ref-row {
  display: grid; grid-template-columns: 2fr 2fr 2fr;
  padding: 14px 24px; align-items: center;
  border-bottom: 1px solid rgba(26,26,26,0.06); transition: background 150ms;
}
.quick-ref-row:last-child { border-bottom: none; }
.quick-ref-row:hover { background: rgba(255,248,236,0.8); }
.qr-section-head {
  grid-column: 1 / -1; padding: 10px 24px 6px;
  font-size: 10px; font-weight: 800; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--brand-green); background: rgba(26,168,92,0.05);
  border-bottom: 1px solid rgba(26,26,26,0.06);
}
.qr-english { font-size: 13px; font-weight: 600; }
.qr-roman { font-family: 'Crimson Pro', serif; font-style: italic; font-size: 18px; opacity: 0.78; }
.qr-urdu { font-family: 'Noto Nastaliq Urdu', serif; direction: rtl; font-size: 20px; text-align: right; }
@media (max-width: 600px) {
  .quick-ref-header { grid-template-columns: 1fr 1fr; }
  .quick-ref-header span:first-child { display: none; }
  .quick-ref-row { grid-template-columns: 1fr 1fr; }
  .qr-english { display: none; }
  .qr-section-head { grid-column: 1 / -1; }
}

/* ============ CULTURAL NOTE ============ */
.cultural-note {
  background: linear-gradient(135deg, #FFF3E0 0%, #FFF8EC 100%);
  border: 2px solid var(--gold); border-radius: 20px;
  padding: 32px 36px; margin-top: 48px;
}
.cultural-icon { font-size: 32px; margin-bottom: 12px; display: block; }
.cultural-note h3 { font-size: 18px; font-weight: 800; margin-bottom: 10px; }
.cultural-note p { font-family: 'Crimson Pro', serif; font-size: 17px; line-height: 1.7; opacity: 0.8; }
.cultural-note p + p { margin-top: 12px; }

/* ============ PRACTICE ============ */
.practice-wrap {
  background: linear-gradient(135deg, rgba(26,168,92,0.06) 0%, rgba(58,107,177,0.06) 100%);
  border: 1.5px solid rgba(26,168,92,0.18);
  border-radius: 20px; padding: 36px; margin-top: 8px;
}
.practice-wrap h3 { font-size: 20px; font-weight: 800; margin-bottom: 8px; }
.practice-wrap > p {
  font-family: 'Crimson Pro', serif; font-style: italic;
  font-size: 17px; opacity: 0.65; margin-bottom: 28px; line-height: 1.6;
}
.scenario-list { display: flex; flex-direction: column; gap: 14px; }
.scenario {
  background: white; border-radius: 14px;
  padding: 18px 20px; display: flex; gap: 16px; align-items: flex-start;
  border: 1px solid rgba(26,26,26,0.07);
}
.scenario-num {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--brand-green); color: white;
  font-size: 13px; font-weight: 800; display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.scenario-body { flex: 1; }
.scenario-title { font-size: 14px; font-weight: 700; margin-bottom: 4px; }
.scenario-prompt { font-size: 13px; color: var(--ink); opacity: 0.6; line-height: 1.5; }
.scenario-answer {
  margin-top: 10px; background: rgba(26,168,92,0.08);
  border-radius: 8px; padding: 10px 14px; display: none;
}
.scenario-answer .ans-urdu { font-family: 'Noto Nastaliq Urdu', serif; direction: rtl; font-size: 22px; display: block; text-align: right; margin-bottom: 6px; }
.scenario-answer .ans-roman { font-family: 'Crimson Pro', serif; font-style: italic; font-size: 19px; opacity: 0.8; }
.reveal-btn {
  margin-top: 10px; font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--brand-green); display: inline-flex; align-items: center; gap: 6px;
  background: none; border: none; padding: 0; transition: opacity 200ms;
}
.reveal-btn:hover { opacity: 0.7; }

/* ============ CTA ============ */
.lesson-cta {
  background: var(--ink); color: white;
  border-radius: 24px; padding: 48px;
  margin-top: 72px; text-align: center;
}
.lesson-cta h2 { font-size: clamp(22px, 3.5vw, 34px); font-weight: 900; margin-bottom: 12px; }
.lesson-cta h2 em { font-family: 'Crimson Pro', serif; font-style: italic; font-weight: 600; color: var(--gold); }
.lesson-cta p { font-family: 'Crimson Pro', serif; font-style: italic; font-size: 18px; opacity: 0.7; margin-bottom: 28px; line-height: 1.6; }
.cta-buttons { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.cta-btn-primary {
  background: var(--gold); color: var(--ink);
  padding: 14px 28px; border-radius: 100px;
  font-size: 13px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase;
  transition: transform 200ms, box-shadow 200ms;
}
.cta-btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(255,209,102,0.4); }
.cta-btn-secondary {
  background: rgba(255,255,255,0.1); color: white;
  border: 1.5px solid rgba(255,255,255,0.3);
  padding: 14px 28px; border-radius: 100px;
  font-size: 13px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  transition: background 200ms;
}
.cta-btn-secondary:hover { background: rgba(255,255,255,0.2); }

/* ============ LESSON NAV ============ */
.lesson-nav {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 48px; padding-top: 32px;
  border-top: 1.5px solid rgba(26,26,26,0.08); gap: 16px;
}
.lesson-nav-btn {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 20px; border-radius: 14px;
  border: 1.5px solid rgba(26,26,26,0.1);
  background: white; transition: border-color 200ms, transform 200ms;
}
.lesson-nav-btn:hover { border-color: rgba(26,26,26,0.25); transform: translateX(2px); }
.lesson-nav-btn.prev:hover { transform: translateX(-2px); }
.lesson-nav-btn.disabled { opacity: 0.3; pointer-events: none; }
.lesson-nav-btn .nav-meta { display: flex; flex-direction: column; }
.nav-sublabel { font-size: 10px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; opacity: 0.45; }
.nav-title { font-size: 13px; font-weight: 700; color: var(--ink); }
.nav-arrow { font-size: 18px; opacity: 0.4; }

/* ============ FOOTER ============ */
footer { background: var(--ink); color: var(--cream); padding: 64px 48px 32px; }
@media (max-width: 768px) { footer { padding: 48px 20px 24px; } }
.footer-grid { max-width: 1240px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; } }
.footer-logo { display: inline-flex; align-items: center; gap: 12px; background: #FFFFFF; padding: 8px 16px 8px 10px; border-radius: 100px; }
.footer-logo-face { width: 44px; height: 44px; background: #FFFFFF; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.footer-logo-text { display: flex; flex-direction: column; line-height: 1; }
.footer-logo-text .fl-main { font-size: 17px; font-weight: 900; letter-spacing: 0.01em; color: var(--brand-blue); }
.footer-logo-text .fl-sub { font-size: 10.5px; font-weight: 700; letter-spacing: 0.06em; color: var(--brand-blue); opacity: 0.7; margin-top: 2px; }
.footer-brand-text { font-family: 'Crimson Pro', serif; font-style: italic; font-size: 17px; line-height: 1.6; opacity: 0.7; margin-top: 16px; max-width: 320px; }
.footer-col h4 { font-size: 12px; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); margin-bottom: 16px; }
.footer-col a { display: block; font-size: 14px; opacity: 0.7; padding: 6px 0; transition: opacity 200ms; }
.footer-col a:hover { opacity: 1; }
.footer-socials { display: flex; gap: 10px; margin-top: 20px; }
.footer-socials a { width: 36px; height: 36px; border-radius: 50%; background: transparent; border: 1.5px solid rgba(255,248,236,0.2); display: flex; align-items: center; justify-content: center; color: rgba(255,248,236,0.6); font-size: 14px; transition: all 200ms; }
.footer-socials a:hover { background: var(--gold); color: var(--ink); border-color: var(--gold); }
.footer-bottom { max-width: 1240px; margin: 48px auto 0; padding-top: 24px; border-top: 1.5px solid rgba(255,248,236,0.1); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; font-size: 12px; opacity: 0.6; letter-spacing: 0.05em; }

/* ============ SCROLL REVEAL ============ */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 600ms ease, transform 600ms ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ============ LEARN HUB ============ */
.hub-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px; margin-top: 8px;
}
.hub-card {
  background: white; border-radius: 20px;
  border: 1.5px solid rgba(26,26,26,0.07);
  padding: 28px 26px; box-shadow: 0 2px 16px rgba(26,26,26,0.04);
  transition: transform 200ms, box-shadow 200ms;
  display: flex; flex-direction: column; gap: 8px;
  position: relative; overflow: hidden;
}
.hub-card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(26,26,26,0.12); }
.hub-card-accent { position: absolute; top: 0; left: 0; right: 0; height: 5px; }
.hub-num { font-size: 12px; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; color: var(--brand-green); }
.hub-title { font-size: 22px; font-weight: 800; letter-spacing: -0.01em; }
.hub-desc { font-family: 'Crimson Pro', serif; font-size: 16px; line-height: 1.55; opacity: 0.6; margin-top: 2px; }
.hub-link { font-size: 12px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--red); margin-top: 10px; }
.hub-card.soon { opacity: 0.55; pointer-events: none; }

/* ============ BLOG ============ */
.blog-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 18px; margin-top: 8px;
}
.blog-card {
  background: white; border-radius: 20px;
  border: 1.5px solid rgba(26,26,26,0.07);
  padding: 28px 26px; box-shadow: 0 2px 16px rgba(26,26,26,0.04);
  transition: transform 200ms, box-shadow 200ms;
  display: flex; flex-direction: column; gap: 8px;
  position: relative; overflow: hidden;
}
.blog-card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(26,26,26,0.12); }
.blog-card-accent { position: absolute; top: 0; left: 0; right: 0; height: 5px; }
.blog-tag { font-size: 11px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--brand-green); }
.blog-card-title { font-size: 22px; font-weight: 800; letter-spacing: -0.01em; line-height: 1.2; }
.blog-card-desc { font-family: 'Crimson Pro', serif; font-size: 16px; line-height: 1.55; opacity: 0.6; margin-top: 2px; }
.blog-card-link { font-size: 12px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--red); margin-top: 10px; }

/* Article */
.article-body { max-width: 760px; margin: 0 auto; padding: 0 48px 80px; }
@media (max-width: 768px) { .article-body { padding: 0 20px 60px; } }
.article-meta { font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; opacity: 0.4; margin-bottom: 28px; }
.lang-label {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px; font-weight: 800; letter-spacing: 0.18em; text-transform: uppercase;
  padding: 6px 16px; border-radius: 100px; margin: 56px 0 24px;
}
.lang-label.en { background: rgba(58,107,177,0.12); color: var(--brand-blue); }
.lang-label.roman { background: rgba(26,168,92,0.12); color: var(--brand-green); }
.article-body h2 { font-size: clamp(22px, 3vw, 30px); font-weight: 800; letter-spacing: -0.01em; margin: 36px 0 12px; }
.article-body h3 { font-size: 20px; font-weight: 800; margin: 28px 0 10px; }
.article-body p { font-family: 'Crimson Pro', serif; font-size: 19px; line-height: 1.75; opacity: 0.85; margin-bottom: 18px; }
.article-body p.roman { font-style: italic; }
.article-body ul, .article-body ol { margin: 0 0 18px 24px; }
.article-body li { font-family: 'Crimson Pro', serif; font-size: 19px; line-height: 1.7; opacity: 0.85; margin-bottom: 8px; }
.article-body li.roman { font-style: italic; }
.article-body .lead {
  font-family: 'Crimson Pro', serif; font-style: italic;
  font-size: 22px; line-height: 1.6; opacity: 0.7; margin-bottom: 8px;
}
.article-divider { height: 1.5px; background: rgba(26,26,26,0.1); border: none; margin: 8px 0; }
.phrase-inline {
  background: rgba(255,209,102,0.18); border-radius: 8px; padding: 2px 8px;
  font-style: normal; font-weight: 600; white-space: nowrap;
}
