/* === Base Styles === */
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  margin: 0;
  padding: 0;
  background-color: #f8f9fa;
  color: #222;
  line-height: 1.6;
}

/* === Header === */
.header-bar {
  display: flex;
  align-items: center;
  background: linear-gradient(to right, #4e2a84, #7137b9);
  color: white;
  padding: 20px;
  flex-wrap: wrap;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.logo {
  width: 60px;
  height: auto;
  margin-right: 20px;
}

.header-text h1 {
  font-size: 28px;
  margin: 0;
}

.header-text p {
  font-size: 14px;
  margin: 4px 0 0;
  opacity: 0.85;
}

/* === Search Bar === */
#search-section {
  text-align: center;
  margin: 30px 20px 10px;
}

#search-input {
  width: 90%;
  max-width: 500px;
  padding: 12px 15px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
  transition: all 0.2s ease;
}

#search-input:focus {
  border-color: #5a3e85;
  outline: none;
  box-shadow: 0 0 5px rgba(90, 62, 133, 0.3);
}

/* === Book List === */
#book-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  padding: 20px;
  gap: 25px;
}

/* === Book Card === */
.book {
  background: white;
  border-radius: 12px;
  width: 260px;
  padding: 16px;
  border: 1px solid #e3e3e3;
  box-shadow: 0 4px 8px rgba(0,0,0,0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;

  display: flex;
  flex-direction: column;
  justify-content: space-between;
}


.book:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.book img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 10px;
}

.book h2 {
  font-size: 18px;
  margin: 8px 0 6px;
  color: #4e2a84;
}

.book p {
  margin: 4px 0;
  font-size: 14px;
}

/* === Responsive === */
@media (max-width: 600px) {
  .book {
    width: 90%;
  }

  .header-text h1 {
    font-size: 22px;
  }

  .book h2 {
    font-size: 16px;
  }

  .book p {
    font-size: 13px;
  }
}

/* === Dark Mode === */
@media (prefers-color-scheme: dark) {
  body {
    background-color: #121212;
    color: #e0e0e0;
  }

  .header-bar {
    background: linear-gradient(to right, #2b195a, #4a2d85);
  }

  .book {
    background-color: #1e1e1e;
    border: 1px solid #333;
    box-shadow: 0 4px 10px rgba(255, 255, 255, 0.05);
  }

  .book h2 {
    color: #c8a6ff;
  }

  input, #search-input {
    background-color: #2b2b2b;
    color: #fff;
    border: 1px solid #555;
  }

  #search-input:focus {
    box-shadow: 0 0 5px rgba(200, 166, 255, 0.3);
    border-color: #c8a6ff;
  }
}

.book-content {
  flex-grow: 1;
}

.whatsapp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background-color: #25D366;
  color: white;
  padding: 10px;
  width: 100%;
  text-decoration: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  margin-top: auto;
  transition: background-color 0.2s ease;
  box-sizing: border-box;
}

.whatsapp-icon {
  width: 18px;
  height: 18px;
  vertical-align: middle;
  display: inline-block;
}

.whatsapp-icon {
  transform: translateY(4px); /* adjust pixel-by-pixel if needed */
}

.whatsapp-btn:hover {
  background-color: #1ebe5d;
}

.whatsapp-btn img {
  max-width: 20px;
  max-height: 20px;
  display: inline-block;
}

.maitreyi-footer {
  background-color: #2b2b2b;
  color: white;
  padding: 20px;
  margin-top: 40px;
  font-family: 'Arial', sans-serif;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  padding: 30px;
  background-color: #1a1a1a;
  color: white;
}

.footer-logo img {
  width: 80px;
  height: auto;
}

.footer-text, .footer-contact {
  max-width: 300px;
}

.footer-text h2 {
  margin: 0;
  font-size: 20px;
}

.footer-text p, .footer-contact p {
  margin: 8px 0;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}

.footer-icon {
  width: 16px;
  height: 16px;
  vertical-align: middle;
}

.footer-contact a {
  color: #fff;
  text-decoration: none;
}

.footer-contact a:hover {
  text-decoration: underline;
}

@media (prefers-color-scheme: dark) {
  .footer-content {
    background-color: #121212;
    color: #e0e0e0;
  }

  .footer-contact a {
    color: #e0e0e0;
  }
}

.maitreyi-navbar {
  background-color: #8b0000; /* deep red from logo */
  width: 100%;
  padding: 0;
  margin: 0;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.navbar-menu {
  display: flex;
  justify-content: center;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}

.navbar-menu li {
  margin: 0;
}

.navbar-menu a {
  display: block;
  padding: 15px 20px;
  text-decoration: none;
  color: white;
  font-weight: 600;
  font-size: 1rem;
  text-transform: uppercase;
  transition: background-color 0.3s, color 0.3s;
}

.navbar-menu a:hover,
.navbar-menu a:focus {
  background-color: #b30000; /* slightly lighter red */
  color: #ffd700; /* golden-yellow hover effect */
  outline: none;
}

@media (max-width: 600px) {
  .navbar-menu a {
    padding: 12px 15px;
    font-size: 0.95rem;
  }
}

.footer-bottom {
  background-color: #8b0000; /* match your navbar red */
  color: white;
  text-align: center;
  padding: 10px 0;
  font-size: 0.9rem;
  font-weight: 500;
}

.authors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  padding: 20px;
}

.author-card {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease;
}

.author-card:hover {
  transform: translateY(-4px);
}

.author-card img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.author-details {
  padding: 15px;
}

.author-details h2 {
  margin: 0 0 10px;
  font-size: 18px;
  color: #5a3e85;
}

.author-details p {
  margin: 5px 0;
  font-size: 14px;
  color: #444;
}

/* Dark mode */
@media (prefers-color-scheme: dark) {
  .author-card {
    background: #1f1f1f;
    border: 1px solid #333;
  }

  .author-details p,
  .author-details h2 {
    color: #eee;
  }
}

.toggle-about {
  background: none;
  border: none;
  color: #5a3e85;
  font-weight: bold;
  cursor: pointer;
  margin-top: 6px;
}

.toggle-about:hover,
.toggle-about:focus {
  text-decoration: underline;
}
.review-container {
  max-width: 1100px;
  margin: 2rem auto;
  padding: 1rem;
}

#reviews {
  display: grid;
  gap: 2rem;
}

.review-card {
  border: 1px solid #ddd;
  border-radius: 12px;
  background-color: #fff;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.card-header {
  position: relative;
}

.card-header img {
  width: 100%;
  height: auto;
  display: block;
}

.book-title-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 1rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
  color: #fff;
  font-size: 1.25rem;
  font-weight: bold;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.6);
}

.card-body {
  padding: 1rem;
}

.reviewer-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.reviewer-img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #ccc;
}

.reviewer-name {
  font-weight: bold;
  font-size: 1.1rem;
  color: #333;
}

.review-stars {
  color: #f5b400;
  font-size: 1rem;
  margin: 0.2rem 0 0.8rem;
}

.review-text {
  font-size: 1rem;
  line-height: 1.6;
  color: #444;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.show-more-btn {
  background-color: transparent;
  color: #b5171a;
  border: none;
  cursor: pointer;
  margin-top: 0.5rem;
  font-weight: bold;
  font-size: 0.95rem;
}

body.contact-page-full-image {
  margin: 0;
  padding: 0;
  background-color: black;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
}

.image-wrapper {
  background-color: black;
  padding: 20px; /* Add desired margin here */
  max-width: 95vw;
  max-height: 95vh;
  box-sizing: border-box;
}

.image-wrapper img {
  width: 100%;
  height: auto;
  display: block;
  border: 2px solid #111;
  box-shadow: 0 0 10px rgba(0,0,0,0.6);
}


