body {
  font-family: 'Merriweather', serif;
  background-color: #fcf9f5;
  color: #2a2a2a;
  line-height: 1.8;
  transition: background-color 0.3s ease;
}

/* Header styles */
.header-portrait {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 2rem;
  background: rgb(255, 255, 255); /* no image or color behind */
  color: black; /* adjust text color for contrast */
  text-align: center;
  /* No fixed height so it sizes by content */
  width: 100%;
}

.header-title {
  font-family: 'Playfair Display', serif;
  font-size: 6rem; /* much bigger */
  max-width: 90vw;
  border-bottom: 3px solid black; /* black line under */
  padding-bottom: 0.3rem;
  margin-bottom: 1rem;
  line-height: 1.1;
}

.header-subtitle {
  font-family: 'Merriweather', serif;
  font-size: 1.8rem;
  max-width: 600px;
  margin-top: 0;
  margin-bottom: 0;
}


/* SVG Divider */
.header-divider {
  width: 100%;
  max-width: 600px;
  margin-top: 3rem;
}

.header-divider svg {
  display: block;
  width: 100%;
  height: 80px;
}

/* About section styles */
.about-section {
  font-family: 'Merriweather', serif;
  max-width: 900px;
  margin: 0 auto;
  padding: 3rem 1rem;
}

.about-card {
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: none;
}

.about-image {
  width: 40%;
  height: auto;
  object-fit: cover;
  border-radius: 0;
}

.about-text {
  width: 60%;
  padding: 2rem;
}


header {
  background-color: #a8cce3; /* Pastel light blue */
  padding: 6rem 1.5rem;
  color: white;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: background-color 0.5s ease;
}

header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: transparent;
  z-index: 0;
  transition: background 0.5s ease;
}

header * {
  position: relative;
  z-index: 1;
}

.hover-underline {
  transition: color 0.3s ease, text-decoration 0.3s ease;
  color: inherit;
  text-decoration: none;
}

.hover-underline:hover {
  text-decoration: underline;
  color: #5a8dc9 !important; /* Deeper pastel blue for hover */
}



.btn-custom {
  background-color: #8b4e3d;
  color: #fff;
  border: none;
  border-radius: 30px;
  padding: 0.5rem 1.25rem;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.btn-custom {
  color: white;
  border: none;
  padding: 0.375rem 0.75rem;
  font-size: 0.875rem;
  border-radius: 0.25rem;
  transition: background-color 0.3s ease;
}

/* Facebook blue */
.btn-custom.btn-facebook {
  background-color: #1877f2;
}
.btn-custom.btn-facebook:hover {
  background-color: #145dbf;
}

/* Twitter (X) blue */
.btn-custom.btn-twitter {
  background-color: #1da1f2;
}
.btn-custom.btn-twitter:hover {
  background-color: #0d8ddb;
}

/* Instagram gradient */
.btn-custom.btn-instagram {
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}
.btn-custom.btn-instagram:hover {
  filter: brightness(0.9);
}


.card img {
  border-radius: 6px;
  transition: transform 0.3s ease;
}

.card:hover img {
  transform: scale(1.05);
}

.card {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.07);
  border: none;
  border-radius: 10px;
  background-color: #fff;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.toast {
  width: 320px;
  font-size: 0.95rem;
  font-family: 'Merriweather', serif;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.toast-body form input {
  font-size: 0.95rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.toast-body form input:focus {
  border-color: #8b4e3d;
  box-shadow: 0 0 0 0.2rem rgba(139, 78, 61, 0.25);
}

.toast-body form button {
  font-size: 1rem;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.toast-body form button:hover {
  transform: translateY(-2px);
  background-color: #5a3025;
}

footer {
  font-size: 0.95rem;
  background-color: #f5f2ee;
  transition: background-color 0.3s ease;
}

h2, h3 {
  font-family: 'Playfair Display', serif;
  color: #3e2922;
  transition: color 0.3s ease;
}

@media (max-width: 768px) {
  header {
    padding: 4rem 1rem;
  }

  .card img {
    margin: 0 auto;
  }

  .btn-custom {
    display: block;
    width: 100%;
    margin-bottom: 0.5rem;
  }

  .toast {
    width: 95%;
    left: 2.5%;
  }
}

/* Free eBooks Section */
#ebook-row .card {
  border: none;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
}

#ebook-row .card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

#ebook-row .card-title {
  font-family: 'Playfair Display', serif;
  color: #3e2922;
  font-size: 1.25rem;
}

#ebook-row .card-text {
  font-size: 0.95rem;
  color: #555;
}

#ebook-row form input {
  font-size: 0.9rem;
}

#ebook-row form button.btn-custom {
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 30px;
  padding: 0.5rem 1.25rem;
  background-color: #8b4e3d;
  color: #fff;
  border: none;
  transition: background 0.3s ease;
}

#ebook-row form button.btn-custom:hover {
  background-color: #5a3025;
}

/* Initial state: hidden and moved down */
.fade-in-section {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1.8s ease-in-out, transform 1.8s ease-in-out;
  will-change: opacity, transform;
}

.fade-in-section.is-visible {
  opacity: 1;
  transform: none;
}

.img-container {
  position: relative;
  display: inline-block;
  width: 100%;
}

.img-container img {
  width: 100%;
  height: auto;
  border-radius: 6px; /* match card img style */
}

.series-tag {
  position: absolute;
  top: 8px;
  left: 8px;
  background-color: rgba(0, 0, 0, 0.7);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  pointer-events: none;
  user-select: none;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
}
