/* ── Homepage hero slider ── */
#home {
  position: relative;
  height: 100vh;
  height: 100svh; /* safe-area aware on iOS */
  min-height: 480px;
  overflow: hidden;
  background: var(--primary); /* dark fallback between slides */
}

.hero-bg {
  position: absolute;
  inset: 0;
}
.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(0.9);
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.35) 100%);
}

/* Slide container */
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.8s ease;
  pointer-events: none;
}
.hero-slide.active {
  opacity: 1;
  pointer-events: auto;
}
/* .hero-slide .hero-bg — removed: inherits .hero-bg base (position:absolute; inset:0) */


.hero-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 10;
  max-width: 820px;
  padding: clamp(1.25rem, 4vw, 3rem) clamp(1.25rem, 4vw, 4rem)
           clamp(3.5rem, 8vh, 6rem) clamp(1.25rem, 4vw, 4rem);
}

/* Badge pill above headline */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.72rem;
  font-weight: 700;
  color: #fff;
  background: rgba(230, 126, 34, 0.75);
  border: 1px solid rgba(230, 126, 34, 0.32);
  border-radius: 999px;
  padding: 0.38rem 0.9rem;
  /* margin-bottom: 1.25rem; */
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}
.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fff;
  flex-shrink: 0;
}

/* Headline & subheading */
.hero-headline {
  font-size: clamp(2.6rem, 5.5vw, 4.2rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1.06;
  text-shadow: 0 2px 12px rgba(0,0,0,0.6);
  /* margin-bottom: 0.9rem; */
  letter-spacing: -1px;
}
.hero-sub {
  font-size: clamp(1.1rem, 2vw, 1.5rem);
 text-shadow: 0 1px 12px rgba(0,0,0,0.95), 0 2px 20px rgba(0,0,0,0.8);  
  font-weight: 600;
  font-style: italic;
  color: rgba(255, 255, 255, 0.96);
  margin-bottom: 0.4rem;
}
.hero-caption {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.92);
text-shadow: 0 1px 12px rgba(0,0,0,0.95), 0 2px 20px rgba(0,0,0,0.8);  /* margin-bottom: 2.25rem; */
  font-weight: 600;
}

/* Prev / next controls */
.hero-controls {
  position: absolute;
  bottom: clamp(1rem, 3vh, 2.75rem);
  right: clamp(1rem, 3vw, 2.5rem);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  z-index: 10;
}

/* Shared base for ALL slide nav arrows — hero slider + article hero slideshow */
.hero-arrow,
.article-hero-prev,
.article-hero-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  background: rgba(0, 0, 0, 0.28);
  color: var(--white);
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  z-index: 10;
  backdrop-filter: blur(4px);
  flex-shrink: 0;
}
.hero-arrow:hover,
.article-hero-prev:hover,
.article-hero-next:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.7);
}
#heroPrev { left: 0.6rem; }
#heroNext { right: 0.6rem; }

/* Dot pagination */
.hero-dots {
  display: flex;
  gap: 7px;
  align-items: center;
}

/* Shared base for ALL slide dots — hero slider + article hero slideshow */
.hero-dot,
.article-hero-dot {
  height: 6px;
  width: 14px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.38);
  border: 1px solid rgba(255, 255, 255, 0.3);
  transition: all 0.3s;
  cursor: pointer;
}
.hero-dot.active,
.article-hero-dot.active {
  background: var(--accent);
  border-color: var(--accent);
  width: 24px;
  border-radius: 4px;
}


/* ── Detail / person page hero photos ── */
.hero-photo-wrap,
.hero-photo-wrap--plain {
  position: relative;
  width: 100%;
  /* clamp already encodes the min/max — no need for separate min/max-height */
  height: clamp(220px, 50vw, 560px);
  overflow: hidden;
  background: var(--primary);
  cursor: zoom-in;
}

.hero-photo-wrap img,
.hero-photo-wrap--plain img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  display: block;
}
.hero-photo-wrap img.obj-top { object-position: top center; }

/* Zoom hint badge */
.hero-zoom-badge {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  background: rgba(0, 0, 0, 0.45);
  color: var(--white);
  border-radius: 999px;
  padding: 0.3rem 0.85rem;
  font-size: 0.75rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 5px;
  backdrop-filter: blur(4px);
  pointer-events: none;
}


/* ── Article slideshow hero ── */
.article-hero-photo {
  position: relative;
  overflow: hidden;
  background: var(--primary);
}

.article-hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.8s ease;
}
.article-hero-slide.active { opacity: 1; }
.article-hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.article-hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 42, 66, 0.45) 0%, transparent 50%);
}

.article-hero-prev { left: 0.8rem; }
.article-hero-next { right: 0.8rem; }

/* Article hero dots */
.article-hero-dots {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  gap: 7px;
}

/* Detail page hero height — article slideshow context */
.page-split-main .article-hero-photo {
  height: clamp(240px, 55vw, 720px);
  max-height: 720px;
}
.page-split-main .article-hero-photo img {
  object-fit: cover;
  object-position: center 20%;
}
/* Suppress the slide gradient inside the full detail layout
   (targets .article-hero-slide::after children, not .article-hero-photo::after) */
.page-split-main .article-hero-slide::after {
  display: none;
}