/* Blog listing page styles */

:root {
  --bg-off-white: #f8f8f8;
  --bg-dark: #0a1628;
  --text-dark: #111;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Montserrat', system-ui, sans-serif;
  background: #fff;
  color: var(--text-body);
  -webkit-font-smoothing: antialiased;
}

/* ── Accent Bar ── */
.blog-accent-bar {
  height: 6px;
  background: linear-gradient(90deg, var(--primary-blue), #3a7ae8);
  width: 100%;
}

/* ── Hero ── */
.blog-hero {
  padding: clamp(3rem, 6vw, 6rem) clamp(1.25rem, 5vw, 6rem) clamp(2.5rem, 5vw, 5rem);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 4vw, 4rem);
  align-items: end;
  background: #fff;
  max-width: 1320px;
  margin: 0 auto;
}

.blog-hero__eyebrow {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--accent-light-red);
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.blog-hero__headline {
  font-size: clamp(2.5rem, 6vw, 5.5rem);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.03em;
  color: #111;
}

.blog-hero__headline span {
  display: block;
}

.blog-hero__right {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  padding-bottom: 0.5rem;
  gap: 2.5rem;
}

.blog-hero__description {
  max-width: 28rem;
  font-size: 1rem;
  line-height: 1.7;
  color: #666;
  padding-left: 1.5rem;
  border-left: 3px solid var(--cta-accent);
}

.blog-hero__stats {
  display: flex;
  gap: 2.5rem;
}

.blog-hero__stat-value {
  font-size: 2rem;
  font-weight: 900;
  color: var(--primary-blue);
  letter-spacing: -0.03em;
  line-height: 1;
  display: block;
  margin-bottom: 0.3rem;
}

.blog-hero__stat-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #aaa;
}

/* ── Divider ── */
.blog-divider {
  border: none;
  height: 1px;
  background: #e5e5e5;
  margin: 0 clamp(1.25rem, 5vw, 6rem);
  max-width: 1320px;
}

/* ── Featured Article ── */
.blog-featured {
  padding: clamp(3rem, 5vw, 5rem) clamp(1.25rem, 5vw, 6rem);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: center;
  max-width: 1320px;
  margin: 0 auto;
}

.blog-featured__image {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 14px;
  display: block;
}

.blog-featured__content {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.blog-featured__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--primary-blue);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.45rem 1.1rem;
  border-radius: 999px;
  width: fit-content;
}

.blog-featured__meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.blog-featured__category {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-light-red);
}

.blog-featured__meta-divider {
  width: 1px;
  height: 12px;
  background: #ddd;
}

.blog-featured__date,
.blog-featured__read-time {
  font-size: 0.78rem;
  font-weight: 600;
  color: #aaa;
}

.blog-featured__title {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #111;
}

.blog-featured__excerpt {
  font-size: 0.975rem;
  line-height: 1.75;
  color: #666;
  max-width: 32rem;
}

.blog-featured__link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--cta-accent);
  text-decoration: none;
  text-transform: uppercase;
  margin-top: 0.5rem;
  padding: 0.5rem 0;
  min-height: 44px;
  transition: gap 0.2s ease;
}

.blog-featured__link:hover {
  gap: 0.7rem;
}

.blog-featured__link svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ── More Articles Section ── */
.blog-more {
  background: #f5f5f5;
  padding: clamp(3rem, 5vw, 5rem) clamp(1.25rem, 5vw, 6rem);
}

.blog-more__inner {
  max-width: 1320px;
  margin: 0 auto;
}

.blog-more__header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.blog-more__title {
  font-size: clamp(1.25rem, 2.5vw, 1.6rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--text-dark);
}

.blog-more__count {
  font-size: 0.85rem;
  font-weight: 600;
  color: #999;
}

/* Empty state */
.blog-more__empty {
  background: #fff;
  border-radius: 16px;
  padding: 3.5rem 2.5rem;
  text-align: center;
  border: 2px dashed #e0e0e0;
}

.blog-more__empty-icon {
  width: 56px;
  height: 56px;
  background: rgba(0, 71, 171, 0.07);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
}

.blog-more__empty-icon svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: var(--primary-blue);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.blog-more__empty-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

.blog-more__empty-desc {
  font-size: 0.9rem;
  line-height: 1.6;
  color: #888;
  max-width: 26rem;
  margin: 0 auto;
}

/* Grid for when there are more posts */
.blog-more__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

/* ── Post Card (for the more grid) ── */
.post-card {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out);
}

.post-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.09);
}

.post-card__cover {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

.post-card__body {
  padding: 1.5rem 1.5rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  flex: 1;
}

.post-card__meta {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.post-card__category {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-light-red);
}

.post-card__divider {
  width: 1px;
  height: 11px;
  background: #ddd;
}

.post-card__date,
.post-card__read-time {
  font-size: 0.73rem;
  font-weight: 600;
  color: #aaa;
}

.post-card__title {
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: var(--text-dark);
}

.post-card__excerpt {
  font-size: 0.875rem;
  line-height: 1.65;
  color: #666;
  flex: 1;
}

.post-card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--primary-blue);
  margin-top: 0.25rem;
  transition: gap 0.2s ease;
}

.post-card__link svg {
  width: 13px;
  height: 13px;
  transition: transform 0.2s ease;
}

.post-card:hover .post-card__link {
  gap: 0.6rem;
}

.post-card:hover .post-card__link svg {
  transform: translateX(3px);
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .blog-hero {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .blog-hero__right {
    justify-content: flex-start;
    padding-bottom: 0;
  }

  .blog-featured {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .blog-more__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .blog-hero__stats {
    gap: 1.75rem;
  }

  .blog-more__grid {
    grid-template-columns: 1fr;
  }
}
