/* FutureCitizen.us Blog — Shared Styles */

:root {
  --navy: #1B3A6B;
  --navy-light: #2A5298;
  --teal: #0D9488;
  --teal-light: #14B8A6;
  --red: #DC2626;
  --gold: #D97706;
  --text: #1E293B;
  --text-muted: #64748B;
  --border: #E2E8F0;
  --bg: #F8FAFC;
  --card: #FFFFFF;
  --radius: 12px;
}

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

html { font-size: 16px; -webkit-text-size-adjust: 100%; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

a { color: var(--teal); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Nav ── */
.site-nav {
  background: var(--navy);
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(27,58,107,0.18);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
  letter-spacing: -0.01em;
}

.nav-brand img {
  width: 28px;
  height: 28px;
  border-radius: 6px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
}

.nav-links a {
  color: rgba(255,255,255,0.85);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.15s;
}

.nav-links a:hover { color: #fff; text-decoration: none; }

.nav-cta {
  background: var(--teal);
  color: #fff !important;
  padding: 7px 16px;
  border-radius: 20px;
  font-weight: 600 !important;
  transition: background 0.15s !important;
}

.nav-cta:hover { background: var(--teal-light) !important; }

/* ── Category badges ── */
.badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 20px;
}

.badge-government  { background: #DBEAFE; color: #1D4ED8; }
.badge-history     { background: #FEE2E2; color: #991B1B; }
.badge-rights      { background: #D1FAE5; color: #065F46; }
.badge-study-tips  { background: #FEF3C7; color: #92400E; }
.badge-interview   { background: #EDE9FE; color: #5B21B6; }
.badge-civics      { background: #E0F2FE; color: #0369A1; }

/* ── Article card ── */
.blog-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: box-shadow 0.18s, transform 0.18s;
}

.blog-card:hover {
  box-shadow: 0 8px 24px rgba(27,58,107,0.10);
  transform: translateY(-2px);
}

.card-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.card-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.35;
}

.card-title a { color: var(--text); }
.card-title a:hover { color: var(--navy); text-decoration: none; }

.card-excerpt {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.55;
  flex: 1;
}

.card-link {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--teal);
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 4px;
}

.card-link:hover { text-decoration: none; gap: 8px; }

/* ── Prose (article body) ── */
.prose-content {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--text);
}

.prose-content h2 {
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--navy);
  margin: 2.4rem 0 0.9rem;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.prose-content h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
  margin: 1.8rem 0 0.6rem;
}

.prose-content p { margin-bottom: 1.2rem; }

.prose-content ul, .prose-content ol {
  margin: 0.8rem 0 1.2rem 1.5rem;
}

.prose-content li { margin-bottom: 0.5rem; }

.prose-content a { color: var(--teal); }

.prose-content strong { color: var(--navy); font-weight: 700; }

.prose-content blockquote {
  border-left: 4px solid var(--teal);
  padding: 12px 20px;
  margin: 1.5rem 0;
  background: #F0FDFA;
  border-radius: 0 8px 8px 0;
  color: var(--text-muted);
  font-style: italic;
}

/* Question/answer callout boxes */
.qa-box {
  background: #EFF6FF;
  border: 1px solid #BFDBFE;
  border-left: 4px solid var(--navy-light);
  border-radius: 8px;
  padding: 16px 20px;
  margin: 1.4rem 0;
}

.qa-box .question {
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 6px;
  font-size: 0.95rem;
}

.qa-box .answer {
  color: var(--text);
  font-size: 0.95rem;
  margin: 0;
}

/* ── CTA box ── */
.cta-box {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  border-radius: var(--radius);
  padding: 36px 32px;
  text-align: center;
  margin: 2.5rem 0;
  color: #fff;
}

.cta-box h3 {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.cta-box p {
  color: rgba(255,255,255,0.85);
  margin-bottom: 22px;
  font-size: 1rem;
}

.cta-btn {
  display: inline-block;
  background: var(--teal);
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  padding: 13px 28px;
  border-radius: 30px;
  text-decoration: none;
  transition: background 0.15s, transform 0.15s;
}

.cta-btn:hover {
  background: var(--teal-light);
  transform: translateY(-1px);
  text-decoration: none;
  color: #fff;
}

.cta-disclaimer {
  margin-top: 12px;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.6);
}

/* ── Disclaimer banner ── */
.disclaimer {
  background: #FFFBEB;
  border: 1px solid #FDE68A;
  border-radius: 8px;
  padding: 12px 18px;
  font-size: 0.84rem;
  color: #78350F;
  margin-bottom: 2rem;
  line-height: 1.5;
}

.disclaimer strong { color: #92400E; }

/* ── Footer ── */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.7);
  padding: 40px 24px;
  margin-top: 80px;
  font-size: 0.88rem;
  text-align: center;
}

.site-footer a { color: rgba(255,255,255,0.85); }
.site-footer a:hover { color: #fff; }
.site-footer .footer-brand { font-weight: 700; color: #fff; font-size: 1rem; margin-bottom: 8px; }
.site-footer .footer-links { display: flex; justify-content: center; gap: 20px; margin: 12px 0; flex-wrap: wrap; }
.site-footer .footer-legal { margin-top: 16px; font-size: 0.78rem; color: rgba(255,255,255,0.45); line-height: 1.6; }

/* ── Check-answer toggle ── */
.check-answer-btn {
  background: none;
  border: 1px solid var(--navy-light);
  color: var(--navy-light);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: 20px;
  cursor: pointer;
  margin-top: 8px;
  display: inline-block;
  transition: background 0.15s, color 0.15s;
}
.check-answer-btn:hover { background: var(--navy); color: #fff; border-color: var(--navy); }

/* ── Layout helpers ── */
.container { max-width: 820px; margin: 0 auto; padding: 0 20px; }
.container-wide { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

@media (max-width: 600px) {
  .nav-links .hide-mobile { display: none; }
  .prose-content h2 { font-size: 1.3rem; }
  .cta-box { padding: 28px 20px; }
  .cta-box h3 { font-size: 1.2rem; }
}
