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

:root {
  --primary: #4f46e5;
  --text: #1e293b;
  --text-muted: #64748b;
  --border: #e2e8f0;
  --bg-alt: #f8fafc;
  --white: #ffffff;
  --navy: #0f1f3d;
  --indigo: #1e1b4b;
}

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

/* NAV — matches main website (#1e1b4b dark indigo bar) */
nav {
  background: #1e1b4b;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  padding: 0 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.nav-logo svg { height: 32px; width: auto; }
.nav-logo-text { font-size: 20px; font-weight: 800; color: #fff; letter-spacing: -0.3px; margin-top: 5px; }
.nav-logo-text span { color: #f97316; }
.nav-links { display: flex; align-items: center; gap: 32px; list-style: none; }
.nav-links a { text-decoration: none; color: rgba(255,255,255,0.65); font-size: 14px; font-weight: 500; transition: color .15s; }
.nav-links a:hover, .nav-links a.active { color: #fff; }
.nav-actions { display: flex; align-items: center; }
.nav-cta {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.22);
  color: #fff !important;
  padding: 8px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600 !important;
  text-decoration: none !important;
  transition: background .15s;
  white-space: nowrap;
}
.nav-cta:hover { background: rgba(255,255,255,0.18); }

/* BLOG INDEX HERO — light gray */
.blog-hero { background: #f1f5f9; color: var(--text); padding: 80px 40px; text-align: center; }
.blog-hero h1 { font-size: 42px; font-weight: 800; margin-bottom: 16px; color: var(--navy); }
.blog-hero p { font-size: 18px; color: var(--text-muted); max-width: 560px; margin: 0 auto; }

/* BLOG GRID — blue/indigo bg */
.blog-grid-section { background: #1e1b4b; padding: 60px 0 80px; }
.blog-grid { max-width: 1100px; margin: 0 auto; padding: 0 40px; display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 28px; }

.blog-card { background: var(--white); border-radius: 12px; border: 1px solid var(--border); padding: 28px; text-decoration: none; color: inherit; display: flex; flex-direction: column; gap: 12px; transition: box-shadow .2s, transform .2s; }
.blog-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,.1); transform: translateY(-2px); }
.blog-card-tag { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--primary); }
.blog-card h2 { font-size: 18px; font-weight: 700; color: var(--text); line-height: 1.4; }
.blog-card p { font-size: 14px; color: var(--text-muted); line-height: 1.6; flex: 1; }
.blog-card-meta { font-size: 12px; color: var(--text-muted); }
.blog-card-read { font-size: 13px; font-weight: 600; color: var(--primary); margin-top: 4px; }

/* ARTICLE HERO */
.article-hero { background: var(--navy); color: #fff; padding: 80px 40px 60px; }
.article-hero-inner { max-width: 760px; margin: 0 auto; }
.article-tag { display: inline-block; background: rgba(79,70,229,0.3); color: #a5b4fc; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; padding: 4px 12px; border-radius: 20px; margin-bottom: 20px; }
.article-hero h1 { font-size: 38px; font-weight: 800; line-height: 1.25; margin-bottom: 20px; }
.article-meta { font-size: 14px; color: rgba(255,255,255,0.6); }

/* ARTICLE BODY — white bg */
.article-body { max-width: 760px; margin: 0 auto; padding: 60px 40px 80px; background: var(--white); }
.article-body h2 { font-size: 26px; font-weight: 700; color: var(--navy); margin: 40px 0 16px; }
.article-body h3 { font-size: 19px; font-weight: 700; color: var(--text); margin: 28px 0 12px; }
.article-body p { font-size: 16px; line-height: 1.8; color: var(--text); margin-bottom: 20px; }
.article-body ul, .article-body ol { margin: 0 0 20px 24px; }
.article-body li { font-size: 16px; line-height: 1.8; color: var(--text); margin-bottom: 8px; }
.article-body strong { color: var(--navy); }
.article-body a { color: var(--primary); text-decoration: underline; }

.callout { background: #eef2ff; border-left: 4px solid var(--primary); border-radius: 0 8px 8px 0; padding: 20px 24px; margin: 28px 0; }
.callout p { margin: 0; font-size: 15px; color: var(--text); }

.cta-box { background: var(--navy); border-radius: 12px; padding: 40px; text-align: center; margin: 48px 0; }
.cta-box h3 { font-size: 22px; font-weight: 700; color: #fff; margin-bottom: 10px; }
.cta-box p { color: rgba(255,255,255,0.75); margin-bottom: 24px; font-size: 15px; }
.cta-box a { display: inline-block; background: #4f46e5; color: #fff; text-decoration: none; padding: 12px 28px; border-radius: 8px; font-weight: 600; font-size: 15px; transition: background .2s; }
.cta-box a:hover { background: #4338ca; }

.back-link { display: inline-block; margin-bottom: 32px; color: var(--primary); text-decoration: none; font-size: 14px; font-weight: 600; }
.back-link:hover { text-decoration: underline; }

/* FOOTER */
footer { background: var(--navy); color: rgba(255,255,255,0.6); text-align: center; padding: 32px 40px; font-size: 13px; }
footer a { color: rgba(255,255,255,0.6); text-decoration: none; margin: 0 12px; }
footer a:hover { color: #fff; }
.footer-links { margin-bottom: 12px; }

@media (max-width: 640px) {
  nav { padding: 0 20px; }
  .nav-links { gap: 16px; }
  .blog-hero h1 { font-size: 28px; }
  .article-hero h1 { font-size: 26px; }
  .blog-grid { grid-template-columns: 1fr; padding: 0 20px; }
  .article-body { padding: 40px 20px 60px; }
}
