/* ============================================
   REGION 4 — HERO
   Full-width frontslider section — who.int style.
   Gradient: transparent top → dark bottom, text centered.
   ============================================ */
/* ---- Base (shared by all variants) ---- */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--who-navy);
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}
/* Content column: bottom-left, lateral padding aligned with .container */
.hero-content {
  position: absolute;
  inset: 0;
  z-index: 2;
  max-width: var(--who-max-width);
  margin: 0 auto;
  padding: 0 24px 56px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  text-align: left;
  width: 100%;
}
/* Neutral block wrapper — flex child, no visual styling */
.hero-title-wrap {
  margin: 0 0 16px;
  line-height: 0;
}
/* Inline title: background per line via box-decoration-break */
.hero h1 {
  display: inline;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  background: rgba(12, 43, 100, 0.82);
  border-radius: var(--who-radius-sm);
  color: var(--who-white);
  font-size: 34px;
  font-weight: 700;
  line-height: 1.75;
  padding: 6px 16px;
  margin: 0;
}
/* Category pill above the title */
.hero-category-pill {
  margin: 0 0 14px;
}
/* Subtitle: inline background, same technique as title */
.hero-subtitle-wrap {
  margin: 0 0 24px;
  line-height: 0;
}
.hero-subtitle {
  display: inline;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  background: rgba(12, 43, 100, 0.78);
  border-radius: var(--who-radius-md);
  color: var(--who-white-90);
  font-size: 16px;
  line-height: 1.75;
  padding: 5px 14px;
}
.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--who-white);
  background: var(--who-navy);
  padding: 12px 32px;
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--who-radius-md);
  transition: background var(--who-transition);
}
.hero-cta:hover {
  background: #001f3d;
  color: var(--who-white);
}
/* Credits unit inside .hero sections (country, topic, carousel)
   — absolutely positioned, must sit above hero-content (z-index 2) */
.hero-credits-unit {
  position: absolute;
  bottom: 0;
  right: 0;
  z-index: 3;
}
.hero-social {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  max-width: var(--who-max-width);
  width: 100%;
  padding: 0 24px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
  z-index: 3;
}
.hero-social-label {
  color: rgba(255,255,255,.85);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .5px;
}
.hero-social-icons {
  display: flex;
  gap: 10px;
}
.hero-social-icons a {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.25);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--who-white);
  transition: background var(--who-transition);
}
.hero-social-icons a:hover {
  background: rgba(255,255,255,.3);
  color: var(--who-white);
}

/* ---- Slider variant — homepage carousel ---- */
.hero-slider {
  height: 715px;
}
.hero-slider .carousel,
.hero-slider .carousel-inner,
.hero-slider .carousel-item {
  height: 100%;
}
.hero-slider .carousel {
  --bs-carousel-transition-duration: 1.4s;
}
/* Restore original centered layout for the carousel */
.hero-slider .hero-content {
  align-items: center;
  text-align: center;
  padding-bottom: 80px;
}
/* Full-width block background on the title (original slider style) */
.hero-slider .hero-title-wrap {
  width: 82%;
  background: rgba(12, 43, 100, 0.82);
  border-radius: var(--who-radius-md);
  padding: 20px 32px;
  line-height: normal;
}
/* Block h1 for slider — no per-line inline background */
.hero-slider h1 {
  display: block;
  background: none;
  border-radius: 0;
  padding: 0;
  line-height: 1.3;
}
@media (max-width: 768px) {
  .hero-slider { height: 480px; }
  .hero-slider h1 { font-size: 26px; }
  .hero-subtitle { font-size: 15px; }
  .hero-social { top: 12px; padding: 0 16px; }
  .hero-social-label { display: none; }
}


/* ============================================
   HERO — half-height variant for inner pages
   ============================================ */
.hero-half {
  height: 380px;
  background: linear-gradient(135deg, var(--who-navy) 0%, var(--who-blue) 100%);
}
.hero-half .hero-content {
  padding-bottom: 56px;
}
.hero-half h1 {
  font-size: 46px;
}
@media (max-width: 768px) {
  .hero-half { height: 240px; }
  .hero-half h1 { font-size: 30px; }
}

/* Country pages use a taller hero for the featured banner image. */
.hero-country {
  height: 640px;
}
@media (max-width: 768px) {
  .hero-country { height: 360px; }
}

