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

:root {
  --green:       #00C587;
  --green-dark:  #00a872;
  --green-dim:   rgba(0, 197, 135, 0.10);
  --navy:        #191544;
  --text:        #1a1a2e;
  --muted:       #5f5e75;
  --border:      #e8e8f0;
  --bg:          #fafafa;
  --surface:     #ffffff;
  --radius:      12px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* ─── HEADER ─── */

.header {
  background: var(--navy);
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.logo-link img { height: 36px; width: auto; }

.logo-name {
  font-size: .95rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -.3px;
}

.back-link {
  font-size: .84rem;
  font-weight: 500;
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color .2s;
}

.back-link:hover { color: var(--green); }

/* ─── PAGE HERO ─── */

.page-hero {
  background: linear-gradient(135deg, var(--navy) 0%, #1e1a5e 100%);
  padding: 56px 24px 48px;
  text-align: center;
}

.page-hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(0,197,135,0.12);
  border: 1px solid rgba(0,197,135,0.25);
  color: var(--green);
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .8px;
  padding: 5px 14px;
  border-radius: 999px;
  margin-bottom: 1rem;
}

.page-hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  color: #fff;
  letter-spacing: -.04em;
  margin-bottom: .75rem;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.page-hero p {
  color: rgba(255,255,255,0.55);
  font-size: .95rem;
  max-width: 480px;
  margin: 0 auto;
}

/* ─── BLOG INDEX GRID ─── */

.blog-index {
  max-width: 1040px;
  margin: 0 auto;
  padding: 56px 24px 80px;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.blog-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}

.blog-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(25,21,68,0.09);
  border-color: rgba(0,197,135,0.35);
}

.blog-card-num {
  font-size: .72rem;
  font-weight: 700;
  color: var(--green-dark);
  background: var(--green-dim);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 14px;
  letter-spacing: .3px;
}

.blog-card-title {
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -.02em;
  margin-bottom: 10px;
  line-height: 1.4;
}

.blog-card-excerpt {
  font-size: .87rem;
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 18px;
  flex-grow: 1;
}

.blog-card-cta {
  font-size: .82rem;
  font-weight: 600;
  color: var(--green-dark);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.blog-card-cta svg { transition: transform .2s; }
.blog-card:hover .blog-card-cta svg { transform: translateX(3px); }

/* ─── ARTICLE ─── */

.article {
  max-width: 700px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .8rem;
  color: var(--muted);
  margin-bottom: 24px;
}

.article-meta-tag {
  background: var(--green-dim);
  color: var(--green-dark);
  font-weight: 700;
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .5px;
  padding: 3px 10px;
  border-radius: 999px;
}

.article-lede {
  font-size: 1.05rem;
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}

.article-body h2 {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -.02em;
  margin: 2.4rem 0 1rem;
}

.article-body h3 {
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--navy);
  margin: 1.8rem 0 .8rem;
}

.article-body p {
  font-size: .98rem;
  color: var(--text);
  line-height: 1.8;
  margin-bottom: 1.15rem;
}

.article-body a {
  color: var(--green-dark);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid rgba(0,197,135,0.35);
}

.article-body a:hover { border-color: var(--green-dark); }

.article-body strong { color: var(--navy); font-weight: 700; }

.article-body ul, .article-body ol {
  margin: 0 0 1.15rem 1.2rem;
  color: var(--text);
  font-size: .98rem;
  line-height: 1.8;
}

.article-body li { margin-bottom: .4rem; }

.article-cta {
  background: linear-gradient(135deg, var(--navy) 0%, #1e1a5e 100%);
  border-radius: var(--radius);
  padding: 28px;
  margin: 2.4rem 0;
  text-align: center;
}

.article-cta p {
  color: rgba(255,255,255,0.75);
  font-size: .92rem;
  margin-bottom: 16px;
}

.article-cta a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--green);
  color: #05261c;
  font-weight: 700;
  font-size: .9rem;
  padding: 11px 22px;
  border-radius: 999px;
  text-decoration: none;
  transition: background .2s, transform .2s;
}

.article-cta a:hover { background: var(--green-dark); transform: translateY(-1px); }

/* ─── RELATED POSTS ─── */

.related {
  max-width: 700px;
  margin: 0 auto;
  padding: 0 24px 64px;
}

.related-title {
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .6px;
  color: var(--muted);
  margin-bottom: 16px;
}

.related-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.related-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 16px;
  font-size: .88rem;
  font-weight: 600;
  color: var(--navy);
  text-decoration: none;
  transition: border-color .2s, transform .2s;
}

.related-list a:hover { border-color: rgba(0,197,135,0.35); transform: translateX(2px); }

.related-list span { color: var(--green-dark); flex-shrink: 0; }

/* ─── FOOTER ─── */

.footer {
  background: var(--navy);
  padding: 28px 24px;
}

.footer-inner {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer p {
  font-size: .82rem;
  color: rgba(255,255,255,0.4);
}

.footer-legal {
  display: flex;
  gap: 1.25rem;
}

.footer-legal a {
  font-size: .82rem;
  color: rgba(255,255,255,0.4);
  text-decoration: none;
  transition: color .2s;
}

.footer-legal a:hover { color: var(--green); }

@media (max-width: 600px) {
  .blog-index, .article, .related { padding-left: 16px; padding-right: 16px; }
  .footer-inner { flex-direction: column; text-align: center; }
}
