*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --navy: #042C53; --ocean: #0C447C; --blue: #378ADD;
  --tint: #85B7EB; --sky: #E6F1FB; --white: #FFFFFF;
  --border: rgba(133,183,235,0.15); --text: #1A2D42;
  --muted: #5A7A9A; --light: #F4F7FB;
}
html { scroll-behavior: smooth; }
body { font-family: 'Outfit', sans-serif; background: #fff; color: var(--text); -webkit-font-smoothing: antialiased; }

/* NAV */
nav { padding: 1.1rem 2.5rem; display: flex; align-items: center; justify-content: space-between; background: var(--navy); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 100; }
.nav-logo { display: flex; align-items: center; gap: .7rem; text-decoration: none; }
.nav-wordmark { font-size: .95rem; font-weight: 700; letter-spacing: .12em; color: #fff; }
.nav-wordmark span { color: var(--tint); }
.nav-links { display: flex; gap: 1.5rem; align-items: center; }
.nav-links a { font-size: .82rem; color: rgba(255,255,255,0.6); text-decoration: none; transition: color .2s; }
.nav-links a:hover { color: #fff; }
.nav-cta { background: var(--blue); color: #fff; text-decoration: none; padding: .5rem 1.2rem; border-radius: 8px; font-size: .82rem; font-weight: 600; transition: background .2s; }
.nav-cta:hover { background: #2a72c4; }

/* HERO */
.blog-hero { background: var(--navy); padding: 4rem 2rem 3rem; text-align: center; }
.blog-hero .eyebrow { font-size: .72rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--tint); margin-bottom: 1rem; display: block; }
.blog-hero h1 { font-size: clamp(2rem, 5vw, 3rem); font-weight: 700; color: #fff; margin-bottom: .8rem; line-height: 1.15; }
.blog-hero h1 em { font-style: normal; color: var(--tint); }
.blog-hero p { font-size: 1rem; color: rgba(255,255,255,0.6); max-width: 520px; margin: 0 auto; line-height: 1.7; }

/* POST HERO */
.post-hero { background: var(--navy); padding: 4rem 2rem 3rem; }
.post-hero-inner { max-width: 760px; margin: 0 auto; }
.post-category { font-size: .7rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--tint); margin-bottom: 1rem; display: block; }
.post-hero h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 700; color: #fff; line-height: 1.2; margin-bottom: 1rem; }
.post-meta { display: flex; gap: 1.2rem; align-items: center; flex-wrap: wrap; }
.post-meta span { font-size: .78rem; color: rgba(255,255,255,0.45); }
.post-meta .author { color: var(--tint); font-weight: 600; }

/* BLOG GRID */
.blog-grid { max-width: 1040px; margin: 0 auto; padding: 4rem 2rem; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.5rem; }
.post-card { background: #fff; border: 1px solid #E0EAF4; border-radius: 14px; overflow: hidden; text-decoration: none; color: var(--text); transition: transform .2s, box-shadow .2s; display: flex; flex-direction: column; }
.post-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(4,44,83,0.1); }
.post-card-img { background: var(--navy); height: 160px; display: flex; align-items: center; justify-content: center; padding: 1.5rem; }
.post-card-body { padding: 1.4rem; flex: 1; display: flex; flex-direction: column; }
.post-card-cat { font-size: .65rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--blue); margin-bottom: .6rem; }
.post-card-title { font-size: 1.05rem; font-weight: 700; color: var(--navy); margin-bottom: .5rem; line-height: 1.35; }
.post-card-excerpt { font-size: .85rem; color: var(--muted); line-height: 1.65; margin-bottom: 1rem; flex: 1; }
.post-card-meta { font-size: .75rem; color: #9AB0C8; display: flex; justify-content: space-between; }
.read-more { font-size: .82rem; font-weight: 600; color: var(--blue); text-decoration: none; margin-top: .8rem; display: inline-block; }
.read-more:hover { text-decoration: underline; }

/* ARTICLE */
.article-wrap { max-width: 760px; margin: 0 auto; padding: 3rem 2rem 5rem; }
.article-wrap h2 { font-size: 1.5rem; font-weight: 700; color: var(--navy); margin: 2rem 0 .8rem; }
.article-wrap h3 { font-size: 1.1rem; font-weight: 700; color: var(--navy); margin: 1.5rem 0 .6rem; }
.article-wrap p { font-size: 1rem; line-height: 1.8; color: var(--text); margin-bottom: 1.2rem; }
.article-wrap ul, .article-wrap ol { padding-left: 1.5rem; margin-bottom: 1.2rem; }
.article-wrap li { font-size: 1rem; line-height: 1.75; color: var(--text); margin-bottom: .4rem; }
.article-wrap strong { color: var(--navy); }
.article-wrap a { color: var(--blue); }

.callout { background: var(--sky); border-left: 4px solid var(--blue); border-radius: 0 10px 10px 0; padding: 1.2rem 1.4rem; margin: 1.5rem 0; }
.callout p { margin: 0; font-size: .95rem; color: var(--ocean); }
.callout strong { color: var(--navy); }

.example-box { background: var(--light); border: 1px solid #D0DFF0; border-radius: 10px; padding: 1.2rem 1.4rem; margin: 1.2rem 0; }
.example-box .label { font-size: .68rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: .5rem; }
.example-box p { font-size: .92rem; color: var(--text); margin: 0; font-family: monospace; line-height: 1.6; }

.cta-box { background: var(--navy); border-radius: 16px; padding: 2rem; text-align: center; margin: 3rem 0; }
.cta-box h3 { font-size: 1.3rem; font-weight: 700; color: #fff; margin-bottom: .6rem; }
.cta-box p { font-size: .9rem; color: rgba(255,255,255,0.65); margin-bottom: 1.5rem; line-height: 1.65; }
.cta-btn { display: inline-block; background: var(--blue); color: #fff; text-decoration: none; padding: .8rem 2rem; border-radius: 10px; font-size: .95rem; font-weight: 600; transition: background .2s; }
.cta-btn:hover { background: #2a72c4; }
.cta-secondary { display: block; font-size: .78rem; color: rgba(133,183,235,0.6); margin-top: .8rem; text-decoration: none; }
.cta-secondary:hover { color: var(--tint); }

/* DIVIDER */
.divider { height: 1px; background: linear-gradient(to right, transparent, #D0DFF0, transparent); margin: 0 2rem; }

/* BACK LINK */
.back-link { display: inline-flex; align-items: center; gap: .4rem; color: var(--tint); text-decoration: none; font-size: .82rem; font-weight: 600; margin-bottom: 1.5rem; }
.back-link:hover { color: #fff; }

/* FOOTER */
footer { background: var(--navy); border-top: 1px solid var(--border); padding: 2rem; text-align: center; }
footer p { font-size: .75rem; color: rgba(255,255,255,0.25); }
footer a { color: rgba(133,183,235,0.5); text-decoration: none; }

@media (max-width: 640px) {
  nav { padding: 1rem 1.2rem; }
  .nav-links { display: none; }
  .blog-grid { padding: 2.5rem 1.2rem; grid-template-columns: 1fr; }
  .article-wrap { padding: 2rem 1.2rem 4rem; }
}
