/* Quantra Solutions — Blog Stylesheet (brand-aligned) */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
  --primary:           #1B2A7D;
  --primary-dark:      #0f1a4d;
  --accent-magenta:    #A10071;
  --accent-teal:       #09BAB3;
  --accent-teal-light: #B5EAE8;
  --text-dark:         #1B2A7D;
  --text-body:         #2c3554;
  --text-light:        #64748b;
  --bg-white:          #FFFFFF;
  --bg-light:          #f8fafc;
  --border:            #e2e8f0;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-white);
  color: var(--text-body);
  font-weight: 300;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* ── HEADER ─────────────────────────────────────────── */
.site-header {
  background: var(--primary);
  padding: 0 2rem;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(15, 26, 77, 0.25);
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}
.logo-img {
  height: 40px;
  width: auto;
  display: block;
}
/* Legacy "Q" mark — kept for compatibility, styled to brand */
.logo-mark {
  width: 36px;
  height: 36px;
  background: var(--accent-teal);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 1.05rem;
  color: #fff;
}
.logo-text {
  font-weight: 600;
  font-size: 1.05rem;
  color: #fff;
}
.logo-text span {
  color: var(--accent-teal-light);
  font-weight: 400;
}
.header-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.header-nav a {
  font-size: 0.95rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  transition: color 0.2s;
}
.header-nav a:hover { color: var(--accent-teal-light); }
.header-nav .btn-contact {
  background: var(--accent-teal);
  color: #fff !important;
  padding: 0.55rem 1.1rem;
  border-radius: 8px;
  font-weight: 500;
  transition: background 0.2s, transform 0.2s;
}
.header-nav .btn-contact:hover {
  background: #07a39c;
  transform: translateY(-1px);
}

/* ── BREADCRUMB ─────────────────────────────────────── */
.breadcrumb {
  background: var(--bg-light);
  border-bottom: 1px solid var(--border);
  padding: 0.7rem 2rem;
}
.breadcrumb-inner {
  max-width: 1200px;
  margin: 0 auto;
  font-size: 0.85rem;
  color: var(--text-light);
  font-weight: 400;
}
.breadcrumb-inner a { color: var(--accent-teal); text-decoration: none; font-weight: 500; }
.breadcrumb-inner a:hover { color: var(--accent-magenta); }
.breadcrumb-inner span { margin: 0 0.4rem; color: var(--text-light); }

/* ── HERO (article + index) ──────────────────────────── */
.article-hero,
.index-hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 55%, var(--accent-magenta) 130%);
  color: #fff;
  padding: 4rem 2rem 3.5rem;
}
.article-hero-inner {
  max-width: 820px;
  margin: 0 auto;
}
.article-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-teal-light);
  margin-bottom: 1rem;
}
.article-hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 700;
  line-height: 1.25;
  color: #fff;
  margin-bottom: 1.2rem;
}
.article-meta {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 300;
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.article-meta .applies-to {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--accent-teal-light);
  font-style: italic;
  flex-basis: 100%;
}

/* ── INDEX HERO ──────────────────────────────────────── */
.index-hero {
  text-align: center;
  padding: 5rem 2rem 4rem;
}
.index-hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  color: #fff;
  margin-bottom: 1rem;
}
.index-hero p {
  font-size: 1.1rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.9);
  max-width: 620px;
  margin: 0 auto;
}

/* ── LAYOUT ──────────────────────────────────────────── */
.article-layout {
  max-width: 1160px;
  margin: 0 auto;
  padding: 3rem 2rem;
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 3.5rem;
  align-items: start;
}
@media (max-width: 900px) {
  .article-layout { grid-template-columns: 1fr; }
  .article-toc { display: none; }
}

/* ── ARTICLE BODY ─────────────────────────────────────── */
.article-body { min-width: 0; font-size: 1.05rem; }

.article-body p {
  margin-bottom: 1.35rem;
  color: var(--text-body);
}
.article-body h2 {
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--primary);
  margin: 2.75rem 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--border);
  line-height: 1.3;
}
.article-body h3 {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--primary);
  margin: 2rem 0 0.7rem;
}
.article-body h4 {
  font-size: 0.95rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-light);
  margin: 1.5rem 0 0.5rem;
}
.article-body ul, .article-body ol {
  padding-left: 1.5rem;
  margin-bottom: 1.35rem;
}
.article-body li { margin-bottom: 0.45rem; color: var(--text-body); }
.article-body strong { font-weight: 600; color: var(--primary); }
.article-body em { font-style: italic; }
.article-body a {
  color: var(--accent-teal);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}
.article-body a:hover { color: var(--accent-magenta); text-decoration: underline; }
.article-body blockquote {
  border-left: 4px solid var(--accent-teal);
  background: var(--bg-light);
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  font-style: italic;
  color: var(--primary);
  border-radius: 0 8px 8px 0;
}

/* ── TABLES ───────────────────────────────────────────── */
.table-wrap { overflow-x: auto; margin: 1.5rem 0 2rem; }
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 0 0 1px var(--border);
}
thead th {
  background: var(--primary);
  color: #fff;
  font-weight: 500;
  padding: 0.8rem 1rem;
  text-align: left;
}
tbody tr:nth-child(even) { background: var(--bg-light); }
tbody tr:hover { background: rgba(9, 186, 179, 0.08); }
tbody td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
  font-weight: 300;
}

/* ── CHECKLIST ────────────────────────────────────────── */
.checklist { list-style: none; padding: 0; margin: 1rem 0 1.5rem; }
.checklist li {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.97rem;
  font-weight: 400;
}
.checklist li::before {
  content: '';
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 4px;
  border: 2px solid var(--accent-teal);
  border-radius: 4px;
  background: #fff;
}

/* ── STEP BLOCKS ──────────────────────────────────────── */
.step {
  border-left: 4px solid var(--accent-teal);
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
  background: var(--bg-light);
  border-radius: 0 8px 8px 0;
}
.step-num {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-teal);
  margin-bottom: 0.4rem;
}
.step h3 {
  margin: 0 0 0.6rem !important;
  font-size: 1.05rem !important;
}
.step p { margin-bottom: 0.5rem; font-size: 0.97rem; }
.step p:last-child { margin-bottom: 0; }

/* ── FAQ ──────────────────────────────────────────────── */
.faq-item {
  border-top: 1px solid var(--border);
  padding: 1.25rem 0;
}
.faq-item:last-child { border-bottom: 1px solid var(--border); }
.faq-q {
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 0.5rem;
  font-size: 1rem;
}
.faq-a { font-size: 0.97rem; color: var(--text-body); font-weight: 300; }

/* ── CTA BOX ──────────────────────────────────────────── */
.cta-box {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent-magenta) 100%);
  border-radius: 12px;
  padding: 1.75rem 2rem;
  margin: 2.5rem 0;
  color: #fff;
}
.cta-box h3 {
  font-size: 1.15rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.6rem;
}
.cta-box p {
  font-size: 0.97rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: 1.1rem;
  line-height: 1.6;
}
.cta-box strong { color: #fff; font-weight: 600; }
.cta-box a.btn {
  display: inline-block;
  background: var(--accent-teal);
  color: #fff;
  text-decoration: none;
  padding: 0.7rem 1.4rem;
  border-radius: 8px;
  font-size: 0.92rem;
  font-weight: 500;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}
.cta-box a.btn:hover {
  background: #07a39c;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(9, 186, 179, 0.35);
}

/* ── DISCLAIMER ───────────────────────────────────────── */
.disclaimer {
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1rem 1.25rem;
  font-size: 0.85rem;
  color: var(--text-light);
  margin-top: 2.5rem;
  font-style: italic;
}
.disclaimer a { color: var(--accent-teal); text-decoration: none; }
.disclaimer a:hover { color: var(--accent-magenta); }

/* ── TABLE OF CONTENTS (SIDEBAR) ─────────────────────── */
.article-toc {
  position: sticky;
  top: 90px;
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.4rem;
}
.toc-title {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 1rem;
}
.toc-list { list-style: none; padding: 0; }
.toc-list li { margin-bottom: 0.15rem; }
.toc-list a {
  font-size: 0.88rem;
  color: var(--text-body);
  text-decoration: none;
  display: block;
  padding: 0.4rem 0.6rem;
  border-radius: 6px;
  line-height: 1.4;
  font-weight: 400;
  transition: all 0.15s;
}
.toc-list a:hover {
  color: var(--accent-teal);
  background: #fff;
}

/* ── FOOTER ───────────────────────────────────────────── */
.site-footer {
  background: var(--primary);
  color: rgba(255, 255, 255, 0.7);
  padding: 3rem 2rem;
  margin-top: 4rem;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-inner p {
  font-size: 0.9rem;
  font-weight: 300;
}
.footer-inner a {
  color: var(--accent-teal-light);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-inner a:hover { color: #fff; }

/* ── BLOG INDEX ───────────────────────────────────────── */
.article-grid {
  max-width: 1200px;
  margin: 3.5rem auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
}
.article-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: box-shadow 0.25s, transform 0.25s, border-color 0.25s;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
}
.article-card:hover {
  box-shadow: 0 12px 32px rgba(27, 42, 125, 0.15);
  transform: translateY(-3px);
  border-color: var(--accent-teal-light);
}
.card-top {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  padding: 1.6rem 1.6rem 1.3rem;
  position: relative;
}
.card-top::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-teal) 0%, var(--accent-magenta) 100%);
}
.card-tag {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-teal-light);
  margin-bottom: 0.7rem;
}
.card-title {
  font-size: 1.15rem;
  font-weight: 600;
  color: #fff;
  line-height: 1.4;
}
.card-body {
  padding: 1.4rem 1.6rem 1.6rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.card-desc {
  font-size: 0.95rem;
  color: var(--text-body);
  font-weight: 300;
  line-height: 1.65;
  flex: 1;
  margin-bottom: 1.1rem;
}
.card-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--accent-teal);
  transition: color 0.2s;
}
.article-card:hover .card-link {
  color: var(--accent-magenta);
}
