.latest-section {
  background: #ffffff;
  padding: 5rem 0;
}

.latest-heading {
  align-items: flex-start;
  display: flex;
  gap: 1.5rem;
  justify-content: space-between;
  margin-bottom: 2rem;
}

.latest-heading h2,
.blog-list-hero h1,
.blog-article-hero h1 {
  color: #0f172a;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.08;
  margin: 0.35rem 0 0;
}

.latest-link,
.blog-read-link {
  color: #8a1523;
  font-size: 0.875rem;
  font-weight: 700;
  white-space: nowrap;
}

.blog-kicker,
.blog-card-meta {
  color: #8a1523;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  margin: 0;
  text-transform: uppercase;
}

.blog-card-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.blog-card {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(138, 21, 35, 0.08);
  border-radius: 1.5rem;
  box-shadow: 0 10px 50px -25px rgba(138, 21, 35, 0.45);
  overflow: hidden;
}

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

.blog-card-body {
  padding: 1.25rem;
}

.blog-card h2,
.blog-card h3 {
  font-size: 1.25rem;
  line-height: 1.3;
  margin: 0.6rem 0;
}

.blog-card h2 a,
.blog-card h3 a {
  color: #0f172a;
}

.blog-card-body p {
  color: #475569;
  font-size: 0.925rem;
  line-height: 1.65;
  margin: 0 0 1rem;
}

.blog-list-hero,
.blog-article-hero {
  background:
    linear-gradient(120deg, rgba(16, 14, 29, 0.72), rgba(138, 21, 35, 0.62)),
    url("/assets/img/nidaul-ishlah-bg.jpg") center / cover;
  color: #ffffff;
  padding: 5rem 0 4rem;
}

.blog-list-hero .blog-kicker,
.blog-article-hero .blog-kicker {
  color: rgba(255, 255, 255, 0.82);
}

.blog-list-hero h1,
.blog-article-hero h1,
.blog-list-hero p,
.blog-article-hero p,
.blog-article-hero time {
  color: #ffffff;
  max-width: 50rem;
}

.blog-list-hero p,
.blog-article-hero p {
  font-size: 1.125rem;
  line-height: 1.7;
}

.blog-list-section {
  padding: 4rem 1.5rem;
}

.blog-article-media {
  margin-top: 2rem;
}

.blog-article-media img {
  border-radius: 1.5rem;
  box-shadow: 0 10px 50px -25px rgba(138, 21, 35, 0.45);
  display: block;
  max-height: 30rem;
  object-fit: cover;
  width: 100%;
}

.post-content {
  background: #ffffff;
  border-radius: 1.5rem;
  box-shadow: 0 10px 50px -25px rgba(138, 21, 35, 0.35);
  color: #334155;
  font-size: 1.05rem;
  line-height: 1.8;
  margin: 2rem auto 0;
  max-width: 48rem;
  padding: 2rem;
}

.post-content h2 {
  color: #0f172a;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.8rem;
  line-height: 1.2;
  margin: 2rem 0 0.75rem;
}

.post-content p {
  margin: 0 0 1.15rem;
}

.post-content code {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 0.4rem;
  color: #8a1523;
  font-size: 0.92em;
  padding: 0.1rem 0.35rem;
}

.post-gallery {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 2rem 0;
}

.post-gallery img {
  aspect-ratio: 16 / 10;
  border-radius: 1rem;
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.blog-empty {
  padding: 1.5rem;
}

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

@media (max-width: 640px) {
  .latest-heading {
    display: block;
  }

  .latest-link {
    display: inline-block;
    margin-top: 1rem;
  }

  .blog-card-grid {
    grid-template-columns: 1fr;
  }

  .post-gallery {
    grid-template-columns: 1fr;
  }

  .post-content {
    padding: 1.25rem;
  }
}
