/* ===== BLOG ARTICLE STYLES — nexusti.ca ===== */
/* To integrate: link this CSS from each blog article, or copy into your existing stylesheet */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --navy: #1B2A4A;
  --teal: #0D7C66;
  --teal-light: #e8f5f0;
  --gray-text: #4a5568;
  --gray-light: #f7f8fa;
  --gray-border: #e2e8f0;
  --white: #ffffff;
  --orange: #e67e22;
  --link: #0D7C66;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

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

body {
  font-family: var(--font);
  color: var(--gray-text);
  line-height: 1.7;
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

/* ===== NAVIGATION (replicate site nav) ===== */
.site-nav {
  background: var(--white);
  border-bottom: 1px solid var(--gray-border);
  padding: 12px 0;
  position: sticky;
  top: 0;
  z-index: 100;
}
.site-nav .nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.site-nav .logo img { height: 40px; }
.site-nav .nav-links { display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: center; }
.site-nav .nav-links a {
  color: var(--navy);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  transition: color 0.2s;
}
.site-nav .nav-links a:hover { color: var(--teal); }
.site-nav .lang-switch { font-size: 0.8rem; color: var(--teal); font-weight: 600; }

/* ===== BREADCRUMB ===== */
.breadcrumb {
  max-width: 800px;
  margin: 24px auto 0;
  padding: 0 24px;
  font-size: 0.85rem;
  color: #718096;
}
.breadcrumb a { color: var(--teal); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span { margin: 0 6px; }

/* ===== ARTICLE HERO ===== */
.article-hero {
  max-width: 800px;
  margin: 0 auto;
  padding: 32px 24px 0;
}
.article-hero .category-tag {
  display: inline-block;
  background: var(--teal-light);
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
}
.article-hero h1 {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--navy);
  line-height: 1.25;
  margin-bottom: 16px;
}
.article-hero .subtitle {
  font-size: 1.12rem;
  color: #64748b;
  line-height: 1.6;
  margin-bottom: 20px;
}
.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 0.84rem;
  color: #94a3b8;
  padding-bottom: 24px;
  border-bottom: 2px solid var(--gray-border);
}
.article-meta strong { color: var(--navy); font-weight: 600; }

/* ===== ARTICLE BODY ===== */
.article-body {
  max-width: 800px;
  margin: 0 auto;
  padding: 32px 24px 60px;
}
.article-body h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--navy);
  margin: 48px 0 16px;
  padding-top: 16px;
  border-top: 1px solid var(--gray-border);
}
.article-body h2:first-child { border-top: none; margin-top: 0; }
.article-body h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--teal);
  margin: 32px 0 12px;
}
.article-body p {
  margin-bottom: 18px;
  font-size: 1.02rem;
}
.article-body strong { color: var(--navy); font-weight: 600; }
.article-body a { color: var(--link); text-decoration: underline; text-underline-offset: 2px; }
.article-body a:hover { color: var(--navy); }
.article-body ul, .article-body ol {
  margin: 12px 0 20px 24px;
  padding-left: 0;
}
.article-body li {
  margin-bottom: 8px;
  font-size: 1.02rem;
  padding-left: 4px;
}

/* ===== TABLE OF CONTENTS ===== */
.toc {
  background: var(--gray-light);
  border: 1px solid var(--gray-border);
  border-radius: 10px;
  padding: 24px 28px;
  margin: 28px 0 36px;
}
.toc-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 14px;
}
.toc ol { margin: 0; padding-left: 20px; }
.toc li { margin-bottom: 6px; font-size: 0.92rem; }
.toc a { color: var(--teal); text-decoration: none; font-weight: 500; }
.toc a:hover { text-decoration: underline; }

/* ===== KEY TAKEAWAY / HIGHLIGHT BOX ===== */
.highlight-box {
  background: var(--teal-light);
  border-left: 4px solid var(--teal);
  border-radius: 0 8px 8px 0;
  padding: 20px 24px;
  margin: 28px 0;
}
.highlight-box p { margin-bottom: 8px; }
.highlight-box p:last-child { margin-bottom: 0; }

/* ===== CTA BLOCK ===== */
.article-cta {
  background: linear-gradient(135deg, var(--navy) 0%, #2d4a7a 100%);
  border-radius: 12px;
  padding: 36px 32px;
  margin: 48px 0 36px;
  text-align: center;
}
.article-cta h3 { color: var(--white); font-size: 1.3rem; margin-bottom: 12px; }
.article-cta p { color: rgba(255,255,255,0.8); margin-bottom: 20px; font-size: 0.98rem; }
.article-cta .btn {
  display: inline-block;
  background: var(--teal);
  color: var(--white);
  padding: 14px 32px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  transition: background 0.2s;
}
.article-cta .btn:hover { background: #0a6350; }

/* ===== RELATED ARTICLES ===== */
.related-articles {
  border-top: 2px solid var(--gray-border);
  padding-top: 32px;
  margin-top: 48px;
}
.related-articles h3 {
  font-size: 1.1rem;
  color: var(--navy);
  margin-bottom: 16px;
  border-top: none;
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}
.related-card {
  border: 1px solid var(--gray-border);
  border-radius: 10px;
  padding: 20px;
  text-decoration: none;
  transition: box-shadow 0.2s, border-color 0.2s;
}
.related-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.08); border-color: var(--teal); }
.related-card .rc-tag {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--teal);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}
.related-card .rc-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.4;
  margin-bottom: 6px;
}
.related-card .rc-desc { font-size: 0.82rem; color: #718096; line-height: 1.5; }

/* ===== FOOTER ===== */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.7);
  padding: 48px 24px 32px;
  margin-top: 60px;
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
}
.footer-col h4 { color: var(--white); font-size: 0.9rem; margin-bottom: 14px; font-weight: 700; }
.footer-col a { color: rgba(255,255,255,0.65); text-decoration: none; font-size: 0.85rem; display: block; margin-bottom: 8px; }
.footer-col a:hover { color: var(--white); }
.footer-col p { font-size: 0.85rem; line-height: 1.6; }
.footer-logo img { height: 36px; margin-bottom: 12px; }
.footer-copy {
  max-width: 1100px;
  margin: 32px auto 0;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.1);
  text-align: center;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .article-hero h1 { font-size: 1.6rem; }
  .article-body h2 { font-size: 1.3rem; }
  .related-grid { grid-template-columns: 1fr; }
  .site-nav .nav-links { gap: 4px 12px; }
}
