/* General Styles */
.blog-recents {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.25em;
  overflow: hidden; /* Ensures only visible cards are shown */
}

.post-container {
  display: flex; /* Align items in a single row */
  flex-wrap: nowrap; /* Prevent wrapping to the next row */
  gap: 1.25em; /* Spacing between cards */
  /*overflow: hidden; /* Hide cards outside the visible area */
  transition: transform 0.5s ease; /* Smooth sliding effect */
  will-change: transform; /* Optimize performance */
}

a.listing-item { text-decoration: none; }

.listing-item {
  flex: 0 0 calc(33.333% - 20px); /* Three cards visible at a time */
  overflow: hidden;
  visibility: visible;
  background-color: #2A2838;
  color: #ffffffd9;
  border-radius: 6px;
}

.listing-item:hover {
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
}

.readnow--container {
  padding: 1em;
  align-self: center;
  justify-self: end;
}

.listing-item--image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  object-position: center;
  border-radius: 6px 6px 0 0;
}

.listing-item--content {
  padding: 1.25rem;
  display: grid;
  grid-template-rows: 15% 70% 15%;
}

.listing-item--title {
  height: 110px;
  padding: 0.5rem 0;
  border-bottom: 1px solid #ffffff33;

}

.listing-item--title h2 {
  color: #ffffffd9;
  font-size: 1.25rem;
  margin: 0;
}

.listing-item--tag {
  text-decoration: none;
  color: #131021;
  background: #EAF6FF;
  font-size: 0.875em;
  font-weight: 600;
  padding: 0.35em 0.6em;
  border-radius: 3px;
}

@media (max-width: 1024px) {
  .listing-item {
    flex: 0 0 calc(50% - 20px); /* Show 2 cards at a time */
  }
}

@media (max-width: 425px) {
  .listing-item {
    flex: 0 0 calc(100% - 20px); /* Show 1 card at a time */
  }
}

/* Navigation Arrows */
.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s ease;
}

.carousel-arrow:hover {
  background: #0073e6;
  color: #fff;
  border-color: #0073e6;
}

.carousel-arrow-prev {
  left: 10px;
}

.carousel-arrow-next {
  right: 10px;
}

/* Progress Bar */
.carousel-progress {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
}

.carousel-progress-circle {
  width: 12px;
  height: 12px;
  background: #ddd;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
}

.carousel-progress-circle.active {
  background: #0073e6;
  transform: scale(1.2);
}
