/* CSS Variables for Theme Management */
:root {
  --primary-color: #7d4f50;
  --secondary-color: #6a3f40;
  --background-color: #f9f9f9;
  --text-color: #333;
  --text-light: #777;
  --white: #ffffff;
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
}

/* General Styles */
body {
  font-family: "Inter", sans-serif;
  margin: 0;
  padding: 0;
  background-color: var(--background-color);
  color: var(--text-color);
  line-height: 1.6;
  box-sizing: border-box;
}

h1,
h2,
h3 {
  font-family: "Merriweather", serif;
  font-weight: 700;
  color: var(--text-color);
  margin: 0;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

a:hover {
  color: var(--primary-color);
}

/* Header */
header {
  text-align: center;
  padding: 100px 20px;
  background-color: var(--white);
}

header h1 {
  font-size: 2.5rem;
  margin-bottom: 10px;
}

header p {
  font-size: 1.1rem;
  color: var(--text-light);
}

/* Navigation */
nav {
  position: sticky;
  top: 0;
  background: var(--white);
  padding: 1rem;
  box-shadow: var(--shadow);
  z-index: 1000;
}

.nav-container {
  max-width: 1200px;
  margin: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-weight: bold;
  font-size: 1.5rem;
  color: var(--primary-color);
}

nav ul {
  display: flex;
  list-style: none;
  gap: 1.5rem;
}

nav ul li a {
  font-weight: 500;
  color: var(--text-color);
  position: relative;
}

nav ul li a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 100%;
  height: 2px;
  background-color: var(--primary-color);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}

nav ul li a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  justify-content: center;
  align-items: center;
  margin: 0;
  padding: 0;
  cursor: pointer;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background-color: var(--text-color);
  transition: var(--transition);
}

@media (max-width: 768px) {
  nav ul {
    display: none;
    flex-direction: column;
    background: var(--primary-color);
    padding: 0;
    margin: 0;
    list-style: none;
    position: absolute;
    top: 70px;
    width: 100%;
    height: calc(50vh - 70px);
    left: 0;
    justify-content: center;
    align-items: center;
    box-shadow: var(--shadow);
  }
  nav ul li a {
    color: var(--white);
  }
  nav ul.active {
    display: flex;
  }

  .hamburger {
    display: flex;
  }
}
.hamburger-icon {
  font-size: 2rem; /* make it large */
  color: var(--text-color);
  user-select: none;
}

/* Books Section */
.section {
  padding: 100px 40px;
  text-align: center;
  background-color: var(--white);
}

.section h2 {
  font-size: 2rem;
  margin-bottom: 40px;
}

.books-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
  max-height: fit-content;
}

.book {
  background: var(--white);
  padding: 40px;
  box-shadow: var(--shadow);
  border-radius: 8px;
  text-align: center;
  transition: var(--transition);
}

.book:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.book img {
  width: 100%;
  height: auto;
  border-radius: 8px;
}

/* About Section */
.about {
  padding: 80px 20px;
  text-align: center;
  background-color: var(--background-color);
}

.about h2 {
  font-size: 2rem;
  margin-bottom: 40px;
}

.about-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.about-image {
  width: 100%;
  max-width: 400px;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.about-content {
  text-align: left;
  max-width: 600px;
}

.about-content p {
  font-size: 1.1rem;
  color: var(--text-light);
  line-height: 1.8;
  margin-bottom: 20px;
}

.about-content .social-links {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.about-content .social-links a {
  font-size: 1.5rem;
  color: var(--primary-color);
  transition: var(--transition);
}

.about-content .social-links a:hover {
  color: var(--secondary-color);
}

/* Responsive About Section */
@media (min-width: 768px) {
  .about-container {
    flex-direction: row;
    justify-content: center;
    align-items: flex-start;
  }

  .about-image {
    max-width: 300px;
  }
}

/* Blog Section */
.blog {
  padding: 80px 20px;
  text-align: center;
  background-color: var(--white);
}

.blog h2 {
  font-size: 2rem;
  margin-bottom: 40px;
}

.blog-posts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.blog-post {
  background: var(--white);
  padding: 20px;
  box-shadow: var(--shadow);
  border-radius: 8px;
  text-align: left;
  transition: var(--transition);
}

.blog-post:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.blog-post h3 {
  font-size: 1.5rem;
  margin: 0 0 10px;
}

.blog-post p {
  font-size: 1rem;
  color: var(--text-light);
}

.blog-post a {
  color: var(--primary-color);
  font-weight: 500;
}

/* Events Section */
.events {
  padding: 80px 20px;
  text-align: center;
  background-color: var(--background-color);
}

.events h2 {
  font-size: 2rem;
  margin-bottom: 40px;
}

.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.event {
  background: var(--white);
  padding: 20px;
  box-shadow: var(--shadow);
  border-radius: 8px;
  text-align: left;
  transition: var(--transition);
}

.event:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.event h3 {
  font-size: 1.5rem;
  margin: 0 0 10px;
}

.event p {
  font-size: 1rem;
  color: var(--text-light);
}

.event a {
  color: var(--primary-color);
  font-weight: 500;
}

/* Testimonials Section */
.testimonials {
  padding: 80px 20px;
  text-align: center;
  background-color: var(--white);
}

.testimonials h2 {
  font-size: 2rem;
  margin-bottom: 40px;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.testimonial {
  background: var(--white);
  padding: 20px;
  box-shadow: var(--shadow);
  border-radius: 8px;
  text-align: left;
  transition: var(--transition);
}

.testimonial:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.testimonial p {
  font-size: 1rem;
  color: var(--text-light);
  font-style: italic;
}

.testimonial h3 {
  font-size: 1.1rem;
  margin: 10px 0 0;
  color: var(--primary-color);
}

/* Contact Section */
.contact {
  padding: 80px 20px;
  text-align: center;
  background-color: #ffffff;
}

.contact h2 {
  font-size: 2rem;
  margin-bottom: 40px;
}

.contact form {
  max-width: 600px;
  margin: 0 auto;
  text-align: left;
  padding: 0 20px;
  box-sizing: border-box;
}

.contact input,
.contact textarea {
  width: 100%;
  padding: 12px;
  font-size: 1rem;
  border: 1px solid #ddd;
  border-radius: 8px;
  margin-bottom: 20px;
  box-sizing: border-box;
}

.contact textarea {
  height: 150px;
  resize: vertical;
}

.contact button {
  width: 100%;
  padding: 12px 24px;
  font-size: 1rem;
  background-color: var(--primary-color);
  color: var(--white);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: var(--transition);
}

.contact button:hover {
  background-color: var(--secondary-color);
}

/* Newsletter Section */
.newsletter {
  padding: 80px 20px;
  text-align: center;
  background-color: var(--white);
}

.newsletter h2 {
  font-size: 2rem;
  margin-bottom: 20px;
}

.newsletter p {
  font-size: 1rem;
  color: var(--text-light);
  margin-bottom: 40px;
}

.newsletter form {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0 20px;
  box-sizing: border-box;
}

.newsletter input {
  flex: 1;
  padding: 12px;
  font-size: 1rem;
  border: 1px solid #ddd;
  border-radius: 8px;
  min-width: 200px;
  box-sizing: border-box;
}

.newsletter button {
  padding: 12px 24px;
  font-size: 1rem;
  background-color: var(--primary-color);
  color: var(--white);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: var(--transition);
  flex-shrink: 0;
}

.newsletter button:hover {
  background-color: var(--secondary-color);
}

/* Responsive Newsletter and Contact Form */
@media (max-width: 768px) {
  .newsletter form,
  .contact form {
    flex-direction: column;
  }

  .newsletter input,
  .contact input,
  .contact textarea {
    width: 100%;
  }

  .newsletter button {
    width: 100%;
  }
}

/* Footer Styles */
footer {
  background-color: var(--primary-color);
  color: var(--white);
  padding: 60px 20px;
  text-align: center;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px;
  text-align: left;
}

.footer-column {
  flex: 1;
  min-width: 200px;
}

.footer-column h3 {
  font-size: 1.5rem;
  margin-bottom: 20px;
  color: var(--white);
}

.footer-column p {
  font-size: 1rem;
  color: var(--white);
  opacity: 0.8;
  line-height: 1.6;
}

.footer-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-column ul li {
  margin-bottom: 10px;
}

.footer-column ul li a {
  color: var(--white);
  opacity: 0.8;
  transition: var(--transition);
}

.footer-column ul li a:hover {
  opacity: 1;
  color: var(--white);
}

.footer-social {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.footer-social a {
  font-size: 1.5rem;
  color: var(--white);
  opacity: 0.8;
  transition: var(--transition);
}

.footer-social a:hover {
  opacity: 1;
  color: var(--white);
}

.footer-bottom {
  margin-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
  font-size: 0.9rem;
  color: var(--white);
  opacity: 0.8;
}

.footer-bottom a {
  color: var(--white);
  text-decoration: underline;
}

.footer-bottom a:hover {
  opacity: 1;
}

/* Responsive Footer */
@media (max-width: 768px) {
  .footer-top {
    flex-direction: column;
    text-align: center;
  }

  .footer-column {
    text-align: center;
  }

  .footer-social {
    justify-content: center;
  }
}
/* Hero Section */
.hero {
  position: relative;
  width: 100%;
  height: 80vh;
  overflow: hidden;
}

.hero-slider {
  position: relative;
  width: 100%;
  height: 100%;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.slide.active {
  opacity: 1;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slide-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: white;
}

.slide-content h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.slide-content p {
  font-size: 1.2rem;
  margin-bottom: 30px;
}

.slide-content .btn {
  padding: 10px 20px;
  font-size: 1rem;
  background-color: var(--primary-color);
  color: var(--white);
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: var(--transition);
}

.slide-content .btn:hover {
  background-color: var(--secondary-color);
}

.slider-controls {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  padding: 0 20px;
  transform: translateY(-50%);
}

.slider-controls button {
  background: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  padding: 10px;
  cursor: pointer;
}

/* Responsive Hero Section */
@media (max-width: 768px) {
  .hero {
    height: 60vh;
  }

  .slide-content h2 {
    font-size: 2rem;
  }

  .slide-content p {
    font-size: 1rem;
  }

  .slide-content .btn {
    font-size: 0.9rem;
    padding: 8px 16px;
  }

  .slider-controls button {
    padding: 8px;
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .hero {
    height: 50vh;
  }

  .slide-content h2 {
    font-size: 1.5rem;
  }

  .slide-content p {
    font-size: 0.9rem;
  }

  .slide-content .btn {
    font-size: 0.8rem;
    padding: 6px 12px;
  }

  .slider-controls button {
    padding: 6px;
    font-size: 0.9rem;
  }
}
.view-all {
  display: block;
  margin-top: 20px;
  font-size: 1rem;
  font-weight: 500;
  color: var(--primary-color);
}
.section-divider {
  text-align: end;
  margin-top: 0px;
}
.cta-button {
  display: inline-block;
  padding: 10px 20px;
  font-size: 1rem;
  font-weight: 500;

  background-color: var(--primary-color);
  border-radius: 8px;
  transition: var(--transition);
  margin-bottom: 20px;
  color: var(--white);
}

.cta-button:hover {
  background-color: var(--secondary-color);
}
.hero.no-slider {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  height: 80vh;
  text-align: center;
  background-color: #f9f9f9;

  padding: 0 20px;
  position: relative;
  overflow: hidden;
}

.hero-content {
  max-width: 800px;
  margin: auto;
  animation: fadeIn 1s ease-in;
}

/* General Reset */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
body {
  overflow-x: hidden;
}

/* Hero Section Base */
.hero.no-slider {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  height: 80vh;
  text-align: center;
  background-color: #f9f9f9;
  padding: 0 20px;
  position: relative;
  overflow: hidden;
}

.hero-content {
  max-width: 800px;
  margin: auto;
  padding: 0 20px;
}

.hero-content h2 {
  font-size: 3rem;
  font-weight: 700;
  font-family: "Merriweather", serif;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 20px;
}

.tagline {
  font-size: 1.2rem;
  font-style: italic;
  color: var(--text-light);
  margin-bottom: 20px;
  line-height: 1.5;
}

.hero-content p {
  font-size: 1.1rem;
  color: var(--text-color);
  margin-bottom: 30px;
  line-height: 1.6;
}

.hero-content .btn {
  background-color: var(--primary-color);
  color: var(--white);
  padding: 12px 30px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 500;
  transition: var(--transition);
  border: none;
  cursor: pointer;
  text-decoration: none;
}

.hero-content .btn:hover {
  background-color: var(--secondary-color);
}

/* Responsive Styles */
@media (max-width: 768px) {
  .hero.no-slider {
    height: auto;
    padding: 60px 20px;
  }

  .hero-content h2 {
    font-size: 2rem;
  }

  .tagline {
    font-size: 1rem;
  }

  .hero-content p {
    font-size: 1rem;
  }

  .hero-content .btn {
    font-size: 0.95rem;
    padding: 10px 20px;
  }
}

@media (max-width: 480px) {
  .hero.no-slider {
    padding: 40px 15px;
  }

  .hero-content h2 {
    font-size: 1.8rem;
  }

  .tagline {
    font-size: 0.95rem;
  }

  .hero-content p {
    font-size: 0.95rem;
  }

  .hero-content .btn {
    font-size: 0.9rem;
    padding: 10px 20px;
  }
}
