 .button-container{
      text-align: center;
  }

  #pagination{
      padding-top: 3px;
      text-align: center;
  }

#authorImgCard {
  width: 120px !important;
  height: 120px !important;
  border-radius: 10%;
  object-fit: cover;
}

.card-title {
  color: #216B4D;
  font-size: 110%;
  font-weight: 700;
  text-align: center;
  white-space: nowrap;
}

.card-link {
  font-size: medium;
  text-align: center;
}


.authorbiodata {
    text-align: center;
    background: #f0eeeb;
    padding: 19px 20px;
}

.authorimg img {
    border-radius: 50%;
    width: 300px;
    height: 300px;
}

/* --- BOOKS LAYOUT FIX --- */

.books {
  width: 100%;
  margin-bottom: 35px;
  padding-bottom: 25px;
  border-bottom: 1px solid #ccc;
}

.book_details h4 {
    font-size: large;
}

/* "Published in" centered above the book details */
.publication_date {
  text-align: center;
  margin-bottom: 15px;
  padding-bottom: 30px;
  text-shadow: 2px 2px #d5d5d5;
}

.publication_date h3 {
  font-size: 24px;
  font-weight: 700;
  margin: 0;
  color: #000;
}

/* Keep image fixed on the left */
.bookphoto {
  float: left;
  width: 140px;
  height: 200px;
  margin-right: 20px;
  background-color: #f3f3f3;
  border: 1px solid #ddd;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Make all book images fit neatly */
.bookphoto img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Text content always stays to the right of image */
.book_details {
  overflow: hidden; /* clears float without extra markup */
}

/* Title and details formatting */
.publication_title h5 {
  font-size: 20px;
  color: #216B4D;
  font-weight: 600;
  text-align: left;
  margin-bottom: 8px;
}

.publication_genre p,
.publication_publisher p {
  font-size: 15px;
  color: #333;
  line-height: 1.5;
  margin-bottom: 8px;
}

.publication_genre a,
.publication_publisher a {
  color: #216B4D;
  text-decoration: none;
}

.publication_genre a:hover,
.publication_publisher a:hover {
  text-decoration: underline;
}

[data-letter]{
      background-color: transparent;
      text-align: center;
      color: #000;
      text-decoration: none;
      border: 1px solid;
      display: inline-flex;
      padding: 10px;
      /*margin: 0px 3px;*/
      font-size: 14px;
    }
      [data-letter] a {
        color: #000;
        text-decoration: none;
      }

     [data-letter]:hover {
      background-color: #216B4D;
      color: #fff;
     } 

/* Horizontal line should always show fully */
.books hr {
  display: none;
}

/* Optional: make it look cleaner on smaller screens */
@media (max-width: 768px) {
  .bookphoto {
    float: none;
    margin: 0 auto 15px auto;
    display: block;
  }

  .book_details {
    text-align: center;
  }

  .publication_title h5 {
    text-align: center;
  }
}
