/* TalentProof — Blog Index & Post (/blog/) */

/* ==========================================================================
   BLOG INDEX PAGE
   ========================================================================== */

body.page-blog {
  background: var(--bg-1, #0a0a0b);
}

body.page-blog .main {
  padding: 0;
  max-width: none;
}

/* ----- Hero ----- */
.bl-hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  padding-top: calc(var(--tp-nav-fixed-offset, 62px) + clamp(64px, 10vh, 120px));
  padding-bottom: clamp(48px, 8vh, 80px);
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.bl-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: var(--bg-1, #0a0a0b);
  background-image: radial-gradient(ellipse 80% 60% at 50% 120%, rgba(255, 45, 45, 0.05) 0%, transparent 60%);
}

.bl-hero__grain {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0.032;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.bl-hero__wm {
  z-index: 1;
  top: 60%;
}

.bl-hero__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-inline: var(--inset);
  max-width: 64rem;
}

.bl-eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 clamp(16px, 2.5vh, 24px);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
}

.bl-eyebrow__pip {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--red, #ff2d2d);
  flex-shrink: 0;
  box-shadow: 0 0 8px rgba(255, 45, 45, 0.55);
}

.bl-hero__title {
  margin: 0 0 clamp(20px, 3vh, 32px);
  font-family: var(--font-sans);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.04em;
  text-transform: uppercase;
}

.bl-hero__line {
  display: block;
}

.bl-hero__line--ghost { color: rgba(255, 255, 255, 0.32); }
.bl-hero__line--white { color: var(--white, #fff); }
.bl-hero__line--red {
  color: var(--red, #ff2d2d);
  text-shadow: 0 0 40px rgba(255, 45, 45, 0.25);
}

.bl-hero__lead {
  margin: 0 0 clamp(32px, 5vh, 48px);
  max-width: 40rem;
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  font-weight: 300;
  line-height: 1.55;
  color: var(--text-muted, #9ca3af);
}

/* ----- Filter ----- */
.bl-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.bl-filter__btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.6);
  padding: 8px 16px;
  border-radius: 20px;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.bl-filter__btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.bl-filter__btn.active {
  background: var(--white, #fff);
  color: var(--black, #000);
  border-color: var(--white, #fff);
}

/* ----- Grid ----- */
.bl-grid-section {
  padding-block: clamp(48px, 8vh, 96px);
}

.bl-rail {
  width: 100%;
  max-width: var(--content-max-width, 1200px);
  margin-inline: auto;
  padding-inline: var(--inset);
}

.bl-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(24px, 3vw, 40px);
}

/* ----- Cards ----- */
.bl-card {
  position: relative;
  grid-column: span 4;
  display: flex;
  flex-direction: column;
  background: var(--surface-1, #18181b);
  border: 1px solid var(--border-1, #27272a);
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.bl-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.bl-card--featured {
  grid-column: span 8;
  flex-direction: row;
}

.bl-card__link {
  position: absolute;
  inset: 0;
  z-index: 10;
}

.bl-card__image-wrap {
  position: relative;
  aspect-ratio: 16/9;
  background: #111;
  overflow: hidden;
  border-bottom: 1px solid var(--border-1, #27272a);
}

.bl-card--featured .bl-card__image-wrap {
  width: 50%;
  aspect-ratio: auto;
  border-bottom: none;
  border-right: 1px solid var(--border-1, #27272a);
}

.bl-card__image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.5s ease;
}

.bl-card:hover .bl-card__image-placeholder {
  transform: scale(1.03);
}

.bl-card__image-icon {
  font-size: 48px;
  color: rgba(255, 45, 45, 0.4);
}

.bl-card__content {
  display: flex;
  flex-direction: column;
  padding: clamp(20px, 2.5vw, 32px);
  flex: 1;
}

.bl-card--featured .bl-card__content {
  width: 50%;
  justify-content: center;
}

.bl-card__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
  font-size: 12px;
  font-weight: 500;
}

.bl-card__tag {
  color: var(--red, #ff2d2d);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.bl-card__date, .bl-card__time {
  color: rgba(255, 255, 255, 0.4);
}

.bl-card__title {
  margin: 0 0 12px;
  font-size: clamp(1.25rem, 1.8vw, 1.5rem);
  font-weight: 700;
  line-height: 1.3;
  color: var(--white, #fff);
  transition: color 0.2s ease;
}

.bl-card--featured .bl-card__title {
  font-size: clamp(1.5rem, 2.2vw, 2rem);
  margin-bottom: 16px;
}

.bl-card:hover .bl-card__title {
  color: var(--red, #ff2d2d);
}

.bl-card__excerpt {
  margin: 0 0 24px;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--text-secondary, #b4b4bd);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.bl-card__read {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--white, #fff);
  margin-top: auto;
  transition: gap 0.2s ease;
}

.bl-card:hover .bl-card__read {
  gap: 10px;
}

/* ----- Load More ----- */
.bl-load-more {
  display: flex;
  justify-content: center;
  margin-top: clamp(48px, 8vh, 80px);
}

.bl-load-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.8);
  padding: 12px 24px;
  border-radius: 30px;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.bl-load-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.3);
  color: #fff;
}

@keyframes bl-fade-up {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   BLOG POST PAGE
   ========================================================================== */

body.page-blog-post {
  background: var(--bg-1, #0a0a0b);
  /* Tighter side gutters so the article doesn't float in a thin center strip */
  --inset: clamp(20px, 3.5vw, 48px);
}

body.page-blog-post .main {
  padding: 0;
  max-width: none;
}

.bp-article {
  padding-top: calc(var(--tp-nav-fixed-offset, 62px) + clamp(40px, 6vh, 80px));
}

.bp-rail {
  width: 100%;
  max-width: var(--content-max-width, 1200px);
  margin-inline: auto;
  padding-inline: var(--inset);
}

body.page-blog-post .bp-header .bp-rail {
  max-width: var(--content-max-width, 1200px);
}

/* ----- Header ----- */
.bp-header {
  margin-bottom: clamp(32px, 5vh, 48px);
}

.bp-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  margin-bottom: clamp(32px, 5vh, 48px);
  transition: color 0.2s ease;
}

.bp-back:hover {
  color: #fff;
}

.bp-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 20px;
  font-size: 13px;
  font-weight: 500;
}

.bp-tag {
  color: var(--red, #ff2d2d);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 10px;
  background: rgba(255, 45, 45, 0.1);
  border-radius: 4px;
}

.bp-date, .bp-time {
  color: rgba(255, 255, 255, 0.4);
}

.bp-title {
  margin: 0 0 24px;
  font-family: var(--font-sans);
  font-size: clamp(2rem, 4.2vw, 3.75rem);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--white, #fff);
  text-wrap: balance;
  max-width: min(18ch, 100%);
}

.bp-lead {
  margin: 0 0 32px;
  font-size: clamp(1.125rem, 1.6vw, 1.375rem);
  font-weight: 300;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.7);
  max-width: 62ch;
}

.bp-author {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.bp-author__avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--surface-2, #1f1f23);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
  color: var(--white, #fff);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.bp-author__info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.bp-author__name {
  font-size: 15px;
  font-weight: 600;
  color: var(--white, #fff);
}

.bp-author__role {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.4);
}

/* ----- Hero Image ----- */
.bp-hero-image {
  width: 100%;
  max-width: var(--content-max-width, 1200px);
  margin-inline: auto;
  padding-inline: var(--inset);
  margin-bottom: clamp(48px, 8vh, 80px);
}

.bp-hero-image__inner {
  width: 100%;
  aspect-ratio: 21/9;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.bp-hero-image__icon {
  font-size: 80px;
  color: rgba(255, 45, 45, 0.3);
}

/* ----- Content Layout ----- */
.bp-content-wrap {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: clamp(28px, 4vw, 56px);
  width: 100%;
  max-width: var(--content-max-width, 1200px);
  margin-inline: auto;
  padding-inline: var(--inset);
  padding-bottom: clamp(64px, 10vh, 120px);
}

.bp-share {
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: sticky;
  top: 120px;
  height: fit-content;
  padding-top: 8px;
}

.bp-share__label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.3);
  margin-bottom: 8px;
}

.bp-share__link {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  font-size: 14px;
  font-family: inherit;
  padding: 0;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.bp-share__link:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

/* ----- Typography (The Reading Experience) ----- */
.bp-content {
  max-width: none;
  width: 100%;
}

.bp-content p {
  margin: 0 0 1.5em;
  font-family: var(--font-sans);
  font-size: clamp(1.0625rem, 1.4vw, 1.1875rem);
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.78);
}

.bp-content h2 {
  margin: 2em 0 1em;
  font-size: clamp(1.5rem, 2.2vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--white, #fff);
}

.bp-content h3 {
  margin: 1.8em 0 0.8em;
  font-size: clamp(1.25rem, 1.8vw, 1.5rem);
  font-weight: 700;
  color: var(--white, #fff);
}

.bp-content strong {
  font-weight: 600;
  color: rgba(255, 255, 255, 0.95);
}

.bp-content em {
  font-style: italic;
  color: rgba(255, 255, 255, 0.95);
}

.bp-content ul, .bp-content ol {
  margin: 0 0 1.5em;
  padding-left: 1.5em;
  font-size: clamp(1.0625rem, 1.4vw, 1.1875rem);
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.78);
}

.bp-content li {
  margin-bottom: 0.5em;
}

.bp-content li::marker {
  color: var(--red, #ff2d2d);
}

.bp-content blockquote {
  margin: 2.5em 0;
  padding: 2em;
  background: rgba(255, 45, 45, 0.03);
  border-left: 2px solid var(--red, #ff2d2d);
  border-radius: 0 12px 12px 0;
}

.bp-content blockquote p {
  margin: 0;
  font-size: clamp(1.25rem, 1.8vw, 1.5rem);
  font-weight: 300;
  font-style: italic;
  line-height: 1.5;
  color: var(--white, #fff);
}

.bp-table-wrap {
  margin: 2.5em 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
}

.bp-table {
  width: 100%;
  min-width: 32rem;
  border-collapse: collapse;
  font-size: 14px;
  line-height: 1.45;
}

.bp-table th,
.bp-table td {
  padding: 12px 14px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.bp-table thead th {
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.85);
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.bp-table tbody th {
  color: rgba(255, 255, 255, 0.75);
  font-weight: 600;
  white-space: nowrap;
}

.bp-table tbody td {
  color: rgba(255, 255, 255, 0.55);
}

.bp-table tbody tr:last-child th,
.bp-table tbody tr:last-child td {
  border-bottom: none;
}

.bp-figure {
  margin: 2.5em 0;
}

.bp-figure__placeholder {
  width: 100%;
  aspect-ratio: 16/9;
  background: var(--surface-2, #1f1f23);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.3);
  font-size: 14px;
  font-family: var(--font-mono, monospace);
}

.bp-figure figcaption {
  margin-top: 12px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.4);
  text-align: center;
}

.bp-hr {
  border: none;
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
  margin: 4em 0;
}

/* ----- Inline CTA Box ----- */
.bp-cta-box {
  background: var(--surface-1, #18181b);
  border: 1px solid rgba(255, 45, 45, 0.3);
  border-radius: 16px;
  padding: 32px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.bp-cta-box::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--red, #ff2d2d);
}

.bp-cta-box h3 {
  margin: 0 0 12px !important;
}

.bp-cta-box p {
  margin: 0 0 24px !important;
  font-size: 1rem !important;
}

.bp-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--red, #ff2d2d);
  color: #fff;
  padding: 12px 24px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease;
}

.bp-cta-btn:hover {
  background: #e01f1f;
  transform: translateY(-2px);
}

/* ----- Related Posts ----- */
.bp-related {
  padding-block: clamp(64px, 10vh, 100px);
  background: var(--bg-2, #111113);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.bp-related__title {
  margin: 0 0 32px;
  font-size: 24px;
  font-weight: 800;
  color: var(--white, #fff);
}

.bp-related .bl-card {
  grid-column: span 6;
}

/* ----- Responsive ----- */
@media (max-width: 1024px) {
  .bl-card { grid-column: span 6; }
  .bl-card--featured { grid-column: span 12; }
}

@media (max-width: 900px) {
  .bp-content-wrap {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  
  .bp-share {
    position: static;
    flex-direction: row;
    padding-top: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 24px;
  }

  .bp-share__label {
    display: none;
  }
}

@media (max-width: 767px) {
  .bl-card { grid-column: span 12; }
  
  .bl-card--featured {
    flex-direction: column;
  }
  
  .bl-card--featured .bl-card__image-wrap {
    width: 100%;
    aspect-ratio: 16/9;
    border-right: none;
    border-bottom: 1px solid var(--border-1, #27272a);
  }
  
  .bl-card--featured .bl-card__content {
    width: 100%;
  }

  .bp-related .bl-card {
    grid-column: span 12;
  }
}
