/* ===== Featured Author + Audiobook (external CSS) ===== */

/* Section wrapper */
.featured-audio-wrap {
  background: #faf7ff;
  padding: 20px 0;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
  margin: 2rem 0;
  text-align: center;
}

/* Heading */
.featured-audio-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 1rem;
}

/* Two-tile layout */
.featured-audio-promo {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 30px;
  flex-wrap: wrap;
  text-align: center; /* center everything inside */
}

/* Tile wrappers */
.fauthor-card,
.fbook-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  width: 160px;
  text-decoration: none;
  color: inherit;
}

/* Square image / iframe */
.square-160,
.fbook-card iframe {
  width: 160px;
  height: 160px;
  border-radius: 10px;
  display: block;
  object-fit: cover;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

/* Fade-in */
.fadein {
  opacity: 0;
  animation: fadeIn 1.2s ease-in-out forwards;
}
@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.985); }
  to   { opacity: 1; transform: scale(1); }
}

/* Captions (perfect centering under each tile) */
.fauthor-caption,
.ftext {
  text-align: center;
  margin-top: 0.6rem;
  width: 100%;
  line-height: 1.4;
}

/* Author name */
.fauthor-caption {
  font-size: 1.15rem;
  font-weight: 700;
  color: #2f2f2f;
}

/* Audiobook caption */
.ftext {
  font-size: 1rem;
  color: #333;
}

/* Book title emphasis */
.ftext em {
  display: block;
  font-size: 1.15rem;
  font-weight: 700;
  font-style: italic;
}

/* Hover polish */
.fauthor-card:hover .square-160,
.fbook-card:hover iframe {
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.18);
  transition: box-shadow .2s ease, transform .2s ease;
}

/* Mobile */
@media (max-width: 600px) {
  .featured-audio-promo { gap: 20px; }
  .fauthor-caption, .ftext em { font-size: 1.05rem; }
}
