/* Container for all books */
.right-panel1 {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    padding: 14pc 420px 35px;
    justify-content: center;
    background: #fff;
      font-family: "Inter", sans-serif;
}

/* Each book item card */
.book-item1 {
  flex: 1 1 350px; /* flexible width but min ~350px */
  max-width: 600px;
  background: #fff;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  transition: transform 0.3s ease;
}

.book-item1:hover {
  transform: translateY(-8px);
}

/* Card inner layout: image on left, info on right */
.card {
  display: flex;
  width: 100%;
}

/* Book cover image styling */
.card img {
    height: 33vh;
    width: auto;
    object-fit: cover;
}

/* Info container on right */
.info, .info1 {
  padding: 24px 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 55%;
}

/* Book title styling */
.book-name {
  font-weight: 700;
  font-size: 1.4rem;
  color: #2a2a2a;
  margin-bottom: 8px;
  line-height: 1.2;
  letter-spacing: 0.02em;
}

/* Author name styling */
.author-name, .author-name1 {
  font-weight: 400;
  font-size: 1rem;
  color: #777;
  margin-bottom: 20px;
  font-style: italic;
}
.author-name2 {
  font-weight: 400;
  font-size: 1rem;
  color: #777;
  margin-bottom: 20px;
  /* font-style: italic; */
}

/* Button container for spacing */
.btndiv {
  margin-top: auto;
}

/* Buy Now button styling */
.btndiv button {
  background: linear-gradient(90deg, #b8860b, #ffd54f);
  border: none;
  padding: 12px 28px;
  font-weight: 600;
  font-size: 1rem;
  color: #3a2e0f;
  border-radius: 30px;
  cursor: pointer;
  box-shadow: 0 5px 15px rgba(184, 134, 11, 0.5);
  transition: background 0.3s ease, transform 0.2s ease;
  width: 100%;
  max-width: 140px;
  text-align: center;
}

.btndiv button:hover {
  background: linear-gradient(90deg, #ffd54f, #b8860b);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(255, 213, 79, 0.8);
}

/* =========================
   Responsive (Tablet & Mobile)
========================= */

@media screen and (max-width: 900px) {
  .card img {
        width: auto;
        height: 40vh;
  }
    .left-panel p {
    font-size: 15px;
    }
    .right-panel1 {
    padding: 14pc 20px 35px;}


}

/* 
@media (min-width:320px) and (max-width: 420px) {
  .book-item1 {
    max-width: 100%;
  }

  .card {
    flex-direction: column;
  }
  .right-panel1 { 
    padding: 14pc 0px 35px;}

    .recommended-section p{
      
    color: #555555ff;
    padding: 0pc 35px;
    text-align: center;
    }

  .card img {
    width: auto;
    height: 400px;
  }

  .info, .info1 {
    width: 100%;
    padding: 20px;
    text-align: center;
  }

  .btndiv button {
    max-width: 100%;
  }
} */


@media (min-width:300px) and (max-width:374px) {
  .book-item1 {
    max-width: 100%;
  }

  .card {
    flex-direction: row;
  }
  .author-name2{
    display: none;
  }
  .right-panel1 { 
    padding: 14pc 0px 35px;}

    .recommended-section p{
      
    color: #555555ff;
    padding: 0pc 35px;
    text-align: center;
    }

  .card img {
        width: auto;
        height: 200px;
  }
  .book-name {
    font-size: 14px;
    text-align: left;
  }

  .info, .info1 {
    width: 100%;
    padding: 20px;
    /* text-align: center; */
  }

  .btndiv button { 
        max-width: 100%;
        font-size: 12px;
  }
}

@media (min-width:375px) and (max-width: 720px) {
  .book-item1 {
    max-width: 100%;
  }

  .card {
    flex-direction: row;
  }
  .author-name2{
    display: none;
  }
  .right-panel1 { 
    padding: 14pc 0px 35px;}

    .recommended-section p{
      
    color: #555555ff;
    padding: 0pc 35px;
    text-align: center;
    }

  .card img {
        width: auto;
        height: 260px;
  }
  .book-name {
    font-size: 16px;
    text-align: left;
  }

  .info, .info1 {
    width: 100%;
    padding: 20px;
    /* text-align: center; */
  }

  .btndiv button { 
        max-width: 100%;
        font-size: 14px;
  }
}

@media (min-width:721px) and (max-width: 1024px) {
    .left-panel h2 {
        font-size: 42px;
    }
  .card img {
    height: 42vh;
    width: auto;
    object-fit: cover;
  }
  .right-panel1 {
    padding: 16pc 100px 35px;
  }

}

@media (min-width:1025px) and (max-width: 1440px) {


  .right-panel1 {
    padding: 16pc 170px 35px;
  }

}
