@import url("tokens.css");

/* =============================================================
   Blog page â€” hero (navy shape instead of photo), search/filter
   tools, featured article card and article grid.
   ============================================================= */

/* ============ HEADER BAR (navy strip behind nav only) ========= */
.blog-header-bar {
  background: var(--color-navy);
}

/* ============ HERO ============ */
.blog-hero {padding-top: 70px;}
.blog-hero__row {
  display: flex;
  align-items: center;
  width: 100%;
  gap: 40px;
}
.blog-hero__content {
  flex: 1;
  min-width: 0;
  padding-inline: 60px;
}
.blog-hero__content h1 {
  font-size: var(--fs-h1);
  max-width: 620px;
}
.blog-hero__content p {
  margin-top: 24px;
  max-width: 580px;
  font-size: var(--fs-body);
  color: var(--color-text-body);
  line-height: 1.65;
}
.blog-hero__shape {
  flex: 0 0 620px;
  height: 420px;
  background: var(--color-navy);
  border-radius: 0 210px 210px 0;
  overflow: hidden;
  position: absolute;
  left: 0;
}

/* ============ SEARCH + FILTER PILLS ============ */
.blog-hero__tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  margin-top: 100px;
}
.pill-row { display: flex; align-items: center; gap: 16px; }
.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 50px;
  padding-inline: 26px;
  border-radius: var(--radius-pill);
  font-size: 18px;
  font-weight: var(--fw-semibold);
  border: 1.5px solid var(--color-navy);
  color: var(--color-navy);
  background: transparent;
  white-space: nowrap;
}
.pill--active {
  background: var(--color-navy);
  color: var(--color-bg-white);
}

.search-box {
  position: relative;
  flex: 0 0 540px;
  height: 50px;
}
.search-box img {
  position: absolute;
  left: 22px;
  top: 50%;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
}
.search-box input {
  width: 100%;
  height: 100%;
  border: none;
  border-radius: var(--radius-md);
  background: var(--color-bg-white);
  padding-inline-start: 24px;
  padding-inline-end: 56px;
  font-size: 18px;
  color: var(--color-text-body);
}
.search-box input::placeholder { color: var(--color-text-muted); }

/* ============ FEATURED ARTICLE ============ */
.featured { padding-top: 70px; }
.featured-card {
  background: var(--color-bg-white);
  border-radius: var(--radius-lg);
  padding: 40px;
  display: flex;
  align-items: stretch;
  gap: 50px;
  flex-direction: row-reverse;
}
.featured-card__body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.featured-card__body h2 {
  font-size: var(--fs-h2-sub);
  line-height: 1.4;
}
.featured-card__body p {
  margin-top: 20px;
  font-size: 18px;
  color: var(--color-text-body);
  line-height: 1.6;
}
.featured-card__body .btn {
  margin-top: 30px;
  align-self: flex-start;
  min-width: 220px;
}
.featured-card__media {
  position: relative;
  flex: 0 0 44%;
  background: var(--color-navy);
  border-radius: var(--radius-md);
  min-height: 380px;
}
.badge-new {
  position: absolute;
  top: -34px;
  right: -24px;
  width: 120px;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.badge-new svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.badge-new span {
  position: relative;
  font-size: 22px;
  font-weight: var(--fw-extrabold);
  color: var(--color-navy);
}

/* ============ RECENT ARTICLES GRID ============ */
.recent { padding-top: 70px; padding-bottom: 60px; }
.recent__title {margin-bottom: 40px;}
.recent__title .eyebrow {font-size: var(--fs-h2-sub);}
.recent__title h2 { font-size: var(--fs-h2); }

.article-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px 30px;
}
.article-card__media {
  width: 100%;
  aspect-ratio: 420/300;
  background: var(--color-navy);
  border-radius: var(--radius-md);
}
.article-card h3 {
  margin-top: 24px;
  font-size: 22px;
  line-height: 1.4;
}
.article-card p {
  margin-top: 12px;
  font-size: 18px;
  color: var(--color-text-body);
  line-height: 1.55;
}

/* ============ PAGINATION ============ */
.pagination {
  padding-bottom: 90px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.pagination__line { flex: 1; border-top: 1px solid var(--color-navy); }
.pagination__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--color-navy);
  color: var(--color-navy);
  font-size: 18px;
  font-weight: var(--fw-semibold);
}
.pagination .btn--navy {
  border-radius: 6px;
  width: auto;
  min-width: 260px;
}
