/* ═══════════════════════════════════════════════
   KCC Blog Styles
   Design tokens: navy #0f1f3d · magenta #ec008c · teal #0d9488
   Fonts: Sora (headings) · Lora (body)
   ═══════════════════════════════════════════════ */

/* ── Variables ─────────────────────────────────── */
:root {
  --navy:    #0f1f3d;
  --magenta: #ec008c;
  --teal:    #0d9488;
  --teal-lt: #e6f7f6;
  --gold:    #c8922a;
  --dark:    #1e293b;
  --mid:     #64748b;
  --light:   #f0f4f8;
  --border:  #dde3ec;
  --white:   #ffffff;

  --font-head: 'Sora', sans-serif;
  --font-body: 'Lora', Georgia, serif;

  --post-max-w: 780px;
  --post-pad:   clamp(1.25rem, 4vw, 2.5rem);
}

/* Offset for fixed navbar — adjust value to match your navbar height */
body {
  padding-top: 90px;
}

/* ── Breadcrumb ────────────────────────────────── */
.breadcrumb {
  padding: 0.75rem var(--post-pad);
  max-width: calc(var(--post-max-w) + var(--post-pad) * 2);
  margin: 0 auto;
  font-family: var(--font-head);
  font-size: 0.8rem;
  color: var(--mid);
}
.breadcrumb ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  margin: 0; padding: 0;
}
.breadcrumb li + li::before { content: '›'; margin-right: 0.25rem; }
.breadcrumb a { color: var(--teal); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

/* ── Post layout ───────────────────────────────── */
.blog-post {
  max-width: var(--post-max-w);
  margin: 0 auto;
  padding: 2rem var(--post-pad) 4rem;
}

/* ── Post header ───────────────────────────────── */
.post-header { margin-bottom: 2rem; }

.post-category {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--magenta);
  margin-bottom: 0.75rem;
}

.post-title {
  font-family: var(--font-head);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.2;
  margin: 0 0 0.75rem;
}

.post-subtitle {
  font-family: var(--font-body);
  font-size: 1.15rem;
  color: var(--mid);
  line-height: 1.6;
  margin: 0 0 1.25rem;
  font-style: italic;
}

/* ── Post meta (author + date) ─────────────────── */
.post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  padding: 1rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: 1.5rem;
}

.post-author {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.author-avatar {
  width: 42px; height: 42px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--teal);
}
.author-name {
  display: block;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--navy);
  text-decoration: none;
}
.author-name:hover { color: var(--teal); }
.author-title {
  display: block;
  font-size: 0.78rem;
  color: var(--mid);
}

.post-date-read {
  display: flex;
  gap: 0.75rem;
  font-family: var(--font-head);
  font-size: 0.82rem;
  color: var(--mid);
  margin-left: auto;
}
.post-date-read time { color: var(--dark); }
.read-time::before { content: '·'; margin-right: 0.75rem; }

/* ── Hero image ────────────────────────────────── */
.post-hero-image {
  margin: 0 0 2rem;
  border-radius: 8px;
  overflow: hidden;
}
.post-hero-image img {
  width: 100%;
  height: auto;
  display: block;
}
.post-hero-image figcaption {
  padding: 0.5rem 0.75rem;
  font-size: 0.82rem;
  color: var(--mid);
  font-style: italic;
  background: var(--light);
}

/* ── Post body typography ──────────────────────── */
.post-body {
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--dark);
}
.post-body h2 {
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--navy);
  margin: 2.5rem 0 1rem;
  padding-bottom: 0.4rem;
  border-bottom: 2px solid var(--teal);
}
.post-body h3 {
  font-family: var(--font-head);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--navy);
  margin: 2rem 0 0.75rem;
}
.post-body p   { margin: 0 0 1.25rem; }
.post-body ul,
.post-body ol  { margin: 0 0 1.25rem 1.5rem; }
.post-body li  { margin-bottom: 0.5rem; }
.post-body a   { color: var(--teal); }
.post-body a:hover { color: var(--navy); }
.post-body strong  { font-weight: 700; color: var(--navy); }

/* ── Figures (images) ──────────────────────────── */
.blog-figure {
  margin: 2rem 0;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border);
}
.blog-figure img {
  width: 100%; height: auto;
  display: block;
}
.blog-figure figcaption {
  padding: 0.6rem 1rem;
  font-size: 0.83rem;
  color: var(--mid);
  font-style: italic;
  background: var(--light);
}

/* ── Video (YouTube) ───────────────────────────── */
.blog-video {
  margin: 2rem 0;
}
.video-wrap {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 */
  height: 0;
  border-radius: 8px;
  overflow: hidden;
  background: var(--navy);
}
.video-wrap iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: none;
}
.blog-video figcaption {
  margin-top: 0.5rem;
  font-size: 0.83rem;
  color: var(--mid);
  font-style: italic;
  text-align: center;
}

/* ── Alert / callout ───────────────────────────── */
.blog-alert {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 1rem 1.25rem;
  border-radius: 6px;
  margin: 1.75rem 0;
  font-family: var(--font-head);
  font-size: 0.95rem;
  line-height: 1.6;
}
.blog-alert--info {
  background: var(--teal-lt);
  border-left: 4px solid var(--teal);
  color: #0a4a46;
}
.blog-alert--warning {
  background: #fff8e6;
  border-left: 4px solid var(--gold);
  color: #7a4f00;
}
.blog-alert--success {
  background: #edfdf4;
  border-left: 4px solid #22c55e;
  color: #14532d;
}
.alert-icon {
  font-size: 1.1rem;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

/* ── CTA block ─────────────────────────────────── */
.blog-cta {
  background: var(--navy);
  color: var(--white);
  padding: 2rem;
  border-radius: 10px;
  margin: 2.5rem 0;
  text-align: center;
}
.cta-heading {
  font-family: var(--font-head);
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 0.4rem;
  color: var(--white);
}
.cta-sub {
  font-size: 0.9rem;
  color: #94a3b8;
  margin: 0 0 1.25rem;
}
.cta-btn {
  display: inline-block;
  background: var(--magenta);
  color: var(--white);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.7rem 1.75rem;
  border-radius: 5px;
  text-decoration: none;
  transition: opacity 0.2s;
}
.cta-btn:hover { opacity: 0.88; }

/* ── References ────────────────────────────────── */
.blog-references {
  margin: 2.5rem 0 0;
  padding: 1.5rem;
  background: var(--light);
  border-radius: 8px;
  border: 1px solid var(--border);
}
.blog-references h2 {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: none;
}
.blog-references ol {
  margin: 0; padding: 0;
  list-style: none;
}
.blog-references li {
  display: flex;
  gap: 0.5rem;
  font-size: 0.87rem;
  color: var(--dark);
  margin-bottom: 0.6rem;
  line-height: 1.5;
}
.ref-num {
  color: var(--teal);
  font-weight: 700;
  flex-shrink: 0;
}
.blog-references a {
  color: var(--teal);
  text-decoration: none;
}
.blog-references a:hover { text-decoration: underline; }

/* ── FAQ ───────────────────────────────────────── */
.blog-faq {
  margin: 2rem 0;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}
.blog-faq h2 {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  background: var(--navy);
  color: var(--white);
  margin: 0;
  padding: 0.9rem 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: none;
}
.faq-item {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
}
.faq-item:last-child { border-bottom: none; }
.faq-q {
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--navy);
  margin: 0 0 0.4rem;
  font-size: 0.95rem;
}
.faq-a {
  color: var(--dark);
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.6;
}

/* ── Post tags ─────────────────────────────────── */
.post-tags {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}
.tags-label {
  font-family: var(--font-head);
  font-size: 0.82rem;
  color: var(--mid);
  font-weight: 600;
}
.tag-pill {
  display: inline-block;
  padding: 0.3rem 0.8rem;
  background: var(--light);
  border: 1px solid var(--border);
  border-radius: 99px;
  font-family: var(--font-head);
  font-size: 0.78rem;
  color: var(--dark);
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}
.tag-pill:hover {
  background: var(--teal);
  color: var(--white);
  border-color: var(--teal);
}

/* ── Responsive ────────────────────────────────── */
@media (max-width: 600px) {
  .post-meta { flex-direction: column; align-items: flex-start; }
  .post-date-read { margin-left: 0; }
  .blog-cta { padding: 1.5rem 1rem; }
}
