/* ===========================================================
   BLOG PAGE — News & Insights
   Built on the site's existing tokens from style.css :root
   --red:#EE3D25  --red-bright:#FF6A4D  --black:#0a0a0a
   --panel:#141414  --panel-light:#1c1c1c  --text-white:#ffffff
   --text-gray:#b3b3b3  --border-dim:#2a2a2a  --font: 'Segoe UI', Arial, Helvetica, sans-serif
=========================================================== */

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------------------------------------------------------
   HERO
--------------------------------------------------------- */
.blogHero {
  position: relative;
  overflow: hidden;
  background: var(--black);
  background-image:
    radial-gradient(ellipse 900px 600px at 85% 15%, rgba(238,61,37,0.35) 0%, rgba(238,61,37,0) 60%),
    linear-gradient(115deg, #0a0a0a 0%, #0a0a0a 45%, #1c0d0a 70%, #2c0f0a 100%);
  padding: 96px 0 84px;
  border-bottom: 3px solid var(--red);
}

.blogHero__inner {
  position: relative;
  z-index: 2;
  max-width: 640px;
}

.blogHero__pill {
  display: inline-block;
  background: var(--red);
  color: var(--text-white);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  padding: 7px 16px;
  border-radius: 4px;
  margin-bottom: 22px;
}

.blogHero__title {
  font-family: var(--font);
  font-size: 52px;
  line-height: 1.1;
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 18px;
}

.blogHero__subtitle {
  font-size: 17px;
  line-height: 1.6;
  color: var(--text-gray);
  max-width: 480px;
}

.blogHero__dot {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--red-bright);
  box-shadow: 0 0 14px rgba(255,106,77,0.9);
  z-index: 1;
}
.blogHero__dot--1 { top: 46px; left: 34%; }
.blogHero__dot--2 { top: 22px; left: 62%; width: 6px; height: 6px; }
.blogHero__dot--3 { bottom: 40px; left: 6%; }

.blogHero__square {
  position: absolute;
  top: 34px;
  right: 6%;
  width: 16px;
  height: 16px;
  border-radius: 3px;
  background: var(--red);
  transform: rotate(18deg);
  opacity: 0.85;
  z-index: 1;
}

@media (max-width: 640px) {
  .blogHero { padding: 64px 0 56px; }
  .blogHero__title { font-size: 34px; }
  .blogHero__subtitle { font-size: 15px; }
}

/* ---------------------------------------------------------
   CATEGORY TABS
--------------------------------------------------------- */
.blogTabsSection {
  background: var(--black);
  padding: 40px 0 0;
}

.blogTabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  border-bottom: 1px solid var(--border-dim);
  padding-bottom: 24px;
}

.blogTabs__tab {
  font-family: var(--font);
  font-size: 14px;
  font-weight: 700;
  color: var(--text-gray);
  background: var(--panel);
  border: 1px solid var(--border-dim);
  border-radius: 30px;
  padding: 10px 20px;
  cursor: pointer;
  transition: color .15s ease, background .15s ease, border-color .15s ease;
}

.blogTabs__tab:hover {
  color: var(--text-white);
  border-color: var(--red-bright);
}

.blogTabs__tab.is-active {
  color: var(--text-white);
  background: var(--red);
  border-color: var(--red);
}

.blogGrid__empty {
  color: var(--text-gray);
  font-size: 16px;
  text-align: center;
  padding: 40px 0;
}

@media (max-width: 640px) {
  .blogTabsSection { padding: 28px 0 0; }
  .blogTabs { gap: 8px; padding-bottom: 20px; }
  .blogTabs__tab { font-size: 13px; padding: 8px 16px; }
}

/* ---------------------------------------------------------
   GRID
--------------------------------------------------------- */
.blogGrid {
  background: var(--black);
  padding: 72px 0 96px;
}

.blogGrid__list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 34px 28px;
}

@media (max-width: 992px) {
  .blogGrid__list { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .blogGrid__list { grid-template-columns: 1fr; }
  .blogGrid { padding: 48px 0 64px; }
}

/* ---------------------------------------------------------
   CARD — dark photo banner + layered light content panel
--------------------------------------------------------- */
.blogCard {
  background: transparent;
  display: flex;
  flex-direction: column;
}

.blogCard__media {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 768 / 357;
  overflow: hidden;
  border-radius: 14px 14px 0 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: transform .35s ease;
  will-change: transform;
}

.blogCard:hover .blogCard__media { transform: scale(1.04); }

/* Fallback shown on cards for posts saved without a featured image —
   a centered, un-stretched logo on a dark panel instead of the site
   logo being stretched full-bleed (which reads as broken/cropped text). */
.blogCard__media--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--black) 0%, var(--panel) 100%);
}
.blogCard__placeholderLogo {
  width: 46%;
  max-width: 160px;
  height: auto;
  opacity: 0.92;
}
.blogCard:hover .blogCard__media--placeholder { transform: none; }

.blogCard__brand {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}
.blogCard__brand img {
  height: 22px;
  width: auto;
  filter: brightness(0) invert(1);
}
.blogCard__brand span { display: none; }

.blogCard__mediaText {
  position: relative;
  z-index: 2;
}
.blogCard__line {
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.45;
  font-weight: 700;
  color: var(--text-white);
}
.blogCard__line .hl {
  display: inline;
  background: var(--red);
  color: var(--text-white);
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
  padding: 3px 8px;
  border-radius: 3px;
}

.blogCard__body {
  position: relative;
  background: #f1f1f1;
  border-radius: 14px;
  margin: -22px 14px 0;
  padding: 24px 22px 26px;
  flex: 1;
  display: flex;
  flex-direction: column;
  z-index: 3;
  box-shadow: 0 14px 30px rgba(0,0,0,0.35);
}

.blogCard__meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
}
.blogCard__metaItem {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 600;
  color: #7a7a7a;
}
.blogCard__metaItem svg { width: 14px; height: 14px; flex-shrink: 0; color: var(--red); }

.blogCard__title {
  font-family: var(--font);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.35;
  color: #141414;
  margin-bottom: 10px;
}

.blogCard__excerpt {
  font-size: 14px;
  line-height: 1.65;
  color: #55586b;
  margin-bottom: 18px;
  flex: 1;
}

.blogCard__readmore {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--red);
  transition: gap .2s ease, color .2s ease;
}
.blogCard__readmore svg {
  width: 16px;
  height: 16px;
  transition: transform .2s ease;
}
.blogCard__readmore:hover { color: var(--red-bright); gap: 12px; }
.blogCard__readmore:hover svg { transform: translateX(2px); }