
  section h2 {
    text-decoration: underline;
  }

/* Featured Box */
.feature-box {
  position: relative;
  width: 100%;
  min-height: 360px;           /* hero-ish height; adjust as needed */
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  margin: 0 auto 24px auto;
}

/* Background image layer */
.feature-bg {
  position: absolute;
  inset: 0;
  background-image: var(--feature-image);
  background-size: cover;
  background-position: center;
  filter: saturate(105%);
  z-index: 1;
}

/* Gradient overlay for legibility */
.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0,0,0,0.15) 0%,
    rgba(0,0,0,0.45) 45%,
    rgba(0,0,0,0.75) 100%
  );
  z-index: 2;
}

/* Content overlay */
.feature-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 3;
  color: #fff;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  height: 100%;
  justify-content: flex-end; /* anchor text near bottom like magazine cover */
}

/* Title + standfirst */
.feature-title {
  font-family: "Literata", serif;
  font-size: 32px;
  line-height: 1.15;
  margin: 0;
}

.feature-standfirst {
  font-size: 18px;
  line-height: 1.6;
  font-style: italic;
  color: rgba(255,255,255,0.9);
  margin: 4px 0 10px 0;
}

/* Meta + CTA */
.feature-meta {
  font-family: Inter, system-ui, sans-serif;
  font-size: 14px;
  color: rgba(255,255,255,0.85);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.feature-meta .author { color: #fff; }
.feature-meta .author:hover { text-decoration: underline; }
.feature-meta .dot { opacity: 0.7; }

.feature-cta {
  display: inline-block;
  margin-top: 6px;
  padding: 8px 12px;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  border-radius: 4px;
  text-decoration: none;
}
.feature-cta:hover { opacity: 0.95; }

/* Featured ribbon */
.feature-ribbon {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 4;
  background: var(--accent);
  color: #fff;
  font-family: Inter, system-ui, sans-serif;
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 6px 10px;
  border-radius: 3px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.18);  
}

/* Featured ribbon - lighter red, flush with corner 
.feature-ribbon {
  position: absolute;
  top: 0;          /* flush with top edge */
  left: 0;         /* flush with left edge */
  z-index: 4;
  background: #e57373; /* lighter red tone */
  color: #fff;
  font-family: Inter, system-ui, sans-serif;
  font-weight: 500;     /* lighter than bold */
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 6px 14px;
  border-bottom-right-radius: 6px; /* soften corner */
}
*/

/* Optional diagonal ribbon style (uncomment to use diagonal) 
.feature-ribbon {
  top: 0;
  left: -40px;
  transform: rotate(-45deg);
  transform-origin: left top;
  padding: 8px 60px;
}
*/

.feature-box .hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s ease;
  z-index: 0;
}

.feature-box .hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
  position: absolute;
  z-index: 10;  /* Active slide is in front */
}

.feature-box .hero-slide.is-active .feature-ribbon {
  opacity: 1;  /* Show only when the slide is active */
  pointer-events: auto;  /* Enable interaction */
  visibility: visible; /* Ensure ribbon is visible only on active slide */
}

.feature-box .hero-slide .feature-ribbon {
  opacity: 0;  /* Make all ribbons hidden by default */
  visibility: hidden;  /* Make ribbons invisible by default */
  transition: opacity 0.3s ease, visibility 0.3s ease; /* Smooth visibility transition */
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s ease;
  isolation: isolate; /* fix stacking */
}

.hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

/* arrows */
.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.45);
  color: #fff;
  border: 0;
  padding: 5px 6px;
  border-radius: 6px;
  z-index: 20;
  cursor: pointer;
}
.hero-prev { left: 0px; }
.hero-next { right: 0px; }
@media (max-width: 720px) {
  .hero-arrow { padding: 8px 10px; opacity: 0.9; }
}

/* dots */
.hero-dots {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 12px;
  display: flex;
  gap: 8px;
  z-index: 20;
}
.hero-dots button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 0;
  background: rgba(255,255,255,0.45);
  cursor: pointer;
  padding: 0;
}
.hero-dots button.is-active { background: #fff; transform: scale(1.15); }
/* target aria state in case JS sets aria-current instead of is-active */
.hero-dots button[aria-current="true"],
.hero-dots button.is-active {
  background: #ffffff;
  transform: scale(1.15);
}


/* Responsiveness */
@media (min-width: 900px) {
  .feature-box { min-height: 420px; }
  .feature-title { font-size: 38px; }
  .feature-standfirst { font-size: 19px; }
}

@media (max-width: 520px) {
  .feature-content { padding: 18px; }
  .feature-title { font-size: 26px; }
  .feature-standfirst { font-size: 16px; }
}

@media (max-width: 720px) { #big-featured-container .hero-arrow { /* larger hit target for touch while preserving visual padding */ min-width: 44px; min-height: 44px; padding: 10px 12px; /* visual look unchanged */ font-size: 18px; } #big-featured-container .hero-prev { left: 8px; } #big-featured-container .hero-next { right: 8px; } }