/* Fade-in animation */
@keyframes customFadeIn {
  from {
    opacity: 0;
    transform: translateX(var(--startX));
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.animate__customFadeIn {
  animation-name: customFadeIn;
  animation-duration: 1s;
  animation-fill-mode: both;
}
.animate__customFadeIn--left { --startX: -10%; }
.animate__customFadeIn--right { --startX: 10%; }

/* Purchase section container */
.purchase-block.container {
  padding-top: 15px;
  padding-left: 0;
  padding-right: 0;
}

/* Make sure the text block fills available width */
.purchase-block .col-md-9 {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Button column baseline layout (right-aligned desktop) */
.purchase-block .col-md-3 {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

/* Button style */
.book-link {
  border: 1px solid var(--bs-primary-light);
  background-color: var(--bs-primary);
  color: #fff;
  text-decoration: none;
  padding: 8px 18px;
  border-radius: 5px;
  font-size: 1em;
  font-weight: 500;
  transition: all 0.3s ease;
  box-shadow: 0 5px 8px rgba(0, 0, 0, 0.15);
}
.book-link:hover {
  background-color: var(--bs-primary-light);
  border-color: var(--bs-primary);
  color: #fff;
}

/* Header text */
.slogan-header {
  font-size: 2em !important;
}

/* 📱 Mobile adjustments */
@media (max-width: 765px) {
  /* Stack vertically */
  .purchase-block .row {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  /* Full-width text and button */
  .purchase-block .col-md-9,
  .purchase-block .col-md-3 {
    width: 100%;
    justify-content: center;
  }

  /* Add spacing below text, above button */
  .purchase-block .col-md-9 {
    margin-bottom: 0.5em;
  }

  /* Center the button nicely */
  .book-link {
    margin: 0 auto;
  }

  h1.slogan-header {
    text-align: center;
    margin-bottom: 0em;
  }

}
