/* ========================================
   BLOG — Listing page
   ======================================== */
.blog-main {
  max-width: 1120px; margin: 0 auto;
  padding: 100px 24px 80px;
}
.blog-head {
  margin-bottom: 40px;
}
.blog-head h1 {
  font-size: 36px; font-weight: 800;
  letter-spacing: -.03em;
  margin-bottom: 12px;
}
.blog-head p {
  font-size: 17px; color: var(--text-mid);
}

/* Filters */
.blog-filters {
  display: flex; gap: 8px;
  margin-bottom: 40px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.blog-tag {
  padding: 8px 20px;
  border: 1.5px solid #E0E0E0;
  border-radius: 999px;
  font-size: 14px; font-weight: 600;
  color: var(--text-mid);
  background: none; cursor: pointer;
  white-space: nowrap;
  transition: all .2s;
}
.blog-tag:hover {
  border-color: var(--text);
  color: var(--text);
}
.blog-tag--active {
  background: var(--text);
  color: #fff;
  border-color: var(--text);
}

/* Card grid — 2 columns */
.blog-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

/* Blog card — horizontal */
.blog-card {
  display: flex;
  background: #fff;
  border: 1px solid #EBEBEB;
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none; color: inherit;
  transition: transform .25s, border-color .25s;
}
.blog-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
}
.blog-card__img {
  flex: 0 0 40%;
  overflow: hidden;
  aspect-ratio: 3/2;
}
.blog-card__img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .4s;
}
.blog-card:hover .blog-card__img img,
.blog-card:hover .blog-card__ph {
  transform: scale(1.03);
}
.blog-card__ph {
  width: 100%; height: 100%;
  background: #E8E8E8;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 600; color: #A0A0A0;
  transition: transform .4s;
}
.blog-card__body {
  flex: 1;
  padding: 20px 22px;
  display: flex; flex-direction: column;
}
.blog-card__date {
  font-size: 12px; color: var(--text-light);
  margin-bottom: 8px;
}
.blog-card h2, .blog-card h3 {
  font-size: 17px; font-weight: 700;
  line-height: 1.35;
  letter-spacing: -.01em;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.blog-card p {
  font-size: 14px; line-height: 1.5;
  color: var(--text-mid);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}
.blog-card__tag {
  display: inline-block;
  margin-top: 12px;
  padding: 3px 10px;
  background: #F0F0F0;
  border-radius: 4px;
  font-size: 11px; font-weight: 600;
  color: var(--text-mid);
  align-self: flex-start;
}

/* Compact cards (related) */
.blog-card--compact {
  flex-direction: column;
}
.blog-card--compact .blog-card__img {
  flex: none;
  aspect-ratio: 16/9;
}

/* Pagination */
.blog-pag {
  display: flex; justify-content: center;
  gap: 6px;
  margin-top: 56px;
}
.blog-pag__item {
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px;
  border-radius: 8px;
  font-size: 14px; font-weight: 600;
  color: var(--text-mid);
  text-decoration: none;
  transition: background .2s, color .2s;
}
.blog-pag__item:hover {
  background: #F0F0F0; color: var(--text);
}
.blog-pag__item--active {
  background: var(--text); color: #fff;
}

/* ========================================
   ARTICLE — Single page
   ======================================== */
.article-main {
  padding-top: 84px;
}

/* Breadcrumbs */
.breadcrumbs {
  max-width: 720px; margin: 0 auto;
  padding: 0 24px 24px;
  font-size: 13px; color: var(--text-light);
}
.breadcrumbs a {
  color: var(--text-mid);
  transition: color .2s;
}
.breadcrumbs a:hover { color: var(--text); }
.breadcrumbs__sep { margin: 0 6px; }

/* Article */
.article {
  max-width: 720px; margin: 0 auto;
  padding: 0 24px 80px;
}
.article__header {
  margin-bottom: 32px;
}
.article__header h1 {
  font-size: 36px; font-weight: 800;
  line-height: 1.2;
  letter-spacing: -.03em;
  margin-bottom: 12px;
}
.article__meta {
  font-size: 14px; color: var(--text-light);
}

/* Hero image */
.article__hero {
  margin-bottom: 40px;
  border-radius: 14px;
  overflow: hidden;
}
.article__hero img {
  width: 100%; display: block;
}
.article__hero-ph {
  width: 100%; aspect-ratio: 16/9;
  background: #E8E8E8;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 600; color: #A0A0A0;
  border-radius: 14px;
}

/* Content */
.article__content {
  font-size: 17px; line-height: 1.7;
  color: var(--text);
}
.article__content p {
  margin-bottom: 20px;
}
.article__content h2 {
  font-size: 24px; font-weight: 800;
  letter-spacing: -.02em;
  margin: 40px 0 16px;
}
.article__content h3 {
  font-size: 20px; font-weight: 700;
  margin: 32px 0 12px;
}
.article__content ul, .article__content ol {
  margin: 0 0 20px 24px;
}
.article__content li {
  margin-bottom: 10px;
  list-style: disc;
}
.article__content ol li { list-style: decimal; }
.article__content blockquote {
  margin: 28px 0;
  padding: 16px 0 16px 24px;
  border-left: 3px solid var(--accent);
}
.article__content blockquote p {
  margin: 0;
  font-size: 16px;
  color: var(--text-mid);
  font-style: italic;
}
.article__content strong { font-weight: 700; }
.article__content img {
  border-radius: 10px;
  margin: 24px 0;
}

/* Author block */
.article__author {
  margin-top: 56px; padding-top: 32px;
  border-top: 1px solid #E8E8E8;
  display: flex; align-items: center; gap: 16px;
  flex-wrap: wrap;
}
.article__author-photo { flex-shrink: 0; }
.article__author-ph {
  width: 48px; height: 48px;
  background: #E8E8E8;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 800; color: var(--text-mid);
}
.article__author-info {
  flex: 1;
}
.article__author-info strong {
  display: block; font-size: 15px;
}
.article__author-info p {
  font-size: 13px; color: var(--text-mid);
  margin: 2px 0 0;
}
.article__author .hero__cta {
  font-size: 14px; padding: 12px 24px;
}

/* Related */
.article__related {
  margin-top: 56px; padding-top: 40px;
  border-top: 1px solid #E8E8E8;
}
.article__related h2 {
  font-size: 24px; font-weight: 800;
  margin-bottom: 24px;
}
.article__related-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
