/* Global Styles */
:root {
  --primary: #4285f4;
  --secondary: #34a5da;
  --dark: #1a1a1a;
  --light: #f8f9fa;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  color: var(--dark);
}

.font-poppins {
  font-family: "Poppins", sans-serif;
}

.primary {
  color: var(--primary);
}

/* Header Styles */
.navbar {
  padding: 1rem 0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.navbar-brand:img {
  height: 42px;
  width: 75px;
  display: block;
  background-position: center;
}

.nav-item:hover .nav-link {
  background-color: #343a40;
  border-radius: 20px;
}

/* Hero Section */
.hero-section {
  background: url("/frontend/images/banner1.jpg");
  /* linear-gradient(
      rgba(255, 255, 255, 0.9),
      rgba(255, 255, 255, 0.9)
    ), */
  background-size: cover;
  background-position: center;
  padding: 4rem 0;
}

/* Book Cards */
.book-card {
  transition: transform 0.3s ease;
  border: 1px solid #969696;
  width: 100%;
  background-color: #ffffff;
  border-radius: 12px;
  overflow: hidden;
}

.book-card:hover {
  box-shadow: 0 4px 4px rgba(0, 0, 0, 0.1);
}

.book-card img {
  height: 300px;
  width: 100%;
  display: block;
  background-position: center;
}

.book-card .card-title {
  font-size: 16px;
  color: #2d2b95;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.book-card .card-text {
  color: #247e08;
  font-size: 0.9rem;
}

/* Section Styles */
.section-title {
  font-size: 24px;
  font-weight: 500;
  margin-bottom: 0;
  font-family: "Poppins", sans-serif;
}

.view-all {
  color: var(--primary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  background-color: #f0f7fd;
  padding-top: 6px;
  padding-right: 14px;
  padding-bottom: 6px;
  padding-left: 14px;
  gap: 8px;
  border-radius: 100px;
}

.view-all:hover {
  text-decoration: underline;
}

/* Slider Controls */
.book-slider {
  position: relative;
  overflow: hidden;
}

.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: white;
  border: none;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  z-index: 2;
  color: #1a1a1a;
  display: flex;
  justify-content: center;
  align-items: center;
}

.slider-arrow.prev {
  left: -40px;
}

.slider-arrow.next {
  right: -40px;
}

/* Footer Styles */
footer {
  background-color: #1a1a1a;
}

footer a {
  color: #fff;
  text-decoration: none;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

footer a:hover {
  opacity: 1;
  color: var(--primary);
}

footer h5 {
  color: #fff;
  margin-bottom: 1.5rem;
  font-weight: 600;
}

/* Responsive Styles */
@media (max-width: 992px) {
  .search-input {
    min-width: 300px;
  }

  .navbar-nav {
    padding: 1rem 0;
  }
}

@media (max-width: 768px) {
  .search-input {
    min-width: 100%;
  }

  .hero-section {
    padding: 2rem 0;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .book-card img {
    height: 200px;
  }
}

@media (max-width: 576px) {
  .navbar {
    padding: 0.5rem 0;
  }

  .hero-section img {
    height: 60px;
  }
}

/* width */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
/* Track */
::-webkit-scrollbar-track {
  box-shadow: inset 0 0 5px grey;
  border-radius: 10px;
}
/* Handle */
::-webkit-scrollbar-thumb {
  background: grey;
  border-radius: 10px;
}
/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
  background: darkgray;
}
.search-input-header {
  padding: 10px 20px !important;
  font-family: "Poppins", sans-serif !important;
  font-weight: 400 !important;
  border: 1px solid #ddd;
  background-color: #f0f0f0;
  color: #8b8b8b;
  font-size: 14px;
  font-weight: 400;
}
.search-input-header:focus {
  box-shadow: 0 0 0 0.2rem rgba(66, 133, 244, 0.25);
  border-color: var(--primary);
}

.search-input {
  border-radius: 0 !important;
  padding: 10px 20px;
  font-family: "Poppins", sans-serif;
  font-weight: 400;
  min-width: 400px;
  padding: 0.75rem 1rem;
  border-radius: 50px;
  border: 1px solid #ddd;
  background-color: #f0f0f0;
  color: #8b8b8b;
  font-size: 14px;
  font-weight: 400;
}

.search-input:focus {
  box-shadow: 0 0 0 0.2rem rgba(66, 133, 244, 0.25);
  border-color: var(--primary);
}

.search-field-container {
  background: #5592cb9e;
  border: 4px solid #0a0a0a3d;
  padding: 20px;
  border-radius: 10px;
  width: 80%;
  @media (min-width: 992px) {
    width: 60%;
  }
}

/* Book-Details-Images */
.book-details-image {
  width: 100%;
  height: 400px;
    background-position: center;
}

.hover-effect {
  transition: all 0.3s ease;
  border: 2px solid transparent;
  display: inline-block;
}

.hover-effect:hover {
  box-shadow: 0 0 20px rgba(66, 133, 244, 0.85),
    0 0 10px rgba(66, 133, 244, 0.6);
  border-color: #4285f4;
  transform: scale(1.05);
  background-color: rgba(66, 133, 244, 0.05);
}

.text-justify {
  text-align: justify;
}

/* details-btn */
.details-btn {
  background-color: var(--primary);
  color: white;
  padding: 10px 20px;
  font-weight: 500;
  border-radius: 8px;
  transition: background-color 0.3s ease, transform 0.2s ease;
  box-shadow: 0 4px 10px rgba(66, 133, 244, 0.2);
  text-decoration: none;
}

.details-btn:hover {
  background-color: var(--secondary);
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(52, 165, 218, 0.3);
}
