/* =========================
   GLOBAL RESET (safe basics)
========================= */

* {
  box-sizing: border-box;
}

/* used to lighten image (on about page)  */
.lighten {
  filter: brightness(1.5);
}

/* Align nav content with page content area */

/* Right-align main navigation */
.menu__list {
  justify-content: flex-end;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Hero section */
.home-hero {
  position: relative;
  height: 500px;
  overflow: hidden;
  border-radius: 10px;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.home-hero__bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
  /* Optional dark overlay for text readability */
  filter: brightness(0.6);
}

.home-hero__text {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  text-align: center;
}

.home-hero__text span {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 2.5rem;
  font-style: italic;
  color: #fff;
  letter-spacing: 0.05em;
  text-shadow: 1px 2px 8px rgba(0,0,0,0.5);
}

/* Mobile */
@media (max-width: 600px) {
  .home-hero {
    height: 300px;
  }
  .home-hero__text span {
    font-size: 1.6rem;
  }
}

/* Book promo section */
.book-promo {
  display: flex;
  align-items: center;
  gap: 3rem;
  padding: 3rem 2rem;
  background: #f9f9f9;
  border-radius: 10px;
  margin: 0 auto 2rem auto;
  justify-content: center;
}
.book-promo__cover {
  flex-shrink: 0;
}

.book-promo__cover img {
  max-width: 220px;
  display: block;
}

.book-promo__text {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.book-promo__title {
  font-size: 2.5rem;
  margin: 0;
  font-style: italic;
}

.book-promo__subtitle {
  font-size: 1.2rem;
  color: #555;
  margin: 0;
}

.book-promo__btn {
  display: inline-block;
  background: #c0392b;
  color: #fff !important;
  padding: 0.75rem 2rem;
  border-radius: 6px;
  font-weight: bold;
  text-decoration: none !important;
  font-size: 1.1rem;
  align-self: flex-start;
  transition: background 0.2s ease;
}

.book-promo__btn:hover {
  background: #a93226;
}

/* Mobile */
@media (max-width: 600px) {
  .book-promo {
    flex-direction: column;
    text-align: center;
    gap: 1.5rem;
  }

  .book-promo__btn {
    align-self: center;
  }
}


/* =========================
   THEME GRID (homepage sections)
========================= */

.themes {
  display: grid;
  grid-template-columns: 1fr;  /* was repeat(2, 1fr) */
  gap: 2rem;
  margin-top: 2rem;
}

.theme-card {
  border: 1px solid #eee;
  border-radius: 10px;
  padding: 1.5rem;
  background: #fff;
}

/* Theme title */
.theme-card h2 {
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #c0392b;
  margin-bottom: 1rem;
}

/* Theme description text */
.theme-card p {
  color: #555;
  margin-bottom: 1rem;
  line-height: 1.4;
}

/* Explore link */
.theme-card a {
  display: inline-block;
  margin-top: 1rem;
  font-weight: bold;
  text-decoration: none;
}

/* Themes Heading on home page */
.themes-intro {
  text-align: center;
  margin-top: 3rem;
  margin-bottom: 0rem;
 /* font-style: italic;*/
  color: #c0392b;
}

/* =========================
   POST GRID (3 cards under each theme)
========================= */

.post-card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1rem;
}

/* Individual post card */
.post-card {
  border: 1px solid #eee;
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.15s ease;
}

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

/* Image */
.post-card-image img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  display: block;
}

/* Content */
.post-card-content {
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding-bottom: 0rem;  /* tighten bottom padding */
}

/* Title */
.post-card-title {
  font-size: 1rem;
  margin: 0;
}

/* Excerpt */
.post-card-excerpt {
  font-size: 0.85rem;
  color: #666;
  line-height: 1.3;
  margin-bottom: 0;
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 900px) {
  .themes {
    grid-template-columns: 1fr;
  }

  .post-card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .post-card-grid {
    grid-template-columns: 1fr;
  }
}

/* =========================
   CATEGORY PAGE
========================= */
.category-title {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  text-transform: capitalize;
}

/* Push sidebar further to right edge */
.sidebar {
  padding-left: 4rem;
}

.theme-card a.theme-explore-link {
  display: block;
  text-align: right;
  margin-top: 1rem;
  font-weight: bold;
  text-decoration: none;
}

/* testimonials for Untracked book page */
/* Testimonial grid */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin: 2rem 0;
}

.testimonial-grid blockquote {
  border-left: 4px solid #c0392b;
  background: #f9f9f9;
  border-radius: 8px;
  padding: 1.25rem;
  margin: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.testimonial-grid blockquote p {
  font-style: italic;
  margin: 0 0 1rem 0;
  line-height: 1.5;
}

.testimonial-grid blockquote footer {
  text-align: right;
  font-weight: bold;
  color: #555;
  font-size: 0.9rem;
}

@media (max-width: 768px) {
  .testimonial-grid {
    grid-template-columns: 1fr;
  }
}

/* Book intro layout */
.book-intro {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  margin-bottom: 2rem;
}

.book-cover {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.book-cover img {
  max-width: 200px;
}

.buy-now-btn {
  display: inline-block;
  background: #c0392b;
  color: #fff !important;
  padding: 0.5rem 1.25rem;
  border-radius: 6px;
  font-weight: bold;
  text-decoration: none !important;
}

.buy-now-btn:hover {
  background: #a93226;
}

.book-description {
  flex: 1;
}

@media (max-width: 600px) {
  .book-intro {
    flex-direction: column;
  }
}

/* YouTube video bottom margin */
div[style*="padding-bottom: 56.25%"] {
  margin-bottom: 2rem;
}

/* Dropdown menu */
.menu__item--has-children {
  position: relative;
}

.menu__dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #333;
  min-width: 200px;
  list-style: none;
  padding: 0;
  margin: 0;
  z-index: 100;
  border-top: 2px solid #c0392b;
}

.menu__item--has-children:hover .menu__dropdown {
  display: block;
}

.menu__dropdown-item a {
  display: block;
  padding: 0.75rem 1rem;
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
}

.menu__dropdown-item a:hover {
  background: #c0392b;
}

/* Contact form */
.contact-form {
  max-width: 600px;
  margin: 2rem 0;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.contact-form__field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.contact-form__field label {
  font-weight: bold;
  font-size: 0.95rem;
}

.contact-form__field input,
.contact-form__field textarea {
  padding: 0.6rem 0.75rem;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 1rem;
  font-family: inherit;
  width: 100%;
}

.contact-form__field input:focus,
.contact-form__field textarea:focus {
  outline: none;
  border-color: #c0392b;
}

.contact-form__btn {
  display: inline-block;
  background: #c0392b;
  color: #fff;
  padding: 0.75rem 2rem;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  align-self: flex-start;
  transition: background 0.2s ease;
}

.contact-form__btn:hover {
  background: #a93226;
}

/* 404 page */
.error-404 {
  text-align: center;
  padding: 4rem 2rem;
}

.error-404__code {
  font-size: 6rem;
  color: #c0392b;
  margin: 0;
  line-height: 1;
}

.error-404__title {
  font-size: 1.8rem;
  font-style: italic;
  margin: 1rem 0;
}

.error-404__message {
  color: #555;
  margin-bottom: 2rem;
}

.error-404__btn {
  display: inline-block;
  background: #c0392b;
  color: #fff !important;
  padding: 0.75rem 2rem;
  border-radius: 6px;
  font-weight: bold;
  text-decoration: none !important;
  transition: background 0.2s ease;
}

.error-404__btn:hover {
  background: #a93226;
}