.promo-fullscreen-header {
  text-align: center;
  margin-top: 2rem;
}

.promo-post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  width: 100%;
}

.promo-post-grid-wrapper {
  display: flex;
  width: 100%;
}

.promo-card {
  width: 26rem;
  min-height: 218px;
  border: solid 1px #f0ebfb;
  border-radius: 8px;
  padding-bottom: 24px;
  min-height: fit-content; /* Retain original height */
}

.promo-card.fade-in {
  display: none; /* Initially hidden for fade-in effect */
}

/* Pagination styles for SSR version */
.pagination-controls {
  margin-top: 2rem;
  display: flex;
  justify-content: center;
}

.pagination {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pagination a {
  padding: 8px 12px;
  text-decoration: none;
  color: #333;
  border: 1px solid #ddd;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.pagination a:hover {
  background-color: #f5f5f5;
}

.pagination a.current {
  background-color: #6937d3;
  color: white;
  border-color: #6937d3;
}

.pagination a.prev,
.pagination a.next {
  font-weight: bold;
}
.promo-card-featured-image {
  border-radius: 20px 20px 0 0;
  display: flex;
  justify-content: center;
}
.promo-card-featured-image img {
  height: 11rem;
  background-size: cover;
  background-position: center;
  border-radius: 8px 8px 0 0;
  background-color: #6937d3;
}

.promo-card-featured-image p {
  width: 100%;
  height: 11rem;
  background-size: cover;
  background-position: center;
  border-radius: 8px 8px 0 0;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #6937d3;
  color: white;
  margin: 0;
}

.promo-card-content {
  padding: 24px 24px 0 24px;
}

.card-content-subtitle-1 {
  margin: 0;
  font-size: 12px;
  color: #abadb9;
}

a:hover {
  text-decoration: none;
}

a,
p,
h6 {
  color: black;
}

.pagination {
  display: flex;
  gap: 30px;
  justify-content: center;
  width: 100%;
  margin: 50px 0;
  align-items: center;
}

.page-numbers {
  padding: 4px;
  width: 40px;
  height: 35px;
  display: flex;
  justify-content: center;
}

.current {
  background-color: #6936d3;
  border-radius: 8px;
}

a.page-numbers.current {
  color: white !important;
}

.loading-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 200px;  /* Adjust this value based on your layout */
}

.loading-text {
  text-align: center;
  padding: 2rem;
  font-size: 1.2rem;
  color: #666;
}

.fade-in {
  opacity: 0;
  animation: fadeIn 0.5s ease-in forwards;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Add staggered animation delay for each card */
.promo-card:nth-child(1) { animation-delay: 0.1s; }
.promo-card:nth-child(2) { animation-delay: 0.2s; }
.promo-card:nth-child(3) { animation-delay: 0.3s; }
.promo-card:nth-child(4) { animation-delay: 0.4s; }
.promo-card:nth-child(5) { animation-delay: 0.5s; }
.promo-card:nth-child(6) { animation-delay: 0.6s; }
.promo-card:nth-child(7) { animation-delay: 0.7s; }
.promo-card:nth-child(8) { animation-delay: 0.8s; }
.promo-card:nth-child(9) { animation-delay: 0.9s; }

@media screen and (width < 1440px) {
  .promo-post-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    width: 100%;
    place-items: center;
  }

  .promo-card {
    width: 22rem; /* Retain original width */
    min-height: fit-content; /* Retain original height */
  }
}

@media screen and (width < 760px) {
  .promo-post-grid {
    display: flex;
    flex-direction: column;
    /* grid-template-columns: repeat(1, 1fr); */
    gap: 30px;
    width: 100%;
    align-items: center;
  }

  .promo-card {
    width: 22rem;
    min-height: fit-content; /* Retain original height */
  }
}

@media screen and (width < 420px) {
  .promo-post-grid {
    display: flex;
    flex-direction: column;
    /* grid-template-columns: repeat(1, 1fr); */
    gap: 30px;
    width: 100%;
    align-items: center;
  }

  .promo-card {
    width: 20rem;
    min-height: fit-content; /* Retain original height */
  }

  .promo-card-featured-image img {
    height: 9.5rem;
    background-size: cover;
    background-position: center;
    border-radius: 8px 8px 0 0;
    background-color: #6937d3;
  }
}

@media screen and (width < 340px) {
  .promo-post-grid {
    display: flex;
    flex-direction: column;
    /* grid-template-columns: repeat(1, 1fr); */
    gap: 30px;
    width: 100%;
    align-items: center;
  }

  .promo-card {
    width: 18rem;
    min-height: fit-content; /* Retain original height */
  }
}