/* Universal Box Model Fix */
* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

body {
  margin: 0;
  background-color: #8b1e1e;
  font-family: 'Georgia', serif;
  color: #ddd;
}

header {
  width: 100%;
  background-color: #000;
}

.header-banner {
  width: 100%;
  max-height: 100px;
  object-fit: cover;
  display: block;
}

.container {
  display: flex;
  flex-direction: row;
  width: 100%;
  min-height: 100vh;
}

.main-column {
  width: 70%;
  padding: 1rem;
}

.side-column {
  width: 30%;
  padding: 1rem;
  background-color: #2a2a2a;
  color: #ddd;
}

.cover-row a {
  flex: 1 1 45%;
  max-width: 100%;
  display: block;
  text-decoration: none;
}

.cover-row {
  gap: 1rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.cover-image {
  width: 100%;
  height: auto;
  border: 4px solid #444;
  box-shadow: 0 0 20px #000;
  display: block;
}

.blurb-section {
  margin-top: 1rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.audio-player {
  margin-top: 1rem;
  text-align: center;
  font-style: italic;
  font-size: 1rem;
}

.audio-player figcaption {
  margin-bottom: 0.5rem;
  color: #ccc;
}

.teaser-scroll {
  max-height: 400px;
  overflow-y: auto;
  background-color: #2a2a2a;
  padding: 1rem;
  border-radius: 8px;
  margin: 2rem 2rem 1rem 2rem;
}

.teaser-section p {
  margin-bottom: 1rem;
  line-height: 1.6;
}

.author-portrait {
  width: 100%;
  max-width: 200px;
  height: auto;
  display: block;
  margin: 0 auto 1rem;
  border-radius: 4px;
}

footer {
  text-align: center;
  padding: 1rem;
  font-size: 0.9rem;
  color: #aaa;
  background-color: #111;
  width: 100%;
}

@media (max-width: 768px) {
  .container {
    flex-direction: column;
  }

  .main-column,
  .side-column {
    width: 100%;
  }
}

.excerpt-intro {
  margin-top: 2rem;
  text-align: center;
  color: #fff;
}

.excerpt-intro h2 {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
  color: #5ca9e9; /* consider #8b1e1e or #ff4c4c */
}

.excerpt-intro p {
  font-size: 1rem;
  max-width: 600px;
  margin: 0 auto 1rem;
  line-height: 1.5;
}

.buy-now {
  margin-top: 2rem;
  padding: 1rem;
  background-color: #3a3a3a;
  border-left: 4px solid #8b1e1e;
  color: #eee;
  border-radius: 4px;
}

.buy-now h3 {
  margin-top: 0;
  font-size: 1.2rem;
  color: #ff4c4c;
  text-align: left; /* ✅ ensure heading is left-aligned */
}

.buy-now p {
  margin: 0.5rem 0 0;
  font-size: 0.95rem;
  text-align: center; /* ✅ center only the button */
}

.buy-button {
  display: inline-block;
  background-color: #ff9900; /* Amazon orange */
  color: #000; /* Black text */
  font-weight: 600;
  padding: 0.75rem 1rem;
  border-radius: 6px;
  text-align: center;
  text-decoration: none;
  margin: 1rem auto 0;
  font-size: 1rem;
  transition: background-color 0.3s ease;
}

.buy-button:hover {
  background-color: #e68a00; /* Slightly darker on hover */
  color: #000; /* Keep black text */
}

.reader-reviews {
  margin-top: 2rem;
  background-color: #3a3a3a;
  padding: 1rem;
  border-radius: 8px;
  color: #eee;
}

.review-heading {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  color: #ff4c4c;
  font-weight: bold;
}

.review {
  margin-bottom: 1.5rem;
}

.review blockquote {
  font-style: italic;
  margin: 0 0 0.5rem 0;
  padding-left: 1rem;
  border-left: 3px solid #8b1e1e;
}

.review-attribution {
  font-size: 0.9rem;
  color: #ccc;
}

.review-attribution cite {
  font-style: normal;
  font-weight: bold;
  color: #fff;
}

a {
  color: rgb(92, 169, 233);
  text-decoration: none;
}

a:hover,
a:focus {
  text-decoration: underline;
  color: #fff;
}

.side-column a {
  font-weight: bold;
}

.site-credit {
  font-size: 0.85rem;
  color: #888;
  text-align: center;
  margin-top: 0.5rem;
}

.site-credit a {
  color: rgb(92, 169, 233);
  font-weight: 500;
  text-decoration: none;
}

.site-credit a:hover {
  text-decoration: underline;
  color: #fff;
}

.events {
  margin-top: 2rem;
  background-color: #3a3a3a;
  padding: 1rem;
  border-left: 4px solid #8b1e1e;
  border-radius: 4px;
  color: #eee;
}

.events h3 {
  margin-top: 0;
  font-size: 1.2rem;
  color: #ff4c4c;
}

.events ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.events li {
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

.event-public {
  color: #5ca9e9;
  font-weight: bold;
}

.event-private {
  color: #aaa;
  font-style: italic;
}