/* Hub blog SSR pages — list + article */

.blog-body-root {
  margin: 0;
  min-height: 100vh;
  background: #0b0d10;
  color: #f4f6f8;
  font-family: "Segoe UI", system-ui, sans-serif;
}

.blog-page {
  padding: 1.25rem 1rem 3rem;
}

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

.blog-wrap--article {
  width: min(760px, 100%);
}

.blog-eyebrow {
  margin: 0 0 0.75rem;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.55);
}

.blog-eyebrow a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
}

.blog-eyebrow a:hover {
  color: #fff;
}

.blog-h1 {
  margin: 0 0 1rem;
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  line-height: 1.15;
  font-weight: 700;
}

.blog-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  margin-bottom: 1.75rem;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.9rem;
}

.blog-meta__cat {
  color: #e10600;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.blog-cover {
  margin: 0 0 2rem;
  border-radius: 12px;
  overflow: hidden;
}

.blog-cover img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.blog-empty {
  margin: 2rem 0;
  color: rgba(255, 255, 255, 0.6);
}

.blog-pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-top: 2.5rem;
}

.blog-page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  padding: 0.45rem 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 6px;
  color: #fff;
  text-decoration: none;
  font-size: 0.875rem;
}

.blog-page-link:hover,
.blog-page-link.is-active {
  border-color: #e10600;
  background: rgba(225, 6, 0, 0.15);
}

.blog-body .blog-h2,
.blog-body .blog-h3 {
  margin: 2rem 0 0.85rem;
  line-height: 1.25;
}

.blog-body .blog-h2 {
  font-size: 1.5rem;
}

.blog-body .blog-h3 {
  font-size: 1.2rem;
}

.blog-body .blog-p {
  margin: 0 0 1rem;
  line-height: 1.7;
  color: rgba(244, 246, 248, 0.92);
  font-size: 1.05rem;
}

.blog-body .blog-p a {
  color: #ff6b63;
}

.blog-body .step-number,
.blog-body .number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.5rem;
  height: 1.5rem;
  margin-right: 0.35rem;
  padding: 0 0.35rem;
  border-radius: 999px;
  background: #e10600;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
}

.blog-body .accent {
  display: block;
  margin: 1.25rem 0;
  padding: 0.9rem 1.1rem;
  border-radius: 10px;
  border-left: 3px solid #e10600;
  background: rgba(225, 6, 0, 0.08);
  color: rgba(255, 255, 255, 0.92);
  font-weight: 500;
}

.blog-body .legal-note {
  margin: 1.5rem 0 0.5rem;
  font-size: 0.85rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.45);
}

.blog-body .article-checklist,
.blog-body .article-cta-list {
  margin: 0.75rem 0 1.25rem;
  padding-left: 1.25rem;
  line-height: 1.65;
}

.blog-body .article-checklist li,
.blog-body .article-cta-list li {
  margin-bottom: 0.35rem;
}

.blog-body .article-note,
.blog-body .article-warning,
.blog-body .article-important,
.blog-body .article-cta {
  margin: 1.5rem 0;
  padding: 1rem 1.15rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
}

.blog-body .article-note {
  border-color: rgba(225, 6, 0, 0.35);
  background: rgba(225, 6, 0, 0.08);
}

.blog-body .article-warning {
  border-color: rgba(255, 180, 0, 0.4);
  background: rgba(255, 180, 0, 0.08);
}

.blog-body .article-important {
  border-color: rgba(80, 160, 255, 0.4);
  background: rgba(80, 160, 255, 0.08);
}

.blog-body .article-cta {
  border-color: rgba(255, 255, 255, 0.18);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(0, 0, 0, 0.15));
}

.blog-body .article-cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0.5rem 0;
  padding: 0.75rem 1.25rem;
  border-radius: 8px;
  background: #e10600;
  color: #fff !important;
  text-decoration: none;
  font-weight: 600;
}

.blog-body .article-cta-button:hover {
  filter: brightness(1.08);
}

.blog-body .article-cta-caption {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.55);
}

.blog-body .article-sources {
  margin: 2.5rem 0 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.65);
}

.blog-body .article-sources .sources-title {
  display: block;
  margin-bottom: 0.75rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
}

.blog-body .article-sources ul {
  margin: 0;
  padding-left: 1.15rem;
}

.blog-body .article-sources li {
  margin: 0.4rem 0;
}

.blog-body .article-sources a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.blog-body .article-sources a:hover {
  color: #fff;
}

.blog-mid-cta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.45rem;
  margin: 1.75rem 0 2.25rem;
  padding: 1rem 0 0.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.blog-mid-cta__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.2rem;
  border-radius: 8px;
  background: #e10600;
  color: #fff !important;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: filter 0.15s ease, transform 0.15s ease;
}

.blog-mid-cta__btn:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.blog-mid-cta__hint {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
  max-width: 28rem;
  line-height: 1.4;
}

.blog-lead {
  margin: 3rem 0 1rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  scroll-margin-top: 96px;
}

.blog-lead__inner {
  width: 100%;
}

.blog-wrap--article .feedback {
  max-width: none;
}

.blog-figure {
  margin: 1.5rem 0;
}

.blog-figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 10px;
}

.blog-figure figcaption {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.5);
  text-align: center;
}

/* Blog list cards only: keep category visible, clamp titles to 5 lines */
.blog-grid .blog-card {
  height: 280px;
  min-height: 280px;
}

.blog-grid .blog-card .news-card__category {
  z-index: 3;
}

.blog-grid .blog-card .news-card__bottom {
  top: 56px;
  bottom: 14px;
  left: 16px;
  right: 16px;
  max-height: none;
  overflow: hidden;
  align-items: flex-end;
}

.blog-grid .blog-card .news-card__title {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 5;
  line-clamp: 5;
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: break-word;
  font-size: clamp(1rem, 1.45vw, 1.35rem);
  line-height: 1.2;
  max-height: calc(1.2em * 5);
  max-width: 85%;
  margin: 0;
}

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

@media (max-width: 560px) {
  .blog-grid {
    grid-template-columns: 1fr;
  }
}
