/* ═══════════════════════════════════════════════════════════════════════════
   whispers of the pine spirit — Homepage Sections CSS
   All section-specific styles for index.php
   ═══════════════════════════════════════════════════════════════════════════ */

/* ─── Hero Section ────────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 108svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #E8E8E8 url('../img/herobackground1.png'); /* Light textured background */
  background-blend-mode: multiply;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

.hero::before {
     content: '';
    position: absolute;
    inset: 0;
    background: rgb(0 0 0 / 30%);
}

.hero__particles {
  display: none; /* Hide particles for clean light theme */
}

.hero__inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  /* gap: var(--space-16); */
  align-items: center;
  /* padding: calc(var(--header-h) + 40px) 0 80px; */
}

.hero__content { max-width: 600px; padding-left: var(--space-8); }

.hero__eyebrow {
  display: block;
  font-family: var(--font-heading);
  font-size: clamp(2rem, 3vw, 2.5rem);
  font-weight: 400;
  color: #333;
  margin-bottom: var(--space-2);
}

/* .hero__headline {
  font-family: var(--font-heading);
  font-size: clamp(3rem, 7vw, 5rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0.02em;
  color: #111;
  text-transform: uppercase;
  margin-bottom: var(--space-4);
} */

.hero__subhead {
  font-family: var(--font-body);
  font-size: clamp(1.2rem, 2vw, 1.8rem);
  font-weight: 700;
  color: #FF5B22; /* Orange accent */
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-4);
}

/* .hero__subtitle {
  font-size: var(--fs-lg);
  color: #555;
  line-height: 1.7;
  margin-bottom: var(--space-8);
  max-width: 480px;
} */

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  align-items: center;
}

.hero__scroll {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  color: rgba(255,255,255,0.4);
  font-family: var(--font-button);
  font-size: var(--fs-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-top: var(--space-16);
}

.hero__scroll-line {
  width: 40px;
  height: 1px;
  background: rgba(255,255,255,0.3);
  position: relative;
  overflow: hidden;
}

.hero__scroll-line::after {
  content: '';
  position: absolute;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--cr-gold);
  animation: scrollLine 2s linear infinite;
}

@keyframes scrollLine {
  to { left: 100%; }
}

.hero__visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero__book-wrap {
  position: relative;
  width: 100%;
  max-width: 100%;
}

.hero__book {
  width: 100%;
  filter: drop-shadow(-20px 20px 40px #000);
  transform-style: preserve-3d;
  animation: heroBookFloat 7s ease-in-out infinite;
}

@keyframes heroBookFloat {
  0%, 100% { transform: perspective(1000px) rotateY(15deg) rotateZ(-2deg) translateY(0); }
  50%       { transform: perspective(1000px) rotateY(15deg) rotateZ(-2deg) translateY(-10px); }
}

.hero__book-glow {
  position: absolute;
  bottom: -40px;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 40px;
  background: rgba(184,138,68,0.20);
  filter: blur(24px);
  border-radius: 50%;
  animation: heroBookFloat 6s ease-in-out infinite;
}

.hero__award {
  position: absolute;
  top: -20px;
  right: -40px;
  width: 100px;
  height: 100px;
  background: var(--cr-gold);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-3);
  box-shadow: 0 8px 32px rgba(184,138,68,0.50);
  animation: goldPulse 2s ease-in-out infinite;
}

.hero__award-text {
  font-family: var(--font-button);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  line-height: 1.2;
}

/* ─── Featured Book Section ──────────────────────────────────────────────────── */
.featured-book {
  background: var(--cr-black);
  overflow: hidden;
}

.featured-book__inner {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 0;
  min-height: 640px;
}

.featured-book__cover-side {
  background: linear-gradient(145deg, #1A1410 0%, #2A1E14 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-16);
  position: relative;
  overflow: hidden;
}

.featured-book__cover-side::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(184,138,68,0.08) 0%, transparent 70%);
}

.featured-book__cover {
  max-width: 280px;
  filter: drop-shadow(0 32px 64px rgba(0,0,0,0.7));
  position: relative;
  z-index: 1;
  transition: transform var(--transition-slow);
}

.featured-book__cover:hover {
  transform: scale(1.03) rotate(1deg);
}

.featured-book__content-side {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--space-16) var(--space-12);
}

.featured-book__label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-button);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cr-gold);
  margin-bottom: var(--space-5);
}

.featured-book__label::before {
  content: '';
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--cr-gold);
}

.featured-book__title {
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.1;
  margin-bottom: var(--space-4);
}

.featured-book__author {
  font-size: var(--fs-lg);
  color: var(--cr-grey-600);
  margin-bottom: var(--space-6);
}

.featured-book__rating {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-6);
}

.featured-book__excerpt {
  font-size: var(--fs-md);
  color: var(--cr-grey-600);
  line-height: 1.8;
  margin-bottom: var(--space-8);
  max-width: 480px;
}

.featured-book__formats {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-bottom: var(--space-8);
}

.format-pill {
  font-family: var(--font-button);
  font-size: var(--fs-xs);
  font-weight: 600;
  padding: 0.4em 1em;
  border-radius: var(--radius-full);
  border: 1.5px solid var(--cr-grey-300);
  color: var(--cr-grey-600);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.format-pill.active,
.format-pill:hover {
  background: var(--cr-black);
  border-color: var(--cr-black);
  color: #fff;
}

.featured-book__price-row {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  margin-bottom: var(--space-6);
}

.featured-book__price {
  font-family: var(--font-button);
  font-size: var(--fs-3xl);
  font-weight: 700;
  color: var(--cr-black);
}

.featured-book__cta { display: flex; gap: var(--space-4); }

/* ─── Author Story Section ────────────────────────────────────────────────────── */
.author-story {
  position: relative;
  background: #ffffff;
  padding: 13pc 0;
  overflow: hidden;
}

.author-story__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  z-index: 0;
}

.author-story__inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.author-story__left {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.author-story__eyebrow {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--cr-black);
  margin-bottom: 15px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 900;
}

.author-story__name {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 4vw, 4rem);
  font-weight: 900;
  line-height: 1.1;
  color: #1a1a1a;
  margin-bottom: 25px;
  text-transform: uppercase;
}

.author-story__bio {
  font-size: 1rem;
  color: #555;
  line-height: 1.8;
  margin-bottom: 20px;
  max-width: 90%;
}

.btn-author {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--cr-black);
  color: var(--cr-cream);
  font-weight: 500;
  font-size: 1rem;
  padding: 14px 35px;
  border-radius: 30px;
  text-decoration: none;
  align-self: flex-start;
  transition: background 0.3s ease;
  margin-top: 15px;
}

.btn-author:hover {
  background: var(--cr-cream);
  color: var(--cr-black);
}

.author-story__right {
  position: relative;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.author-story__graphic {
  position: relative;
  width: 100%;
  max-width: 420px;
  aspect-ratio: 1;
  margin-right: 20px;
}

.author-story__circle {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background-color: #fcfcfc;
  border: 12px solid var(--cr-black);
  z-index: 1;
  overflow: hidden;
}

.author-story__dots {
  position: absolute;
  top: -10%;
  left: -10%;
  width: 50%;
  height: 50%;
  background-image: radial-gradient(var(--cr-black) 2.5px, transparent 2.5px);
  background-size: 20px 20px;
  z-index: 0;
    opacity: 0.8;
}

.author-story__dots1 {
    position: absolute;
    bottom: -10%;
    right: 0%;
    width: 50%;
    height: 50%;
    background-image: radial-gradient( var(--cr-black) 2.5px, transparent 2.5px);
    background-size: 20px 20px;
    z-index: 0;
    opacity: 0.8;
}

.author-story__photo {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: auto;
  height: 100%;
  z-index: 2;
  object-fit: contain;
  object-position: bottom center;
}

.author-story__book-mockup {
  position: absolute;
  left: -35%;
  bottom: -5%;
  width: 60%;
  height: auto;
  z-index: 5;
  filter: drop-shadow(0 20px 25px rgba(0,0,0,0.25));
  object-fit: contain;
  transition: transform 0.3s ease;
}

.author-story__book-mockup:hover {
  transform: translateY(-5px) scale(1.05);
}

/* ─── Books Grid Section ─────────────────────────────────────────────────────── */
.books-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
}

@media (max-width: 1024px) { .books-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 768px)  { .books-grid { grid-template-columns: repeat(2, 1fr); gap: var(--space-4); } }
@media (max-width: 480px)  { .books-grid { grid-template-columns: 1fr; } .author-story__image-wrap { margin-top: 0px; }.author-story__book-mockup { display: none; }  }

/* ─── Categories Section ─────────────────────────────────────────────────────── */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-5);
}

@media (max-width: 1024px) { .categories-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px)  { .categories-grid { grid-template-columns: 1fr; } }

.category-card {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  aspect-ratio: 1;
  cursor: pointer;
  display: block;
}

.category-card__bg {
  position: absolute;
  inset: 0;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.category-card:hover .category-card__bg { transform: scale(1.08); }

.category-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 60%);
  transition: background var(--transition-base);
}

.category-card:hover .category-card__overlay {
  background: linear-gradient(to top, rgba(0,0,0,0.80) 0%, rgba(0,0,0,0.2) 100%);
}

.category-card__content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--space-6);
  color: #fff;
}

.category-card__name {
  font-family: var(--font-heading);
  font-size: var(--fs-2xl);
  font-weight: 600;
  line-height: 1.2;
}

.category-card__count {
  font-family: var(--font-button);
  font-size: var(--fs-xs);
  color: rgba(255,255,255,0.65);
  letter-spacing: 0.08em;
  margin-top: var(--space-1);
}

/* ─── Book Series Section ────────────────────────────────────────────────────── */
.series-swiper-wrap {
  position: relative;
  padding-bottom: var(--space-10);
}

.series-card {
  background: var(--cr-white);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  height: 100%;
}

.series-card__image-wrap {
  position: relative;
  aspect-ratio: 3/4;
  overflow: hidden;
}

.series-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.series-card:hover .series-card__image { transform: scale(1.05); }

.series-card__number {
  position: absolute;
  top: var(--space-4);
  left: var(--space-4);
  width: 40px;
  height: 40px;
  background: var(--cr-gold);
  color: #fff;
  font-family: var(--font-button);
  font-size: var(--fs-lg);
  font-weight: 800;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.series-card__body {
  padding: var(--space-4);
}

.series-card__title {
  font-family: var(--font-heading);
  font-size: var(--fs-lg);
  margin-bottom: var(--space-2);
}

.series-card__price {
  font-family: var(--font-button);
  font-size: var(--fs-base);
  font-weight: 700;
  color: var(--cr-gold);
}

/* ─── Awards Section ─────────────────────────────────────────────────────────── */
.awards {
  background: linear-gradient(135deg, #111111 0%, #1A1410 100%);
  color: var(--cr-cream);
}

.awards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
}

@media (max-width: 1024px) { .awards-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px)  { .awards-grid { grid-template-columns: 1fr; } }

.award-card {
  text-align: center;
  padding: var(--space-8);
  border: 1px solid rgba(184,138,68,0.20);
  border-radius: var(--radius-xl);
  transition: border-color var(--transition-base), background var(--transition-base);
}

.award-card:hover {
  border-color: rgba(184,138,68,0.50);
  background: rgba(184,138,68,0.05);
}

.award-card__icon {
  font-size: 3rem;
  margin-bottom: var(--space-4);
}

.award-card__title {
  font-family: var(--font-heading);
  font-size: var(--fs-xl);
  color: var(--cr-gold);
  margin-bottom: var(--space-2);
}

.award-card__year {
  font-family: var(--font-button);
  font-size: var(--fs-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(245,242,236,0.5);
}

.award-card__body {
  font-size: var(--fs-sm);
  color: rgba(245,242,236,0.65);
  margin-top: var(--space-3);
  line-height: 1.7;
}

/* ─── Testimonials Section ───────────────────────────────────────────────────── */
.testimonials { background: var(--cr-cream); }

.testimonial-card {
  background: var(--cr-white);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  box-shadow: var(--shadow-sm);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.testimonial-card__quote {
  font-family: var(--font-quote);
  font-style: italic;
  font-size: var(--fs-md);
  line-height: 1.8;
  color: var(--cr-grey-700);
  flex: 1;
  margin-bottom: var(--space-6);
}

.testimonial-card__quote::before {
  content: '"';
  font-size: 3rem;
  line-height: 0;
  display: block;
  margin-bottom: var(--space-4);
  color: var(--cr-gold);
  opacity: 0.4;
  font-style: normal;
}

.testimonial-card__author {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.testimonial-card__avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--cr-grey-100);
}

.testimonial-card__name {
  font-family: var(--font-button);
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--cr-black);
}

.testimonial-card__role {
  font-size: var(--fs-xs);
  color: var(--cr-grey-500);
  margin-top: 2px;
}

/* ─── Statistics Section ─────────────────────────────────────────────────────── */
.statistics {
  background: var(--cr-gold);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-8);
  text-align: center;
}

@media (max-width: 768px) { .stats-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .stats-grid { grid-template-columns: 1fr; } }

.stat-item__number {
  font-family: var(--font-heading);
  font-size: var(--fs-6xl);
  font-weight: 600;
  color: #fff;
  line-height: 1;
}

.stat-item__suffix {
  color: rgba(255,255,255,0.6);
}

.stat-item__label {
  font-family: var(--font-button);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: rgba(255,255,255,0.8);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: var(--space-2);
}

/* ─── Book Trailer Section ───────────────────────────────────────────────────── */
.book-trailer {
  position: relative;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  padding: 120px 0;
  display: flex;
  align-items: center;
}

.book-trailer__overlay {
  position: absolute;
  inset: 0;
  background: rgb(0 0 0 / 61%);
  z-index: 1;
}

.book-trailer__layout {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: var(--space-8);
}

@media (max-width: 768px) {
  .book-trailer__layout {
    flex-direction: column;
    text-align: center;
  }
}

.book-trailer__text-col {
  max-width: 60%;
  color: #fff;
}

@media (max-width: 768px) {
  .book-trailer__text-col {
    max-width: 100%;
  }
}

.book-trailer__title {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  margin-bottom: var(--space-2);
  line-height: 1.1;
  color: #fff;
}

.book-trailer__subtitle {
  font-family: var(--font-body);
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  font-weight: 600;
  margin-bottom: var(--space-4);
  line-height: 1.3;
  color: #fff;
}

.book-trailer__desc {
  font-family: var(--font-body);
  font-size: 1.125rem;
  margin-bottom: var(--space-6);
  opacity: 0.9;
}

.book-trailer__btn {
  background-color: #8D6B52;
  color: #fff;
  padding: var(--space-3) var(--space-6);
  border: none;
  border-radius: 4px;
  text-transform: none;
  font-size: 1rem;
  font-weight: 500;
}
.book-trailer__btn:hover {
  background-color: #715541;
  color: #fff;
}

.book-trailer__video-col {
  flex-shrink: 0;
  margin-right: 15%;
}

@media (max-width: 768px) {
  .book-trailer__video-col {
    margin-right: 0;
    margin-top: var(--space-6);
  }
}

.trailer-thumbnail {
  position: relative;
  cursor: pointer;
  width: 90px;
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.trailer-play-btn {
  width: 90px;
  height: 90px;
  background: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
  border: 6px solid rgba(255,255,255,0.4);
  background-clip: padding-box;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.trailer-play-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 25px rgba(0,0,0,0.25);
}

.trailer-play-btn svg {
  width: 24px;
  height: 24px;
  stroke: var(--cr-black);
  stroke-width: 2.3;
  margin-left: 4px;
}

/* ─── Blog Section ───────────────────────────────────────────────────────────── */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

@media (max-width: 1024px) { .blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .blog-grid { grid-template-columns: 1fr; } }

.blog-card {
  background: var(--cr-white);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.blog-card__image-wrap {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--cr-grey-100);
}

.blog-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.blog-card:hover .blog-card__image { transform: scale(1.05); }

.blog-card__category {
  position: absolute;
  top: var(--space-3);
  left: var(--space-3);
  font-family: var(--font-button);
  font-size: var(--fs-xs);
  font-weight: 700;
  color: var(--cr-black);
  background: var(--cr-gold);
  padding: 0.25em 0.75em;
  border-radius: var(--radius-full);
}

.blog-card__body {
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  flex: 1;
}

.blog-card__meta {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--fs-xs);
  color: var(--cr-grey-500);
  margin-bottom: var(--space-3);
  font-family: var(--font-button);
  letter-spacing: 0.02em;
}

.blog-card__title {
  font-family: var(--font-heading);
  font-size: var(--fs-xl);
  font-weight: 600;
  color: var(--cr-black);
  line-height: 1.3;
  margin-bottom: var(--space-3);
  transition: color var(--transition-fast);
}

.blog-card:hover .blog-card__title { color: var(--cr-gold); }

.blog-card__excerpt {
  font-size: var(--fs-sm);
  color: var(--cr-grey-600);
  line-height: 1.7;
  flex: 1;
  margin-bottom: var(--space-5);
}

.blog-card__read-more {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-button);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--cr-gold);
  transition: gap var(--transition-fast);
}

.blog-card__read-more:hover { gap: var(--space-3); }

/* ─── Newsletter Section ─────────────────────────────────────────────────────── */
.newsletter-section {
  background: var(--cr-black);
  position: relative;
  overflow: hidden;
}

.newsletter-section::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(ellipse at center, rgba(184,138,68,0.06) 0%, transparent 60%);
  pointer-events: none;
}

.newsletter__inner {
  position: relative;
  z-index: 1;
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
  color: #fff;
}

.newsletter__icon {
  font-size: 3rem;
  margin-bottom: var(--space-4);
}

.newsletter__title {
  font-size: var(--fs-4xl);
  color: #fff;
  margin-bottom: var(--space-4);
}

.newsletter__subtitle {
  color: rgba(255,255,255,0.65);
  font-size: var(--fs-md);
  margin-bottom: var(--space-8);
}

.newsletter-form {
  display: flex;
  gap: var(--space-3);
  max-width: 480px;
  margin: 0 auto var(--space-4);
}

.newsletter-form .form-control {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.15);
  color: #fff;
  flex: 1;
}

.newsletter-form .form-control::placeholder { color: rgba(255,255,255,0.35); }
.newsletter-form .form-control:focus { border-color: var(--cr-gold); }

.newsletter__privacy {
  font-size: var(--fs-xs);
  color: rgba(255,255,255,0.35);
}

.newsletter__privacy a { color: rgba(255,255,255,0.55); text-decoration: underline; }

/* ─── Instagram Section ──────────────────────────────────────────────────────── */
.instagram-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: var(--space-2);
}

@media (max-width: 1024px) { .instagram-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 640px)  { .instagram-grid { grid-template-columns: repeat(3, 1fr); } }

.instagram-item {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  cursor: pointer;
  border-radius: var(--radius-md);
}

.instagram-item__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.instagram-item__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition-base);
}

.instagram-item__overlay svg {
  width: 28px;
  height: 28px;
  fill: #fff;
  opacity: 0;
  transform: scale(0.7);
  transition: opacity var(--transition-base), transform var(--transition-base);
}

.instagram-item:hover .instagram-item__img     { transform: scale(1.08); }
.instagram-item:hover .instagram-item__overlay { background: rgba(184,138,68,0.5); }
.instagram-item:hover .instagram-item__overlay svg {
  opacity: 1;
  transform: scale(1);
}

.instagram-section__follow {
  text-align: center;
  margin-top: var(--space-6);
}

/* ─── Footer ─────────────────────────────────────────────────────────────────── */
.cr-footer {
  background: #0A0806;
  color: rgba(245,242,236,0.7);
  padding-top: var(--space-20);
}

.cr-footer__top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-12);
  padding-bottom: var(--space-16);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

@media (max-width: 1024px) { .cr-footer__top { grid-template-columns: 1fr 1fr; gap: var(--space-8); } }
@media (max-width: 640px)  { .cr-footer__top { grid-template-columns: 1fr; } }



.cr-footer__logo {
  font-family: var(--font-heading);
  font-size: var(--fs-3xl);
  font-weight: 600;
  color: #fff;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-4);
}

.cr-footer__tagline {
  font-size: var(--fs-sm);
  line-height: 1.8;
  margin-bottom: var(--space-6);
  max-width: 300px;
}

.cr-footer__social {
  display: flex;
  gap: var(--space-3);
}

.cr-footer__social-link {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.5);
  transition: all var(--transition-fast);
}

.cr-footer__social-link:hover {
  border-color: var(--cr-gold);
  color: var(--cr-gold);
  background: rgba(184,138,68,0.10);
}

.cr-footer__social-link svg { width: 18px; height: 18px; }

.cr-footer__col-title {
  font-family: var(--font-button);
  font-size: var(--fs-sm);
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: var(--space-5);
}

.cr-footer__links {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.cr-footer__links a {
  font-size: var(--fs-sm);
  color: rgba(245,242,236,0.6);
  transition: color var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}

.cr-footer__links a:hover { color: var(--cr-gold); }

.cr-footer__bottom {
  padding: var(--space-6) 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-4);
}

.cr-footer__copyright {
  font-size: var(--fs-xs);
  color: rgba(245,242,236,0.35);
}

.cr-footer__legal {
  display: flex;
  gap: var(--space-5);
}

.cr-footer__legal a {
  font-size: var(--fs-xs);
  color: rgba(245,242,236,0.35);
  transition: color var(--transition-fast);
}

.cr-footer__legal a:hover { color: var(--cr-gold); }

/* ─── Swiper Custom Styles ───────────────────────────────────────────────────── */
.swiper-pagination-bullet {
  background: var(--cr-grey-300);
  opacity: 1;
}

.swiper-pagination-bullet-active {
  background: var(--cr-gold);
  width: 24px;
  border-radius: 4px;
}

.swiper-button-next,
.swiper-button-prev {
  width: 48px;
  height: 48px;
  background: var(--cr-white);
  border-radius: 50%;
  box-shadow: var(--shadow-md);
  color: var(--cr-black);
}

.swiper-button-next::after,
.swiper-button-prev::after {
  font-size: 16px;
  font-weight: 700;
  color: var(--cr-black);
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
  background: var(--cr-gold);
}

.swiper-button-next:hover::after,
.swiper-button-prev:hover::after {
  color: #fff;
}

/* ─── Responsive Adjustments ─────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .hero__inner          { grid-template-columns: 1fr 1fr; }
  .featured-book__inner { grid-template-columns: 1fr; }
  .featured-book__cover-side { min-height: 400px; }
  .author-story__inner  { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .hero__inner          { grid-template-columns: 1fr 1fr; }
  .newsletter-form { flex-direction: column; }
  .hero__cta       { flex-direction: column; align-items: flex-start;}
  .author-story__inner  { grid-template-columns: 1fr; }
}
@media (max-width: 580px) {
  .hero__inner          { grid-template-columns: 1fr; }
  .newsletter-form { flex-direction: column; }
  .hero__cta       { flex-direction: column; align-items: flex-start; display: none }
  .author-story__inner  { grid-template-columns: 1fr; }
}

/* ════════════════════════════════════════════════════════════════════════════
   QUOTE BANNER
   ════════════════════════════════════════════════════════════════════════════ */
@import url('https://fonts.googleapis.com/css2?family=Great+Vibes&display=swap');

.quote-banner {
  position: relative;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 20px;
  text-align: center;
  overflow: hidden;
  color: #fff;
  background-color: var(--cr-dark-bg);
}

.quote-banner__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.quote-banner__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.quote-banner__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
}

.quote-banner__inner {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
}

.quote-banner__icon {
  font-family: var(--font-quote);
  font-size: 80px;
  line-height: 1;
  color: #fff;
  opacity: 0.8;
  margin-bottom: 20px;
}

.quote-banner__text {
  font-family: var(--font-quote);
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  font-weight: 400;
  line-height: 1.4;
  margin-bottom: 40px;
  color: white;
}

.quote-banner__author-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.quote-banner__signature {
  font-family: 'Great Vibes', cursive;
  font-size: 3rem;
  line-height: 1;
  color: var(--cr-gold);
  display: inline-block;
}

.quote-banner__signature img {
  height: 80px;
  width: auto;
  object-fit: contain;
  /* Optional: filter to make it white/gold if the original image is dark */
  /* filter: invert(1); */
}

.quote-banner__author-name {
  font-family: var(--font-heading);
    font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--cr-off-white);
}

/* ════════════════════════════════════════════════════════════════════════════
   FEATURED SERIES SECTION
   ════════════════════════════════════════════════════════════════════════════ */
.featured-series {
  position: relative;
  width: 100%;
  background: linear-gradient(to bottom, var(--cr-black)  50%, var(--cr-cream) 50%);
  padding: 100px 0;
  overflow: hidden;
}

.featured-series__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 1200px;
  margin: 0 auto;
  gap: 60px;
  position: relative;
}

.featured-series__text-col {
  flex: 0 0 30%;
  padding-right: 20px;
}

.available-eyebrow {
  display: block;
  font-family: var(--font-button);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: var(--cr-gold);
  text-transform: uppercase;
  margin-bottom: 15px;
}

.available-title {
  font-family: var(--font-heading);
  font-size: 3.5rem;
  color: var(--cr-cream);
  margin-bottom: 20px;
  line-height: 1.1;
}

.available-desc {
  font-family: var(--font-body);
  font-size: 1.1rem;
  color: var(--cr-black);
  line-height: 1.6;
}

.featured-series__formats-col {
  flex: 1;
  display: flex;
  gap: 20px;
  justify-content: space-between;
}

.format-card {
  background: #ffffff;
  border-radius: 8px;
  padding: 25px 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  z-index: 5;
}

.format-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.format-card__img-wrapper {
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.format-card__img-wrapper img {
  max-height: 100%;
  width: auto;
  border-radius: 2px;
}

.format-card__title {
  font-family: var(--font-button);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--cr-black);
  margin-bottom: 15px;
}

.format-card__bottom {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  margin-top: auto;
}

.format-card__price {
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--cr-grey-600);
}

.format-card__cart {
  background: none;
  border: none;
  color: var(--cr-gold);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.3s ease;
}

.format-card__cart:hover {
  color: #a36b42;
}

@media (max-width: 992px) {
  .featured-series__inner {
    flex-direction: column;
    text-align: center;
    gap: 40px;
  }
  .featured-series__text-col {
    padding-right: 0;
  }
  .featured-series__formats-col {
    flex-wrap: wrap;
    justify-content: center;
  }
  .format-card {
    min-width: calc(50% - 10px);
  }
  
.available-desc {
  font-family: var(--font-body);
  font-size: 1.1rem;
  color: var(--cr-cream);
  line-height: 1.6;
}
}

@media (max-width: 576px) {
  .format-card {
    min-width: 100%;
  }
}

/* ════════════════════════════════════════════════════════════════════════════
   MINIMAL FOOTER
   ════════════════════════════════════════════════════════════════════════════ */
.minimal-footer {
  background-color: var(--cr-black);
  padding: 80px 0 40px;
  width: 100%;
  color: #333;
}

.minimal-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.minimal-footer__links {
  display: flex;
  gap: 30px;
  flex: 1;
}

.minimal-footer__links a {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--cr-gold);
  text-decoration: none;
  text-transform: capitalize;
  transition: color 0.3s;
}

.minimal-footer__links a:hover {
  color: var(--cr-white);
}

.minimal-footer__logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  text-align: center;
}

.minimal-footer__logo img {
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

.minimal-footer__social {
  display: flex;
  justify-content: flex-end;
  gap: 20px;
  flex: 1;
}

.minimal-footer__social a {
  color: var(--cr-gold);
  transition: color 0.3s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.minimal-footer__social a:hover {
  color: var(--cr-white);
}

.minimal-footer__social svg {
  width: 22px;
  height: 22px;
}

.minimal-footer__copyright {
  text-align: center;
  font-family: var(--font-body);
  font-size: 0.8rem;
  color: #bbbbbb;
}

@media (max-width: 768px) {
  .minimal-footer__inner {
    flex-direction: column;
    gap: 40px;
  }
  .minimal-footer__links {
    justify-content: center;
    flex-wrap: wrap;
  }
  .minimal-footer__social {
    justify-content: center;
  }
}

/* ════════════════════════════════════════════════════════════════════════════
   NEWSLETTER (Dark Blue Style)
   ════════════════════════════════════════════════════════════════════════════ */
.newsletter-section {
  background:url(../img/booksection.png); /* Match the reference image background */
    padding: 8pc 0;
  color: var(--cr-black);
}

.newsletter-section__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  gap: 60px;
}

.newsletter-section__left {
  flex: 0 0 35%;
}

.newsletter-section__title {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 900;
  line-height: 1.2;
  color: var(--cr-cream);
  text-transform: uppercase;
  margin: 0;
}

.newsletter-section__right {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.newsletter-section__desc {
  font-family: var(--font-body);
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--cr-cream);
  margin: 0;
  max-width: 800px;
}

.newsletter-section__fields {
  display: flex;
  gap: 20px;
  align-items: flex-end;
  width: 100%;
}

.newsletter-section__input {
  flex: 1;
  background-color: transparent;
  border: none;
  border-bottom: 1px solid var(--cr-gold);
  padding: 10px 0;
  color: var(--cr-cream);
  font-family: var(--font-body);
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  outline: none;
  transition: border-color 0.3s;
}

.newsletter-section__input::placeholder {
  color: var(--cr-cream);
  text-transform: uppercase;
}

.newsletter-section__input:focus {
  border-bottom: 1px solid var(--cr-gold);
  border-radius: 0%;
}

.newsletter-section__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--cr-gold);
    color: var(--cr-cream);
    font-weight: 700;
    font-size: 1rem;
    padding: 14px 35px;
    border-radius: 30px;
    text-decoration: none;
    align-self: flex-start;
    transition: background 0.3s ease;
    margin-top: 15px;
}

.newsletter-section__btn:hover {
  background-color: var(--cr-cream);
  border-color: var(--cr-cream);
  color: var(--cr-black);
}

@media (max-width: 992px) {
  .newsletter-section__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 40px;
  }
  .newsletter-section__left {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .newsletter-section__fields {
    flex-direction: column;
    align-items: stretch;
    gap: 30px;
  }
  .newsletter-section__title {
    font-size: 2.5rem;
  }
}

/* ════════════════════════════════════════════════════════════════════════════
   THE STORY SECTION
   ════════════════════════════════════════════════════════════════════════════ */
.story-section {
  background-image: url('../img/booksection.png');
  background-size: cover;
  background-position: center;
  padding: 120px 0;
  position: relative;
  overflow: hidden;
}

/* Faux pine branches via radial gradients to mimic the background texture */
.story-section::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(ellipse at center, rgba(184, 138, 68, 0.06) 0%, transparent 60%);
  pointer-events: none;
  z-index: 1;
}

.story-section__container {
  display: flex;
  align-items: center;
  gap: 80px;
  position: relative;
  z-index: 2;
  max-width: 1000px;
  margin: 0 auto;
}

.story-section__image-col {
  flex: 0 0 45%;
  perspective: 1000px;
}

.story-section__image-wrapper {
  position: relative;
  width: 100%;
  border-radius: 16px;
  transform-style: preserve-3d;
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.story-section__image-wrapper:hover {
  transform: translateY(-10px) rotateY(5deg) rotateX(5deg);
}

.story-section__img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  transform: scale(1.02); /* Slight pop out effect */
  filter: drop-shadow(0 25px 50px rgba(0,0,0,0.6));
  transition: all 0.6s cubic-bezier(0.95, 0.05, 0.795, 0.035);
}

.story-section__image-wrapper:hover .story-section__img {
  transform: scale(1.01);
  filter: drop-shadow(0 35px 60px rgba(0,0,0,0.7)) brightness(1.05);
}

.story-section__text-col {
  flex: 1;
  padding-right: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.story-section__eyebrow {
  display: inline-block;
  font-family: var(--font-button);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: #c49a45; /* Gold to match the image */
  text-transform: uppercase;
  margin-bottom: 24px;
  position: relative;
  padding-left: 45px;
}

.story-section__eyebrow::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 2px;
  background-color: #c49a45;
  transition: width 0.3s ease;
}

.story-section:hover .story-section__eyebrow::before {
  width: 40px;
}

.story-section__title {
  font-family: var(--font-heading);
  font-size: 4.5rem;
  color: var(--cr-cream); /* Creamy white */
  margin-bottom: 30px;
  line-height: 1.1;
  text-shadow: 0 4px 20px rgba(0,0,0,0.4);
}

.story-section__desc {
  font-family: var(--font-body);
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.85); /* Slightly brighter for better readability */
  line-height: 1.7;
  margin-bottom: 45px;
  display: -webkit-box; 
  -webkit-line-clamp: 4;
  line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.story-section__btn {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  background: linear-gradient(135deg, #a37d45 0%, #c49a45 100%); /* Gold gradient */
  color: #ffffff; /* White text */
  font-family: var(--font-button);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 18px 40px;
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
  box-shadow: 0 10px 25px rgba(163, 125, 69, 0.4);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.story-section__btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #c49a45 0%, #d4af37 100%);
  z-index: -1;
  transition: opacity 0.4s ease;
  opacity: 0;
}

.story-section__btn:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 35px rgba(163, 125, 69, 0.6);
  color: #ffffff;
}

.story-section__btn:hover::before {
  opacity: 1;
}

.story-section__btn svg {
  transition: transform 0.3s ease;
}

.story-section__btn:hover svg {
  transform: translateX(4px);
}

@media (max-width: 992px) {
  .story-section__container {
    text-align: left;
    gap: 50px;
  }
  .story-section__text-col {
    padding-right: 0;
    align-items: center;
  }
  .story-section__eyebrow {
    padding-left: 0;
  }
  .story-section__eyebrow::before {
    display: none;
  }
  .story-section__image-col {
    width: 85%;
  }
  .story-section__title {
    font-size: 3.5rem;
  }
  .story-section__btn {
    align-self: center;
  }
}

@media (max-width: 576px) {
    .story-section__container {
    flex-direction: column;
    text-align: center;
    gap: 50px;
  }
  .story-section__title {
    font-size: 2.8rem;
  }
  .story-section__desc {
    font-size: 1.05rem;
  }
}


/* ════════════════════════════════════════════════════════════════════════════
   FREE CHAPTER SECTION
   ════════════════════════════════════════════════════════════════════════════ */
.free-chapter-section {
  background-color: #e1ded4; /* Match the beige background */
  padding: 100px 0;
  position: relative;
}

/* Handwriting texture on the right side */
.free-chapter-section::after {
  content: '';
  position: absolute;
  top: 0px;
  right: 0px;
  width: 100%;
  height: 100%;
  background-image: url('../img/freechapter\ \(1\).png');
  background-size: cover;
  /* opacity: 0.88; */
  pointer-events: none;
  z-index: 1;
}

.free-chapter__container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  gap: 60px;
  position: relative;
  z-index: 2;
}

.free-chapter__left {
  flex: 0 0 45%;
}

.free-chapter__title {
  font-family: var(--font-heading);
  font-size: 3.2rem;
  font-weight: 800;
  color: var(--cr-black);
  text-transform: uppercase;
  line-height: 1.2;
  margin-bottom: 40px;
  letter-spacing: 0.02em;
}

.free-chapter__form {
  display: flex;
  gap: 15px;
  align-items: stretch; /* Make input and button same height */
}

.free-chapter__input {
  flex: 1;
  background-color: transparent;
  border: 1px solid #434c38;
  padding: 15px 25px;
  color: #434c38;
  font-family: var(--font-body);
  font-size: 1rem;
  outline: none;
  transition: all 0.3s ease;
}

.free-chapter__input::placeholder {
  color: #7a8270;
}

.free-chapter__input:focus {
  background-color: rgba(255, 255, 255, 0.3);
}

.free-chapter__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--cr-black);
    color: var(--cr-black);
    font-weight: 500;
    font-size: 1rem;
    padding: 14px 35px;
    border-radius: 30px;
    text-decoration: none;
    align-self: flex-start;
    transition: background 0.3s ease;
    margin-top: 15px;
}

.free-chapter__btn:hover {
  background-color: #434c38;
  color: #e1ded4;
}

.free-chapter__right {
  flex: 1;
  display: flex;
  justify-content: flex-end;
  position: relative;
  padding-right: 40px;
}

.free-chapter__composition {
  position: relative;
  display: inline-block;
  z-index: 2;
}

.free-chapter__book-img {
  max-width: 500px;
  width: 100%;
  height: auto;
  /* filter: drop-shadow(15px 20px 25px rgba(0,0,0,0.15));
  transform: rotate(5deg); */
}

.free-chapter__badge {
  position: absolute;
  top: -30px;
  right: -30px;
  background-color: var(--cr-black);
  color: var(--cr-cream);
  width: 120px;
  height: 120px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 1.3rem;
  line-height: 1.1;
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
  transform: rotate(10deg);
}
@media (max-width: 1440px)  { .free-chapter__container {max-width: 850px;} }
@media (max-width: 1024px)  { .free-chapter-section::after { opacity: 0; } .free-chapter__container { max-width: 900px; } }
@media (max-width: 992px) {
  .free-chapter__container {
    flex-direction: column;
    text-align: center;
    gap: 60px;
  }
  .free-chapter__left {
    width: 100%;
  }
  .free-chapter__form {
    flex-direction: column;
    max-width: 500px;
    margin: 0 auto;
  }
  .free-chapter__right {
    justify-content: center;
    padding-right: 0;
  }
  .free-chapter__book-img {
    max-width: 350px;
  }
  .free-chapter__badge {
    width: 100px;
    height: 100px;
    font-size: 1.1rem;
    top: -20px;
    right: -10px;
  }
  .free-chapter-section::after
  {
    opacity: 0;
  }
}
@media (max-width: 576px) {
  .free-chapter__title {
    font-size: 2.2rem;
  }
}

/* ════════════════════════════════════════════════════════════════════════════
   FREE CHAPTER PDF READER MODAL
   ════════════════════════════════════════════════════════════════════════════ */
.fc-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: #f2f2f2;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.fc-modal-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.pdf-viewer-container {
  width: 90%;
  max-width: 900px;
  height: 90vh;
  background-color: #e5e5e5;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 10px 40px rgba(0,0,0,0.15);
  overflow: hidden;
}

.pdf-viewer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 30px;
  background-color: #fcfcfc;
  border-bottom: 1px solid #d9d9d9;
}

.pdf-viewer-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: #333;
  margin: 0;
  font-weight: 400;
}

.pdf-viewer-close {
  background: transparent;
  border: none;
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: #666;
  cursor: pointer;
  transition: color 0.2s;
}

.pdf-viewer-close:hover {
  color: #000;
}

.pdf-viewer-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 20px;
}

.pdf-nav-btn {
  background: transparent;
  border: none;
  color: #999;
  cursor: pointer;
  padding: 10px;
  transition: color 0.2s, transform 0.2s;
  z-index: 10;
}

.pdf-nav-btn:hover {
  color: #333;
  transform: scale(1.1);
}

.pdf-canvas-wrapper {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
  overflow: auto;
}

canvas#pdf-render {
  background-color: #fff;
}

.pdf-viewer-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 30px;
  background-color: #fcfcfc;
  border-top: 1px solid #d9d9d9;
}

.pdf-page-info {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: #555;
}

.pdf-zoom-controls {
  display: flex;
  gap: 10px;
}

.pdf-zoom-btn {
  background: transparent;
  border: 1px solid #ccc;
  width: 30px;
  height: 30px;
  border-radius: 4px;
  color: #555;
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  transition: all 0.2s;
}

.pdf-zoom-btn:hover {
  background: #eee;
  color: #000;
}

@media (max-width: 768px) {
  .pdf-viewer-container {
    width: 100%;
    height: 100vh;
    border-radius: 0;
  }
}

/* ════════════════════════════════════════════════════════════════════════════
   NEW FOOTER
   ════════════════════════════════════════════════════════════════════════════ */
.new-footer {
    background-color: var(--cr-black);
    padding: 80px 0 40px;
    font-family: var(--font-body);
}

.new-footer__top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 60px;
}

.new-footer__logo {
    max-width: 50%;
    height: auto;
}

.new-footer__links-col {
    display: flex;
    gap: 80px;
}

.new-footer__nav-group {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.new-footer__nav-group a {
    color: var(--cr-cream);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: opacity 0.3s ease;
}

.new-footer__nav-group a:hover {
    opacity: 0.7;
}

.new-footer__bottom {
    border-top: 1px solid var(--cr-cream);
    padding-top: 20px;
}

.new-footer__copyright {
    font-size: 0.85rem;
    color: var(--cr-cream);
    display: flex;
    gap: 30px;
}

.new-footer__powered-by {
    font-size: 0.85rem;
    color: var(--cr-cream);
}

.new-footer__legal {
    display: flex;
    gap: 20px;
}

.new-footer__legal a {
    color: var(--cr-cream);
    text-decoration: underline;
    transition: opacity 0.3s ease;
}

.new-footer__legal a:hover {
    opacity: 0.7;
}

@media (max-width: 768px) {
    .new-footer__top {
        flex-direction: column;
        gap: 40px;
    }
    .new-footer__links-col {
        width: 100%;
        justify-content: space-between;
        gap: 20px;
    }
    .new-footer__copyright {
        flex-direction: column;
        gap: 10px;
    }
}

/* ════════════════════════════════════════════════════════════════════════════
   ABOUT AUTHOR SECTION (ABOUT.PHP)
   ════════════════════════════════════════════════════════════════════════════ */

.about-stephanie-section {
    position: relative;
    width: 100%;
    background-color: #ffffff;
}

.about-stephanie-bg {
    width: 100%;
    height: 70vh;
    background-size: cover;
    background-position: center bottom;
    background-color: #f5f5f5;
    margin-top: -10pc;
}

.about-stephanie-beige-bg {
    width: 100%;
    /* background-color: #EFECE6; */
    margin-top: -20pc;
}

.about-stephanie-container {
    margin: 0 auto;
    position: relative;
    margin-top: -100px; /* Pull the content up so portrait overlaps */
    padding-bottom: 80px;
}

.about-stephanie-content {
    display: flex;
    align-items: flex-start;
    gap: 80px;
}

.about-stephanie-left {
    flex: 1;
    padding: 5pc 0 0 3pc;
    margin-top: 10pc;
    background-color: #ffffff;
}

.about-stephanie-text-box {
    max-width: 480px;
}

.about-stephanie-right {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.about-stephanie-image-wrapper {
    width: 100%;
    margin-bottom: 40px;
}

.about-stephanie-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    aspect-ratio: 3 / 4;
}

.about-stephanie-eyebrow {
    display: block;
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    color: #666;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.about-stephanie-title {
    font-size: 5rem;
    line-height: 1;
    color: var(--cr-black);
    margin-bottom: 30px;
    font-weight: 700;
}

.about-stephanie-title span {
    font-style: italic;
    font-weight: 900;
    font-size: 3rem;
}

.about-stephanie-text {
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    line-height: 1.7;
    color: #555;
    margin-bottom: 25px;
}

.about-stephanie-text--right {
    padding-right: 40px;
}

/* Make it responsive */
@media (max-width: 900px) {
    .about-stephanie-content {
        gap: 40px;
    }
    .about-stephanie-left {
        padding-top: 0px;
        margin-top: 0pc;
    }
    .about-stephanie-container {
        margin-top: 0;
        padding-top: 40px;
        padding-left: 20px;
        padding-right: 20px;
    }
    .about-stephanie-title {
        font-size: 3.5rem;
    }
    .about-stephanie-title span {
        font-size: 3rem;
    }
    .about-stephanie-bg {
        height: 30vh;
    }
    
.about-stephanie-beige-bg {
    margin-top: 0pc;
}
@media  (max-width: 580px)  {
    .about-stephanie-content {
        flex-direction: column;
        gap: 40px;
    }
}
}

/* ─── Refactored Inline Styles from index.php ──────────────────────────────── */

.hero__inner {
  display: flex !important;
  align-items: flex-start !important;
  width: 100%;
}

.hero__content {
  max-width: 500px !important;
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 0 !important;
}

.hero__pre-headline {
  color: var(--cr-gold);
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  font-weight: 500;
}

.hero__headline {
  color: #ffffff;
  font-family: 'Cormorant Garamond', serif ;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  line-height: 1.1 ;
  margin: 0 ;
  text-transform: uppercase;
  font-weight: 700 ;
  text-shadow: 2px 4px 12px rgba(0,0,0,0.6);
  letter-spacing: 0.02em ;
}

.hero__divider {
  display: flex;
  align-items: center;
  width: 100%;
  margin: 1rem 0;
}

.hero__divider-line {
  height: 1px;
  background: rgba(214, 168, 75, 0.4);
  flex: 1;
  max-width: 200px;
}

.hero__divider-icon {
  margin: 0 1rem;
  width: 36px;
  height: 36px;
  fill: var(--cr-gold);
  filter: drop-shadow(0px 2px 4px rgba(0,0,0,0.5));
}

.hero__subtitle {
  color: rgba(255,255,255,0.95) !important;
  font-family: 'Inter', sans-serif !important;
  font-size: 1.1rem;
  line-height: 1.8 !important;
  max-width: 650px !important;
  text-shadow: 1px 2px 4px rgba(0,0,0,0.7);
  font-weight: 300 !important;
}

.hero__cta {
  margin-top: 3rem;
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
}

.hero__buy-btn {
  background-color: var(--cr-gold);
  color: #fff;
  border: 1px solid var(--cr-gold);
  border-radius: 4px;
  padding: 0.8rem 1.5rem;
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  font-weight: 500;
}

.hero__sample-btn {
  border-radius: 4px;
  padding: 0.8rem 1.5rem;
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  font-weight: 500;
}

.buy-now-anchor {
  position: relative;
  top: -50px;
}

.format-card--clickable {
  cursor: pointer;
}

.format-card__link {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.format-card__cart {
  position: relative;
  z-index: 2;
}

.story-section__btn-icon {
  margin-left: 8px;
}

.free-chapter__title {
  font-size: 2.2rem;
}

.section-title--bold {
  font-weight: bold;
}

.section-desc--custom {
  max-width: 600px;
  margin: 20px auto 0;
  font-family: var(--font-body);
  font-size: 1.1rem;
  color: #555;
}

@media (max-width: 1480px) {
  .hero__headline {
    font-size: 3.5rem;
  }
  .hero__subtitle {
    font-size: 0.8rem;
  }
  .hero__cta{
     margin-top: 0rem;
  }
  .hero__inner {
    max-width: 900px;
  }
  .hero__sample-btn {
    font-size: 0.7rem;
    padding: 0.5rem 1rem;
  }
  .hero__buy-btn {
    font-size: 0.7rem;
    padding: 0.5rem 1rem;
  }
  .featured-series__inner{
    max-width: 900px;
  }
  .format-card__img-wrapper{
    height: auto;
  }
  .author-story{
    padding: 5pc 0;
  }
  .author-story__inner{
    max-width: 1000px;
  }
  .author-story__graphic{
    max-width: 310px;
  }
  .featured-series__text-col{
    flex: 0 0 40%;
  }
}


