.blog-listing {
  --blog-blue: #2f61d1;
  background: #1e1e1e;
  color: #1e1e1e;
}

.blog-listing__container {
  max-width: 1260px;
  padding: 0 10px;
  margin: 0 auto;
  width: 100%;
}

.blog-hero {
  min-height: 435px;
  padding: 160px 0 80px;
  color: #fff;
}

.blog-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  line-height: 25px;
  margin-bottom: 24px;
}

.blog-breadcrumbs a {
  color: #fff;
}

.blog-breadcrumbs > span:first-of-type {
  color: var(--blog-blue);
}

.blog-breadcrumbs [aria-current] {
  color: #ffffff4d;
}

.blog-hero h1 {
  margin: 0;
  font-size: 60px;
  line-height: 1.1;
  font-weight: 700;
  text-transform: uppercase;
}

.blog-content {
  background: #fff;
  border-radius: 60px 60px 0 0;
  padding: 80px 0;
}

.blog-filters {
  display: flex;
  gap: 8px;
  padding: 12px;
  border-radius: 24px;
  background: #f4f7fc;
  width: fit-content;
  max-width: 100%;
  flex-wrap: wrap;
  margin-bottom: 80px;
}

.blog-filters__toggle {
  display: none;
}

.blog-filters__options {
  display: contents;
}

.blog-filter {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 20px 24px;
  border-radius: 18px;
  background: #fff;
  color: #1e1e1e;
  font-size: 16px;
  line-height: 1.5;
  transition: background 0.2s, color 0.2s;
}

.blog-filter span {
  color: #686868;
}

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

.blog-filter.is-active span, .blog-filter:hover span {
  color: #ffffff80;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(60, minmax(0, 1fr));
  gap: 64px 0;
  margin: 0 -10px;
}

.blog-card {
  grid-column: span 20;
  min-width: 0;
  margin: 0 10px;
}

.blog-card:nth-child(10n+1), .blog-card:nth-child(10n+7) {
  grid-column: span 44;
}

.blog-card:nth-child(10n+2), .blog-card:nth-child(10n+6) {
  grid-column: span 16;
}

.blog-card__link {
  display: block;
  position: relative;
  color: inherit;
  height: 100%;
}

.blog-card__media {
  position: relative;
  aspect-ratio: 1;
  border-radius: 36px;
  overflow: hidden;
  background: #f4f7fc;
}

.blog-card__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1);
  transform-origin: center;
  transition: transform 0.45s ease;
}

.blog-card__link:hover .blog-card__image,
.blog-card__link:focus-visible .blog-card__image {
  transform: scale(1.06);
}

.blog-card__category {
  position: absolute;
  z-index: 2;
  left: 24px;
  top: 24px;
  max-width: calc(100% - 48px);
  padding: 10px;
  background: #fff;
  color: #1e1e1e;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.3;
}

.blog-card__caption {
  margin-top: 24px;
}

.blog-card__caption time {
  display: block;
  color: #686868;
  font-size: 14px;
  line-height: 1.3;
  margin-bottom: 8px;
}

.blog-card__caption h2 {
  margin: 0;
  color: inherit;
  font-size: 16px;
  line-height: 1.25;
  font-weight: 700;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.blog-card:nth-child(10n+1) .blog-card__media, .blog-card:nth-child(10n+7) .blog-card__media {
  aspect-ratio: 902/485;
  height: 100%;
  min-height: 360px;
  background: #1e1e1e;
}

.blog-card:nth-child(10n+1) .blog-card__media::after, .blog-card:nth-child(10n+7) .blog-card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, #2f61d1 100%);
}

.blog-card:nth-child(10n+1) .blog-card__caption, .blog-card:nth-child(10n+7) .blog-card__caption {
  position: absolute;
  bottom: 32px;
  left: 32px;
  right: 32px;
  color: #fff;
}

.blog-card:nth-child(10n+1) time, .blog-card:nth-child(10n+7) time {
  color: #fff;
}

.blog-pagination {
  display: flex;
  justify-content: center;
  margin-top: 64px;
}

.blog-pagination:not(:has(.blog-more)) {
  display: none;
}

.blog-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 60px;
  padding: 18px 40px;
  border-radius: 36px;
  background: var(--blog-blue);
  color: #fff;
  text-transform: uppercase;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
  transition: background 0.2s;
}

.blog-more > span {
  font-size: 24px;
  font-weight: 400;
}

.blog-more:hover {
  background: #1e1e1e;
  color: #fff;
}

.blog-listing a:focus-visible {
  outline: 3px solid #3f6fda;
  outline-offset: 5px;
}

[data-blog-results][aria-busy=true] {
  opacity: 0.65;
  cursor: progress;
}

.blog-empty {
  padding: 40px 0;
}

@media (max-width: 991px) {
  .blog-hero {
    min-height: 330px;
    padding-top: 140px;
  }

  .blog-content {
    padding: 48px 0;
    border-radius: 40px 40px 0 0;
  }

  .blog-filters {
    margin-bottom: 48px;
  }

  .blog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 40px 0;
  }

  .blog-grid .blog-card {
    grid-column: span 1;
  }

  .blog-grid .blog-card:nth-child(10n+1), .blog-grid .blog-card:nth-child(10n+7) {
    grid-column: span 2;
  }
}
@media (max-width: 575px) {
  .blog-hero {
    min-height: 280px;
    padding: 120px 0 64px;
  }

  .blog-hero h1 {
    font-size: 40px;
  }

  .blog-content {
    border-radius: 30px 30px 0 0;
    padding: 32px 0 48px;
  }

  .blog-filters {
    position: relative;
    display: block;
    width: 100%;
    padding: 8px;
    border-radius: 20px;
    margin-bottom: 32px;
    overflow: visible;
  }

  .blog-filters__toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 56px;
    padding: 0 16px;
    border: 0;
    border-radius: 14px;
    background: transparent;
    color: #1e1e1e;
    font: inherit;
    font-size: 14px;
    line-height: 1.5;
    text-align: left;
    cursor: pointer;
  }

  .blog-filters__toggle b {
    color: var(--blog-blue);
    font-weight: 400;
  }

  .blog-filters__toggle i {
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 8px solid #1e1e1e;
    transition: transform 0.25s ease;
  }

  .blog-filters.is-open .blog-filters__toggle i {
    transform: rotate(180deg);
  }

  .blog-filters__options {
    position: absolute;
    z-index: 20;
    top: calc(100% + 8px);
    right: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 8px;
    border-radius: 16px;
    background: #f4f7fc;
    box-shadow: 0 12px 30px rgba(30, 30, 30, 0.14);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
  }

  .blog-filters.is-open .blog-filters__options {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .blog-filter {
    justify-content: flex-start;
    width: 100%;
    padding: 14px 16px;
    font-size: 14px;
    border-radius: 14px;
  }

  .blog-grid {
    display: flex;
    flex-direction: column;
    gap: 32px;
  }

  .blog-grid .blog-card {
    width: auto;
  }

  .blog-grid .blog-card .blog-card__media {
    width: 100%;
    height: auto;
    min-height: 0;
    aspect-ratio: 340 / 240;
    border-radius: 24px;
  }

  .blog-card__category {
    top: 20px;
    left: 20px;
  }

  .blog-grid .blog-card .blog-card__caption {
    position: static;
    inset: auto;
    margin-top: 16px;
    color: #1e1e1e;
  }

  .blog-card:nth-child(10n+1) .blog-card__media::after,
  .blog-card:nth-child(10n+7) .blog-card__media::after {
    display: none;
  }

  .blog-card:nth-child(10n+1) time,
  .blog-card:nth-child(10n+7) time {
    color: #686868;
  }

  .blog-pagination {
    margin-top: 40px;
  }

  .blog-more {
    width: 100%;
  }
}
@media (prefers-reduced-motion: reduce) {
  .blog-listing * {
    transition: none !important;
  }
}
