@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700&family=Lora:wght@400;700&display=swap');

:root {
  --color-primary: #FF6A3D;
  --color-secondary: #FFC857;
  --color-accent: #ffffff;
  --color-background: #0B0F4B;
  --color-text-light: #f0f0f0;
  --color-text-muted: #aaa;
  --color-text-dark: #000000;
  --color-form-bg: #101973;
  --color-input-bg: #F5F5F5;


  --spacing-xs: 10px;
  --spacing-sm: 20px;
  --spacing-md: 30px;
  --spacing-lg: 40px;
  --spacing-xl: 60px;
  --spacing-xxl: 120px;
  --padding-section: 4rem 0;


  --border-radius-sm: 10px;
  --border-radius-md: 15px;
  --font-family-primary: 'Arial', sans-serif;
  --font-size-base: 1rem;
  --line-height-base: 1.6;
  --max-width-container: 1000px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Lora', serif;
  background-color: var(--color-background);
  color: var(--color-text-light);
  line-height: 1.8;
  font-size: 18px;
  padding-top: 120px;
}
body.no-scroll {
  overflow: hidden;
}
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

h1, h2, h3 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  color: var(--color-secondary);
  margin-bottom: 1rem;
  line-height: 1.3;
}

p {
  text-align: left;
  margin-bottom: 1.5rem;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--color-secondary);
}

section[id] {
  scroll-margin-top: 100px;
}

.main-header {
  background-color: var(--color-background);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  flex-wrap: nowrap;
}


.header-top-bar {
  background-color: var(--color-background);
  padding: 8px 0;
  font-size: 0.9rem;
}

.header-top-bar-content {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 0 var(--spacing-md);
}

.top-utility-nav {
  display: flex;
  gap: var(--spacing-md);
  align-items: center;
}

.top-utility-link {
  color: var(--color-text-muted);
  text-decoration: none;
  transition: color 0.3s ease;
  display: flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}

.top-utility-link:hover {
  color: var(--color-secondary);
}


.top-utility-link.top-utility-button {
  background-color: var(--color-primary);
  color: var(--color-accent);
  padding: 6px 15px;
  border-radius: var(--border-radius-sm);
  font-weight: bold;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;

  color: var(--color-accent) !important;
}

.top-utility-link.top-utility-button:hover {
  background-color: color-mix(in srgb, var(--color-primary) 85%, black);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}


.main-nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  margin-left: 30px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Montserrat', sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--color-accent);
  text-decoration: none;
  flex-shrink: 0;
  margin-right: var(--spacing-md);
  white-space: nowrap;
  transition: color 0.3s ease;
}

.logo:hover {
  color: var(--color-secondary);
}

.header-logo-image {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.logo:hover .header-logo-image {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 0 12px var(--color-secondary);
}

.nav-links-and-cta {
  display: flex;
  align-items: center;
  gap: var(--spacing-lg);
  flex-grow: 1;
  justify-content: flex-end;
}


.nav-links {
  list-style: none;
  display: flex;
  gap: var(--spacing-md);
  margin: 0;
  padding: 0;
  flex-wrap: nowrap;
  flex-shrink: 1;
}

.nav-links li a.nav-link {
  font-family: 'Montserrat', sans-serif;
  color: var(--color-text-light);
  font-weight: 500;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 8px 0;
  position: relative;
  transition: color 0.3s ease, transform 0.2s ease;
  white-space: nowrap;
}

.nav-links li a.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 3px;
  background-color: var(--color-primary);
  transition: width 0.3s ease;
}

.nav-links li a.nav-link:hover::after,
.nav-links li a.nav-link.active::after {
  width: 100%;
}

.nav-links li a.nav-link:hover {
  color: var(--color-secondary);
  transform: translateY(-2px);
}


.header-cta-button {
  padding: 8px 15px;
  font-size: 0.8rem;
  border-radius: var(--border-radius-sm);
  background-color: var(--color-primary);
  color: var(--color-accent);
  transition: background-color 0.3s ease, transform 0.2s ease;
  flex-shrink: 0;
  text-decoration: none;
  text-align: center;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
  margin-right: 20px;
}

.header-cta-button:hover {
  background-color: color-mix(in srgb, var(--color-primary) 85%, black);
  transform: translateY(-2px);
}


.hamburger {
  display: none;
  cursor: pointer;
  padding: 10px;
  z-index: 1001;
  background: none;
  border: none;

  outline: none;
}

.hamburger .bar {
  display: block;
  width: 28px;
  height: 3px;
  margin: 6px auto;
  background-color: var(--color-accent);
  transition: all 0.3s ease-in-out;
  border-radius: 2px;
}


.hamburger.is-active .bar:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

.hamburger.is-active .bar:nth-child(2) {
  opacity: 0;
}

.hamburger.is-active .bar:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}






@media (max-width: 992px) {

  .header-top-bar-content {
    justify-content: center;
    padding: 0 var(--spacing-sm);
  }

  .top-utility-nav {
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--spacing-sm);
  }

  .top-utility-link, .top-utility-link.top-utility-button {
    font-size: 0.8rem;
    padding: 4px 8px;
  }

  .main-nav-container {
    padding: 10px 15px;
  }

  .logo {
    font-size: 1.5rem;
    gap: 8px;
  }

  .header-logo-image {
    width: 60px;
    height: 60px;
  }


  .nav-links-and-cta {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;


    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: color-mix(in srgb, var(--color-background) 80%, black);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    transform: translateX(100%);
    transition: transform 0.4s ease-out;
    overflow-y: auto;
    max-height: calc(100vh - 120px);
    z-index: 999;
  }

  .nav-links {
    flex-direction: column;
    width: 100%;
    padding: 0;
    margin: 0;
  }

  .nav-links li {
    width: 100%;
    text-align: center;
  }

  .nav-links li a.nav-link {
    padding: 15px 20px;
    display: block;
    font-size: 1.1rem;
    letter-spacing: 1px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }

  .nav-links li:last-child a.nav-link {
    border-bottom: none;
  }

  .nav-links li a.nav-link::after {
    height: 2px;
    bottom: 5px;
  }

  .nav-links li a.nav-link:hover,
  .nav-links li a.nav-link.active {
    background-color: rgba(255, 255, 255, 0.08);
    color: var(--color-primary);
    transform: none;
  }

  .header-cta-button {

    margin: 20px auto;
    width: calc(100% - 40px);
    max-width: 250px;
    text-align: center;
    padding: 12px 20px;
    font-size: 1.0rem;
  }


  .nav-links-and-cta.is-open {
    transform: translateX(0);
  }

  .hamburger {
    display: block;
  }
}

@media (max-width: 600px) {
  .main-nav-container {
    padding: 8px 10px;
  }

  .logo {
    font-size: 1.3rem;
    gap: 5px;
  }

  .header-logo-image {
    width: 50px;
    height: 50px;
  }


  .nav-links li a.nav-link {
    font-size: 0.95rem;
    padding: 10px 15px;
  }

  .header-cta-button {
    font-size: 0.9rem;
    padding: 10px 15px;
  }
}


.hero-section {
  position: relative;
  min-height: calc(100vh - 120px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-xl) 0;
  background-color: var(--color-background);
  color: var(--color-text-light);
  overflow: hidden;
}

.hero-content-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--spacing-xxl);
  flex-wrap: wrap;
  max-width: 1300px;
  position: relative;
  z-index: 1;
}

.hero-text-content {
  flex: 1;
  max-width: 600px;
  text-align: left;
}

.hero-text-content h1 {
  font-size: 5rem;
  color: var(--color-primary);
  margin-bottom: var(--spacing-sm);
  line-height: 1.1;
}

.hero-text-content h2 {
  font-size: 3.2rem;
  color: var(--color-secondary);
  margin-bottom: var(--spacing-lg);
  line-height: 1.2;
}

.hero-description {
  font-size: 1.4rem;
  line-height: 1.6;
  color: var(--color-text-light);
  margin-bottom: var(--spacing-xl);
}

.hero-action-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-md);
  margin-top: var(--spacing-xl);
}

.hero-book-showcase {
  flex: 1;
  max-width: 500px;
  display: flex; /* Keep flex for potential centering of the overall block */
  justify-content: center;
  align-items: center;

  /* CRITICAL CHANGE: This makes it a positioning context for children */
  position: relative;

  /* Ensure text isn't directly stacking with flex, as it will be absolute */
  flex-direction: column; /* Can keep this, but the absolute text won't be affected */
}

/* Existing styles for the image (keep them) */
.book-cover-main {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--border-radius-md);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5),
  0 0 0 10px rgba(255, 255, 255, 0.05);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.book-cover-main:hover {
  transform: scale(1.03) rotateY(3deg);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6),
  0 0 0 10px rgba(255, 106, 61, 0.2);
}

/* NEW STYLES FOR THE OVERLAY CAPTION TEXT */
.book-caption-overlay {
  position: absolute;

  /* ADJUSTMENT 1: Make it lower (increase bottom value) */
  bottom: -100px;

  /* ADJUSTMENT 2: Set a reduced width and center it horizontally */
  width: 80%;           /* Set to 80% of the container width */
  left: 50%;            /* Start at the center */
  transform: translateX(-50%); /* Shift back by half its own width to truly center */
  right: auto;          /* Reset the right property */

  text-align: center;

  /* STYLING ADJUSTMENTS: Use website colors for background and text */
  font-size: 1.1rem;
  color: var(--color-background); /* White text for contrast */
  font-style: italic;
  font-weight: 500;

  /* Use a subtle background color that matches the website's dark/primary tone */
  background-color: var(--color-primary); /* Using --color-background with opacity */
  /* OR use the primary color with less opacity for emphasis: */
  /* background-color: rgba(255, 106, 61, 0.8); */

  padding: 8px 15px; /* Increase padding for a bolder look */

  /* Optional: Add slight rounded corners to the overlay box */
  border-radius: var(--border-radius-sm);

  pointer-events: none;
}

@media (max-width: 768px) {
  .book-caption-overlay {

    /* 1. Reduce Font Size */
    font-size: 0.9rem; /* Smaller, but still readable */

    /* 2. Slightly increase the width to use more available space on narrow screens */
    width: 90%;

    /* 3. Adjust vertical spacing if needed for mobile layout */
    bottom: -15px; /* Pull it slightly closer to the image on mobile */

    /* 4. Reduce Padding */
    padding: 6px 10px;
  }
}

/* --- SMALLER PHONES (Screens 480px and below) --- */
@media (max-width: 480px) {
  .book-caption-overlay {

    /* Further reduction for small phones */
    font-size: 0.7rem;

    /* Ensure it doesn't get cut off on tiny screens */
    width: 95%;
    bottom: -60px;
  }
}

.button {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.button--primary {
  background-color: var(--color-primary);
  color: var(--color-accent);
}

.button--primary:hover {
  background-color: color-mix(in srgb, var(--color-primary) 85%, black);
  transform: translateY(-2px);
}

.button--secondary {
  background-color: transparent;
  color: var(--color-secondary);
  border: 2px solid var(--color-secondary);
}

.button--secondary:hover {
  background-color: var(--color-secondary);
  color: var(--color-background);
  transform: translateY(-2px);
}

.button--large {
  padding: 1rem 3rem;
  font-size: 1.2rem;
}

.button--small {
  padding: 0.7rem 1.5rem;
  font-size: 0.9rem;
}


.button--wobble {
  animation: wobble 2s ease-in-out infinite;
  animation-delay: 1s;
}

@keyframes wobble {
  0%, 100% { transform: rotate(0deg) scale(1); }
  15% { transform: rotate(-2deg) scale(1.02); }
  30% { transform: rotate(2deg) scale(1.02); }
  45% { transform: rotate(-2deg) scale(1.02); }
  60% { transform: rotate(2deg) scale(1.02); }
  75% { transform: rotate(0deg) scale(1); }
}


.button--grow {
  transition: transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
}
.button--grow:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(255, 106, 61, 0.4);
}



.hero-section {
  position: relative;
  min-height: calc(100vh - 120px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-xl) 0;
  background-color: var(--color-background);
  color: var(--color-text-light);
  overflow: hidden;
}

.hero-content-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--spacing-xxl);
  flex-wrap: wrap;
  max-width: 1300px;
  position: relative;
  z-index: 1;
}

.hero-text-content {
  flex: 1;
  max-width: 600px;
  text-align: left;

}

.main-text-area {

}

.hero-text-content h1 {
  font-size: 5rem;
  color: var(--color-primary);
  margin-bottom: var(--spacing-sm);
  line-height: 1.1;
}

.hero-text-content h2 {
  font-size: 3.2rem;
  color: var(--color-secondary);
  margin-bottom: var(--spacing-lg);
  line-height: 1.2;
}

.hero-description {
  font-size: 1.4rem;
  line-height: 1.6;
  color: var(--color-text-light);
  margin-bottom: var(--spacing-xl);
}

.hero-action-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-md);
  margin-top: var(--spacing-xl);
}

.hero-book-showcase {
  flex: 1;
  max-width: 500px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.book-cover-main {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--border-radius-md);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5),
  0 0 0 10px rgba(255, 255, 255, 0.05);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.book-cover-main:hover {
  transform: scale(1.03) rotateY(3deg);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6),
  0 0 0 10px rgba(255, 106, 61, 0.2);
}







.animate-fade-in {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInSlideUp 0.8s ease-out forwards;
}

.hero-text-content.animate-fade-in {
  animation-delay: 0.5s;
}
.hero-book-showcase.animate-fade-in {
  animation-delay: 1s;
}



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



@media (max-width: 1024px) {
  .hero-content-wrapper {
    flex-direction: column;
    gap: var(--spacing-xl);
  }

  .hero-text-content {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
  }

  .hero-action-buttons {
    justify-content: center;
  }

  .hero-book-showcase {
    max-width: 400px;
  }
}

@media (max-width: 768px) {
  body {
    padding-top: 90px;
  }

  .hero-section {
    min-height: unset;
    padding: var(--spacing-lg) 0;
  }

  .hero-text-content h1 {
    font-size: 3rem;
  }

  .hero-text-content h2 {
    font-size: 2rem;
  }

  .hero-description {
    font-size: 1rem;
    margin-bottom: var(--spacing-lg);
  }

  .button--large {
    padding: 0.8rem 2rem;
    font-size: 1.1rem;
  }

  .hero-book-showcase {
    max-width: 300px;
  }

  .hero-action-buttons .button {
    padding: 0.7rem 1.5rem;
    font-size: 0.9rem;
  }
}

@media (max-width: 500px) {
  body {
    padding-top: 80px;
  }
  .hero-text-content h1 {
    font-size: 2.5rem;
  }
  .hero-text-content h2 {
    font-size: 1.6rem;
    margin-bottom: var(--spacing-md);
  }
  .hero-description {
    font-size: 0.9rem;
    margin-bottom: var(--spacing-md);
  }
  .hero-book-showcase {
    max-width: 250px;
  }
  .hero-action-buttons {
    flex-direction: column;
    align-items: center;
  }
  .hero-action-buttons .button {
    width: 100%;
    max-width: 250px;
  }
}

.content-section {
  padding: var(--padding-section);
  background-color: var(--color-background);
  color: var(--color-text-light);
  font-family: var(--font-family-primary);
  line-height: var(--line-height-base);
  text-align: center;
}

.content-section .container {
  max-width: var(--max-width-container);
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}


.section-title {
  font-size: 2.8rem;
  color: var(--color-secondary);
  margin-bottom: 2.5rem;
  position: relative;
  padding-bottom: 1rem;
}

.section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: var(--color-primary);
  border-radius: 2px;
}


.summary-content p {
  font-size: 1.15rem;
  margin-bottom: 1.5rem;
  color: var(--color-text-light);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.summary-content strong {
  color: var(--color-primary);
}


.read-more-button {
  display: inline-block;
  background-color: var(--color-primary);
  color: var(--color-accent);
  padding: 0.8rem 1.8rem;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  margin-top: 1.5rem;
  transition: background-color 0.3s ease, transform 0.2s ease;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.read-more-button:hover {
  background-color: color-mix(in srgb, var(--color-primary) 85%, black);
  transform: translateY(-2px);
}


.full-content-hidden {
  display: none;
  text-align: left;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px dashed var(--color-text-muted);
}

.full-content-hidden p {
  font-size: var(--font-size-base);
  margin-bottom: 1.2rem;
  color: var(--color-text-muted);
}


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

.animate-fade-in {
  animation: fadeInSlideUp 0.8s ease-out forwards;
}

.delay-1 {
  animation-delay: 0.5s;
}

.delay-2 {
  animation-delay: 0.7s;
}

.animate-section {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInSlideUp 1s ease-out forwards;
  animation-delay: 0.2s;
}


@media (max-width: 768px) {
  .hero-titles h1 {
    font-size: 2.8rem;
  }

  .hero-titles h2 {
    font-size: 1.8rem;
  }

  .hero-actions-grid {
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-md);
  }

  .action-card {
    width: 90%;
    max-width: 450px;
  }

  .action-card--book,
  .action-card--wheel {
    width: 90%;
  }

  .action-card--book .action-card__image-wrapper,
  .action-card--wheel .action-card__image-wrapper {
    height: 200px;
  }

  .content-section {
    padding: 3rem 0;
  }

  .section-title {
    font-size: 2.2rem;
  }

  .summary-content p {
    font-size: 1rem;
  }

  .full-content-hidden p {
    font-size: 0.95rem;
  }
}


.cta-button {
  display: inline-block;
  padding: 15px 35px;
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--color-accent);
  background-color: var(--color-primary);
  border-radius: 50px;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.cta-button:hover {
  background-color: #e65a2d;
  transform: translateY(-3px);
  color: var(--color-accent);
}

.cta-button.secondary {
  background-color: var(--color-secondary);
  color: var(--color-text-dark);
}

.cta-button.secondary:hover {
  background-color: #e6b44a;
  color: var(--color-text-dark);
}



.accent-bg {
  background-color: var(--color-background);
  color: var(--color-accent);
  padding: var(--spacing-xxl) 0;
}

.free-gift-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-xl);
  text-align: left;
}

.free-gift-image-wrapper {
  flex: 1;
  width: 350px;
  height: 350px;
  padding: var(--spacing-sm);
  background-color: var(--color-background);
  border-radius: 50%;
  box-shadow: 0 0 0 10px rgba(255, 255, 255, 0.1),
  0 0 0 20px rgba(255, 255, 255, 0.05),
  0 15px 30px rgba(0, 0, 0, 0.4);
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.spinning-wheel {
  width: 100%;
  height: auto;
  border-radius: 50%;
  animation: spin 20s linear infinite;
  filter: drop-shadow(0 0 15px var(--color-secondary));
}

.free-gift-content {
  flex: 2;
  max-width: 600px;
  text-align: center;
}

.free-gift-content .section-title {
  font-size: 3.5rem;
  margin-bottom: 2rem;
  color: var(--color-primary);
}

.free-gift-content .section-title::after {
  background-color: var(--color-secondary);
}

.free-gift-content p {
  font-size: 1.25rem;
  line-height: 1.8;
  margin-bottom: 2.5rem;
  color: var(--color-text-light);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}


.button--large {
  padding: 1rem 3rem;
  font-size: 1.2rem;
}


@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}


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

.animate-section {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInSlideUp 1s ease-out forwards;
  animation-delay: 0.2s;
}

.animate-fade-in {
  animation: fadeInSlideUp 0.8s ease-out forwards;
}

.delay-1 {
  animation-delay: 0.5s;
}

.delay-2 {
  animation-delay: 0.7s;
}


@media (max-width: 900px) {
  .free-gift-container {
    flex-direction: column;
    text-align: center;
    gap: var(--spacing-xl);
  }

  .free-gift-image-wrapper {
    max-width: 280px;
    padding: var(--spacing-sm);
  }

  .free-gift-content {
    flex: auto;
    max-width: 100%;
  }

  .free-gift-content .section-title {
    font-size: 2.8rem;
  }

  .free-gift-content p {
    font-size: 1.1rem;
  }

  .button--large {
    padding: 0.9rem 2.5rem;
    font-size: 1.1rem;
  }
}

@media (max-width: 500px) {
  .accent-bg {
    padding: var(--spacing-xl) 0;
  }

  .free-gift-image-wrapper {
    min-width: 200px;
    max-width: 250px;
    padding: var(--spacing-xs);
  }

  .free-gift-content .section-title {
    font-size: 2.2rem;
  }

  .free-gift-content p {
    font-size: 1rem;
    margin-bottom: 2rem;
  }

  .button--large {
    padding: 0.8rem 2rem;
    font-size: 1rem;
  }
}
#about-author {
  background-color: var(--color-background);
  padding: var(--spacing-xxl) 0;
}

.author-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-xl);
  text-align: left;
}

.author-image-wrapper {
  flex: 1;
  min-width: 280px;
  max-width: 350px;
  position: relative;
  padding: var(--spacing-sm);
  background-color: var(--color-form-bg);
  border-radius: var(--border-radius-md);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  text-align: center;
}

.author-profile-img {
  width: 100%;
  height: auto;
  border-radius: var(--border-radius-sm);
  display: block;
  object-fit: cover;
  transition: transform 0.3s ease-in-out;
}

.author-image-wrapper:hover .author-profile-img {
  transform: scale(1.03);
}

.author-social-links {
  margin-top: var(--spacing-md);
  display: flex;
  justify-content: center;
  gap: var(--spacing-md);
}

.social-icon {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background-color: var(--color-primary);
  color: var(--color-accent);
  font-size: 1.2rem;
  transition: background-color 0.3s ease, transform 0.2s ease;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.social-icon:hover {
  background-color: var(--color-secondary);
  transform: translateY(-3px);
}

.author-text {
  flex: 2;
  max-width: 650px;
  padding-left: var(--spacing-lg);
  text-align: left;
}

.author-text .section-title {
  font-size: 3.2rem;
  margin-bottom: 2rem;
  text-align: center;
}

.author-text .section-title::after {
  left: 50%;
  transform: translateX(-50%);
}

.author-text p {
  font-size: 1.15rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
  color: var(--color-text-light);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}

.author-text p strong {
  color: var(--color-secondary);
}


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

.animate-section {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInSlideUp 1s ease-out forwards;
  animation-delay: 0.2s;
}

.animate-fade-in {
  animation: fadeInSlideUp 0.8s ease-out forwards;
}

.delay-1 {
  animation-delay: 0.5s;
}

.delay-2 {
  animation-delay: 0.7s;
}


@media (max-width: 900px) {
  .author-container {
    flex-direction: column;
    text-align: center;
    gap: var(--spacing-xl);
  }

  .author-image-wrapper {
    min-width: unset;
    max-width: 300px;
    margin-bottom: var(--spacing-lg);
  }

  .author-text {
    padding-left: 0;
    max-width: 100%;
  }

  .author-text .section-title {
    font-size: 2.8rem;
  }

  .author-text p {
    font-size: 1.05rem;
    text-align: left;
  }
}

@media (max-width: 500px) {
  #about-author {
    padding: var(--spacing-xl) 0;
  }

  .author-image-wrapper {
    max-width: 250px;
  }

  .author-text .section-title {
    font-size: 2.2rem;
  }

  .author-text p {
    font-size: 1rem;
  }

  .social-icon {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
}


.animate-in {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeIn 0.8s forwards;
}

.animate-in.delay-1 { animation-delay: 0.3s; }
.animate-in.delay-2 { animation-delay: 0.6s; }
.animate-in.delay-3 { animation-delay: 0.9s; }

.animate-section {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.animate-section.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes fadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


@media (max-width: 768px) {
  body {
    font-size: 16px;
  }

  .hero-content h1 {
    font-size: 2.5rem;
  }

  .hero-content h2 {
    font-size: 1.8rem;
  }

  .content-section h2 {
    font-size: 2.2rem;
  }

  .author-bio {
    flex-direction: column;
    text-align: center;
  }

  .author-image {
    margin-bottom: 20px;
  }
}

.form-bg-section {
  background-color: var(--color-background);
  padding: var(--spacing-xl) 0;
}

.review-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-xl);
}

.review-container .section-title {
  font-size: 3.2rem;
  margin-bottom: var(--spacing-md);
  color: var(--color-secondary);
}

.review-container .section-title::after {
  background-color: var(--color-primary);
}

.lead-paragraph {
  font-size: 1.3rem;
  color: var(--color-text-light);
  margin-bottom: var(--spacing-xl);
  max-width: 800px;
  line-height: 1.8;
}

.review-call-to-action {

  text-align: left;
}

.review-call-to-action h3 {
  font-size: 2.2rem;
  color: var(--color-primary);
  margin-bottom: var(--spacing-md);
}

.review-call-to-action p {
  font-size: 1.15rem;
  line-height: 1.7;
  color: var(--color-text-light);
  margin-bottom: var(--spacing-lg);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}



.button--primary {
  background-color: var(--color-primary);
  color: var(--color-accent);
}

.button--primary:hover {
  background-color: color-mix(in srgb, var(--color-primary) 85%, black);
  transform: translateY(-2px);
}

.button--large {
  padding: 1rem 3rem;
  font-size: 1.2rem;
}


.button--wobble {
  animation: wobble 2s ease-in-out infinite;

  animation-delay: 1s;
}


@keyframes wobble {
  0%, 100% { transform: rotate(0deg) scale(1); }
  15% { transform: rotate(-2deg) scale(1.02); }
  30% { transform: rotate(2deg) scale(1.02); }
  45% { transform: rotate(-2deg) scale(1.02); }
  60% { transform: rotate(2deg) scale(1.02); }
  75% { transform: rotate(0deg) scale(1); }

}



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

.animate-section {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInSlideUp 1s ease-out forwards;
  animation-delay: 0.2s;
}

.animate-fade-in {
  animation: fadeInSlideUp 0.8s ease-out forwards;
}

.delay-1 {
  animation-delay: 0.5s;
}

.delay-2 {
  animation-delay: 0.7s;
}


@media (max-width: 768px) {
  .form-bg-section {
    padding: var(--spacing-xl) 0;
  }

  .review-container .section-title {
    font-size: 2.8rem;
  }

  .lead-paragraph {
    font-size: 1.15rem;
  }

  .review-call-to-action h3 {
    font-size: 1.8rem;
  }

  .review-call-to-action p {
    font-size: 1rem;
  }

  .button--large {
    padding: 0.9rem 2.5rem;
    font-size: 1.1rem;
  }
}

@media (max-width: 500px) {
  .review-container .section-title {
    font-size: 2.2rem;
  }

  .lead-paragraph {
    font-size: 1rem;
  }

  .review-call-to-action h3 {
    font-size: 1.5rem;
  }

  .review-call-to-action p {
    font-size: 0.95rem;
  }

  .button--large {
    padding: 0.8rem 2rem;
    font-size: 1rem;
  }
}
footer {
  background-color: var(--color-background);
  color: var(--color-text-light);
  padding: var(--spacing-lg) 0 var(--spacing-sm) 0;
  font-size: 0.85rem;
  text-align: center;
  border-top: 1px solid var(--color-form-bg);
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: var(--spacing-sm);
  max-width: var(--max-width-container);
  margin: 0 auto;
  padding: 0 var(--spacing-sm);
}

.footer-logo img {
  max-width: 100px;
  height: auto;
  display: block;

  border-radius: var(--border-radius-sm);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4),
  0 0 0 3px rgba(255, 255, 255, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.footer-logo img:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.6),
  0 0 0 5px var(--color-primary);
}

.footer-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--spacing-md);
}

.footer-nav a {
  color: var(--color-text-light);
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease, transform 0.2s ease;
  padding: 5px 0;
}

.footer-nav a:hover {
  color: var(--color-primary);
  transform: translateY(-2px);
}

.footer-social {
  display: flex;
  gap: var(--spacing-sm);
  justify-content: center;
}

.footer-social a {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background-color: var(--color-form-bg);
  color: var(--color-text-light);
  font-size: 1rem;
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.footer-social a:hover {
  background-color: var(--color-secondary);
  color: var(--color-background);
  transform: translateY(-3px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3),
  0 0 0 3px rgba(255, 200, 87, 0.2);
}

.footer-bottom {
  flex-basis: 100%;
  margin-top: var(--spacing-md);
  padding-top: var(--spacing-sm);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-bottom p {
  margin: 0.3rem 0;
  color: var(--color-text-muted);
}

.credit-text .heart-icon {
  color: var(--color-primary);
}



@media (max-width: 768px) {
  .footer-content {
    flex-direction: column;
    text-align: center;
    gap: var(--spacing-sm);
  }

  .footer-logo {
    margin-bottom: var(--spacing-sm);
  }

  .footer-nav {
    margin-bottom: var(--spacing-sm);
  }

  .footer-nav ul {
    flex-direction: column;
    gap: var(--spacing-xs);
  }

  .footer-social {
    margin-bottom: var(--spacing-md);
  }

  .footer-bottom {
    margin-top: var(--spacing-sm);
    padding-top: var(--spacing-xs);
  }
}

@media (max-width: 480px) {
  .footer-nav ul {
    font-size: 0.8rem;
  }

  .footer-social a {
    width: 35px;
    height: 35px;
    font-size: 0.9rem;
  }

  footer {
    font-size: 0.8rem;
  }
}

.contact-form-container {
  background-color: var(--color-background);
  padding: var(--spacing-xxl) var(--spacing-md);
  border-radius: var(--border-radius-md);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
  margin-top: var(--spacing-xl);
  margin-bottom: var(--spacing-xl);
  max-width: 800px;
}

.contact-form-container .section-title {
  font-size: 3.2rem;
  color: var(--color-primary);
  margin-bottom: var(--spacing-md);
}

.contact-form-container .section-title::after {
  background-color: var(--color-secondary);
}

.section-description {
  font-size: 1.15rem;
  color: var(--color-text-light);
  margin-bottom: var(--spacing-lg);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
  align-items: center;
  width: 100%;
}

.form-group {
  width: 100%;
  max-width: 600px;
  text-align: left;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-size: 1rem;
  font-weight: bold;
  color: var(--color-secondary);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid var(--color-background);
  border-radius: var(--border-radius-sm);
  background-color: var(--color-input-bg);
  color: var(--color-text-dark);
  font-size: 1rem;
  font-family: 'Lora', serif;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input[type="text"]::placeholder,
.form-group input[type="email"]::placeholder,
.form-group textarea::placeholder {
  color: var(--color-text-muted);
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(255, 106, 61, 0.3);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.contact-form button[type="submit"] {
  margin-top: var(--spacing-md);
  width: auto;
}



.animate-fade-in {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInSlideUp 0.8s ease-out forwards;
}

.hero-text-content.animate-fade-in {
  animation-delay: 0.5s;
}
.hero-book-showcase.animate-fade-in {
  animation-delay: 1s;
}


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



@media (max-width: 1024px) {
  .header-top-bar-content {
    justify-content: center;
  }
  .hero-content-wrapper {
    flex-direction: column;
    gap: var(--spacing-xl);
  }
  .hero-text-content {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
  }
  .hero-action-buttons {
    justify-content: center;
  }
  .hero-book-showcase {
    max-width: 400px;
  }

  .contact-form-container {
    padding: var(--spacing-xl) var(--spacing-md);
  }
  .contact-form-container .section-title {
    font-size: 2.8rem;
  }
  .section-description {
    font-size: 1rem;
  }
  .form-group label {
    font-size: 0.95rem;
  }
  .form-group input, .form-group textarea {
    padding: 10px 12px;
    font-size: 0.95rem;
  }
}

@media (max-width: 768px) {
  body {
    padding-top: 90px;
  }
  .top-utility-button {
    padding: 5px 10px;
    font-size: 0.8rem;
  }
  .top-utility-link {
    font-size: 0.85rem;
  }

  .hero-section {
    min-height: unset;
    padding: var(--spacing-lg) 0;
  }
  .hero-text-content h1 {
    font-size: 3rem;
  }
  .hero-text-content h2 {
    font-size: 2rem;
  }
  .hero-description {
    font-size: 1rem;
    margin-bottom: var(--spacing-lg);
  }
  .button--large {
    padding: 0.8rem 2rem;
    font-size: 1.1rem;
  }
  .hero-book-showcase {
    max-width: 300px;
  }
  .hero-action-buttons .button {
    padding: 0.7rem 1.5rem;
    font-size: 0.9rem;
  }

  .contact-form-container {
    padding: var(--spacing-lg) var(--spacing-sm);
    margin-left: var(--spacing-sm);
    margin-right: var(--spacing-sm);
  }
  .contact-form-container .section-title {
    font-size: 2.2rem;
  }
  .section-description {
    font-size: 0.9rem;
  }
  .form-group label {
    font-size: 0.9rem;
  }
  .form-group input, .form-group textarea {
    font-size: 0.9rem;
  }
  .contact-form button[type="submit"] {
    width: 100%;
    max-width: 280px;
  }
}

@media (max-width: 500px) {
  body {
    padding-top: 80px;
  }
  .top-utility-link {
    font-size: 0.75rem;
  }
  .top-utility-button {
    padding: 4px 8px;
    font-size: 0.75rem;
  }

  .hero-text-content h1 {
    font-size: 2.5rem;
  }
  .hero-text-content h2 {
    font-size: 1.6rem;
    margin-bottom: var(--spacing-md);
  }
  .hero-description {
    font-size: 0.9rem;
    margin-bottom: var(--spacing-md);
  }
  .hero-book-showcase {
    max-width: 250px;
  }
  .hero-action-buttons {
    flex-direction: column;
    align-items: center;
  }
  .hero-action-buttons .button {
    width: 100%;
    max-width: 250px;
  }
  .contact-form-container .section-title {
    font-size: 1.8rem;
  }
  .section-description {
    font-size: 0.85rem;
  }
}
.popup-overlay{
  display: none;
}
/* Update the CSS for the popup overlay */
#book-preorder-popup {
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: transparent; /* Starts transparent for a fade-in effect */
  display: flex; /* This is the key line */
  justify-content: center;
  align-items: center;
  overflow: auto;
  opacity: 0; /* Starts hidden */
  pointer-events: none; /* Prevents clicks when hidden */
  transition: opacity 0.5s ease-in-out, background-color 0.5s ease-in-out;
}

/* Class to make the overlay visible */
#book-preorder-popup.show {
  opacity: 1;
  background-color: rgba(11, 15, 75, 0.85); /* Uses the background color with transparency */
  pointer-events: auto;
}

/* Updated styles for the popup content box */
.popup-content {
  background-color: var(--color-form-bg);
  color: var(--color-text-light);
  padding: 2.5rem 2rem;
  border-radius: 12px;
  max-width: 500px;
  width: 90%;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  position: relative;
  text-align: center;
  opacity: 0;
  transform: scale(0.95); /* Starts slightly smaller */
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

/* New class to show the popup content with a smooth animation */
.popup-content.show {
  opacity: 1;
  transform: scale(1); /* Scales up to its normal size */
}

/* Styles for the close button */
.close-button {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  color: var(--color-text-muted);
  font-weight: bold;
  transition: color 0.2s ease;
}

.close-button:hover {
  color: var(--color-accent); /* Changes color on hover */
}

/* Styles for titles and text */
.popup-header h2 {
  color: var(--color-primary);
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.popup-content p {
  color: var(--color-text-light);
  margin-bottom: 1.5rem;
}

/* Form styling */
.popup-form label {
  display: block;
  text-align: left;
  margin-top: 1rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--color-text-light);
}

.popup-form input[type="text"],
.popup-form input[type="email"],
.popup-form input[type="tel"],
.popup-form input[type="number"] {
  width: 100%;
  padding: 0.75rem;
  margin-bottom: 1rem;
  border: 1px solid var(--color-text-muted);
  border-radius: 6px;
  background-color: var(--color-input-bg);
  color: var(--color-text-dark);
  font-size: 1rem;
  box-sizing: border-box;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.popup-form input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(255, 106, 61, 0.4);
}

/* Submit button styling */
.popup-form .button--primary {
  width: 100%;
  padding: 1rem;
  margin-top: 1.5rem;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-background);
  background-color: var(--color-primary);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.popup-form .button--primary:hover {
  background-color: var(--color-secondary);
  transform: translateY(-2px);
}

.popup-form .button--primary:active {
  transform: translateY(0);
}
@media (max-width: 768px) {
  /* ... (rest of the media query code) ... */

  /* Updated: Make the popup content more accommodating on smaller screens */
  .popup-content {
    max-width: 95%; /* Allow it to take up a bit more width */
    padding: 2rem 1.5rem; /* Reduce padding for a more compact form */
  }

  /* Updated: Ensure labels are clearly visible and spaced out */
  .popup-form label {
    margin-top: 1rem;
    margin-bottom: 0.3rem; /* Slightly reduced margin below labels */
    font-size: 0.95rem; /* A little smaller for readability */
  }

  /* Updated: Make input fields and the button more compact */
  .popup-form input[type="text"],
  .popup-form input[type="email"],
  .popup-form input[type="tel"],
  .popup-form input[type="number"] {
    padding: 0.6rem; /* Reduced padding inside the inputs */
    margin-bottom: 0.8rem; /* Reduced space between inputs */
  }

  .popup-form .button--primary {
    width: 100%;
    padding: 0.8rem; /* Reduced button padding */
    font-size: 1rem; /* Reduced button font size */
    margin-top: 1rem; /* Reduced margin above the button */
  }
}

/* Optional: Additional changes for very small screens */
@media (max-width: 480px) {
  .popup-content {
    padding: 1.5rem 1rem; /* Even more compact on the smallest screens */
  }

  .popup-header h2 {
    font-size: 1.5rem; /* Smaller title */
  }
}
/* ======================== */
/* Testimonial Section CSS  */
/* ======================== */

.testimonial-section {
  background-color: var(--color-background);
  color: var(--color-text-light);
  padding: 6rem 1rem;
  text-align: center;
}

.testimonial-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 3rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.carousel-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
}

.testimonial-grid {
  display: flex;
  gap: 2rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 1rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.testimonial-grid::-webkit-scrollbar {
  display: none;
}

.testimonial-card {
  flex: 0 0 300px; /* Each card has a fixed width */
  scroll-snap-align: start;
  background-color: var(--color-form-bg);
  padding: 2.5rem;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  justify-content: space-between; /* Distributes space and pushes button down */
  align-items: center;
  transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.5);
}

.testimonial-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 4px solid var(--color-secondary);
  object-fit: cover;
  margin-bottom: 1.5rem;
}

/* Container for the review text on the main card */
.review-text-wrapper {
  max-height: 150px; /* Desired truncated height */
  overflow: hidden;
  position: relative;
  width: 100%; /* Ensure it takes full width of card */
  margin-bottom: 1rem; /* Space between text and author */
}

/* Fade-out effect for truncated text */
.review-text-wrapper::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 50%; /* Height of the fade */
  background: linear-gradient(
    to bottom,
    rgba(16, 25, 115, 0), /* Transparent */
    var(--color-form-bg) /* Matches card background */
  );
  pointer-events: none; /* Allows clicks to pass through to elements below */
}


blockquote {
  font-size: 1.1rem;
  line-height: 1.6;
  font-style: italic;
  color: var(--color-text-light);
  margin: 0; /* Remove default blockquote margin */
  padding: 0;
  text-align: center;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.testimonial-author {
  font-weight: 600;
  color: var(--color-text-muted);
  margin-top: auto; /* Pushes author and button to bottom when space allows */
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 1rem; /* Space between author and button */
}

.read-more-btn {
  background: none;
  border: none;
  color: var(--color-primary);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  margin-top: 0.5rem; /* Space from author */
  transition: color 0.2s ease;
}

.read-more-btn:hover {
  color: var(--color-secondary);
}

/* =================== */
/* Modal Popup Styles  */
/* =================== */
.modal-overlay {
  display: none; /* Hidden by default */
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(11, 15, 75, 0.9);
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease-out forwards;
}

.modal-overlay.show {
  display: flex;
}

/* Update your existing CSS */

.modal-content {
  background-color: var(--color-form-bg);
  color: var(--color-text-light);
  padding: 2.5rem 2rem;
  border-radius: 12px;
  max-width: 600px;
  width: 90%;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  position: relative;
  text-align: center;
  transform: scale(0.95);
  transition: transform 0.3s ease-in-out;
  animation: scaleIn 0.3s ease-out forwards;
  display: block; /* Ensures a standard block layout */
}
.modal-review-text {
  display: block;
  line-height: 1.6;
  font-style: italic;
  text-align: left; /* <-- This ensures left alignment */
  color: var(--color-text-light);
}
/* Add this new CSS class for the scrollable area */
.modal-body {
  text-align: left;
  margin-top: 1rem;
  max-height: 60vh; /* Adjust this value to control the height of the scrollable area */
  overflow-y: auto; /* Adds a scrollbar when content overflows */
  padding-right: 15px; /* Adds space for the scrollbar so text isn't cramped */
}

/* Add this new CSS class */
.modal-review-text-wrapper {
  max-height: 50vh; /* Adjust this value to set the max height of the scrollable area */
  overflow-y: auto; /* This is the key to make the content scroll */
  text-align: left; /* Ensure text is aligned left inside the scrollable box */
  padding-right: 15px; /* Add some padding to prevent text from touching the scrollbar */
}

/* If you need to make the scrollbar look better, you can style it like this */
.modal-review-text-wrapper::-webkit-scrollbar {
  width: 8px;
}

.modal-review-text-wrapper::-webkit-scrollbar-track {
  background: var(--color-background);
}

.modal-review-text-wrapper::-webkit-scrollbar-thumb {
  background: var(--color-primary);
  border-radius: 4px;
}

/* Close button for the modal */
.close-button {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  font-size: 2rem;
  font-weight: bold;
  cursor: pointer;
  color: var(--color-text-muted);
  transition: color 0.2s ease;
}

.close-button:hover {
  color: var(--color-primary);
}

/* Modal content styling */
.modal-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: 4px solid var(--color-secondary);
  margin-bottom: 1rem;
}

.modal-author {
  font-weight: 600;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 1.5rem;
}


/* Keyframe animations for modal appearance */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes scaleIn {
  from { transform: scale(0.9); }
  to { transform: scale(1); }
}

/* =========================== */
/* Carousel Navigation Buttons */
/* =========================== */
.scroll-button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(255, 255, 255, 0.1);
  border: none;
  color: var(--color-accent);
  font-size: 2.5rem;
  cursor: pointer;
  z-index: 10;
  padding: 0.5rem;
  border-radius: 50%;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.scroll-button:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

.left-button {
  left: -20px;
}

.right-button {
  right: -20px;
}

/* Media query for smaller screens to ensure visibility */
@media (max-width: 768px) {
  .scroll-button {
    font-size: 2rem;
  }

  .left-button {
    left: 10px;
  }

  .right-button {
    right: 10px;
  }
}
