* {
  margin: 0;
  padding: 0;
}
.recent-updated-books-section {
  background: url("../images/Rectangle\ 255\ \(2\).png");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  padding: 50px 0px;
}
.recent-updated-books-heading h5 {
  padding-left: 70px;
  color: #1c3f94;

  font-family: Merriweather;
  font-weight: 700;
  font-style: Bold;
  font-size: 36px;
  leading-trim: NONE;
  line-height: 100%;
  letter-spacing: 1%;
}
.recent-updated-books-heading span {
  color: #ee1b22;
}
.infinite-carousel {
  width: 100%;
  overflow: hidden;
  padding: 20px 0;
}

.carousel-track {
  display: flex;
  width: max-content;
  animation: slide 25s linear infinite;
}

.card {
  width: 250px;
  height: 400px;
  margin-right: 20px;
  border-radius: 12px;
  overflow: hidden;
  flex-shrink: 0;
  background: #ddd;
  box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.2);
}

.card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@keyframes slide {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}




/* ================= RESPONSIVE ONLY (no content changed) ================= */

/* Tablets */
@media (max-width: 992px) {
  .recent-updated-books-heading h5 {
    font-size: 28px;
    padding-left: 40px;
  }

  .card {
    width: 200px;
    height: 330px;
  }
}

/* Mobile Landscape */
@media (max-width: 768px) {
  .recent-updated-books-heading h5 {
    font-size: 24px;
    padding-left: 30px;
  }

  .card {
    width: 170px;
    height: 280px;
  }
}

/* Mobile Portrait */
@media (max-width: 576px) {
  .recent-updated-books-heading h5 {
    font-size: 20px;
    padding-left: 20px;
  }

  .infinite-carousel {
    padding: 10px 0;
  }

  .card {
    width: 140px;
    height: 230px;
    margin-right: 12px;
  }
}

/* Extra Small Devices */
@media (max-width: 400px) {
  .recent-updated-books-heading h5 {
    font-size: 18px;
    padding-left: 15px;
  }

  .card {
    width: 120px;
    height: 200px;
    margin-right: 10px;
  }
}

