/* news.css — for page-news.php */

.news-hero {
  text-align: center;
  padding: 6rem 2rem 3rem;
  background: transparent; /* match dark terminal background */
  color: #00ffcc;
  font-family: 'Courier New', Courier, monospace;
}

.news-hero h1 {
  font-size: 2.5rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.news-hero p {
  font-size: 1rem;
  color: #ccc;
  margin-top: 0.5rem;
}

/* Book grid */
.book-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4rem;
  padding: 4rem 2rem;
  background: transparent;
}

/* Book card */
.book-card {
  background: transparent;
  border: 1px solid #00ffcc33;
  border-radius: 8px;
  overflow: hidden;
  max-width: 320px;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease;
  box-shadow: 0 0 15px #00ffcc22;
}

.book-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 0 25px #00ffcc44;
}

.book-cover img {
  width: 100%;
  height: auto;
  display: block;
  background: #000;
  padding: 1rem;
  filter: grayscale(20%) brightness(1.1) contrast(1.1);
}

.book-info {
  padding: 1.5rem 1rem;
  font-family: 'Courier New', Courier, monospace;
  color: #00ffcc;
}

.book-info h2 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.book-info p {
  font-size: 0.9rem;
  color: #ccc;
  line-height: 1.4;
}

/* Purchase buttons */
.book-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 1rem;
  justify-content: center;
}

.book-links a {
  background: #00ffcc22;
  color: #00ffcc;
  border: 1px solid #00ffcc55;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  text-decoration: none;
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.85rem;
  transition: background 0.3s, color 0.3s;
}

.book-links a:hover {
  background: #00ffcc44;
  color: #ffffff;
}

/* Responsive tweaks */
@media (max-width: 768px) {
  .book-grid {
    flex-direction: column;
    align-items: center;
  }

  .book-card {
    max-width: 90%;
  }
}

/* Featured Book (Big Hero Layout) */
.featured-book {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  padding: 4rem 2rem;
  background: transparent;
}

.featured-book-cover img {
  max-width: 480px;
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 0 20px #00ffcc33;
  margin: 0 auto;
}

.featured-book-details {
  flex: 1;
  padding: 2rem;
  font-family: 'Courier New', Courier, monospace;
  color: #00ffcc;
}

.featured-book-details h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.featured-book-details p {
  font-size: 1rem;
  color: #ccc;
  margin-bottom: 1.5rem;
}

/* ======================================== */
/* MOBILE POLISH FOR NEWS PAGE (Final Pass) */
/* ======================================== */
@media (max-width: 768px) {

  /* Book Grid - Stack cleanly */
  .book-grid {
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    padding: 2rem 1rem;
  }

  /* Book Card - Expand softly */
  .book-card {
    max-width: 90%;
    padding: 1rem;
    box-shadow: 0 0 12px #00ffcc22;
  }

  /* Book Info - Center text */
  .book-info {
    text-align: center;
  }

  .book-info h2 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
  }

  .book-info p {
    font-size: 1rem;
    line-height: 1.6;
    color: #bbb;
  }

  /* Book Links */
  .book-links {
    justify-content: center;
  }

  .book-links a {
    padding: 0.6rem 1.2rem;
    font-size: 0.85rem;
  }

  /* Featured Book */
  .featured-book {
    flex-direction: column;
    padding: 2rem 1rem;
    text-align: center;
  }

  .featured-book-cover img {
    max-width: 80%;
    margin-bottom: 2rem;
  }

  .featured-book-details {
    padding: 1.5rem 0;
  }

  .featured-book-details h2 {
    font-size: 1.8rem;
  }

  .featured-book-details p {
    font-size: 1rem;
    color: #bbb;
  }

}