/* ==========================================================================
   3PEDIA DIGITAL — BLOG & ARTICLE STYLES (blog.css v4.0 · ZERO INLINE CSS)
   ========================================================================== */

/* --- BLOG HERO --- */
.blog-hero-centered {
  min-height: auto;
  padding: 130px 0 50px;
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}

.blog-hero-centered::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(var(--line) 1px, transparent 1px);
  background-size: 30px 30px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%);
  pointer-events: none;
}

.blog-hero-in {
  position: relative;
  z-index: 1;
  max-width: 980px;
  margin: 0 auto;
  text-align: center;
}

.blog-eyebrow-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-soft);
  border: 1px solid var(--line);
  padding: 6px 16px;
  border-radius: 999px;
  margin-bottom: 24px;
}

.blog-eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ink);
}

.blog-h1 {
  font-family: 'Archivo', sans-serif;
  font-stretch: 110%;
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.025em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 0 auto 20px;
}

.blog-hero-sub {
  max-width: 680px;
  margin: 0 auto;
  font-size: clamp(14.5px, 1.4vw, 16.5px);
  line-height: 1.68;
  color: var(--ink-soft);
  font-family: 'Space Grotesk', sans-serif;
}

/* --- FEATURED EDITOR'S PICK --- */
.featured {
  background: var(--bg);
}

.feat-card {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 36px;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 32px;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.feat-card:hover {
  border-color: var(--ink);
  box-shadow: var(--shadow);
}

.feat-visual {
  width: 100%;
  height: 320px;
  border-radius: 16px;
  overflow: hidden;
  background: #0A0A0A;
}

.feat-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.feat-card:hover .feat-visual img {
  transform: scale(1.04);
}

.feat-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.feat-tag {
  display: inline-block;
  width: fit-content;
  background: var(--ink);
  color: var(--bg);
  padding: 5px 12px;
  border-radius: 6px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.feat-title {
  font-family: 'Archivo', sans-serif;
  font-stretch: 108%;
  font-size: clamp(20px, 2.4vw, 28px);
  font-weight: 800;
  line-height: 1.25;
  margin: 6px 0 12px;
}

.feat-desc {
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--ink-soft);
  margin-bottom: 18px;
}

.feat-meta {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-faint);
  margin-bottom: 20px;
}

.feat-cta-btn {
  width: fit-content;
}

/* --- CATEGORY FILTERS & BLOG GRID --- */
.filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.filter-btn {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 11px 20px;
  border-radius: 30px;
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line);
  cursor: pointer;
  transition: all 0.25s ease;
}

.filter-btn:hover {
  border-color: var(--ink);
}

.filter-btn.on {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}

.b-card.is-filtered-out {
  display: none !important;
}

/* --- NEWSLETTER SECTION --- */
.news {
  background: var(--panel);
  color: var(--panel-ink);
  padding: 110px 0;
  position: relative;
  overflow: hidden;
}

.news::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(244, 244, 244, 0.08) 1px, transparent 1px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(ellipse 60% 70% at 50% 50%, #000, transparent 75%);
  mask-image: radial-gradient(ellipse 60% 70% at 50% 50%, #000, transparent 75%);
}

.news-in {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.news-eyebrow {
  justify-content: center;
  color: rgba(244, 244, 244, 0.6);
}

.news-eyebrow::before {
  background: rgba(244, 244, 244, 0.6);
}

.news-h {
  font-family: 'Archivo', sans-serif;
  font-stretch: 112%;
  font-size: clamp(24px, 3.4vw, 38px);
  font-weight: 800;
  text-transform: uppercase;
  line-height: 1.1;
  margin-bottom: 16px;
}

.news-sub {
  font-size: 14.5px;
  color: rgba(244, 244, 244, 0.6);
  line-height: 1.7;
  margin-bottom: 34px;
}

.news-form {
  display: flex;
  gap: 10px;
  max-width: 440px;
  margin: 0 auto;
  flex-wrap: wrap;
  justify-content: center;
}

.news-input {
  flex: 1;
  min-width: 220px;
  padding: 15px 18px;
  border: 1px solid rgba(244, 244, 244, 0.2);
  background: transparent;
  color: #ffffff;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 13.5px;
}

.news-input::placeholder {
  color: rgba(244, 244, 244, 0.4);
}

.news-input:focus {
  outline: none;
  border-color: #ffffff;
}

.news-submit-btn {
  background: #F4F4F4;
  color: #0A0A0A;
  border-color: #F4F4F4;
}

.news-submit-btn:hover {
  background: #ffffff;
  color: #0A0A0A;
}

.news-msg {
  display: none;
  margin-top: 14px;
  color: #1FA855;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 13.5px;
}

.news-msg.show {
  display: block;
}

/* --- RESPONSIVE --- */
@media (max-width: 860px) {
  .feat-card {
    grid-template-columns: 1fr;
    padding: 24px;
    gap: 24px;
  }
  .feat-visual {
    height: 230px;
  }
}

@media (max-width: 640px) {
  .news-form {
    flex-direction: column;
  }
}
/* ==========================================================================
   SINGLE ARTICLE LAYOUT (blog-single.php)
   ========================================================================== */
.post-hero {
  padding: 150px 0 60px;
  border-bottom: 1px solid var(--line);
}

.post-hero .wrap {
  max-width: 820px;
}

.post-tag {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 20px;
}

.post-hero h1 {
  font-family: 'Archivo', sans-serif;
  font-stretch: 110%;
  font-weight: 800;
  font-size: clamp(30px, 5vw, 50px);
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.post-meta-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 28px;
  flex-wrap: wrap;
}

.post-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.post-author-av {
  width: 38px;
  height: 38px;
  border: 1px solid var(--ink);
  overflow: hidden;
  flex-shrink: 0;
}

.post-author-av img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post-author b {
  display: block;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 13.5px;
  font-weight: 600;
}

.post-author span {
  font-size: 11.5px;
  color: var(--ink-faint);
}

.post-meta-sep {
  width: 1px;
  height: 24px;
  background: var(--line);
}

.post-stat {
  font-size: 12.5px;
  color: var(--ink-faint);
  font-family: 'Space Grotesk', sans-serif;
}

.post-body {
  max-width: 820px;
  margin: 0 auto;
  padding: 44px 24px 90px;
}

.post-featured-media {
  margin-bottom: 36px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
  background: var(--surface);
}

.post-featured-media img {
  width: 100%;
  height: auto;
  display: block;
}

.post-body p {
  font-size: 16.5px;
  line-height: 1.82;
  color: var(--ink-soft);
  margin-bottom: 22px;
}

.post-body h2 {
  font-family: 'Archivo', sans-serif;
  font-stretch: 110%;
  font-weight: 800;
  font-size: clamp(22px, 3vw, 28px);
  letter-spacing: -0.01em;
  margin: 48px 0 18px;
  text-transform: uppercase;
  scroll-margin-top: 110px;
}

.post-body h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 18px;
  font-weight: 600;
  margin: 30px 0 10px;
}

.post-body strong {
  color: var(--ink);
  font-weight: 600;
}

.post-body blockquote {
  background: var(--surface);
  border-left: 4px solid var(--ink);
  padding: 20px 24px;
  margin: 32px 0;
  font-family: 'Archivo', sans-serif;
  font-stretch: 108%;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.45;
}

.post-callout {
  background: var(--surface);
  border-left: 4px solid var(--ink);
  border-radius: 12px;
  padding: 24px;
  margin: 28px 0;
}

.blog-step-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 28px 0 36px;
}

.blog-step-card {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px;
}

.blog-step-num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 13.5px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 8px;
  background: var(--ink);
  color: var(--bg);
  flex-shrink: 0;
}

.post-cta {
  border: 1px solid var(--ink);
  padding: 36px;
  margin: 48px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.post-cta h4 {
  font-family: 'Archivo', sans-serif;
  font-stretch: 110%;
  font-weight: 800;
  font-size: 20px;
  text-transform: uppercase;
}

.post-cta p {
  font-size: 13.5px;
  color: var(--ink-soft);
  margin: 6px 0 0;
  max-width: 400px;
}

.author-box {
  display: flex;
  gap: 20px;
  padding: 32px 0;
  border-top: 1px solid var(--line);
  margin-top: 20px;
}

.author-box .ab-img {
  width: 64px;
  height: 64px;
  border: 1px solid var(--ink);
  overflow: hidden;
  flex-shrink: 0;
}

.author-box .ab-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.author-box b {
  display: block;
  font-family: 'Archivo', sans-serif;
  font-stretch: 110%;
  font-size: 16px;
  font-weight: 800;
  text-transform: uppercase;
}

.author-box span {
  font-size: 12.5px;
  color: var(--ink-faint);
}

.author-box p {
  font-size: 13.5px;
  color: var(--ink-soft);
  margin-top: 8px;
  line-height: 1.6;
}

@media (max-width: 860px) {
  .post-cta {
    flex-direction: column;
    align-items: flex-start;
    padding: 28px 22px;
  }
}