.rotating-cards-container {
  text-align: center;
  max-width: 950px;
  margin: 0 auto 80px;
}

.filter-bar {
  margin-bottom: 20px;
}

.filter-btn {
  display: inline-block;
  padding: 8px 16px;
  background: #222;
  color: #fff;
  border: none;
  border-radius: 20px;
  margin: 5px;
  cursor: pointer;
  transition: 0.3s;
}
.filter-btn.active, .filter-btn:hover {
  background: #0a84ff;
}


/* .swiper-slide {
  width: 300px;
  height: 400px;
  border-radius: 16px;
  overflow: hidden;
  background: #111;
  box-shadow: 0 15px 25px rgba(0,0,0,0.5);
  transition: all 0.4s ease;
} */

.rotating-cards img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px;
  background: linear-gradient(transparent, rgba(0,0,0,0.85));
  color: #fff;
}
.card-overlay h3 {
  margin: 0 0 6px;
  font-size: 1.2rem;
  font-weight: 600;
}
.card-overlay .meta span {
  margin-right: 10px;
  font-size: 0.9rem;
  opacity: 0.9;
}




.rotating-cards {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  perspective: 2200px; /* Important: depth of field */
  transform-style: preserve-3d;
  overflow: visible;
}

.swiper-slide {
  width: 300px;
  height: 400px;
  border-radius: 16px;
  overflow: hidden;
  background: #111;
  box-shadow: 0 15px 25px rgba(0,0,0,0.5);
  transform-origin: center bottom; /* helps the "drop" look natural */
  transition: all 0.4s ease;
}


.swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px;
  background: linear-gradient(transparent, rgba(0,0,0,0.85));
  color: #fff;
}

.card-overlay h3 {
  margin: 0 0 6px;
  font-size: 1.2rem;
  font-weight: 600;
}
