﻿/* =============================================
   BLOG STYLES - extends custom.css + funnel.css
   ============================================= */

/* BLOG PAGE HERO */
.blog-page-hero {
  padding: 72px 0 48px;
  text-align: center;
}
.blog-eyebrow {
  display: block;
  font-size: 11px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--teal);
  font-weight: 600;
  margin-bottom: 18px;
}
.blog-page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(28px, 4.5vw, 44px);
  font-weight: 700;
  letter-spacing: -0.025em;
  margin-bottom: 14px;
  line-height: 1.15;
}
.blog-page-hero p {
  font-size: 15px;
  color: var(--grey);
  max-width: 480px;
  margin: 0 auto;
  line-height: 1.7;
}

/* BLOG GRID */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
  gap: 24px;
  margin-bottom: 56px;
  animation: fadeUp .6s ease both;
}

/* BLOG CARD */
.blog-card {
  background: var(--card-bg);
  border: 1px solid var(--teal-border);
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  backdrop-filter: blur(10px);
  transition: transform .3s, border-color .3s, box-shadow .3s;
}
.blog-card:hover {
  transform: translateY(-5px);
  border-color: rgba(0,201,167,.5);
  box-shadow: 0 18px 48px rgba(0,0,0,.38), 0 0 0 1px rgba(0,201,167,.12);
}
.bc-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.bc-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--grey);
  font-weight: 500;
}
.bc-dot { opacity: .5; }
.bc-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.01em;
  flex: 1;
}
.bc-title a {
  color: var(--white);
  text-decoration: none;
  transition: color .2s;
}
.bc-title a:hover { color: var(--teal); }
.bc-excerpt {
  font-size: 13px;
  color: var(--grey);
  line-height: 1.7;
}
.bc-footer {
  padding: 14px 20px;
  border-top: 1px solid var(--teal-border);
  background: rgba(0,0,0,.12);
}
.btn-read-more {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 600;
  font-family: var(--font-sans);
  color: var(--teal);
  text-decoration: none;
  transition: gap .2s, opacity .2s;
}
.btn-read-more:hover { gap: 11px; opacity: .85; }

/* PAGINATION */
.pagination-wrap {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 80px;
  flex-wrap: wrap;
}
.pagination-wrap a,
.pagination-wrap span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  font-family: var(--font-sans);
  text-decoration: none;
  border: 1px solid rgba(255,255,255,.1);
  color: var(--grey);
  background: rgba(255,255,255,.04);
  transition: border-color .2s, color .2s, background .2s;
}
.pagination-wrap a:hover {
  border-color: rgba(0,201,167,.4);
  color: var(--teal);
  background: rgba(0,201,167,.08);
}
.pagination-wrap .active,
.pagination-wrap span[aria-current="page"] {
  background: var(--teal);
  color: #052118;
  border-color: var(--teal);
  pointer-events: none;
}
.pagination-wrap .disabled,
.pagination-wrap span.disabled {
  opacity: .35;
  pointer-events: none;
}

/* SINGLE POST */
.post-layout {
  max-width: 740px;
  margin: 0 auto;
  padding: 64px 0 80px;
}
.post-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--grey);
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.post-meta-dot { opacity: .4; }
.post-tag {
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--teal);
  font-weight: 700;
  background: rgba(0,201,167,.1);
  border: 1px solid rgba(0,201,167,.2);
  padding: 4px 10px;
  border-radius: 4px;
}
.post-title {
  font-family: var(--font-display);
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin-bottom: 32px;
  color: var(--white);
}
.post-divider {
  height: 1px;
  background: var(--teal-border);
  margin-bottom: 40px;
}

/* ARTICLE TYPOGRAPHY */
.post-content {
  color: #c8d8e8;
  font-size: 16px;
  line-height: 1.8;
  word-break: break-word;
}
.post-content h2 {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.8vw, 26px);
  font-weight: 600;
  color: var(--white);
  margin: 44px 0 16px;
  letter-spacing: -0.015em;
  line-height: 1.25;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--teal-border);
}
.post-content h3 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  color: var(--white);
  margin: 30px 0 12px;
  letter-spacing: -0.01em;
}
.post-content p {
  margin-bottom: 20px;
}
.post-content p:last-child { margin-bottom: 0; }
.post-content ul, .post-content ol {
  margin: 0 0 20px 0;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.post-content li { line-height: 1.7; }
.post-content ul li { list-style: none; padding-left: 16px; position: relative; }
.post-content ul li::before {
  content: '✓';
  position: absolute;
  left: -4px;
  color: var(--teal);
  font-weight: 700;
  font-size: 13px;
}
.post-content strong { color: var(--white); font-weight: 600; }
.post-content code {
  font-family: ui-monospace, "Cascadia Code", "Source Code Pro", Menlo, Consolas, monospace;
  font-size: 13px;
  background: rgba(0,201,167,.1);
  border: 1px solid rgba(0,201,167,.2);
  color: #80f5de;
  padding: 2px 7px;
  border-radius: 4px;
}
.post-content pre {
  background: #0a1626;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 10px;
  padding: 20px 22px;
  margin: 24px 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.post-content pre code {
  background: none;
  border: none;
  padding: 0;
  font-size: 13px;
  color: #b8d0e8;
  line-height: 1.7;
}
.post-content a {
  color: var(--teal);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(0,201,167,.4);
  transition: text-decoration-color .2s;
}
.post-content a:hover { text-decoration-color: var(--teal); }

/* POST CTA BOX */
.post-cta-box {
  margin-top: 56px;
  background: linear-gradient(135deg, rgba(0,201,167,.1) 0%, rgba(0,80,200,.08) 100%);
  border: 1px solid rgba(0,201,167,.3);
  border-radius: 16px;
  overflow: hidden;
}
.pcta-inner {
  padding: clamp(28px, 4vw, 44px);
  text-align: center;
}
.pcta-icon {
  font-size: 32px;
  margin-bottom: 14px;
  display: block;
}
.pcta-heading {
  font-family: var(--font-display);
  font-size: clamp(20px, 3vw, 26px);
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.pcta-text {
  font-size: 14px;
  color: var(--grey);
  max-width: 460px;
  margin: 0 auto 28px;
  line-height: 1.7;
}
.pcta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}
.pcta-btn {
  font-size: 14px;
  padding: 12px 22px;
}

/* BACK LINK */
.post-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--grey);
  text-decoration: none;
  margin-bottom: 36px;
  transition: color .2s;
}
.post-back:hover { color: var(--teal); }

/* EMPTY STATE */
.blog-empty {
  text-align: center;
  padding: 80px 20px;
  color: var(--grey);
}
.blog-empty p { font-size: 15px; margin-bottom: 24px; }

/* RESPONSIVE */
@media (max-width: 768px) {
  .post-layout { padding: 40px 0 60px; }
  .post-title { margin-bottom: 24px; }
  .post-content pre { border-radius: 8px; padding: 16px; }
  .pcta-actions { flex-direction: column; }
  .pcta-btn { width: 100%; justify-content: center; }
  .blog-grid { grid-template-columns: 1fr; }
}
