:root {
  --primary-green: #14532d;
  --accent-gold: #a88944;
  --deep-navy: #0f172a;
  --light-bg: #f8f9fa;
  --text-dark: #1e293b;
  --text-light: #cbd5e1;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--light-bg);
}

/* Navbar */
.navbar-custom {
  background: white;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  padding: 0.8rem 0;
  transition: all 0.3s ease;
  color: #000000;
  
}

.navbar-custom.scrolled {
  padding: 0.5rem 0;
}

.navbar-custom .nav-link {
  color: #000000;
  font-weight: 500;
  padding: 8px 15px;
  border-radius: 6px;
  transition: all 0.3s ease;
  position: relative;
}

.navbar-custom .nav-link:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

.navbar-custom .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--accent-gold);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.navbar-custom .nav-link:hover::after {
  width: 80%;
}

.brand-logo {
  height: 60px;
  transition: all 0.3s ease;
}

/* Hero Section */
.hero-header {
  position: relative;
  overflow: hidden;
  margin-bottom: 2rem;
}

.hero-header img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.hero-header:hover img {
  transform: scale(1.02);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.4));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: white;
  text-align: center;
  padding: 2rem;
}

.hero-overlay h1 {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  letter-spacing: 0.5px;
}

.hero-overlay p {
  font-size: 1.2rem;
  max-width: 600px;
  margin: 0 auto;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.cta-button {
  display: inline-block;
  margin-top: 1.5rem;
  padding: 12px 30px;
  background: var(--accent-gold);
  color: white;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.cta-button:hover {
  background: #8c6d32;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  color: white;
}

/* Categories Section */
.categories-section {
  padding: 4rem 0;
  background: white;
  position: relative;
}

.cat-title {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 3rem;
  color: var(--primary-green);
  position: relative;
}

.cat-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--accent-gold);
  border-radius: 2px;
}

.cat-item {
  text-align: center;
  padding: 20px 0;
  transition: all 0.3s ease;
}

.cat-item:hover {
  transform: translateY(-10px);
}

.cat-circle {
  width: 150px;
  height: 150px;
  margin: auto;
  border: 5px solid var(--accent-gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 60px;
  background: linear-gradient(135deg, var(--primary-green), #004d4d);
  color: white;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.cat-circle::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: rgba(255, 255, 255, 0.1);
  transform: rotate(45deg);
  transition: all 0.5s ease;
}

.cat-circle:hover::before {
  transform: rotate(45deg) translate(10px, 10px);
}

.cat-circle:hover {
  transform: scale(1.1);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.cat-name {
  margin-top: 15px;
  font-size: 18px;
  font-weight: 600;
  color: white;
  transition: color 0.3s ease;
}

.cat-item:hover .cat-name {
  color: var(--primary-green);
}

/* Featured Section */
.featured-section {
  padding: 4rem 0;
  background: linear-gradient(to bottom, #f1f5f9, #e2e8f0);
}

.section-title {
  text-align: center;
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 3rem;
  color: var(--primary-green);
}

.featured-card {
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  height: 100%;
}

.featured-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.featured-img {
  height: 200px;
  width: 100%;
  object-fit: cover;
}

.featured-content {
  padding: 1.5rem;
}

.featured-content h3 {
  font-size: 1.3rem;
  margin-bottom: 0.8rem;
  color: var(--primary-green);
}

.featured-content p {
  color: var(--text-dark);
  margin-bottom: 1rem;
}

.read-more {
  color: var(--accent-gold);
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  transition: all 0.3s ease;
}

.read-more i {
  margin-left: 5px;
  transition: transform 0.3s ease;
}

.read-more:hover {
  color: var(--primary-green);
}

.read-more:hover i {
  transform: translateX(5px);
}

/* Newsletter Section */
.newsletter-section {
  padding: 4rem 0;
  background: var(--primary-green);
  color: white;
  text-align: center;
}

.newsletter-section h2 {
  font-size: 2.2rem;
  margin-bottom: 1rem;
}

.newsletter-section p {
  max-width: 600px;
  margin: 0 auto 2rem;
  font-size: 1.1rem;
}

.newsletter-form {
  max-width: 500px;
  margin: 0 auto;
  display: flex;
  gap: 10px;
}

.newsletter-form input {
  flex: 1;
  padding: 12px 15px;
  border: none;
  border-radius: 50px;
  outline: none;
}

.newsletter-form button {
  background: var(--accent-gold);
  color: white;
  border: none;
  padding: 12px 25px;
  border-radius: 50px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.newsletter-form button:hover {
  background: #8c6d32;
  transform: translateY(-2px);
}

/* Footer */
footer {
  background: var(--deep-navy);
  color: var(--text-light);
  padding: 3rem 0 1.5rem;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  margin-bottom: 2rem;
}

.footer-column {
  flex: 1;
  min-width: 200px;
  margin-bottom: 1.5rem;
}

.footer-column h3 {
  color: white;
  margin-bottom: 1.2rem;
  font-size: 1.2rem;
  position: relative;
  padding-bottom: 10px;
}

.footer-column h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background: var(--accent-gold);
}

.footer-column ul {
  list-style: none;
  padding: 0;
}

.footer-column ul li {
  margin-bottom: 0.8rem;
}

.footer-column ul li a {
  color: var(--text-light);
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-block;
}

.footer-column ul li a:hover {
  color: var(--accent-gold);
  transform: translateX(5px);
}

.social-links {
  display: flex;
  gap: 15px;
  margin-top: 1rem;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: white;
  transition: all 0.3s ease;
}

.social-links a:hover {
  background: var(--accent-gold);
  transform: translateY(-3px);
}

.copyright {
  text-align: center;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.9rem;
}

/* Swiper */
.swiper-button-next, .swiper-button-prev {
  color: var(--accent-gold);
  background: rgba(255, 255, 255, 0.8);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.swiper-button-next::after, .swiper-button-prev::after {
  font-size: 1.2rem;
}

/* Responsive */
@media (max-width: 768px) {
  .hero-header img {
    height: 350px;
  }
  
  .hero-overlay h1 {
    font-size: 2.5rem;
  }
  
  .cat-circle {
    width: 120px;
    height: 120px;
    font-size: 50px;
  }
  
  .newsletter-form {
    flex-direction: column;
  }
  
  .footer-content {
    flex-direction: column;
  }
}

@media (max-width: 576px) {
  .hero-overlay h1 {
    font-size: 2rem;
  }
  
  .hero-overlay p {
    font-size: 1rem;
  }
  
  .cat-title, .section-title {
    font-size: 2rem;
  }
  
  .newsletter-section h2 {
    font-size: 1.8rem;
  }
}
.featured-card{
  background:#fff;
  border-radius:10px;
  transition: .3s;
}
.featured-card:hover{
  transform: translateY(-5px);
  box-shadow:0 8px 20px rgba(0,0,0,.15);
}
.read-more i {
  transition: transform .2s;
}
.read-more:hover i {
  transform: translateX(4px);
}
@media (max-width:768px){
  .featured-img{height:120px;}
}

.card:hover img{
    filter:brightness(.9);
    transform:scale(1.02);
    transition:.4s;
}
.book-col{
    width:50%; /* 3 per row mobile */
}


.book-col{
    width:50%; /* 3 per row mobile */
    text-align:center;
}

@media(min-width:992px){
    .book-col{
        width:16%; /* 8 per row laptop */
    }
}

.book-img{
    width:120px;
    height:180px;
    object-fit:cover;
    border-radius:8px;
    transition:.4s;
}

.book-col:hover .book-img{
    filter:brightness(.9);
    transform:scale(1.02);
}
