.card-block {
  padding: 40px 0;
}

.latest-posts-h2 {
  font-size: 2em;
  margin-bottom: 40px;
  color: #333;
  text-align: center;
  font-family: "Allura", cursive;
}

.slider-wrapper {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  overflow: hidden;
}

.cards-slider {
  display: flex;
  overflow-x: auto;
  scroll-behavior: smooth;
  gap: 25px;
  padding: 0 20px;
  flex-wrap: nowrap;
}

.cards-slider::-webkit-scrollbar {
  display: none;
}

.card-latest-posts {
  flex: 0 0 calc(33.33% - 25px);
  background-color: white;
  border-radius: 0;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition:
    transform 0.4s ease,
    box-shadow 0.4s ease;
  cursor: pointer;
  overflow: hidden;
}

.card-latest-posts:hover {
  transform: translateY(-10px) scale(1.03);
  box-shadow: 0 12px 20px rgba(0, 0, 0, 0.2);
}

.card-latest-posts img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.card-latest-posts:hover img {
  transform: scale(1.05);
}

.card-text {
  text-align: center;
  padding: 15px;
  background: #fff;
}

.card-text h3 {
  margin: 5px 0;
  font-size: 1.1rem;
  color: #000;
}

.card-text p {
  font-size: 0.9rem;
  color: #444;
  margin: 0;
}

.card-bottom {
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
}

.card-bottom::after {
  content: "";
  width: 60px;
  height: 2px;
  background: black;
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.8);
  border: none;
  font-size: 2rem;
  cursor: pointer;
  z-index: 10;
  padding: 10px;
}

.slider-btn.left {
  left: 0;
}

.slider-btn.right {
  right: 0;
}

@media (max-width: 1024px) {
  .card-latest-posts {
    flex: 0 0 calc(50% - 25px);
  }
}

@media (max-width: 768px) {
  .card-latest-posts {
    flex: 0 0 100%;
  }
}

/* === No posts state === */
.no-posts-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 50px 20px;
  text-align: center;
  gap: 0.6rem;
  background-color: white;
  max-width: 500px;
  margin: 0 auto;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.08);
}

.no-posts-icon {
  margin-bottom: 10px;
  opacity: 0.85;
}

.no-posts-title {
  font-family: "Georgia", serif;
  font-size: 1.2rem;
  font-style: italic;
  color: #333;
  margin: 0;
}

.no-posts-subtitle {
  font-family: "Roboto", sans-serif;
  font-size: 0.95rem;
  color: #888;
  margin: 0 0 20px;
  line-height: 1.6;
  max-width: 280px;
}

.no-posts-container::after {
  content: "";
  display: block;
  width: 60px;
  height: 2px;
  background: #d8e0d5;
}
