/* Blog pages */

.blog-header {
  padding: calc(var(--header-height) + 64px) 0 48px;
  background: linear-gradient(135deg, rgba(0, 65, 194, 0.08), var(--bg-gray));
  text-align: center;
}

.blog-header h1 {
  margin-bottom: 12px;
}

.blog-listing {
  padding: 64px 0 96px;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.blog-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0, 65, 194, 0.08);
  transition: transform var(--transition), box-shadow var(--transition);
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.blog-card__image {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.blog-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.blog-card:hover .blog-card__image img {
  transform: scale(1.04);
}

.blog-card__body {
  padding: 24px;
}

.blog-card__body time {
  font-size: 13px;
  color: var(--primary);
  font-weight: 500;
}

.blog-card__body h2 {
  font-size: 1.15rem;
  margin: 10px 0 12px;
  line-height: 1.35;
}

.blog-card__body h2 a:hover {
  color: var(--primary);
}

.blog-card__body p {
  font-size: 15px;
  margin-bottom: 16px;
}

.blog-card__link {
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
}

/* Article page */
.article-hero {
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: flex-end;
  margin-top: var(--header-height);
  overflow: hidden;
}

.article-hero__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-hero__overlay {
  position: absolute;
  inset: 0;
  background: var(--overlay-dark);
}

.article-hero__content {
  position: relative;
  z-index: 1;
  padding: 48px 24px 56px;
  color: #fff;
}

.article-back {
  display: inline-block;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 20px;
}

.article-back:hover {
  color: #fff;
}

.article-hero__content h1 {
  color: #fff;
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  max-width: 800px;
}

.article-meta {
  display: flex;
  gap: 16px;
  margin-top: 16px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.75);
}

.article-body {
  max-width: 760px;
  padding: 56px 24px 64px;
}

.article-body h2 {
  font-size: 1.75rem;
  margin: 48px 0 16px;
}

.article-body h2:first-child {
  margin-top: 0;
}

.article-body h3 {
  font-size: 1.35rem;
  margin: 36px 0 14px;
}

.article-body h4 {
  font-size: 1.1rem;
  margin: 24px 0 10px;
  color: var(--text-dark);
}

.article-body p {
  margin-bottom: 16px;
}

.article-body ul {
  list-style: disc;
  padding-left: 24px;
  margin-bottom: 20px;
}

.article-body li {
  margin-bottom: 8px;
}

.article-body hr {
  border: none;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  margin: 36px 0;
}

.article-body strong {
  color: var(--text-dark);
}

.check-item {
  padding-left: 4px;
}

.article-table-wrap {
  overflow-x: auto;
  margin: 24px 0;
}

.article-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.article-table th,
.article-table td {
  padding: 12px 16px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  text-align: left;
}

.article-table th {
  background: rgba(0, 65, 194, 0.08);
  color: var(--text-dark);
  font-weight: 600;
}

.article-related {
  padding: 48px 0 96px;
  background: var(--bg-gray);
}

.article-related h3 {
  margin-bottom: 20px;
}

.article-related__links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.article-related__links a {
  color: var(--primary);
  font-weight: 500;
}

.article-related__links a:hover {
  text-decoration: underline;
}

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

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

  .article-hero {
    min-height: 340px;
  }
}
