body {
  margin: 0;
  padding: 0;
}

/* FULL BAR */
.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #e4f2ff;
  padding: 15px 15px;
  border-radius: 35px;
  position: sticky;
  top: 50px;
  z-index: 1000;
}

.category:hover {
  background: #1c4c7a;
  color: #fff;
}

.category-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 60%;
  background: #f3f9ff;
  padding: 0px;
  border-radius: 10px;
}

/* scroll area */
.category-container::-webkit-scrollbar {
  display: none;
}

.scroll-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  background: #f3f9ff;
  padding: 8px;
  border-radius: 10px;
  overflow: hidden;
}

/* SCROLLER */
.category-container {
  display: flex;
  flex: 1;
  gap: 10px;
  overflow-x: auto;
  scroll-behavior: smooth;
  width: max-content;
  max-width: 900px;
}

/* PILLS */
.category {
  flex: 0 0 auto;
  padding: 6px 14px;
  border-radius: 20px;
  border: 1px solid #004b8f;
  white-space: nowrap;
  background: white;
  cursor: pointer;
}

/* RIGHT arrow only */
.arrow-right {
  flex-shrink: 0;
  border: none;
  background: #f3f9ff;
  cursor: pointer;
  padding: 6px;
}
/* RIGHT SECTION */
.right-section {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* search */
.search-box {
  display: flex;
  align-items: center;
  background: #fff;
  border-radius: 20px;
  padding: 3px 10px;
  box-shadow: 0 2px 6px rgba(10, 77, 140, 0.25);
}

.search-box input {
  border: none !important;
  outline: none;
  background: transparent;
  width: 325px;
}

.search-btn {
  border: none;
  background: #0a4d8c;
  color: white;
  border-radius: 50%;
  padding: 6px 9px;
  cursor: pointer;
}

/* bookmark icon */
.bookmark {
  border: none;
  background: #f3f9ff;
  border-radius: 6px;
  padding: 6px 10px;
  cursor: pointer;
}

/* SECTION */
.search-section {
  padding: 20px;
  margin: 10px 30px;
}


.trending-section {
  padding: 20px;
  margin: 10px 30px;
}

.trending-title {
  font-size: 26px;
  font-family: "Franklin Gothic Medium", "Arial Narrow", Arial, sans-serif;
}

/* HEADER */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* BUTTONS */
.slider-controls {
  justify-content: space-between;
  display: flex;
  gap: 10px;
}

.slider-controls button {
  border: none;
  background: #e6f0ff;
  color: #0a4d8c;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.slider-next {
  width: 7px;
  height: 16px;
  display: block;
}

/* WRAPPER */
.slider-wrapper {
  overflow: hidden;
  margin-top: 15px;
}

/* TRACK */
.trending-slider {
  display: flex;
  gap: 40px;
  transition: transform 0.4s ease;
}

.book-card {
  min-width: 190px;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* IMAGE PLACEHOLDER*/
.book-img {
  width: 100%;
  height: 196px;
  position: relative;
}

.book-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
}

.book-rating-badge {
  position: absolute;
  bottom: 10px;
  left: 10px;
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.9);
  color: #333;
}

.book-card-badge {
  position: absolute;
  bottom: 10px;
  right: 3px;
  font-size: 10px;
  padding: 3px 8px;
  border-radius: 20px;
  color: #fff;
}

.book-badge--available {
  background: #fff;
  color: #48a111;
  font-size: 12px;
}

.book-badge--issued {
  background: white;
  color: #e74c3c;
  font-size: 12px;
}

.review-star {
  color: #1e5fa8;
  font-size: 14px;
}

.view-btn {
  padding: 9px 21px;
  border: none;
  background: #f0f8ff;
  color: #004b8f;
  border-radius: 30px;
  font-size: 15px;
  margin-top: 20px;
}

.view-wrapper {
  display: flex;
  justify-content: center;
}

.view-wrapper a:hover .view-btn {
  background: #004b8f;
  color: #fff;
}

/* TAG */
.book-tag {
  font-size: 11px;
  color: #0084f5;
  font-weight: bold;
  background: #f2f9ff;
  padding: 6px 10px;
  width: 33%;
  border-radius: 10px;
  white-space: nowrap;
}

/* RATING */
.book-rating {
  font-size: 12px;
  color: #444;
}

/* TITLE */
.book-title {
  font-size: 14px;
  font-weight: bold;
  font-family: "Franklin Gothic Medium", "Arial Narrow", Arial, sans-serif;
  min-height: 42px;
  display: -webkit-box;
  -webkit-box-orient: vertical;
   overflow: hidden;
}

/* AUTHOR */
.book-author {
  font-size: 12px;
  color: gray;
}

/* BUTTON */
.book-btn {
  margin-top: 5px;
  padding: 6px;
  border: 1px solid #0a4d8c;
  background: transparent;
  border-radius: 6px;
  cursor: pointer;
  font-size: 12px;
  color: #004b8f;
  width: 97%;
}

.book-btn:hover {
  background: #0a4d8c;
  color: #fff;
}

.kids-section {
  padding: 20px;
  background: linear-gradient(to right, #e4f2ff, #e4e4ff, #e4fffe);
  border-radius: 20px;
  margin: 10px 30px;
}

.popular-section {
  padding: 20px;
  background: linear-gradient(to right, #e4f2ff, #e4e4ff, #e4fffe);
  border-radius: 20px;
  margin: 10px 30px;
}

.recommended-section {
  margin: 10px 30px;
}

.event-section {
  margin: 10px 30px;
}

.event-content {
  display: flex;
  gap: 40px;
  transition: transform 0.4s ease;
}

.event-card {
  min-width: 320px;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.date-icon {
  margin-bottom: -3px;
}


/* hamburger */
.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #e4f2ff;
  padding: 15px 15px;
  border-radius: 35px;
  position: sticky;
  top: 50px;
  z-index: 100;
}

.hamburger-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
}


.drawer-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 100;
}

.drawer-overlay.active {
    display: block;
}

.side-drawer {
    position: fixed;
    top: 50px;
    left: 0;
    bottom: 0;
    width: 240px;
    background: #fff;
    z-index: 200;
    transform: translateX(-100%);
    transition: transform 0.25s ease;
}

.side-drawer.active {
    transform: translateX(0);
}

.drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #eee;
}

.drawer-title {
    font-weight: 600;
    color: #004B8F;
    font-size: 16px;
}

.drawer-close {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 22px;
    color: #666;
}

.drawer-item {
    display: block;
    padding: 14px 20px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    border-bottom: 1px solid #f5f5f5;
}

.drawer-item:hover {
    background: #f0f5ff;
    color: #004B8F;
}

.side-drawer.active ~ .top-bar .hamburger-btn,
.hamburger-btn.hidden {
    display: none;
}
.bookmark.hidden {
    display: none;
}

/* .hero-banner {
    background: linear-gradient(135deg, #004B8F 0%, #0072D6 100%);
    padding: 15px 30px;
    text-align: center;
    margin-bottom: 30px;
}

.banner-content h1 {
    color: #ffffff;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 10px;
}

.banner-content p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 16px;
    margin-bottom: 24px;
}

.banner-btn {
    display: inline-block;
    background: #ffffff;
    color: #004B8F;
    padding: 10px 28px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s;
}

.banner-btn:hover {
    background: #004B8F;
    color: #ffffff;
    border: 1px solid #ffffff;
} */

@media (max-width: 430.98px) {
  /* .slider-controls {
    display: none;
  } */

  .top-bar {
    flex-direction: row;
    padding: 0px;
    border-radius: 0;
  }

  .right-section {
    width: 92%;
    border-radius: 20px;
    padding: 4px 8px;
  }

  .search-box {
    width: 78%;
  }

  .category-bar {
    width: 95%;
  }

  .trending-section {
    padding: 10px;
    margin: 10px;
  }

  .trending-slider {
    gap: 21px;
  }

  .book-card {
    min-width: 166px;
  }

  .kids-section {
    padding: 10px;
    margin: 10px;
  }

  .recommended-section {
    margin: 10px 15px;
  }

  .popular-section {
    margin: 13px 10px;
    padding: 6px;
  }

  .event-section {
    margin: 9px 10px;
  }

  .event-content {
    gap: 10px;
  }

  .event-card {
    min-width: 179px;
  }

  .book-tag {
    white-space: nowrap;
  }

  .book-btn {
    width: 92%;
  }

  .book-rating-badge {
    padding: 3px 5px;
  }

}
