.blog-page .main-content {
  width: 100%;
}

.blog-list {
  width: min(1080px, calc(100% - 32px));
  margin: 0 auto;
  padding: 48px 0 72px;
}

.blog-list-header {
  margin-bottom: 24px;
}

.blog-list-header h1 {
  margin: 0;
  font-size: 2.4rem;
  line-height: 1.4;
  letter-spacing: 0;
}

.blog-list-header p {
  max-width: 720px;
  margin: 8px 0 0;
  color: var(--bs-secondary-color);
  line-height: 2;
}

.blog-list-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}

.blog-post-card {
  border: 1px solid var(--bs-border-color);
  border-radius: 8px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.03);
}

.blog-post-card h2,
.blog-post-card p {
  margin-left: 20px;
  margin-right: 20px;
}

.blog-card-image {
  display: block;
  aspect-ratio: 16 / 9;
  width: 100%;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.06);
}

.blog-card-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.blog-post-card h2 {
  margin: 14px 20px 10px;
  font-size: 1.25rem;
  line-height: 1.7;
  letter-spacing: 0;
}

.blog-post-card a {
  color: var(--bs-emphasis-color);
  text-decoration: none;
}

.blog-post-card a:hover {
  color: var(--bs-link-hover-color);
}

.blog-post-card p,
.blog-empty {
  color: var(--bs-secondary-color);
  line-height: 2;
}

.blog-pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 32px;
}

.blog-pagination a,
.blog-pagination span {
  min-width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--bs-border-color);
  border-radius: 8px;
  padding: 0 12px;
  color: var(--bs-body-color);
  text-decoration: none;
  line-height: 1;
}

.blog-pagination a:hover,
.blog-pagination .active {
  border-color: var(--primary);
  background: rgba(59, 130, 246, 0.16);
  color: var(--bs-emphasis-color);
}

.blog-list-ad {
  grid-column: 1 / -1;
}

.blog-ad {
  width: 100%;
  margin: 30px 0 34px;
}

.blog-list-ad .blog-ad {
  margin: 6px 0;
}

.blog-ad__card {
  display: grid;
  grid-template-columns: minmax(180px, 32%) minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  position: relative;
  padding: 14px;
  border: 1px solid var(--bs-border-color);
  border-radius: 8px;
  color: var(--bs-body-color);
  text-decoration: none;
  background: rgba(255, 255, 255, 0.04);
  overflow: hidden;
}

.blog-ad__label {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  padding: 4px 9px;
  border-radius: 999px;
  color: #fff;
  background: rgba(15, 23, 42, 0.78);
  font-size: .68rem;
  line-height: 1.4;
}

.blog-ad__media {
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.06);
}

.blog-ad__media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.blog-ad__media--cover img {
  object-fit: cover;
}

.blog-ad__title {
  margin: 0;
  font-size: 1.08rem;
  font-weight: 800;
  line-height: 1.7;
}

.blog-ad__subtitle {
  margin: 4px 0 0;
  color: var(--bs-secondary-color);
  line-height: 1.8;
}

.blog-ad__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-width: 92px;
  min-height: 40px;
  padding: 8px 14px;
  border-radius: 8px;
  color: #fff;
  background: var(--primary);
  font-weight: 800;
  white-space: nowrap;
}

.blog-article {
  width: min(920px, calc(100% - 32px));
  margin: 0 auto;
  padding: 56px 0 72px;
}

.blog-hero {
  border-bottom: 1px solid var(--bs-border-color);
  padding-bottom: 28px;
  margin-bottom: 32px;
}

.blog-meta,
.blog-keywords {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.blog-meta span,
.blog-keywords span {
  border: 1px solid var(--bs-border-color);
  border-radius: 999px;
  padding: 6px 12px;
  color: var(--bs-secondary-color);
  font-size: .9rem;
  line-height: 1.6;
}

.blog-hero h1 {
  margin: 20px 0 14px;
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.35;
  letter-spacing: 0;
}

.blog-excerpt {
  max-width: 760px;
  margin: 0 0 20px;
  color: var(--bs-secondary-color);
  font-size: 1.12rem;
  line-height: 2;
}

.blog-featured-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  margin: 26px 0 22px;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid var(--bs-border-color);
  background: rgba(255, 255, 255, 0.04);
}

.blog-featured-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.blog-content {
  color: var(--bs-body-color);
  font-size: 1.06rem;
  line-height: 2.25;
}

.blog-content p {
  margin-bottom: 18px;
}

@media (max-width: 768px) {
  .blog-ad__card {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .blog-ad__cta {
    width: 100%;
  }

  .blog-article {
    width: min(100% - 24px, 920px);
    padding: 32px 0 96px;
  }

  .blog-hero h1 {
    font-size: 2rem;
  }
}
