/* === Styling for Individual Book Pages === */

.book-detail {
  padding: 40px 20px;
}

.book-header {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  align-items: flex-start;
  margin-bottom: 60px;
  margin-top: 60px;
}

.book-header img {
  max-width: 400px;
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.book-meta {
  flex: 1;
  min-width: 280px;
}

.book-meta h2 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  color: #222;
}

.book-meta p {
  font-size: 1rem;
  color: #666;
  margin-bottom: 1rem;
}

.buy-buttons {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.buy-buttons .button {
  background-color: #d87a5f;
  color: #fff;
  font-size: 1rem;
  font-weight: 500;
  font-family: 'Work Sans', sans-serif;
  text-decoration: none;
  padding: 0.6em 1.2em;
  border: none;
  border-radius: 20px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.buy-buttons .button:hover {
  background-color: #b75f48;
  transform: translateY(-2px);
}

/* Book Awards Section */
.book-awards-section {
  margin-bottom: 60px;
}

.book-awards-section .container {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: space-between;
}

 
.book-awards,
.book-state-awards {
  flex: 1 1 48%; /* Allow them to shrink, grow, and take up 48% each */
  min-width: 300px;
}

.book-awards h3,
.book-state-awards h3 {
  font-size: 1.5rem;
  margin-bottom: 20px;
  color: #222;
}

.book-awards ul,
.book-state-awards ul {
  list-style: none;
  padding: 0;
  margin: 0;
  line-height: 1.6;
}

.book-awards li,
.book-state-awards li {
  position: relative;
  padding-left: 1.2em;
  margin-bottom: 8px;
}

.book-awards li::before,
.book-state-awards li::before {
  content: "★";
  position: absolute;
  left: 0;
  color: #d87a5f;
}

/* Centered version for single-column layout */
.book-awards-section.single-column .book-awards li {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 0.4em;
  padding-left: 0;
  text-align: center;
  position: static;
}

.book-awards-section.single-column .book-awards li::before {
  position: static;
  content: "★";
  color: #d87a5f;
}

.book-awards-section.single-column .book-awards {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.book-awards-section.single-column .book-awards h3 {
  font-size: 1.8rem;
  margin-bottom: 24px;
}

.book-awards-section.single-column .container {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: space-between;
}


.book-awards-section.single-column .book-awards {
  flex: 0 1 auto; /* Prevent it from growing */
  max-width: 600px;
}

.book-awards-section.single-column .book-awards h3 {
  font-size: 1.8rem;
  margin-bottom: 24px;
}

/* Mobile responsive adjustment */
@media (max-width: 700px) {
  .book-awards-section {
    flex-direction: column;
  }
}

.book-overview,
.book-praise,
.book-resources,
.book-cta {
  padding: 40px 20px;
}

.book-overview p {
  max-width: 700px;
  margin: 0 auto;
  font-size: 1.6rem;
  color: #444;
  text-align: center;
}

.book-praise h2,
.book-resources h2 {
  text-align: center;
  margin-bottom: 20px;
  font-size: 1.8rem;
  color: #222;
}

.book-praise blockquote {
  font-style: italic;
  margin: 1.5rem auto;
  max-width: 700px;
  color: #333;
  text-align: center;
}


.resource-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.resource-list a {
  text-decoration: none;
  background: #f0f0f0;
  padding: 0.8em 1.2em;
  border-radius: 8px;
  font-size: 1rem;
  transition: background 0.3s;
  color: #222;
}

.resource-list a:hover {
  background: #e0e0e0;
}

.book-cta {
  text-align: center;
}

.book-cta .button.fun {
  margin-top: 20px;
}

.fade-in {
  animation: fadeInUp 0.6s ease both;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* === Book Praise Slider === */
#book-praise-slider {
  position: relative;
  padding: 40px 16px;
  text-align: center;
  background-color: #f7f7f7;

}

.full-bleed {
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
}

#book-praise-slider h2 {
  font-size: 2rem;
  margin-bottom: 10px;
  color: #333;
}

#book-praise-slider .slider-wrapper {
  position: relative;
  height: 250px;
  width: 100%;
  margin: 0 auto;
  max-width: /*clamp(800px, 80%, 1000px);*/none;
  padding: /*20px 0;*/ 0 16px;
  overflow: hidden;
  border-radius: 16px;             /* ✅ Adds the rounded corners */

}

#book-praise-slider .slider-wrapper blockquote {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 1s ease, visibility 1s ease;
  font-style: italic;
  width: 100%;
  max-width: clamp(700px, 75%, 950px);
  margin: 0 auto;
  z-index: 0;
  box-sizing: border-box;
  padding: 0 20px;
}

#book-praise-slider .slider-wrapper blockquote.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  z-index: 1;
}

#book-praise-slider blockquote p {
  font-size: clamp(1.1rem, 1.5vw, 1.4rem);
  color: #333;
  line-height: 1.6;
  margin-bottom: 0.5em;
}

#book-praise-slider blockquote footer {
  font-size: clamp(1rem, 1.2vw, 1.1rem);
  color: #555;
  margin-top: 0.5em;
  font-style: italic;
}

#book-praise-slider #book-quote-dots {
  text-align: center;
  margin-top: 1em;
  position: relative;
  z-index: 2;
  opacity: 0;
  transition: opacity 1s ease;
}

#book-praise-slider:hover #book-quote-dots {
  opacity: 1;
}

#book-praise-slider #book-quote-dots .dot {
  display: inline-block;
  width: 12px;
  height: 12px;
  margin: 0 5px;
  background-color: #ccc;
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s ease, opacity 0.5s ease;
  opacity: 0.7;
}

#book-praise-slider #book-quote-dots .dot.active {
  background-color: #545454;
  transform: scale(1.2);
  opacity: 1;
}

/* Ensure the section spacing matches others */
#book-praise-slider h2 {
  font-size: 2rem;
  margin-bottom: 30px;
  color: #333;
}
/* === Praise Slider Styles === */

#book-praise-slider {
  position: relative;
  padding: 60px 20px;
  text-align: center;
  background-color: #f7f7f7;
  overflow: hidden;
}

/* Praise slider container wrapper */
#book-praise-slider .container {
  position: relative;
}

/* Arrows inside container */
.quote-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 20px;
  padding: 0 16px;
  max-width: 100%;
}

.quote-nav button {
  background: rgba(255, 255, 255, 0.85);
  border: none;
  font-size: 2rem;
  color: #545454;
  border-radius: 50%;
  background-color: #f7f7f7;
  width: 40px;
  height: 40px;
  cursor: pointer;
  transition: background 0.3s, transform 0.3s;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}


.quote-nav button:hover {
  background-color: rgba(200, 200, 200, 0.9);
}

/* Stack vertically on small screens */
@media (max-width: 600px) {
  #book-praise-slider .container {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  @media (max-width: 600px) {
  #book-praise-slider .slider-wrapper {
    height: 370px; /* or any value that fits your mobile quotes comfortably */
  }
}

  #book-praise-slider .slider-wrapper {
    order: 1;
  }

  #book-praise-slider .quote-nav {
    order: 2;
    margin-top: 20px;
    justify-content: center;
    gap: 16px;
  }
}

/* Book Gallery */
.book-gallery-section {
  padding: 20px;
  background-color: #fff; /* matches Praise section */
}

.book-gallery-section h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 40px;
  color: #333;
}

.book-gallery-section .masonry {
  margin: 0 auto;
}

/* === Resources Section === */

.resources-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: space-between;
  align-items: flex-start;
  margin-top: 40px;
}

.resource-column {
  flex: 1;
  min-width: 280px;
  width: 100%;
}

.resource-column h3 {
  font-size: 1.4rem;
  margin-bottom: 16px;
  color: #333;
  text-align: center;
}

/* Downloadables and Videos share the same layout */
.resource-list,
.video-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Individual resource item */

.resource-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: #f9f9f9;
  padding: 12px 16px;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}



.resource-item a {
  font-weight: 600;
  font-size: 1rem;
  color: #222;
  text-decoration: none;
  background: #eaeaea;
  padding: 0.5em 1em;
  border-radius: 6px;
  display: inline-block;
  width: fit-content;
  transition: background 0.3s ease;
}

.resource-item a:hover {
  background: #e0e0e0;
}

.resource-item p {
  margin-top: 6px;
  font-size: 0.95rem;
  color: #555;
  line-height: 1.4;
}

/* Individual video item */
.video-item {
  margin-bottom: 0;
}

.video-item iframe {
  height: 150px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.video-caption {
  margin-top: 8px;
  font-size: 0.95rem;
  color: #555;
  line-height: 1.4;
}

.video-link img {
  width: 100%;
  height: 150px; /* match the iframe height */
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.video-link:hover img {
  transform: scale(1.02);
}

/* Responsive stacking */
@media (max-width: 700px) {
  .resources-grid {
    flex-direction: column;
    gap: 32px;
  }

  .resource-column {
    width: 100%;
  }
}

/* Call to Action */
.book-cta {
  background-color: #fef3ef; /* soft peach/pink to stand out */
  text-align: center;
  padding: 60px 20px;
  margin-top: 60px;
  border-top: 1px solid #e4dcd9;
  border-bottom: 1px solid #e4dcd9;
}

.cta-subtext {
  font-size: 1rem;
  color: #666;
  margin-bottom: 1em;
  font-style: italic;
}

.cta-button {
  display: inline-block;
  background-color: #d87a5f;
  color: #fff;
  font-size: 1.25rem;
  font-weight: 600;
  font-family: 'Work Sans', sans-serif;
  text-decoration: none;
  padding: 0.8em 1.6em;
  border: none;
  border-radius: 30px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.cta-button:hover {
  background-color: #b75f48;
  transform: translateY(-2px);
}

/* Book Overview */
.book-overview {
  background-color: #fcf9f6; /* soft background to highlight the section */
  border-radius: 16px;
  padding: 40px 30px;
  max-width: 800px;
  margin: 0 auto 60px auto;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  text-align: center;
}

.book-overview p {
  font-size: 1.15rem;
  color: #444;
  line-height: 1.7;
  margin: 0;
}
