/* FusionChatalyst Resource Pages */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --blue: #028BE5;
  --blue-dark: #0270c0;
  --blue-light: #e8f4fd;
  --text: #314b5b;
  --text-light: #5a7a8a;
  --bg: #f8fafc;
  --white: #ffffff;
  --border: #dde6ed;
  --radius: 10px;
  --max-w: 860px;
}

body {
  font-family: 'Roboto', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
}

/* ── NAV ─────────────────────────────────────────────────────────────────── */
nav {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  gap: 24px;
}
.nav-brand {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--blue);
  text-decoration: none;
  white-space: nowrap;
}
.nav-links {
  display: flex;
  gap: 20px;
  list-style: none;
  align-items: center;
}
.nav-links a {
  color: var(--text);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color .15s;
}
.nav-links a:hover { color: var(--blue); }
.nav-cta {
  background: var(--blue);
  color: var(--white) !important;
  padding: 7px 18px;
  border-radius: 6px;
  font-size: 0.875rem !important;
  transition: background .15s !important;
}
.nav-cta:hover { background: var(--blue-dark) !important; color: var(--white) !important; }

/* ── PAGE SHELL ─────────────────────────────────────────────────────────── */
main {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 48px 24px 80px;
}

/* ── BREADCRUMB ─────────────────────────────────────────────────────────── */
.breadcrumb {
  font-size: 0.82rem;
  color: var(--text-light);
  margin-bottom: 28px;
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
}
.breadcrumb a { color: var(--blue); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span { color: var(--text-light); }

/* ── ARTICLE HEADER ─────────────────────────────────────────────────────── */
.article-header {
  margin-bottom: 40px;
}
.article-label {
  display: inline-block;
  background: var(--blue-light);
  color: var(--blue);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: 4px 12px;
  border-radius: 100px;
  margin-bottom: 14px;
}
h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  line-height: 1.25;
  color: var(--text);
  margin-bottom: 16px;
}
.article-subtitle {
  font-size: 1.1rem;
  color: var(--text-light);
  max-width: 680px;
}
.article-meta {
  margin-top: 20px;
  font-size: 0.82rem;
  color: var(--text-light);
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
}
.article-meta strong { color: var(--text); }

/* ── ARTICLE BODY ───────────────────────────────────────────────────────── */
article h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  margin: 44px 0 14px;
  line-height: 1.3;
}
article h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  margin: 28px 0 10px;
}
article p {
  margin-bottom: 18px;
  color: var(--text);
}
article ul, article ol {
  padding-left: 24px;
  margin-bottom: 18px;
}
article li { margin-bottom: 8px; }
article a { color: var(--blue); text-decoration: none; }
article a:hover { text-decoration: underline; }
article strong { font-weight: 700; color: var(--text); }

/* ── CALLOUT BOXES ──────────────────────────────────────────────────────── */
.callout {
  background: var(--blue-light);
  border-left: 4px solid var(--blue);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 18px 22px;
  margin: 28px 0;
}
.callout p { margin: 0; color: var(--text); }
.callout strong { color: var(--blue); }

.tip {
  background: #f0fdf4;
  border-left: 4px solid #16a34a;
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 16px 20px;
  margin: 24px 0;
}
.tip p { margin: 0; }

/* ── STAT GRID ──────────────────────────────────────────────────────────── */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin: 28px 0;
}
.stat-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
}
.stat-card .stat-number {
  font-size: 2rem;
  font-weight: 700;
  color: var(--blue);
  display: block;
}
.stat-card .stat-label {
  font-size: 0.82rem;
  color: var(--text-light);
  margin-top: 4px;
}

/* ── CTA BLOCK ──────────────────────────────────────────────────────────── */
.cta-block {
  background: linear-gradient(135deg, #0270c0 0%, #028BE5 100%);
  color: var(--white);
  border-radius: 14px;
  padding: 40px 36px;
  text-align: center;
  margin: 48px 0;
}
.cta-block h2 {
  font-size: 1.6rem;
  font-weight: 700;
  margin: 0 0 10px !important;
  color: var(--white) !important;
}
.cta-block p {
  color: rgba(255,255,255,.85);
  margin: 0 0 24px;
  font-size: 1rem;
}
.cta-block a {
  display: inline-block;
  background: var(--white);
  color: var(--blue) !important;
  font-weight: 700;
  padding: 12px 28px;
  border-radius: 8px;
  font-size: 1rem;
  text-decoration: none !important;
  transition: transform .15s;
}
.cta-block a:hover { transform: translateY(-2px); }

/* ── RELATED ARTICLES ───────────────────────────────────────────────────── */
.related {
  margin-top: 56px;
  padding-top: 36px;
  border-top: 1px solid var(--border);
}
.related h2 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--text);
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}
.related-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  text-decoration: none;
  color: var(--text);
  transition: border-color .15s, box-shadow .15s;
  display: block;
}
.related-card:hover {
  border-color: var(--blue);
  box-shadow: 0 4px 12px rgba(2,139,229,.12);
}
.related-card .rc-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--blue);
  font-weight: 700;
  margin-bottom: 8px;
}
.related-card h3 {
  font-size: 0.95rem;
  font-weight: 700;
  margin: 0 0 6px;
  line-height: 1.35;
}
.related-card p {
  font-size: 0.82rem;
  color: var(--text-light);
  margin: 0;
  line-height: 1.5;
}

/* ── INDEX GRID (resources landing) ────────────────────────────────────── */
.resource-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 32px;
}
.resource-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  text-decoration: none;
  color: var(--text);
  transition: border-color .15s, box-shadow .15s;
  display: block;
}
.resource-card:hover {
  border-color: var(--blue);
  box-shadow: 0 4px 16px rgba(2,139,229,.12);
}
.resource-card .rc-icon {
  font-size: 1.75rem;
  margin-bottom: 12px;
}
.resource-card h2 {
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 8px !important;
  line-height: 1.35;
  color: var(--text);
}
.resource-card p {
  font-size: 0.875rem;
  color: var(--text-light);
  margin: 0;
  line-height: 1.55;
}
.resource-card .rc-read {
  display: inline-block;
  margin-top: 14px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--blue);
}

/* ── FOOTER ─────────────────────────────────────────────────────────────── */
footer {
  background: var(--white);
  border-top: 1px solid var(--border);
  padding: 32px 24px;
  text-align: center;
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
}
.footer-links {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  list-style: none;
  margin-bottom: 16px;
}
.footer-links a {
  color: var(--text-light);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color .15s;
}
.footer-links a:hover { color: var(--blue); }
.footer-copy {
  font-size: 0.8rem;
  color: var(--text-light);
}
.footer-copy a { color: var(--blue); text-decoration: none; }

/* ── RESPONSIVE ─────────────────────────────────────────────────────────── */
@media (max-width: 640px) {
  main { padding: 32px 16px 60px; }
  .nav-links { display: none; }
  h1 { font-size: 1.75rem; }
  .cta-block { padding: 28px 20px; }
}
