:root {
  --primary: #2f3e2e;
  --secondary: #6b7b59;
  --accent: #c2a83e;
  --bg-light: #f5f5f2;
  --text-dark: #1f1f1f;
}

body {
  font-family: "Inter", sans-serif;
  background: var(--bg-light);
  color: var(--text-dark);
}

h1,
h2,
h3,
h4 {
  font-family: "Playfair Display", serif;
}

section {
  /* padding: 100px 0; */
}

/* NAVBAR */
.navbar-modern {
  background: #fff;
  padding: 18px 0;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.04);
}

.navbar-modern .nav-link {
  margin: 0 12px;
  font-weight: 500;
}

.navbar-modern .nav-link:hover {
  color: var(--primary);
}

/* HERO */
.hero {
  height: 85vh;
  background:
    linear-gradient(rgba(47, 62, 46, 0.65), rgba(47, 62, 46, 0.65)),
    url("uploads/assets/hero4.jpg") center/cover no-repeat;
  color: #fff;
  display: flex;
  align-items: center;
  text-align: center;
}

.hero h1 {
  font-size: 3rem;
}

.btn-primary-custom {
  background: var(--primary);
  color: #fff;
  padding: 12px 30px;
  border-radius: 8px;
  border: none;
  transition: 0.3s;
}

.btn-primary-custom:hover {
  background: var(--accent);
  color: var(--primary);
}

/* Books Section */

.books-section {
  background: var(--bg-light);
}

.text-accent {
  color: var(--accent);
}

/* Tabs */
.custom-tabs .nav-link {
  border: none;
  background: #fff;
  margin: 0 8px;
  padding: 10px 25px;
  border-radius: 30px;
  font-weight: 500;
  transition: 0.3s ease;
}

.custom-tabs .nav-link.active {
  background: var(--primary);
  color: #fff;
}

.custom-tabs .nav-link:hover {
  background: var(--secondary);
  color: #fff;
}

/* Book Card Modern */
.book-card-modern {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.05);
  transition: 0.3s ease;
}

.book-card-modern:hover {
  transform: translateY(-8px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.08);
}

.book-img-wrapper {
  height: 250px;
  overflow: hidden;
}

.book-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 0.4s ease;
}

.book-card-modern:hover img {
  transform: scale(1.08);
}

.book-body {
  padding: 18px;
}

.book-body h5 {
  font-size: 1rem;
  margin-bottom: 10px;
  color: var(--text-dark);
}

.book-body .price {
  color: var(--accent);
  font-weight: 600;
}

/* SERVICES */
.service-card {
  background: #fff;
  border-radius: 16px;
  padding: 30px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  transition: 0.3s;
}

.service-card:hover {
  transform: translateY(-8px);
}

/* FOOTER */
footer {
  background: var(--primary);
  color: #fff;
  padding: 60px 0;
}

footer a {
  color: var(--accent);
  text-decoration: none;
}
/* ================= HERO CAROUSEL ================= */

.hero-carousel {
  position: relative;
}

.hero-slide {
  height: 70vh;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

/* Background images */
.slide-1 {
  background-image: url("../uploads/assets/hero4.jpg");
}

.slide-2 {
  background-image: url("../uploads/assets/hero2.jpg");
}

.slide-3 {
  background-image: url("../uploads/assets/hero3.jpg");
}

/* Elegant Gradient Overlay */
.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(47, 62, 46, 0.75) 20%,
    rgba(47, 62, 46, 0.55) 50%,
    rgba(47, 62, 46, 0.3) 100%
  );
}

/* Subtle Zoom Animation */
.carousel-item.active .hero-slide {
  animation: zoomBg 8s ease-in-out forwards;
}

@keyframes zoomBg {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.05);
  }
}

/* Content */
.hero-content {
  position: relative;
  z-index: 2;
  color: #fff;
  max-width: 750px;
}

.hero-content h1 {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  opacity: 0.95;
}

/* CTA Button */
.btn-hero {
  background: var(--accent);
  color: var(--primary);
  padding: 14px 35px;
  border-radius: 8px;
  font-weight: 600;
  transition: 0.3s ease;
}

.btn-hero:hover {
  background: #fff;
  color: var(--primary);
}

/* Arrows */

.custom-arrow {
  width: 55px;
  height: 55px;
  /* background: rgba(0, 0, 0, 0.4); */
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  filter: brightness(0) invert(1) !important;
}

/* Mobile */
@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 2.2rem;
  }
  .hero-content p {
    font-size: 1rem;
  }
}

/* ================= BOOK DETAIL PAGE ================= */

.book-detail-container {
  margin-top: 120px;
  margin-bottom: 80px;
}

/* Main image */
.book-main-image {
  background: #fff;
  border-radius: 20px;
  padding: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.06);
}

.book-main-image img {
  width: 100%;
  height: 500px;
  object-fit: contain;
}

/* Gallery thumbnails */
.gallery-thumb {
  width: 100px;
  height: 120px;
  overflow: hidden;
  border-radius: 10px;
  cursor: pointer;
  transition: 0.3s ease;
}

.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-thumb:hover {
  transform: scale(1.05);
}

/* Info Card */
.book-info-card {
  background: #fff;
  padding: 40px;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.06);
}

.book-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.book-author {
  color: #666;
  margin-bottom: 20px;
}

.book-price {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--accent);
}

/* Meta Grid */
.book-meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 20px;
  font-size: 0.95rem;
}

/* Description */
.book-description h5 {
  margin-bottom: 10px;
}

.book-description p {
  color: #555;

  max-width: 600px;
  line-height: 1.7;
  text-align: justify;

  /* word-break: break-word; */
}

/* Buy Button */
.btn-buy {
  background: #25d366;
  color: #fff;
  padding: 14px 30px;
  border-radius: 8px;
  font-weight: 600;
  transition: 0.3s ease;
}

.btn-buy:hover {
  background: #1ebe5b;
  color: #fff;
}

/* Mobile */
@media (max-width: 768px) {
  .book-main-image img {
    height: 350px;
  }

  .book-meta-grid {
    grid-template-columns: 1fr;
  }
}

/* Description clamp */
.clamp-text {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2; /* change to 2 if you want */
  overflow: hidden;
}

/* Expanded state */
.clamp-text.expanded {
  -webkit-line-clamp: unset;
  /* overflow: visible; */
}

/* Read More button */
.read-more-btn {
  background: none;
  border: none;
  color: #c2a83e;
  font-weight: 600;
  padding: 0;
  cursor: pointer;
}

/* Modal  */

.modal-content {
  background: transparent;
}

.modal-body {
  background: rgba(237, 231, 231, 0.85);
  border-radius: 15px;
}

.modal-body img {
  width: 100%;
  height: 70vh;
  object-fit: contain;
}

.modal-close {
  position: absolute;
  top: 45px;
  right: 20px;
  font-size: 1.5rem;
  color: #ffffff;
  cursor: pointer;
  z-index: 10;
}

/* Login  */
.login-wrapper {
  width: 100%;
  height: 100vh;
  position: relative;
  z-index: 1;
}

.login-card {
  width: 100%;
  max-width: 480px; /* Desktop limit */
  background: #fff;
  padding: 40px 35px;
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.login-title {
  font-weight: 700;
  margin-bottom: 8px;
}

.login-subtitle {
  font-size: 14px;
  color: #777;
  margin-bottom: 30px;
}

.form-label {
  font-weight: 500;
  font-size: 14px;
}

.form-control {
  border-radius: 10px;
  padding: 12px 14px;
  border: 1.5px solid #ddd;
  font-size: 15px;
  transition: 0.2s ease;
}

.form-control:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(194, 168, 62, 0.15);
}

.input-group-text {
  background: transparent;
  border-right: 0;
  border-radius: 10px 0 0 10px;
}

.form-control.with-icon {
  border-left: 0;
  border-radius: 0 10px 10px 0;
}

.btn-login {
  background: var(--primary);
  color: #fff;
  padding: 12px;
  border-radius: 10px;
  font-weight: 600;
  transition: 0.3s ease;
}

.btn-login:hover {
  background: var(--secondary);
  color: #fff;
}

.forgot-link {
  font-size: 13px;
  text-decoration: none;
  color: var(--secondary);
}

.forgot-link:hover {
  color: var(--primary);
}

.register-text {
  font-size: 14px;
}

.register-text a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}

.register-text a:hover {
  text-decoration: underline;
}

.alert {
  border-radius: 10px;
  font-size: 14px;
}

/* ============================= */
/* responsive for Login */
/* ============================= */

/* Tablet */
@media (max-width: 768px) {
  .login-card {
    padding: 35px 25px;
  }
}

/* Mobile */
@media (max-width: 576px) {
  .login-wrapper {
    padding: 15px;
  }

  .login-card {
    padding: 25px 20px;
    border-radius: 14px;
  }

  .login-title {
    font-size: 22px;
  }

  .login-subtitle {
    font-size: 13px;
  }

  .form-control {
    font-size: 14px;
  }
}
