/* ===========================================
   verilearn blog — shared styles
   inherits brand: navy + teal + green
   =========================================== */

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

:root {
  --navy: #0B1B3B; --navy2: #12305F; --hero-top: #1B3A72; --hero-bot: #0A1E42;
  --green: #2ECC71; --green-dark: #1FA85A; --green-light: #DDF7E8;
  --teal: #28B88D; --teal-soft: #E5F7F0;
  --bg: #F8FAFC; --bg-soft: #FBFCFD; --border: #E4E7EC; --border-soft: #EEF1F5;
  --text: #101828; --text2: #475467; --text3: #667085; --white: #FFFFFF;
}

html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--white); color: var(--text);
  -webkit-font-smoothing: antialiased; font-size: 16px; line-height: 1.6;
}

a { color: inherit; }

/* ── NAV (identical to landing) ── */
nav.blog-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(255,255,255,0.94); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border); padding: 0 6vw; height: 68px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo-wrap { height: 42px; overflow: hidden; position: relative; width: 168px; flex-shrink: 0; }
.nav-logo-wrap img { height: 220px; position: absolute; top: -86px; left: -32px; max-width: none; }
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a { text-decoration: none; color: var(--text3); font-weight: 500; font-size: 14px; transition: color .2s; }
.nav-links a:hover, .nav-links a.active { color: var(--navy); }
.nav-links a.active { font-weight: 700; }
.nav-cta {
  background: var(--green); color: #fff !important;
  padding: 10px 22px; border-radius: 999px; font-weight: 700 !important; font-size: 14px !important;
  transition: background .2s; text-decoration: none;
}
.nav-cta:hover { background: var(--green-dark); }

/* ── BLOG INDEX HERO ── */
.blog-hero {
  padding: 140px 6vw 64px; background: linear-gradient(180deg, var(--bg) 0%, #fff 100%);
  border-bottom: 1px solid var(--border-soft);
}
.blog-hero-inner { max-width: 1100px; margin: 0 auto; }
.blog-hero .eyebrow {
  display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: 1.6px;
  text-transform: uppercase; color: var(--teal); margin-bottom: 16px;
}
.blog-hero h1 {
  font-size: clamp(40px, 5.5vw, 68px); font-weight: 900; color: var(--navy);
  line-height: 1.04; letter-spacing: -1.4px; max-width: 880px; text-wrap: pretty;
  margin-bottom: 20px;
}
.blog-hero p {
  font-size: clamp(16px, 1.5vw, 19px); color: var(--text2); line-height: 1.6;
  max-width: 640px; text-wrap: pretty;
}

/* ── ARTICLE GRID ── */
.blog-listing { padding: 64px 6vw 120px; }
.blog-listing-inner { max-width: 1100px; margin: 0 auto; }
.article-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 36px 28px;
}
.article-card {
  display: flex; flex-direction: column; text-decoration: none; color: inherit;
  border-radius: 16px; overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease;
}
.article-card:hover { transform: translateY(-4px); }
.article-card:hover .article-card-cover { box-shadow: 0 14px 32px rgba(11,27,59,0.14); }
.article-card-cover {
  aspect-ratio: 16 / 10; border-radius: 14px; overflow: hidden;
  background: var(--bg); margin-bottom: 18px; transition: box-shadow .25s ease;
  border: 1px solid var(--border-soft);
}
.article-card-cover svg,
.article-card-cover img { width: 100%; height: 100%; display: block; object-fit: cover; }
.article-card-tag {
  display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: 1.2px;
  text-transform: uppercase; color: var(--teal); margin-bottom: 10px;
}
.article-card h2 {
  font-size: 22px; font-weight: 800; color: var(--navy); line-height: 1.22;
  letter-spacing: -.4px; margin-bottom: 10px; text-wrap: pretty;
}
.article-card p {
  font-size: 14.5px; color: var(--text2); line-height: 1.55; text-wrap: pretty;
  margin-bottom: 14px;
}
.article-card-meta {
  display: flex; align-items: center; gap: 12px; font-size: 12px; color: var(--text3);
  margin-top: auto;
}
.article-card-meta .dot { width: 3px; height: 3px; background: var(--text3); border-radius: 50%; }

/* ── ARTICLE PAGE ── */
.article-wrap {
  max-width: 760px; margin: 0 auto; padding: 120px 6vw 80px;
}
.breadcrumbs {
  font-size: 13px; color: var(--text3); margin-bottom: 28px;
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.breadcrumbs a { color: var(--text3); text-decoration: none; transition: color .2s; }
.breadcrumbs a:hover { color: var(--navy); }
.breadcrumbs .sep { color: var(--border); }
.breadcrumbs .current { color: var(--navy); font-weight: 600; }

.article-eyebrow {
  display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: 1.6px;
  text-transform: uppercase; color: var(--teal); margin-bottom: 18px;
}
.article-title {
  font-size: clamp(32px, 4.6vw, 52px); font-weight: 900; color: var(--navy);
  line-height: 1.08; letter-spacing: -1px; margin-bottom: 20px; text-wrap: pretty;
}
.article-subtitle {
  font-size: clamp(17px, 1.6vw, 20px); color: var(--text2); line-height: 1.55;
  margin-bottom: 32px; text-wrap: pretty; font-weight: 400;
}
.article-meta {
  display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--text3);
  padding-bottom: 28px; border-bottom: 1px solid var(--border-soft); margin-bottom: 40px;
}
.article-meta strong { color: var(--navy); font-weight: 700; }
.article-meta .dot { width: 3px; height: 3px; background: var(--text3); border-radius: 50%; }

.article-cover {
  aspect-ratio: 16 / 9; border-radius: 18px; overflow: hidden;
  margin: 0 auto 48px; max-width: 100%;
  border: 1px solid var(--border-soft); background: var(--bg);
}
.article-cover svg,
.article-cover img { width: 100%; height: 100%; display: block; object-fit: cover; }

.article-body {
  font-size: 18px; line-height: 1.72; color: var(--text);
}
.article-body h2 {
  font-size: clamp(24px, 2.6vw, 30px); font-weight: 800; color: var(--navy);
  line-height: 1.18; letter-spacing: -.5px; margin: 48px 0 16px;
  text-wrap: pretty;
}
.article-body h2:first-child { margin-top: 0; }
.article-body p {
  margin-bottom: 18px; text-wrap: pretty;
}
.article-body ul {
  margin: 12px 0 22px; padding-left: 0; list-style: none;
}
.article-body ul li {
  position: relative; padding-left: 28px; margin-bottom: 12px;
  font-size: 17px; line-height: 1.6;
}
.article-body ul li::before {
  content: ''; position: absolute; left: 4px; top: 12px;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--green);
}
.article-body strong { color: var(--navy); font-weight: 700; }
.article-body em { font-style: italic; color: var(--text2); }

/* ── ARTICLE CTA ── */
.article-cta {
  margin: 64px 0 32px; padding: 40px 36px; border-radius: 20px;
  background: linear-gradient(135deg, var(--hero-top), var(--hero-bot));
  color: #fff; text-align: left; position: relative; overflow: hidden;
}
.article-cta::before {
  content: ''; position: absolute; top: -40%; right: -10%; width: 320px; height: 320px;
  background: radial-gradient(circle, rgba(40,184,141,0.25), transparent 70%);
  pointer-events: none;
}
.article-cta-eyebrow {
  display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--teal); margin-bottom: 12px;
  position: relative;
}
.article-cta h3 {
  font-size: clamp(22px, 2.4vw, 28px); font-weight: 800; color: #fff;
  line-height: 1.2; letter-spacing: -.4px; margin-bottom: 10px; max-width: 480px;
  position: relative;
}
.article-cta p {
  font-size: 15px; color: rgba(255,255,255,0.72); line-height: 1.55;
  max-width: 480px; margin-bottom: 22px; position: relative;
}
.article-cta a {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--green); color: #fff; text-decoration: none;
  padding: 13px 24px; border-radius: 14px; font-size: 14px; font-weight: 700;
  transition: background .2s, transform .2s; position: relative;
}
.article-cta a:hover { background: var(--green-dark); transform: translateY(-1px); }

/* ── RELATED ── */
.related {
  margin: 64px 0 0; padding: 40px 0 0; border-top: 1px solid var(--border-soft);
}
.related-label {
  font-size: 12px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--teal); margin-bottom: 20px;
}
.related-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px;
}
.related-card {
  text-decoration: none; color: inherit; padding: 22px; border-radius: 14px;
  border: 1px solid var(--border-soft); transition: border-color .2s, transform .2s;
  background: var(--bg-soft);
}
.related-card:hover { border-color: var(--teal); transform: translateY(-2px); }
.related-card-tag {
  font-size: 11px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase;
  color: var(--teal); margin-bottom: 8px;
}
.related-card h4 {
  font-size: 16px; font-weight: 700; color: var(--navy); line-height: 1.28;
  letter-spacing: -.3px; text-wrap: pretty;
}

/* ── FOOTER ── */
.blog-footer {
  background: var(--navy); color: rgba(255,255,255,0.55); padding: 56px 6vw 32px;
}
.blog-footer-inner { max-width: 1100px; margin: 0 auto; }
.blog-footer-top {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 32px; padding-bottom: 32px; border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 24px; flex-wrap: wrap;
}
.blog-footer-logo { height: 38px; overflow: hidden; width: 170px; position: relative; }
.blog-footer-logo img { height: 220px; position: absolute; top: -92px; left: -32px; max-width: none; filter: brightness(0) invert(1); opacity: .82; }
.blog-footer-tag {
  font-size: 13px; color: rgba(255,255,255,0.55); max-width: 360px; line-height: 1.55;
  margin-top: 10px;
}
.blog-footer-links { display: flex; gap: 36px; flex-wrap: wrap; }
.blog-footer-col h5 {
  font-size: 11px; font-weight: 700; color: rgba(255,255,255,0.42);
  letter-spacing: 1.4px; text-transform: uppercase; margin-bottom: 12px;
}
.blog-footer-col a {
  display: block; font-size: 13px; color: rgba(255,255,255,0.62); text-decoration: none;
  margin-bottom: 8px; transition: color .2s;
}
.blog-footer-col a:hover { color: #fff; }
.blog-footer-bottom {
  font-size: 11px; color: rgba(255,255,255,0.36); line-height: 1.7;
}
.blog-footer-bottom strong { color: rgba(255,255,255,0.6); font-weight: 600; }

/* ── RESPONSIVE ── */
@media (max-width: 880px) {
  .nav-links a:not(.nav-cta) { display: none; }
  .blog-hero { padding-top: 116px; }
  .article-wrap { padding-top: 100px; }
  .article-body { font-size: 17px; }
  .related-grid { grid-template-columns: 1fr; }
}
@media (max-width: 540px) {
  .article-cta { padding: 32px 24px; }
}
