/* ===========================
   🌐 Scrolls Latest Posts Section
   =========================== */

.scrolls-latest-section {
  background-color: var(--surface-container);
  padding: 6rem var(--wp--preset--spacing--edge-space);
  color: var(--text-soft);
  text-align: center;
}

.scrolls-latest-wrapper {
  max-width: 1200px;
  margin: 0 auto;
}

.scrolls-latest-heading {
  font-family: 'Share Tech Mono', monospace;
  font-size: 2.75rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 3rem;
  letter-spacing: -0.5px;
}

.scrolls-latest-posts {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
}

.scrolls-latest-post {
  background: var(--card-surface);
  border: 1px solid var(--border-glow);
  border-radius: 12px;
  padding: 2rem;
  width: 300px;
  transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: var(--elevation-1);
}

.scrolls-latest-post:hover {
  background: var(--card-hover);
  transform: translateY(-4px);
  box-shadow: var(--elevation-3);
}

.scrolls-latest-post a {
  text-decoration: none;
  display: block; /* Ensures the link is block level for better UX */
}

.scrolls-latest-title {
  font-family: 'Share Tech Mono', monospace;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-high);
  margin-bottom: 1rem;
  transition: color 0.3s ease, text-shadow 0.3s ease;
}

.scrolls-latest-post a:hover .scrolls-latest-title {
  color: var(--inverse-primary);
  text-shadow: 0 0 6px rgba(0, 0, 0, 0.15);
}

.scrolls-latest-excerpt {
  color: var(--text-subtle);
  font-size: 1rem;
  line-height: 1.6;
}
