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

:root {
  --navy: #052658;
  --navy-light: #0A3166;
  --navy-mid: #123D7A;
  --blue: #41A5E3;
  --gold: #F5C04E;
  --gold-soft: #FBE4A0;
  --white: #FFFFFF;
  --text-dim: #B0C4DE;
  --border: rgba(255,255,255,0.1);
  --radius: 14px;
}

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--navy);
  color: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }

.container { max-width: 820px; margin: 0 auto; padding: 0 20px; }
.container--wide { max-width: 1080px; }

/* ---------- TOP BAR ---------- */
.topbar {
  position: sticky; top: 0; z-index: 100;
  background: rgba(5,38,88,0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.topbar__inner { display: flex; align-items: center; gap: 20px; padding: 10px 0; }
.topbar__brand { display: flex; align-items: center; gap: 10px; color: var(--white); }
.topbar__brand:hover { text-decoration: none; }
.topbar__brand img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; }
.topbar__brand-name { font-weight: 800; font-size: 0.98rem; letter-spacing: -0.01em; }
.topbar__brand-parent { font-size: 0.68rem; color: var(--text-dim); }
.topbar__nav { display: flex; gap: 18px; margin-left: auto; align-items: center; }
.topbar__nav a { color: var(--text-dim); font-size: 0.85rem; font-weight: 600; }
.topbar__nav a:hover { color: var(--white); text-decoration: none; }
.topbar__nav a.active { color: var(--gold); }
.btn {
  display: inline-block; border: none; cursor: pointer; font-family: inherit;
  font-weight: 700; border-radius: 10px; transition: transform .15s, background .2s;
}
.btn:hover { transform: translateY(-1px); text-decoration: none; }
.btn--gold { background: var(--gold); color: #1D2B45; }
.btn--gold:hover { background: var(--gold-soft); }
.btn--outline { background: transparent; color: var(--white); border: 1.5px solid rgba(255,255,255,0.35); }
.btn--outline:hover { border-color: var(--white); }
.topbar__cta { padding: 9px 18px; font-size: 0.85rem; }

/* ---------- HERO ---------- */
.blog-hero { padding: 56px 0 24px; text-align: center; }
.blog-hero__eyebrow {
  display: inline-block; font-size: 0.8rem; font-weight: 700; color: var(--gold);
  background: rgba(245,192,78,0.12); border: 1px solid rgba(245,192,78,0.25);
  padding: 5px 14px; border-radius: 20px; margin-bottom: 18px; letter-spacing: 0.03em;
}
.blog-hero h1 { font-size: 2.3rem; font-weight: 800; letter-spacing: -0.025em; line-height: 1.15; margin-bottom: 12px; }
.blog-hero p { color: var(--text-dim); font-size: 1.02rem; max-width: 560px; margin: 0 auto; }

/* ---------- POST GRID ---------- */
.posts { padding: 40px 0 64px; }
.posts__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.post-card {
  display: flex; flex-direction: column;
  background: var(--navy-light); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; transition: transform .2s, border-color .2s;
}
.post-card:hover { transform: translateY(-3px); border-color: var(--gold); text-decoration: none; }
.post-card__img { width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block; background: var(--navy-mid); }
.post-card__body { padding: 18px 18px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.post-card__meta { display: flex; align-items: center; gap: 10px; font-size: 0.72rem; color: var(--text-dim); font-weight: 700; letter-spacing: 0.03em; }
.post-card__meta .tag { color: var(--gold); }
.post-card h2 { font-size: 1.05rem; font-weight: 800; letter-spacing: -0.01em; line-height: 1.35; }
.post-card p { font-size: 0.85rem; color: var(--text-dim); }
.post-card .readmore { margin-top: auto; font-size: 0.82rem; font-weight: 700; color: var(--blue); }

/* ---------- ARTICLE ---------- */
.article { padding: 48px 0 64px; }
.article header { text-align: center; margin-bottom: 32px; }
.article .tag {
  display: inline-block; font-size: 0.74rem; font-weight: 800; color: var(--gold);
  background: rgba(245,192,78,0.12); border: 1px solid rgba(245,192,78,0.25);
  padding: 4px 12px; border-radius: 20px; letter-spacing: 0.04em; margin-bottom: 14px;
}
.article h1 { font-size: 2.1rem; font-weight: 800; letter-spacing: -0.025em; line-height: 1.2; margin-bottom: 12px; }
.article .meta { font-size: 0.82rem; color: var(--text-dim); }
.article .meta b { color: var(--white); }
.article__img { width: 100%; border-radius: var(--radius); margin-bottom: 28px; display: block; }

.prose { font-size: 1.02rem; }
.prose p { margin-bottom: 18px; color: #DDE7F5; }
.prose h2 { font-size: 1.35rem; font-weight: 800; margin: 34px 0 12px; letter-spacing: -0.01em; }
.prose h3 { font-size: 1.12rem; font-weight: 700; margin: 26px 0 10px; }
.prose ul, .prose ol { margin: 0 0 18px 22px; color: #DDE7F5; }
.prose li { margin-bottom: 8px; }
.prose a { font-weight: 600; }
.prose blockquote {
  border-left: 3px solid var(--gold); padding: 4px 0 4px 18px; margin: 24px 0;
  color: var(--gold-soft); font-style: italic;
}
.prose img { border-radius: var(--radius); margin: 8px 0 18px; }
.prose strong { color: var(--white); }

/* CTA box */
.cta {
  margin-top: 40px; padding: 28px 26px; text-align: center;
  background: var(--navy-light); border: 1px solid var(--border); border-radius: var(--radius);
}
.cta h2 { font-size: 1.25rem; font-weight: 800; margin-bottom: 6px; }
.cta p { font-size: 0.9rem; color: var(--text-dim); margin-bottom: 18px; }
.cta .btn { padding: 13px 26px; font-size: 0.92rem; }

/* back link */
.back { display: inline-block; margin-bottom: 22px; font-size: 0.85rem; font-weight: 700; }

/* ---------- FOOTER ---------- */
footer { border-top: 1px solid var(--border); padding: 36px 0 28px; margin-top: 24px; }
.footer__grid { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; align-items: flex-start; }
.footer__brand { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.footer__brand img { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; }
footer p { font-size: 0.8rem; color: var(--text-dim); }
.footer__legal { margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--border); text-align: center; }

@media (max-width: 900px) {
  .topbar__nav { display: none; }
  .posts__grid { grid-template-columns: 1fr; }
  .blog-hero h1 { font-size: 1.8rem; }
  .article h1 { font-size: 1.7rem; }
}
