/* ═══════════════════════════════════════════
   Moddaker Academy — Blog Shared Stylesheet
   ═══════════════════════════════════════════ */
@import url('https://fonts.googleapis.com/css2?family=Amiri:wght@400;700&family=Cairo:wght@400;600;700&family=Lexend:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,400;0,700;1,400&display=swap');

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

:root {
  --teal:   #00283c;
  --gold:   #b8923c;
  --gold-lt:#d4aa55;
  --cream:  #faf8f3;
  --text:   #1a2e3a;
  --muted:  #5a7080;
  --border: rgba(0,40,60,.1);
}

html { scroll-behavior: smooth; }
body { font-family: 'Lexend', sans-serif; color: var(--text); background: #fff; line-height: 1.7; }

/* ── Nav ── */
.nav { display: flex; align-items: center; justify-content: space-between;
  padding: 16px 24px; background: #fff; border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 100; }
.nav-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.nav-logo img { height: 44px; }
.nav-back { display: flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600;
  color: var(--teal); text-decoration: none; border: 1.5px solid var(--border);
  padding: 8px 16px; border-radius: 99px; transition: all .2s; }
.nav-back:hover { background: var(--teal); color: #fff; border-color: var(--teal); }

/* ── Article hero ── */
.article-hero { background: var(--teal); padding: 60px 24px 48px; text-align: center; }
.article-meta { display: flex; align-items: center; justify-content: center; gap: 12px;
  margin-bottom: 20px; flex-wrap: wrap; }
.article-cat { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--gold); background: rgba(184,146,60,.15); padding: 5px 14px; border-radius: 99px; }
.article-date { font-size: 13px; color: rgba(255,255,255,.6); }
.article-hero h1 { font-family: 'Playfair Display', serif; font-size: clamp(26px, 5vw, 48px);
  color: #fff; line-height: 1.2; max-width: 820px; margin: 0 auto 20px; }
.article-hero .lead { font-size: clamp(15px, 2vw, 18px); color: rgba(255,255,255,.8);
  max-width: 680px; margin: 0 auto; }

/* ── Featured image ── */
.article-featured-img { max-width: 900px; margin: 0 auto; padding: 0 24px;
  transform: translateY(-40px); }
.article-featured-img img { width: 100%; border-radius: 20px; box-shadow: 0 20px 60px rgba(0,0,0,.15);
  aspect-ratio: 16/9; object-fit: cover; display: block; }

/* ── Layout ── */
.article-body { max-width: 780px; margin: 0 auto; padding: 0 24px 80px; }
.article-body.no-hero-img { padding-top: 60px; }

/* ── TOC ── */
.toc { background: var(--cream); border-left: 4px solid var(--gold);
  border-radius: 0 12px 12px 0; padding: 24px 28px; margin: 40px 0; }
.toc h2 { font-family: 'Lexend', sans-serif; font-size: 14px; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase; color: var(--gold); margin-bottom: 14px; }
.toc ol { padding-left: 20px; }
.toc li { margin-bottom: 6px; }
.toc a { color: var(--teal); font-size: 14px; text-decoration: none; font-weight: 500; }
.toc a:hover { color: var(--gold); text-decoration: underline; }

/* ── Content typography ── */
.article-body h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(22px, 3vw, 30px);
  color: var(--teal); margin: 56px 0 18px;
  padding-bottom: 12px; border-bottom: 2px solid var(--border); }
.article-body h3 {
  font-family: 'Lexend', sans-serif; font-size: 18px; font-weight: 700;
  color: var(--teal); margin: 32px 0 12px; }
.article-body p { margin-bottom: 20px; font-size: 16px; line-height: 1.85; color: #2a3d4a; }
.article-body strong { color: var(--teal); font-weight: 600; }
.article-body ul, .article-body ol { margin: 0 0 24px 24px; }
.article-body li { margin-bottom: 10px; font-size: 15px; line-height: 1.7; }
.article-body blockquote {
  border-left: 4px solid var(--gold); padding: 16px 24px; margin: 32px 0;
  background: var(--cream); border-radius: 0 12px 12px 0; }
.article-body blockquote p { font-family: 'Playfair Display', serif; font-style: italic;
  font-size: 18px; color: var(--teal); margin: 0; }

/* ── Highlight box ── */
.highlight-box { background: linear-gradient(135deg, #e8f4f8, #f0f7ea);
  border: 1.5px solid rgba(0,40,60,.12); border-radius: 16px;
  padding: 28px; margin: 32px 0; }
.highlight-box h3 { color: var(--teal); margin-top: 0; margin-bottom: 12px; }

/* ── Stats row ── */
.stats-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 16px; margin: 32px 0; }
.stat-card { background: var(--cream); border-radius: 16px; padding: 20px; text-align: center;
  border: 1.5px solid var(--border); }
.stat-card .stat-num { font-size: 32px; font-weight: 700; color: var(--gold); display: block; }
.stat-card .stat-label { font-size: 13px; color: var(--muted); margin-top: 4px; }

/* ── FAQ ── */
.faq-section { margin: 56px 0 0; }
.faq-section h2 { border-bottom: none; padding-bottom: 0; }
.faq-item { border: 1.5px solid var(--border); border-radius: 12px; margin-bottom: 12px; overflow: hidden; }
.faq-q { width: 100%; display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 18px 20px; background: #fff; border: none; cursor: pointer;
  text-align: left; font-family: 'Lexend', sans-serif; font-size: 15px; font-weight: 600;
  color: var(--teal); transition: background .2s; }
.faq-q:hover { background: var(--cream); }
.faq-q .faq-icon { flex-shrink: 0; width: 24px; height: 24px; background: var(--gold);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 16px; transition: transform .3s; }
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-a { padding: 0 20px; max-height: 0; overflow: hidden; transition: max-height .35s ease, padding .2s; }
.faq-item.open .faq-a { max-height: 400px; padding: 0 20px 18px; }
.faq-a p { margin: 0; font-size: 15px; color: #3a5060; }

/* ── CTA ── */
.article-cta { background: var(--teal); border-radius: 24px; padding: 52px 40px;
  text-align: center; max-width: 780px; margin: 64px auto 0; }
.article-cta h2 { font-family: 'Playfair Display', serif; font-size: clamp(22px, 3vw, 34px);
  color: #fff; margin-bottom: 14px; border: none; padding: 0; }
.article-cta p { color: rgba(255,255,255,.8); margin-bottom: 28px; font-size: 16px; }
.btn-gold { display: inline-block; background: var(--gold); color: #fff; font-weight: 700;
  font-size: 15px; padding: 14px 32px; border-radius: 99px; text-decoration: none;
  transition: background .2s; }
.btn-gold:hover { background: var(--gold-lt); }
.btn-outline-white { display: inline-block; border: 2px solid rgba(255,255,255,.5);
  color: #fff; font-weight: 600; font-size: 15px; padding: 13px 28px; border-radius: 99px;
  text-decoration: none; margin-left: 12px; transition: all .2s; }
.btn-outline-white:hover { background: rgba(255,255,255,.1); }
.cta-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ── Related posts ── */
.related { max-width: 780px; margin: 64px auto 0; padding: 0 24px; }
.related h2 { font-family: 'Playfair Display', serif; font-size: 26px; color: var(--teal);
  margin-bottom: 24px; border: none; padding: 0; }
.related-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.related-card { border: 1.5px solid var(--border); border-radius: 16px; overflow: hidden;
  text-decoration: none; transition: box-shadow .2s; }
.related-card:hover { box-shadow: 0 8px 28px rgba(0,0,0,.1); }
.related-card img { width: 100%; height: 140px; object-fit: cover; display: block; }
.related-card-body { padding: 16px; }
.related-card-cat { font-size: 10px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--gold); display: block; margin-bottom: 6px; }
.related-card-title { font-size: 14px; font-weight: 600; color: var(--teal); line-height: 1.4; }

/* ── Author box ── */
.author-box {
  display: flex; gap: 28px; align-items: center;
  border: 1.5px solid var(--border); border-radius: 20px;
  padding: 32px 28px; margin: 56px 0 0;
  background: linear-gradient(135deg, #f9f7f2 0%, #fff 100%);
}
.author-avatar {
  width: 100px; height: 100px; border-radius: 50%; object-fit: cover;
  object-position: top center; flex-shrink: 0;
  border: 3px solid #D4AA55; box-shadow: 0 4px 16px rgba(0,86,106,.15);
}
.author-info { flex: 1; }
.author-info h4 {
  font-size: 20px; font-weight: 800; color: var(--teal);
  margin-bottom: 2px; font-family: 'Lexend', sans-serif;
}
.author-info .author-role {
  font-size: 13px; font-weight: 600; color: #D4AA55;
  text-transform: uppercase; letter-spacing: .06em; margin-bottom: 10px; display: block;
}
.author-info p {
  font-size: 14px; line-height: 1.75; color: var(--muted);
  margin: 0 0 16px;
  font-family: 'Lexend', sans-serif;
}
.author-btns { display: flex; gap: 10px; flex-wrap: wrap; }
.author-btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 11px 24px; border-radius: 999px;
  font-size: 14.5px; font-weight: 600; letter-spacing: .01em; text-decoration: none;
  transition: all .2s ease; font-family: 'Lexend', system-ui, sans-serif; line-height: 1;
}
.author-btn:hover { transform: translateY(-1px); }
.author-btn-solid {
  background: var(--teal); color: #fff !important;
}
.author-btn-solid:hover { background: #013a48; }
.author-btn-outline {
  border: 1.5px solid var(--teal); color: var(--teal); background: transparent;
}
.author-btn-outline:hover { background: var(--teal); color: #fff; }

@media (max-width: 600px) {
  .article-hero { padding: 40px 20px 36px; }
  .article-featured-img { transform: translateY(-24px); }
  .article-cta { padding: 36px 24px; }
  .author-box { flex-direction: column; text-align: center; }
  .author-info p { text-align: right; }
  .author-btns { justify-content: center; }
}
