* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg-primary: #0a0a0a;
  --bg-secondary: #1a1a1a;
  --bg-card: #1f1f1f;
  --text-primary: #ffffff;
  --text-secondary: #b8b8b8;
  --accent-gold: #d4af37;
  --accent-hover: #f0c952;
  --border-color: #333333;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.light-theme {
  --bg-primary: #ffffff;
  --bg-secondary: #f5f5f5;
  --bg-card: #ffffff;
  --text-primary: #1a1a1a;
  --text-secondary: #666666;
  --accent-gold: #c49a3a;
  --accent-hover: #a67f2e;
  --border-color: #e0e0e0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Georgia', 'Playfair Display', serif;
  line-height: 1.7;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  min-height: 100vh;
  transition: var(--transition);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition);
}

.light-theme .navbar {
  background: rgba(255, 255, 255, 0.95);
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent-gold);
  text-decoration: none;
  transition: var(--transition);
}

.logo:hover {
  color: var(--accent-hover);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-links a {
  color: var(--text-primary);
  text-decoration: none;
  font-size: 1rem;
  font-family: 'Arial', sans-serif;
  transition: var(--transition);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-gold);
  transition: width 0.3s;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.theme-toggle {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.theme-toggle:hover {
  background: var(--bg-card);
  transform: rotate(20deg);
}

.mobile-menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  width: 40px;
  height: 40px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1.2rem;
}

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.7)),
    url('https://images.pexels.com/photos/1826664/pexels-photo-1826664.jpeg?auto=compress&cs=tinysrgb&w=1600');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 2rem;
  max-width: 900px;
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 700;
  color: var(--accent-gold);
  margin-bottom: 1rem;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
}

.hero-subtitle {
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  color: #ffffff;
  margin-bottom: 1.5rem;
  font-style: italic;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.8);
}

.hero-intro {
  font-size: clamp(1rem, 2vw, 1.3rem);
  color: #e0e0e0;
  margin-bottom: 2.5rem;
  line-height: 1.8;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.8);
}

.hero-buttons {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  padding: 1rem 2.5rem;
  border-radius: 50px;
  text-decoration: none;
  font-family: 'Arial', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  transition: var(--transition);
  display: inline-block;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--accent-gold);
  color: #000000;
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(212, 175, 55, 0.3);
}

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 2px solid var(--accent-gold);
}

.btn-secondary:hover {
  background: var(--accent-gold);
  color: #000000;
  transform: translateY(-3px);
}

.about {
  padding: 6rem 0;
  background: var(--bg-secondary);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 4rem;
  align-items: center;
}

.about-image img {
  width: 100%;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  transition: var(--transition);
}

.about-image img:hover {
  transform: scale(1.05);
}

.about-content h2 {
  font-size: 2.5rem;
  color: var(--accent-gold);
  margin-bottom: 1.5rem;
}

.about-text {
  font-size: 1.1rem;
  line-height: 1.9;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
}

.highlights {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.highlight-item {
  text-align: center;
  padding: 1.5rem;
  background: var(--bg-card);
  border-radius: 15px;
  border: 1px solid var(--border-color);
  transition: var(--transition);
}

.highlight-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(212, 175, 55, 0.2);
}

.highlight-item i {
  font-size: 2.5rem;
  color: var(--accent-gold);
  margin-bottom: 1rem;
}

.highlight-item h3 {
  font-size: 2rem;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.highlight-item p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.contact {
  padding: 6rem 0;
  background: var(--bg-primary);
}

.contact h2 {
  text-align: center;
  font-size: 2.5rem;
  color: var(--accent-gold);
  margin-bottom: 1rem;
}

.contact-intro {
  text-align: center;
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 3rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.contact-item {
  text-align: center;
  padding: 2rem;
  background: var(--bg-card);
  border-radius: 15px;
  border: 1px solid var(--border-color);
  transition: var(--transition);
}

.contact-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(212, 175, 55, 0.2);
}

.contact-item i {
  font-size: 2.5rem;
  color: var(--accent-gold);
  margin-bottom: 1rem;
}

.contact-item h3 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.contact-item p {
  color: var(--text-secondary);
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
}

.social-links a {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 50%;
  color: var(--text-primary);
  font-size: 1.5rem;
  transition: var(--transition);
}

.social-links a:hover {
  background: var(--accent-gold);
  color: #000000;
  transform: translateY(-5px);
}

.footer {
  background: var(--bg-secondary);
  padding: 2rem 0;
  text-align: center;
  border-top: 1px solid var(--border-color);
}

.footer p {
  color: var(--text-secondary);
  margin: 0.5rem 0;
  font-family: 'Arial', sans-serif;
  font-size: 0.95rem;
}

.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background: #25d366;
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  box-shadow: 0 5px 20px rgba(37, 211, 102, 0.4);
  z-index: 999;
  transition: var(--transition);
  animation: pulse 2s infinite;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 30px rgba(37, 211, 102, 0.6);
}

@keyframes pulse {
  0%, 100% {
    box-shadow: 0 5px 20px rgba(37, 211, 102, 0.4);
  }
  50% {
    box-shadow: 0 5px 30px rgba(37, 211, 102, 0.7);
  }
}

.fade-in {
  opacity: 0;
  animation: fadeIn 1s forwards;
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

.page-header {
  padding: 8rem 0 4rem;
  text-align: center;
  background: var(--bg-secondary);
  margin-top: 60px;
}

.page-header h1 {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  color: var(--accent-gold);
  margin-bottom: 1rem;
}

.page-header p {
  font-size: 1.2rem;
  color: var(--text-secondary);
}

.books-section {
  padding: 4rem 0 6rem;
  background: var(--bg-primary);
}

.books-section h2 {
  font-size: 2.2rem;
  color: var(--accent-gold);
  margin-bottom: 3rem;
  text-align: center;
}

.section-title {
  margin-top: 5rem;
}

.books-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 3rem;
}

.book-card {
  background: var(--bg-card);
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  transition: var(--transition);
}

.book-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(212, 175, 55, 0.2);
}

.book-cover {
  width: 100%;
  height: 400px;
  overflow: hidden;
}

.book-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.book-card:hover .book-cover img {
  transform: scale(1.1);
}

.book-info {
  padding: 2rem;
}

.book-info h3 {
  font-size: 1.5rem;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.book-description {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.news-section {
  padding: 4rem 0 6rem;
  background: var(--bg-primary);
}

.news-list {
  max-width: 900px;
  margin: 0 auto;
}

.news-item {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 2rem;
  margin-bottom: 3rem;
  padding: 2rem;
  background: var(--bg-card);
  border-radius: 20px;
  border: 1px solid var(--border-color);
  transition: var(--transition);
}

.news-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(212, 175, 55, 0.2);
}

.news-date {
  text-align: center;
  padding: 1rem;
  background: var(--accent-gold);
  color: #000000;
  border-radius: 15px;
  height: fit-content;
}

.news-date .day {
  display: block;
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1;
}

.news-date .month {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  margin-top: 0.3rem;
}

.news-content h2 {
  font-size: 1.8rem;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.news-content p {
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 1rem;
}

.news-meta {
  font-size: 0.9rem;
  color: var(--accent-gold);
  margin-bottom: 1.5rem;
}

.news-meta i {
  margin-right: 0.3rem;
}

@media (max-width: 968px) {
  .nav-links {
    display: none;
  }

  .mobile-menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .nav-links.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--bg-secondary);
    padding: 2rem;
    border-bottom: 1px solid var(--border-color);
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .highlights {
    grid-template-columns: 1fr;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .books-grid {
    grid-template-columns: 1fr;
  }

  .news-item {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .news-date {
    width: 100px;
    margin: 0 auto;
  }
}

@media (max-width: 600px) {
  .container {
    padding: 0 1rem;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1.2rem;
  }

  .btn {
    padding: 0.8rem 2rem;
  }

  .whatsapp-float {
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
    bottom: 20px;
    right: 20px;
  }
}






/* --- CONTACT SECTION --- */
.contact {
  padding: 5rem 0;
  background: var(--bg-color, #000);
  color: var(--text-color, #fff);
}

.contact h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 1rem;
  color: gold;
}

.contact-intro {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 3rem;
  font-size: 1.1rem;
  opacity: 0.9;
}

/* Layout */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 3rem;
  align-items: flex-start;
}

/* Info area */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding: 1rem;
}

.contact-item {
  text-align: center;
  padding: 1.5rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  transition: transform 0.3s ease, background 0.3s ease;
}

.contact-item:hover {
  background: rgba(255, 215, 0, 0.1);
  transform: translateY(-5px);
}

.contact-item i {
  font-size: 1.8rem;
  color: gold;
  margin-bottom: 0.5rem;
}

.contact-item h3 {
  margin: 0.3rem 0;
  font-size: 1.2rem;
  color: gold;
}

.contact-item p {
  opacity: 0.85;
}

/* Social links */
.social-links {
  display: flex;
  justify-content: center;
  gap: 1.2rem;
  margin-top: 2rem;
}

.social-links a {
  color: gold;
  font-size: 1.4rem;
  transition: color 0.3s;
  text-decoration: none;
}

.social-links a:hover {
  color: #fff;
}

/* --- Contact Form --- */
.contact-form {
  background: rgba(255, 255, 255, 0.03);
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.1);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: gold;
}

/* Form input base styles */
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  font-size: 1rem;
  transition: background 0.3s, border 0.3s, color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: gold;
  outline: none;
  background: rgba(255, 255, 255, 0.1);
}

/* Submit button */
.btn.btn-primary {
  display: inline-block;
  background: gold;
  color: #000;
  font-weight: bold;
  border: none;
  padding: 0.8rem 1.5rem;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.btn.btn-primary:hover {
  background: #ffdf40;
}

/* --- LIGHT THEME FIX --- */
body.light-theme {
  --bg-color: #fff;
  --text-color: #222;
}

body.light-theme .contact-form {
  background: rgba(0, 0, 0, 0.03);
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.08);
}

body.light-theme .form-group input,
body.light-theme .form-group textarea {
  background: #fff;
  color: #000;
  border: 1px solid rgba(0, 0, 0, 0.2);
}

body.light-theme .form-group input:focus,
body.light-theme .form-group textarea:focus {
  border-color: goldenrod;
  background: #fdf8e3;
}

body.light-theme .contact-item {
  background: rgba(0, 0, 0, 0.05);
}

body.light-theme .contact-item:hover {
  background: rgba(255, 215, 0, 0.1);
}

body.light-theme .contact-item i,
body.light-theme .contact-item h3 {
  color: goldenrod;
}











/* --- DONATE SECTION --- */
.donate {
  padding: 6rem 0;
  background: var(--bg-primary);
  color: var(--text-primary);
  text-align: center;
}

.donate h2 {
  font-size: 2.5rem;
  color: var(--accent-gold);
  margin-bottom: 1rem;
}

.donate-intro {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 3rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.8;
}

.donate-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.donate-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 15px;
  padding: 2rem;
  transition: var(--transition);
}

.donate-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(212, 175, 55, 0.2);
}

.donate-card i {
  font-size: 2.5rem;
  color: var(--accent-gold);
  margin-bottom: 1rem;
}

.donate-card h3 {
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.donate-card p {
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.donation-form {
  max-width: 600px;
  margin: 0 auto;
  background: var(--bg-card);
  padding: 2rem;
  border-radius: 15px;
  border: 1px solid var(--border-color);
}

.donation-form h3 {
  color: var(--accent-gold);
  margin-bottom: 1.5rem;
}

body.light-theme .donate-card,
body.light-theme .donation-form {
  background: #fff;
  border: 1px solid var(--border-color);
}













/* --- Book Preview Section --- */
.book-preview {
  padding: 6rem 0;
  background: var(--bg-secondary);
  color: var(--text-primary);
  text-align: center;
}

.book-preview h2 {
  font-size: 2.5rem;
  color: var(--accent-gold);
  margin-bottom: 0.5rem;
}

.book-subtitle {
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  font-style: italic;
}

.book-content {
  max-width: 700px;
  margin: 0 auto;
  font-size: 1.1rem;
  line-height: 1.8;
  text-align: justify;
}

.book-content p.book-cta {
  font-weight: bold;
  margin: 2rem 0 1.5rem;
  color: var(--accent-gold);
  font-size: 1.2rem;
}

.book-content a.btn-primary {
  padding: 0.8rem 2rem;
  font-size: 1rem;
}
