/* Base line spacing */
article {
  line-height: 1.4;
  /* try 1.3–1.45 */
}

/* Paragraphs */
article p {
  line-height: 1.4;
  margin-bottom: 0.6em;
}

article h3{
  margin-bottom: 0px;
}

.image-rotator {
  position: relative;
  width: 100%;
  height: 800px;
  overflow: hidden;
  margin: auto;
}

/* base */
.image-rotator>img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;

  opacity: 0;
  z-index: 0;

  /* 3 images × 5s = 15s */
  animation: xfade 15s infinite ease-in-out;
}

/* only first visible at load */
.image-rotator>img:first-child {
  opacity: 1;
  z-index: 1;
}

/* stagger by 5s */
.image-rotator>img:nth-child(1) {
  animation-delay: 0s;
}

.image-rotator>img:nth-child(2) {
  animation-delay: 5s;
}

.image-rotator>img:nth-child(3) {
  animation-delay: 10s;
}

/*
Per image "slot" = 5s.
Hold ~3s, fade out over ~2s (big blend).
Percent mapping: 5s is 33.333% of 15s.
Fade window is 2/5 = 40% of slot -> ~13.333% of full cycle.
*/
@keyframes xfade {
  0% {
    opacity: 1;
    z-index: 1;
  }

  /* visible */
  20% {
    opacity: 1;
    z-index: 1;
  }

  /* hold (~3s) */
  33.333% {
    opacity: 0;
    z-index: 0;
  }

  /* fade out (~2s) */
  100% {
    opacity: 0;
    z-index: 0;
  }
}

.book-cover {
  width: 100%;
  max-width: 520px;
  border-radius: 6px;
  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.45),
    inset 0 0 0 1px rgba(255, 255, 255, 0.06);
  background: #111;
  /* safety if image loads slow */
}


/* ===== Basic card styling (dark-theme friendly) ===== */
#carousel-food-calendar .blog-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 18px 18px 14px 18px;
  min-height: 190px;
}

#carousel-food-calendar .blog-card h4 {
  margin: 0 0 10px 0;
  font-size: 1.05rem;
  line-height: 1.25;
}

#carousel-food-calendar .blog-card a {
  text-decoration: none;
}

#carousel-food-calendar .blog-card p {
  margin: 0 0 12px 0;
  opacity: 0.9;
}

#carousel-food-calendar .blog-card .meta {
  font-size: 0.85rem;
  opacity: 0.65;
}

/* ===== Center spotlight behavior ===== */
/* Default (non-center) items slightly smaller and dimmer */
#carousel-food-calendar .owl-item .blog-card {
  transform: scale(0.92);
  opacity: 0.70;
  transition: transform 220ms ease, opacity 220ms ease, filter 220ms ease;
  filter: saturate(0.9);
}

/* Center item is the "primary" one */
#carousel-food-calendar .owl-item.center .blog-card {
  transform: scale(1.06);
  opacity: 1;
  filter: none;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.45);
}

/* Optional: keep edges from feeling clipped when scaling */
#carousel-food-calendar .owl-stage-outer {
  padding: 12px 0;
  /* gives vertical breathing room for the scaled center */
}

/* ===== Owl nav styling (optional) ===== */
#carousel-food-calendar .owl-nav button {
  border-radius: 10px;
  padding: 6px 10px !important;
}

#carousel-food-calendar .owl-nav button span {
  font-size: 26px;
  line-height: 1;
}

/* Disable the spotlight scaling on small screens */
@media (max-width: 991.98px) {

  #carousel-food-calendar .owl-item .blog-card,
  #carousel-food-calendar .owl-item.center .blog-card {
    transform: none;
    opacity: 1;
    box-shadow: none;
    filter: none;
  }
}

/* Injected date line: "Day N — Sat, Jan 24, 2026" */
#carousel-food-calendar .day-heading {
  font-size: 0.85rem;
  font-weight: 600;
  opacity: 0.7;
  margin-bottom: 4px;
  letter-spacing: 0.02em;
}

/* Existing Day N title */
#carousel-food-calendar h4 {
  margin-top: 0;
  margin-bottom: 0.75rem;
}

/* Card spacing consistency */
#carousel-food-calendar .blog-card {
  padding: 18px 18px 16px;
}

/* Reduce list bloat inside cards */
#carousel-food-calendar ul {
  padding-left: 1.1rem;
  margin-bottom: 0.75rem;
}

#carousel-food-calendar li {
  margin-bottom: 0.25rem;
}

/* Meta note styling */
#carousel-food-calendar .meta {
  font-size: 0.85rem;
  opacity: 0.75;
  margin-top: 0.5rem;
}

/* Prevent cards from jumping in height when sliding */
#carousel-food-calendar .blog-card {
  min-height: 420px; /* tune once you eyeball it */
}

/* Subtle divider effect for sections */
#carousel-food-calendar b {
  display: inline-block;
  margin-top: 0.25rem;
}

