/* =============================================================
   blog.css — Shared styles for insights.php and single.php
   Total Steels WP Theme
============================================================= */

/* ── CSS Variable bridge (map blog vars to Total Steels brand) ── */
:root {
  --bg:        #ffffff;
  --bg1:       #F8F8F8;
  --bg2:       #F0F0F0;
  --bg3:       #E8E8E8;
  --t1:        #111111;
  --t2:        #2F3133;
  --t3:        #6B7280;
  --bdr:       #E5E7EB;
  --bdr-md:    #D72821;
  --blue:      #D72821;
  --blue-dk:   #B61C16;
  --blue-lt:   #e05850;
  --blue-pale: rgba(215,40,33,.08);
  --sh:        0 10px 40px rgba(0,0,0,.10);
  --f-head:    'Gotham', sans-serif;
  --f-body:    'Inter', sans-serif;
  --section:   100px;
  --dur:       .28s;
  --ease:      cubic-bezier(0.2, 0.8, 0.4, 1);
  --r-sm:      10px;
  --r-md:      16px;
  --r-lg:      20px;
  --r-xl:      24px;
  --r-pill:    50px;
}

/* ── PAGE BANNER ─────────────────────────────────────────────── */
.page-banner {
  position: relative;
  min-height: 360px;
  display: flex;
  align-items: flex-end;
  padding: 140px 0 72px;
  overflow: hidden;
}
.pb-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}
.pb-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(4,4,13,.45) 0%, rgba(4,4,13,.80) 100%);
}
.pb-ghost {
  position: absolute;
  bottom: -10px;
  right: 5%;
  font-family: var(--f-head);
  font-size: clamp(80px, 14vw, 180px);
  font-weight: 800;
  color: rgba(255,255,255,.04);
  line-height: 1;
  user-select: none;
  pointer-events: none;
  letter-spacing: -.04em;
}
.pb-content {
  position: relative;
  z-index: 2;
}
.pb-crumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--f-body);
  font-size: .75rem;
  font-weight: 500;
  color: rgba(255,255,255,.50);
  margin-bottom: 20px;
}
.pb-crumb a {
  color: rgba(255,255,255,.70);
  text-decoration: none !important;
  transition: color var(--dur) var(--ease);
}
.pb-crumb a:hover { color: #fff; }
.pb-crumb span { color: rgba(255,255,255,.35); }
.pb-content h1 {
  font-family: var(--f-head);
  font-size: clamp(2rem, 5vw, 3.6rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
  letter-spacing: -.035em;
  margin-bottom: 16px;
}
.pb-content p {
  font-family: var(--f-body);
  font-size: 1rem;
  color: rgba(255,255,255,.60);
  line-height: 1.78;
  max-width: 560px;
  margin: 0;
}

/* ── SECTION WRAPPER ─────────────────────────────────────────── */
.sec {
  padding: var(--section) 0;
}
.container {
  max-width: 1200px;
  padding-inline: 20px;
  margin-inline: auto;
}

/* ── EYEBROW LABEL ───────────────────────────────────────────── */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--f-body);
  font-size: .68rem;
  font-weight: 700;
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: .12em;
  margin-bottom: 12px;
}
.eyebrow::before {
  content: '';
  display: block;
  width: 20px;
  height: 2px;
  background: var(--blue);
  border-radius: 2px;
}

/* ── SECTION HEADING ─────────────────────────────────────────── */
.h-section {
  font-family: var(--f-head);
  font-size: clamp(1.6rem, 3.2vw, 2.6rem);
  font-weight: 800;
  color: var(--t1);
  letter-spacing: -.03em;
  line-height: 1.15;
  margin-bottom: 8px;
}
.h-section em {
  font-style: italic;
  color: var(--blue);
}

/* ── FEATURED POST CARD ──────────────────────────────────────── */
.ins-featured {
  background: var(--bg);
  border: 1px solid var(--bdr);
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--sh);
}

/* ── ARTICLE CARD ────────────────────────────────────────────── */
.ins-card {
  background: var(--bg);
  border: 1px solid var(--bdr);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.ins-thumb {
  height: 210px;
  overflow: hidden;
  background: var(--bg2);
}
.ins-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.ins-body {
  padding: 24px 24px 20px;
}
.ins-cat {
  display: inline-block;
  font-family: var(--f-body);
  font-size: .65rem;
  font-weight: 700;
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: 6px;
}
.ins-date {
  display: block;
  font-family: var(--f-body);
  font-size: .72rem;
  color: var(--t3);
  margin-bottom: 10px;
}
.ins-title {
  font-family: var(--f-head);
  font-size: 1rem;
  font-weight: 700;
  color: var(--t1);
  line-height: 1.35;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ins-p {
  font-family: var(--f-body);
  font-size: .84rem;
  color: var(--t2);
  line-height: 1.72;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ins-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--f-body);
  font-size: .78rem;
  font-weight: 600;
  color: var(--blue);
  transition: gap var(--dur) var(--ease);
}

/* ── BUTTONS ─────────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: var(--blue);
  color: #fff !important;
  font-family: var(--f-body);
  font-size: .88rem;
  font-weight: 600;
  border-radius: var(--r-pill);
  text-decoration: none !important;
  border: 2px solid var(--blue);
  transition: all var(--dur) var(--ease);
  cursor: pointer;
}
.btn-primary:hover {
  background: var(--t1);
  border-color: var(--t1);
  color: #fff !important;
}
.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: transparent;
  color: var(--t1) !important;
  font-family: var(--f-body);
  font-size: .88rem;
  font-weight: 600;
  border-radius: var(--r-pill);
  text-decoration: none !important;
  border: 2px solid var(--t1);
  transition: all var(--dur) var(--ease);
}
.btn-outline:hover {
  background: var(--t1);
  color: #fff !important;
}
.btn-white {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: #fff;
  color: var(--t1) !important;
  font-family: var(--f-body);
  font-size: .88rem;
  font-weight: 700;
  border-radius: var(--r-pill);
  text-decoration: none !important;
  border: 2px solid #fff;
  transition: all var(--dur) var(--ease);
}
.btn-white:hover {
  background: transparent;
  color: #fff !important;
}
.btn-ghost-white {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: transparent;
  color: #fff !important;
  font-family: var(--f-body);
  font-size: .88rem;
  font-weight: 600;
  border-radius: var(--r-pill);
  text-decoration: none !important;
  border: 2px solid rgba(255,255,255,.40);
  transition: all var(--dur) var(--ease);
}
.btn-ghost-white:hover {
  background: rgba(255,255,255,.12);
  border-color: rgba(255,255,255,.70);
}

/* ── CTA BOX ─────────────────────────────────────────────────── */
.cta-box {
  text-align: center;
  padding: 80px 40px;
  background: var(--t1);
  border-radius: var(--r-xl);
}
.cta-box h2 {
  font-family: var(--f-head);
  font-size: clamp(1.6rem, 3.5vw, 2.8rem);
  font-weight: 800;
  color: #fff;
  letter-spacing: -.03em;
  line-height: 1.15;
  margin-bottom: 14px;
}
.cta-box h2 em {
  font-style: italic;
  color: var(--blue);
}
.cta-box p {
  font-family: var(--f-body);
  font-size: 1rem;
  color: rgba(255,255,255,.55);
  line-height: 1.78;
  max-width: 520px;
  margin: 0 auto 36px;
}

/* ── REVEAL ANIMATIONS ───────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .18s; }
.reveal.d3 { transition-delay: .28s; }
.reveal-l {
  opacity: 0;
  transform: translateX(-28px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}
.reveal-r {
  opacity: 0;
  transform: translateX(28px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}
.reveal-l.in,
.reveal-r.in {
  opacity: 1;
  transform: translateX(0);
}

/* ── RESPONSIVE ──────────────────────────────────────────────── */
@media (max-width: 991px) {
  :root { --section: 72px; }
  .page-banner { padding: 120px 0 56px; min-height: 280px; }
  .cta-box { padding: 56px 24px; }
}
@media (max-width: 767px) {
  :root { --section: 56px; }
  .ins-thumb { height: 180px; }
  .pb-ghost { display: none; }
}
