/* ============================================
   SECTION PATTERNS (shared)
   ============================================ */
.section {
  padding: 56px 0;
}
.section-compact { padding: 40px 0; }
.section-alt { background: var(--who-gray-50); }
.section-navy { background: var(--who-navy); color: var(--who-white); }
.section-our-work { background: linear-gradient(to bottom, var(--who-white) 0%, var(--who-gray-50) 100%); }

/* Country detail page — same subtle gradient as .section-our-work,
   white → gray-50, restarts at each section to create a visible boundary. */
.section-country-bg {
  background: linear-gradient(to bottom, var(--who-white) 0%, var(--who-gray-50) 100%);
}

/* Multimedia section — WHO secondary blue #40B4E5 (brand guidelines),
   medium blue, lighter than --who-blue (#008DC9), far from navy. */
.section-who-blue-light {
  background: #40B4E5;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 28px;
  border-bottom: 2px solid var(--who-navy);
  padding-bottom: 12px;
}
.section-navy .section-header { border-bottom-color: rgba(255,255,255,.2); }
.section-header h2 {
  font-size: 24px;
  font-weight: 700;
  color: var(--who-navy);
  margin: 0;
}
.section-navy .section-header h2 { color: var(--who-white); }

.see-all {
  color: var(--who-navy);
  font-weight: 700;
  font-size: 15px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap var(--who-transition), color var(--who-transition);
}
.see-all:hover {
  gap: 10px;
  color: var(--who-blue);
}
.section-navy .see-all { color: rgba(255,255,255,.85); }
.section-navy .see-all:hover { color: var(--who-white); }

/* ============================================
   REGION 5 — LATEST NEWS GRID
   4-column news card grid.
   ============================================ */
.news-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.news-card {
  background: var(--who-white);
  border-radius: var(--who-radius-sm);
  overflow: hidden;
}
.news-card-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: inherit;
}
.news-card-img {
  width: 100%;
  height: 180px;
  background: var(--who-gray-200);
  background-size: cover;
  background-position: center;
  flex-shrink: 0;
}
.news-card-body {
  padding: 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
  background: var(--who-gray-50);
}
.news-card-meta {
  font-size: 12px;
  color: var(--who-gray-600);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.type-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .4px;
  padding: 3px 6px;
  border-radius: var(--who-radius-sm);
  background: var(--who-gray-100);
  color: var(--who-gray-600);
  line-height: 1.5;
  white-space: nowrap;
}
/* WHO branding per category */
.type-tag--news      { background: var(--who-blue-light);  color: var(--who-blue); }
.type-tag--feature   { background: #FEF3C7;                color: #92400E; }
.type-tag--emergency { background: #FEE2E2;                color: #991B1B; }
.type-tag--statement { background: #EDE9FE;                color: #5B21B6; }
.type-tag--report    { background: #DCFCE7;                color: #166534; }
.type-tag--event     { background: #FFF7ED;                color: #9A3412; }

.news-card-meta .meta-sep { color: var(--who-gray-300); font-size: 12px; }
.news-card h3 {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--who-navy);
  margin: 0;
  margin-top: auto; /* push title to bottom so all titles align at the same level */
}
.news-card:hover h3 { text-decoration: underline; }

@media (max-width: 1100px) {
  .news-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 820px) {
  .news-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .news-grid { grid-template-columns: 1fr; }
}

/* 3-column variant — used on Media Centre photo stories & latest news */
.news-grid-3 { grid-template-columns: repeat(3, 1fr) !important; }
@media (max-width: 820px) {
  .news-grid-3 { grid-template-columns: repeat(2, 1fr) !important; }
}
@media (max-width: 520px) {
  .news-grid-3 { grid-template-columns: 1fr !important; }
}

/* ============================================
   REGION 6 — LATEST ON EMERGENCIES
   4-column emergency-card grid on gray background.
   ============================================ */
/* Emergency hero section — red background with tabs */
.section-emergency-hero {
  background: var(--who-red);
}
.em-tabs .topic-tabs-nav {
  border-bottom-color: rgba(255,255,255,.2);
}
.em-tabs .topic-tab-btn {
  color: rgba(255,255,255,.7);
  border-bottom-color: transparent;
}
.em-tabs .topic-tab-btn:hover {
  color: var(--who-white);
  background: rgba(255,255,255,.1);
}
.em-tabs .topic-tab-btn.is-active {
  color: var(--who-white);
  border-bottom-color: var(--who-white);
  background: transparent;
}
.em-tab-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
  margin-top: 20px;
}
@media (max-width: 768px) {
  .em-tab-layout { grid-template-columns: 1fr; }
}
.em-tab-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.em-tab-content .topic-tab-body {
  color: rgba(255,255,255,.9);
}
.em-tab-content .topic-tab-body a {
  color: var(--who-white);
}
.em-tab-countries {
  font-size: .875rem;
  color: rgba(255,255,255,.8);
}
.em-tab-countries a {
  color: var(--who-white);
  text-decoration: underline;
}
.em-tab-countries a:hover {
  opacity: .8;
}
.em-tab-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--who-white);
  font-weight: 600;
  font-size: .9375rem;
  text-decoration: none;
  margin-top: 4px;
}
.em-tab-link:hover {
  text-decoration: underline;
}
.em-tab-img-wrap {
  position: relative;
}
.em-tab-img {
  width: 100%;
  aspect-ratio: 16 / 10;
  background-size: cover;
  background-position: center;
  border-radius: var(--who-radius-md);
}
.em-tab-img-wrap .img-credits-unit {
  position: absolute;
  bottom: 8px;
  right: 8px;
}
.em-tab-img-wrap .img-credits-btn {
  background: rgba(0,0,0,.5);
  color: var(--who-white);
}
.em-tab-img-wrap .img-credits-text {
  background: rgba(0,0,0,.7);
  color: var(--who-white);
  padding: 4px 10px;
  border-radius: var(--who-radius-sm);
  font-size: 12px;
}
.emergency-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.emergency-card {
  border-radius: var(--who-radius-sm);
  overflow: hidden;
  background: var(--who-white);
  border: 1px solid var(--who-gray-200);
}
.emergency-card-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: inherit;
}
.emergency-card-img {
  position: relative;
  height: 160px;
  background: var(--who-gray-200);
  background-size: cover;
  background-position: center;
}
.emergency-card-body {
  padding: 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.emergency-card h3 {
  font-size: 15px;
  font-weight: 600;
  color: var(--who-navy);
  margin: 0;
  line-height: 1.35;
}
.emergency-card .card-link {
  color: var(--who-blue);
  font-size: 14px;
  font-weight: 600;
  margin-top: auto;
}
.emergency-card:hover .card-link { text-decoration: underline; }

@media (max-width: 1100px) {
  .emergency-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 820px) {
  .emergency-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .emergency-grid { grid-template-columns: 1fr; }
}

/* ============================================
   REGION 7 — OUR WORK
   3-column highlight cards with full-image background
   and a dark gradient overlay.
   ============================================ */
.highlights-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.highlight-card {
  display: block;
  position: relative;
  height: 300px;
  border-radius: var(--who-radius-md);
  overflow: hidden;
  cursor: pointer;
  color: var(--who-white);
  text-decoration: none;
}
.highlight-card-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}
.highlight-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 59, 115, 0.85) 0%, transparent 65%);
}
.highlight-card-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px;
  color: var(--who-white);
  z-index: 2;
}
.highlight-card-content h3 {
  display: inline-block;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.35;
  margin: 0;
  color: var(--who-white);
  background: var(--who-navy);
  padding: 10px 20px;
  border-radius: var(--who-radius-md);
}
.highlight-card-content p {
  font-size: 13px;
  opacity: .85;
  line-height: 1.4;
  margin: 0;
}

@media (max-width: 900px) {
  .highlights-grid { grid-template-columns: 1fr; }
  .highlight-card { height: 240px; }
}

/* ============================================
   REGION 8 — EVENTS SECTION
   Split grid: events list (left, 4 items) + featured event card (right, 1 item).
   ============================================ */
.split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: stretch;
}

/* Featured event card (left column) */
.featured-event-card {
  background: var(--who-white);
  border-radius: var(--who-radius-md);
  overflow: hidden;
  height: 100%;
}
.featured-event-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.featured-event-img {
  width: 100%;
  flex: 1;
  min-height: 270px;
  background: var(--who-gray-200);
  background-size: cover;
  background-position: center;
}
.featured-event-body {
  padding: 24px;
  flex-shrink: 0;
}
.featured-event-date {
  margin-bottom: 10px;
}
.featured-event-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--who-navy);
  margin: 0 0 18px;
  line-height: 1.3;
}
.featured-event-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--who-navy);
  color: var(--who-white);
  padding: 10px 22px;
  border-radius: var(--who-radius-md);
  font-size: 14px;
  font-weight: 600;
}

/* Summary paragraph inside a featured-event-card (health topic variant) */
.featured-ht-summary {
  color: var(--who-gray-700);
  font-size: 14px;
  line-height: 1.65;
  margin: 0 0 18px;
}

/* Events panel (left side of split grid) */
.events-panel-heading {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 20px;
  border-bottom: 2px solid var(--who-gray-200);
  padding-bottom: 12px;
}
.events-panel-heading h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--who-navy);
  margin: 0;
}
.events-panel {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.events-list {
  display: flex;
  flex-direction: column;
  flex: 1;
  justify-content: flex-start;
}
.event-item {
  display: flex;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--who-gray-200);
}
.event-item:last-child { border-bottom: none; }
.event-thumb {
  width: 100px;
  height: 72px;
  background: var(--who-gray-200);
  background-size: cover;
  background-position: center;
  border-radius: var(--who-radius-sm);
  flex-shrink: 0;
}
.event-info { flex: 1; min-width: 0; }
.news-type-pill,
.topic-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  color: var(--who-blue);
  background: rgba(0, 119, 200, .08);
  border-radius: 3px;
  padding: 2px 8px;
  margin-bottom: 8px;
  line-height: 1.6;
}
.event-info h4 {
  font-size: 14px;
  font-weight: 600;
  color: var(--who-navy);
  line-height: 1.35;
  margin: 0 0 6px;
}
.event-date {
  font-size: 12px;
  color: var(--who-gray-600);
  display: flex;
  align-items: center;
  gap: 6px;
}

@media (max-width: 900px) {
  .split-grid { grid-template-columns: 1fr; gap: 32px; }
}

/* ============================================
   REGION 9 — QUICK LINKS
   4-column card grid linking to site sub-sections.
   ============================================ */
.quick-links-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.quick-link-card {
  background: var(--who-white);
  border-radius: var(--who-radius-sm);
  overflow: hidden;
  border: 1px solid var(--who-gray-200);
  color: inherit;
  display: flex;
  flex-direction: column;
}
.quick-link-card-header {
  padding: 14px 16px;
  font-size: 17px;
  font-weight: 700;
  color: var(--who-navy);
  border-bottom: 1px solid var(--who-gray-200);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.quick-link-card-header > span {
  flex: 1;
}
.card-header-see-all {
  font-size: 12px;
  font-weight: 700;
  color: var(--who-navy);
  white-space: nowrap;
  flex-shrink: 0;
  transition: color var(--who-transition);
}
.card-header-see-all:hover {
  color: var(--who-blue);
}
.quick-link-card-img {
  height: 150px;
  background: var(--who-gray-200);
  background-size: cover;
  background-position: center;
}
.quick-link-card-body {
  padding: 14px 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.quick-link-card-body p {
  font-size: 15px;
  font-weight: 600;
  color: var(--who-navy);
  line-height: 1.35;
  margin: 0;
}
.quick-link-card-body .see-more {
  color: var(--who-blue);
  font-size: 13px;
  font-weight: 600;
  margin-top: auto;
}

/* Zero Tolerance blue block */
.quick-link-card--tolerance {
  background: var(--who-navy);
  border-bottom: none;
}
.quick-link-card--tolerance .quick-link-card-header {
  color: var(--who-white);
  border-bottom-color: rgba(255,255,255,.2);
}
.quick-link-card--tolerance .quick-link-card-body p {
  color: rgba(255,255,255,.88);
  font-size: 14px;
  line-height: 1.65;
}
.quick-link-card--tolerance .quick-link-card-body a {
  color: var(--who-white);
}
.quick-link-card--tolerance .quick-link-card-body a:hover {
  text-decoration: underline;
}

@media (max-width: 1100px) {
  .quick-links-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .quick-links-grid { grid-template-columns: 1fr; }
}

/* ============================================
   REGION 10 — REGIONAL DIRECTOR
   Full-width navy section, photo left + info right.
   ============================================ */
.section-regional-director { padding: 64px 0; }

.rd-grid {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 48px;
  align-items: center;
}
.rd-photo {
  width: 260px;
  height: 320px;
  background-size: cover;
  background-position: center top;
  border-radius: var(--who-radius-md);
}
.rd-info h2 {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--who-white-70);
  margin: 0 0 6px;
}
.rd-info h3 {
  font-size: 34px;
  font-weight: 700;
  color: var(--who-white);
  margin: 0 0 18px;
  line-height: 1.1;
}
.rd-info p {
  font-size: 15px;
  line-height: 1.65;
  color: rgba(255,255,255,.85);
  margin: 0 0 24px;
  max-width: 720px;
}
.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 24px;
  border: 2px solid var(--who-white);
  color: var(--who-white);
  border-radius: var(--who-radius-md);
  font-size: 14px;
  font-weight: 600;
  background: transparent;
  transition: background var(--who-transition), color var(--who-transition);
}
.btn-outline:hover {
  background: var(--who-white);
  color: var(--who-navy);
}

@media (max-width: 820px) {
  .rd-grid { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .rd-info p { margin-left: auto; margin-right: auto; }
}

/* ============================================
   REGION 12 — INVEST BANNER
   Full-width gradient strip with CTA button.
   ============================================ */
.invest-banner {
  background: linear-gradient(135deg, var(--who-navy) 0%, var(--who-blue) 100%);
  color: var(--who-white);
  padding: 56px 0;
  text-align: center;
}
.invest-inner {
  max-width: 720px;
  margin: 0 auto;
}
.invest-banner h2 {
  font-size: 32px;
  font-weight: 700;
  color: var(--who-white);
  margin: 0 0 10px;
}
.invest-banner p {
  font-size: 16px;
  color: var(--who-white-90);
  margin: 0 0 24px;
}
.btn-gold {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--who-gold);
  color: var(--who-white);
  padding: 13px 32px;
  border-radius: var(--who-radius-md);
  font-size: 15px;
  font-weight: 700;
  border: none;
  transition: background var(--who-transition);
}
.btn-gold:hover {
  background: var(--who-gold-hover);
  color: var(--who-white);
}


/* ── Multimedia / video cards (used on country, topic, multimedia listings) ── */
.media-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  border-radius: var(--who-radius-md);
  overflow: hidden;
  background: var(--who-navy);
}
.media-card-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: inherit;
}
.media-card-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--who-navy-dark);
}
.media-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .85;
}
.media-card-thumb-placeholder {
  width: 100%;
  height: 100%;
  background: var(--who-navy-dark);
}
.media-play-btn {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--who-white);
  pointer-events: none;
}
.media-play-btn svg {
  width: 40px;
  height: 40px;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,.5));
}
.media-card-body {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
  background: var(--who-navy);
  color: var(--who-white);
}
.media-card-body h3 {
  font-size: 13px;
  font-weight: 600;
  margin: 0;
  line-height: 1.45;
}
.media-card-date {
  font-size: 12px;
  color: rgba(255,255,255,.6);
  margin-top: auto;
}
.media-card-inner:hover .media-card-thumb img { opacity: 1; }
