/* === Global Styles === */
body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  background: rgb(244, 244, 244); /* light gray */
}

/* === Trending Section === */
.trending-section {
  padding: 40px 20px;
  background-color: rgb(255, 255, 255); /* white */
  text-align: center;
}

.trending-section h2 {
  font-size: 2rem;
  margin-bottom: 30px;
  color: rgb(33, 33, 33); /* dark gray */
}

.trending-books {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}

.book-card {
  background-color: rgb(250, 250, 250); /* very light gray */
  padding: 15px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.book-card:hover {
  transform: scale(1.05);
}

.book-card img {
  width: 150px;
  height: 200px;
  object-fit: cover;
}

/* === Categories Section === */
.categories-section {
  padding: 50px 20px;
  background-color: rgb(255, 255, 255); /* white */
}

.categories-section h2 {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 40px;
  color: rgb(33, 33, 33);
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 1000px;
  margin: 0 auto;
}

.category-card {
  background-color: rgb(255, 255, 255);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.1);
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
  padding-bottom: 6px;
  min-height: 200px; /* 👈 Smaller height */
  font-size: 0.85rem;
}

.category-card img {
  width: 100%;
  height: 120px; /* 👈 Smaller image height */
  object-fit: cover;
}

.category-overlay {
  text-align: center;
  font-weight: bold;
  padding: 6px 0;
  font-size: 0.9rem;
  background-color: rgb(240, 240, 240);
  color: rgb(51, 51, 51);
}

.dropdown-books {
  display: none;
  padding: 8px 12px;
  background-color: rgb(250, 250, 250);
  border-top: 1px solid rgb(221, 221, 221);
}

.category-card:hover .dropdown-books {
  display: block;
}

.dropdown-books li {
  padding: 4px 0;
  color: rgb(60, 60, 60);
  font-size: 0.85rem;
}


/* === Button Styling === */
.btn-all-books {
  display: inline-block;
  padding: 12px 24px;
  background-color: rgb(0, 123, 255);
  color: white;
  text-decoration: none;
  font-weight: bold;
  border-radius: 6px;
  transition: background-color 0.3s ease;
  font-size: 1rem;
  margin: 30px auto;
  text-align: center;
}

.btn-all-books:hover {
  background-color: rgb(0, 105, 217);
}

/* === Responsive Media Query (Optional) === */
@media (max-width: 768px) {
  .categories-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .trending-books {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .categories-grid {
    grid-template-columns: 1fr;
  }
}
.header {
  color: rgb(45, 62, 80);               /* Dark slate blue-gray */
  font-size: 2.125rem;                  /* 18px approx */
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-weight: 600;                    /* Semi-bold */
  font-style: normal;
  text-align: justify;                 /* Clean block text */
  text-transform: capitalize;          /* Capitalize first letter of each word */
  letter-spacing: 0.8px;               /* Slightly spaced letters */
  line-height: 1.7;                    /* Comfortable reading line height */
  text-shadow: 1px 1px 2px rgba(0,0,0,0.05); /* subtle soft shadow */
  margin-bottom: 1.5rem;
}
.trending-books {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}

.book-card {
  background-color: rgb(250, 250, 250);
  padding: 15px;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  width: 180px;
  text-align: center;
  transition: transform 0.3s ease;
}

.book-card:hover {
  transform: scale(1.05);
}

.book-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 4px;
}

.book-card p {
  margin: 8px 0;
}

.price {
  font-size: 0.95rem;
  font-weight: 600;
  color: rgb(0, 0, 0);
}

.badge {
  font-size: 0.75rem;
  font-weight: bold;
  color: white;
  background-color: rgb(0, 255, 179); /* red-orange */
  padding: 4px 8px;
  border-radius: 4px;
  display: inline-block;
  margin-top: 4px;
}

.description {
  font-size: 0.25rem;
  color: rgb(120, 120, 120); /* faded gray */
  margin-top: 8px;
}

.home-intro {
  font-family: 'Georgia', serif;
  font-size: 1.4rem;
  color: rgb(33, 37, 41); /* Deep charcoal for readability */
  text-align: center;
  padding: 20px 30px;
  background-color: rgb(255, 250, 240); /* Soft ivory background */
  border-radius: 12px;
  margin: 30px auto;
  max-width: 800px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.08);
}


