/* ========================================
   Blog listing — blog.html
   ======================================== */
.blog-hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 420px;
  padding: 80px 0 72px;
  overflow: hidden;
  background: #0a1d37;
}

.blog-hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
  z-index: 0;
}

.blog-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    105deg,
    rgba(10, 29, 55, 0.78) 0%,
    rgba(10, 29, 55, 0.58) 48%,
    rgba(10, 29, 55, 0.32) 100%
  );
}

.blog-hero-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
}

.blog-hero-kicker {
  display: inline-block;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.4rem 0.95rem;
  border-radius: 50px;
  margin-bottom: 1rem;
}

.blog-hero-title {
  color: #fff;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 1rem;
}

.blog-hero-text {
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.05rem;
  line-height: 1.75;
  margin: 0;
  max-width: 580px;
}

.blog-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: center;
  margin-bottom: 2.5rem;
}

.blog-filter {
  appearance: none;
  border: 1px solid var(--border-soft);
  background: #fff;
  color: var(--text-dark);
  font-family: "Inter", sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 0.5rem 1.05rem;
  border-radius: 50px;
  line-height: 1.3;
  cursor: pointer;
  transition: color 0.25s ease, background-color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.blog-filter:hover {
  color: var(--brand-blue);
  border-color: var(--brand-blue-soft);
  background: var(--brand-blue-soft);
}

.blog-filter.is-active {
  background: var(--brand-blue);
  border-color: var(--brand-blue);
  color: #fff;
}

.blog-empty {
  display: none;
  text-align: center;
  color: var(--text-muted);
  padding: 2rem 0;
}

.blog-grid.is-empty + .blog-empty,
.blog-empty.is-visible {
  display: block;
}

.page-blog .blog-grid .blog-card {
  border-radius: 16px;
}

.page-blog .blog-grid .blog-card-img {
  aspect-ratio: 16 / 9;
  max-height: none;
}

.page-blog .blog-grid .blog-card-img img {
  object-fit: cover;
  object-position: center;
}

.page-blog .blog-grid .blog-card-body {
  padding: 0.85rem 1rem 0.95rem;
}

.page-blog .blog-grid .blog-card-category {
  margin-bottom: 0.4rem;
  padding: 0.18rem 0.55rem;
  font-size: 0.68rem;
}

.page-blog .blog-grid .blog-card-title {
  font-size: 1rem;
  line-height: 1.3;
  margin-bottom: 0.35rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.page-blog .blog-grid .blog-card-excerpt {
  font-size: 0.86rem;
  line-height: 1.5;
  margin-bottom: 0.65rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.page-blog .blog-grid .blog-card-meta {
  margin-bottom: 0.55rem;
}

.page-blog .blog-grid .blog-read-more {
  margin-top: auto;
  align-self: flex-start;
  font-size: 0.86rem;
}

@media (max-width: 991.98px) {
  .blog-hero {
    min-height: 360px;
    padding: 64px 0 52px;
  }
}

@media (max-width: 767.98px) {
  .blog-hero {
    min-height: 0;
    padding: 48px 0 40px;
  }

  .blog-hero-text {
    max-width: none;
    font-size: 0.98rem;
  }

  .blog-filters {
    justify-content: flex-start;
    gap: 0.5rem;
  }

  .blog-filter {
    font-size: 0.82rem;
    padding: 0.45rem 0.9rem;
  }
}

@media (max-width: 575.98px) {
  .blog-hero-kicker {
    font-size: 0.7rem;
  }
}
