/* Responsive Design for Bookshelf */
@media (max-width: 1440px) {
  .bookshelf-section {
    padding-left: 200px;
    overflow-x: hidden;
  }

  .bookshelf-quote{
    width: 90%;
  }

  .bookshelf-categories-container {
    width: 1100px;
  }

  .bookshelf-card {
    width: 1040px;
  }
}

@media (max-width: 1200px) {
  .bookshelf-section {
    padding-left: 100px;
    padding-right: 20px;
    overflow-x: hidden;
  }

  .bookshelf-quote {
    width: 450px;
  }

  .bookshelf-quote h2 {
    font-size: 42px;
    line-height: 48px;
  }

  .bookshelf-quote h3 {
    font-size: 32px;
    line-height: 42px;
  }

  .book-shelf-visual img {
    width: 600px;
    height: 762px;
    overflow-x: hidden;
  }

  .bookshelf-categories-container {
    width: 900px;
  }

  .bookshelf-card {
    width: 840px;
  }
}


@media (max-width: 992px) {
  .bookshelf-section {
    padding-left: 50px;
    padding-right: 20px;
    height: auto;
    min-height: 500px;
    overflow-x: hidden;
  }


  .bookshelf-quote {
    width: 100%;
  
  }


  .bookshelf-quote h2 {
    font-size: 36px;
    line-height: 42px;
  }

  .bookshelf-quote h3 {
    font-size: 28px;
    line-height: 36px;
  }

 .book-shelf-visual{
      overflow-x: hidden;
 }

  .book-shelf-visual img {
    width: 500px;
    height: 627px;
    overflow-x: hidden;
  }

  .bookshelf-categories-container {
    width: 90%;
    margin: 0 auto;
    padding: 15px 20px;
  }

  .bookshelf-card {
    width: 100%;
    margin: 0;
  }

  .bookshelf-categories-description {
    font-size: 28px;
    line-height: 36px;
    max-height: none;
    padding-bottom: 30px;
  }
}

@media (max-width: 768px) {
  .bookshelf-section {
    height: auto;
    padding: 40px 20px;
    overflow-x: hidden;
  }


  .bookshelf-quote {
    width:350px;
 
  }

  .bookshelf-quote h2 {
    font-size: 28px;
    line-height: 34px;
    margin-bottom: 1rem;
  }

  .bookshelf-quote h3 {
    font-size: 20px;
    line-height: 26px;
  }



  .book-shelf-visual{
    right: 0;
  }
  .book-shelf-visual img {
    width:450px;
    height:623px;
   transform: translateX(80px);
  }

  .bookshelf-categories-section {
    padding: 60px 0;
  }

  .bookshelf-categories-container {
    width: 100%;
    padding: 15px 20px;
  }

  .bookshelf-card {
    width: 100%;
    margin: 0;
    border-radius: 15px;
    padding: 20px;
  }

  .bookshelf-categories-description {
    font-size: 24px;
    line-height: 28px;
    padding-bottom: 30px;
    text-align: center;
  }

  .bookshelf-main-title {
    font-size: 24px;
    margin: 0.5rem 0 1rem 0;
  }

  .books-grid {
    grid-template-columns: 1fr;
    grid-template-rows: none;
    grid-auto-flow: row;
    gap: 8px 16px;
    padding: 0 16px 15px;
    margin-top: 15px;
  }

  .category-title {
    font-size: 20px;
    line-height: 24px;
    padding: 0.75rem 0;
  }

  .category-icon {
    font-size: 20px;
    width: 20px;
    height: 20px;
  }

  .book-title {
    font-size: 14px;
    line-height: 1.4;
  }

  .book-bullet {
    font-size: 16px;
  }

  .book-item {
    gap: 10px;
    padding: 2px 0;
  }
}


@media (max-width: 480px) {

  .bookshelf-section{
    min-height:350px;
    overflow-x: hidden;
  }
    .bookshelf-quote{
     width:160px;
  }

  .bookshelf-quote h2 {
    font-size: 20px;
    line-height: 25px;
    margin-bottom: 1rem;
  }

  .bookshelf-quote h3 {
    font-size: 15px;
    line-height: 20px;
  }
  .book-shelf-visual{
    right:0px;
   
  }
  .book-shelf-visual img{
    width:340px;
    height:475px;
    transform: translateX(120px);
  }


}
