.blog-page {
  min-height: calc(100vh - 220px);
  padding: 20px 24px 38px;
  background: var(--demo-bg);
  color: #ffffff;
  font-family: 'Montserrat', 'Segoe UI', Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.blog-shell {
  width: min(100%, 1040px);
  margin: 0 auto;
}

.blog-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
  color: #536177;
  font-size: 9px;
  line-height: 12px;
  font-weight: 600;
  text-transform: uppercase;
}

.blog-breadcrumb-home {
  display: inline-flex;
  width: 18px;
  height: 18px;
  align-items: center;
  justify-content: center;
  color: #d5a11f;
}

.blog-breadcrumb-home svg {
  width: 15px;
  height: 15px;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.blog-page-header {
  margin-bottom: 18px;
  text-align: center;
}

.blog-page-header h1 {
  margin: 0;
  color: #ffffff;
  font-size: 18px;
  line-height: 22px;
  font-weight: 700;
  letter-spacing: 0;
}

.blog-hero-card {
  height: 260px;
  margin-bottom: 28px;
  overflow: hidden;
  border-radius: 7px;
  background: #111722;
}

.blog-hero-link {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
  color: inherit;
  text-decoration: none;
}

.blog-hero-media {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 240ms ease;
}

.blog-hero-link:hover .blog-hero-media {
  transform: scale(1.025);
}

.blog-hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(6, 10, 17, 0.92) 0%, rgba(6, 10, 17, 0.72) 42%, rgba(6, 10, 17, 0.1) 78%),
    linear-gradient(0deg, rgba(6, 10, 17, 0.34), transparent 55%);
}

.blog-hero-panel {
  position: absolute;
  top: 50%;
  left: 34px;
  display: flex;
  width: min(440px, calc(100% - 68px));
  flex-direction: column;
  transform: translateY(-50%);
}

.blog-category,
.post-category {
  display: inline-flex;
  width: max-content;
  align-items: center;
  justify-content: center;
  min-height: 19px;
  padding: 0 8px;
  border-radius: 3px;
  background: rgba(213, 161, 31, 0.16);
  color: #e0aa23;
  font-size: 8px;
  line-height: 10px;
  font-weight: 600;
  text-transform: uppercase;
}

.blog-hero-title {
  margin-top: 10px;
  color: #ffffff;
  font-size: 20px;
  line-height: 26px;
  font-weight: 700;
}

.blog-hero-description {
  display: -webkit-box;
  margin-top: 8px;
  overflow: hidden;
  color: #8795ae;
  font-size: 10px;
  line-height: 15px;
  font-weight: 500;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.blog-hero-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 17px;
}

.blog-meta,
.post-meta {
  display: flex;
  align-items: center;
  gap: 13px;
  color: #687894;
  font-size: 8px;
  line-height: 11px;
  font-weight: 500;
}

.blog-meta > span + span,
.post-meta > span + span {
  position: relative;
}

.blog-meta > span + span::before,
.post-meta > span + span::before {
  content: '';
  position: absolute;
  top: 50%;
  left: -8px;
  width: 3px;
  height: 3px;
  transform: translateY(-50%);
  border-radius: 50%;
  background: #536078;
}

.blog-read-more {
  display: inline-flex;
  height: 27px;
  align-items: center;
  gap: 7px;
  padding: 0 12px;
  border-radius: 4px;
  background: linear-gradient(180deg, #ffd560 0%, #d59104 100%);
  color: #ffffff;
  font-size: 9px;
  line-height: 11px;
  font-weight: 600;
}

.blog-read-more svg,
.post-arrow {
  width: 13px;
  height: 13px;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.blog-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.blog-section-title {
  margin: 0;
  color: #ffffff;
  font-size: 14px;
  line-height: 18px;
  font-weight: 600;
}

.blog-post-count {
  color: #536177;
  font-size: 8px;
  line-height: 11px;
  font-weight: 500;
}

.posts-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.post-card {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border-radius: 6px;
  background: #111722;
}

.post-card-link {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  color: inherit;
  text-decoration: none;
}

.post-img-wrap {
  position: relative;
  display: block;
  width: 100%;
  height: 142px;
  overflow: hidden;
  background: #161d29;
}

.post-img-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(8, 12, 20, 0.42), transparent 55%);
}

.post-img-wrap img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 220ms ease;
}

.post-card:hover .post-img-wrap img {
  transform: scale(1.035);
}

.post-category {
  position: absolute;
  bottom: 9px;
  left: 10px;
  z-index: 1;
  background: rgba(13, 18, 27, 0.84);
}

.post-body {
  display: flex;
  min-height: 132px;
  flex: 1;
  flex-direction: column;
  padding: 13px 14px 14px;
}

.post-title {
  display: -webkit-box;
  overflow: hidden;
  color: #f4f7ff;
  font-size: 11px;
  line-height: 15px;
  font-weight: 600;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.post-description {
  display: -webkit-box;
  margin-top: 7px;
  overflow: hidden;
  color: #687894;
  font-size: 9px;
  line-height: 13px;
  font-weight: 500;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.post-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 11px;
}

.post-author {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.post-author svg {
  width: 12px;
  height: 12px;
  stroke-width: 1.6;
}

.post-arrow {
  color: #687894;
  transition: color 160ms ease, transform 160ms ease;
}

.post-card:hover .post-arrow {
  color: #d5a11f;
  transform: translateX(2px);
}

.post-accent {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  background: #687894;
}

.post-card.ac-purple .post-accent { background: #975df8; }
.post-card.ac-red .post-accent { background: #eb4b4b; }
.post-card.ac-blue .post-accent { background: #4b69ff; }
.post-card.ac-yellow .post-accent { background: #ffd057; }
.post-card.ac-green .post-accent { background: #49df7b; }
.post-card.ac-gray .post-accent { background: #687894; }

.blog-empty-state {
  grid-column: 1 / -1;
  min-height: 126px;
  padding: 28px;
  border-radius: 6px;
  background: #111722;
  text-align: center;
}

.blog-empty-title {
  color: #ffffff;
  font-size: 14px;
  line-height: 18px;
  font-weight: 600;
}

.blog-empty-text {
  margin-top: 6px;
  color: #687894;
  font-size: 9px;
  line-height: 14px;
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  margin-top: 22px;
}

.page-btn {
  display: inline-flex;
  width: 28px;
  height: 28px;
  align-items: center;
  justify-content: center;
  border: 1px solid #202a3a;
  border-radius: 4px;
  background: #111722;
  color: #687894;
  font-size: 9px;
  line-height: 11px;
  font-weight: 600;
  text-decoration: none;
}

.page-btn:hover,
.page-btn.active {
  border-color: #d5a11f;
  color: #ffffff;
}

.page-btn.active {
  background: rgba(213, 161, 31, 0.12);
}

.page-btn[aria-disabled='true'] {
  opacity: 0.4;
}

.page-btn svg {
  width: 13px;
  height: 13px;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.page-dots {
  border-color: transparent;
  background: transparent;
}

@media (max-width: 900px) {
  .posts-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .blog-page {
    padding: 16px 12px 30px;
  }

  .blog-breadcrumbs {
    margin-bottom: 22px;
  }

  .blog-page-header {
    margin-bottom: 14px;
  }

  .blog-page-header h1 {
    font-size: 16px;
    line-height: 20px;
  }

  .blog-hero-card {
    height: 250px;
    margin-bottom: 22px;
  }

  .blog-hero-shade {
    background: linear-gradient(0deg, rgba(6, 10, 17, 0.94) 0%, rgba(6, 10, 17, 0.46) 70%, rgba(6, 10, 17, 0.1) 100%);
  }

  .blog-hero-panel {
    top: auto;
    right: 18px;
    bottom: 18px;
    left: 18px;
    width: auto;
    transform: none;
  }

  .blog-hero-title {
    font-size: 16px;
    line-height: 21px;
  }

  .blog-hero-description {
    -webkit-line-clamp: 2;
  }

  .blog-read-more {
    display: none;
  }

  .posts-grid {
    grid-template-columns: 1fr;
  }

  .post-img-wrap {
    height: 170px;
  }
}
