/* ── News / Blog page ─────────────────────────────────── */

/* ── Hero ─────────────────────────────────────────────── */
.news-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #17385d 0%, #087fff 60%, #087fff 100%);
  padding-bottom: 0;
}

.news-widget--dark {
  background: linear-gradient(135deg, #17385d 0%, #087fff 60%, #087fff 100%);
  
}
.news-hero__decor { position: absolute; inset: 0; poInter-events: none; }

.news-hero__circle {
  position: absolute;
  border-radius: 50%;
}

.news-hero__circle--1 {
  width: 460px;
  height: 460px;
  top: -140px;
  right: -80px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.news-hero__circle--2 {
  width: 220px;
  height: 220px;
  bottom: -40px;
  right: 25%;
  background: rgba(231, 221, 54, 0.04);
  border: 1px solid rgba(231, 221, 54, 0.09);
}

.news-hero__content {
  position: relative;
  z-index: 1;
  padding: 7rem 0 3.5rem;
  color: #ffffff;
}

.news-hero__breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 1.25rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.65);
}

.news-hero__breadcrumb a {
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  transition: color 0.2s ease;
}

.news-hero__breadcrumb a:hover { color: #E7DD36; }
.news-hero__breadcrumb span { color: #E7DD36; }
.news-hero__breadcrumb svg { color: rgba(255, 255, 255, 0.35); }

.news-hero__content h1 {
  color: #ffffff;
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0.5rem 0 0.75rem;
  line-height: 1.1;
}

.news-hero__summary {
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.05rem;
  line-height: 1.75;
  margin: 0;
}

/* ── Filter bar ───────────────────────────────────────── */
.news-filter-bar {
  padding-top: 2rem;
  padding-bottom: 0;
}

/* ── Featured card image fix ──────────────────────────── */
.news-featured-card__media {
  position: relative;
  overflow: hidden;
}

.news-featured-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.news-featured-label {
  position: absolute;
  top: 1rem;
  left: 1rem;
}

/* ── Category badges ──────────────────────────────────── */
.news-cat-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
}

.news-cat-badge--advocacy    { background: rgba(72, 127, 195, 0.12); color: #17385d; }
.news-cat-badge--programmes  { background: rgba(46, 93, 40, 0.12);  color: #2e5d28; }
.news-cat-badge--recognition { background: rgba(231, 221, 54, 0.25); color: #7a6f00; }
.news-cat-badge--community   { background: rgba(72, 127, 195, 0.12); color: #17385d; }
.news-cat-badge--partnerships{ background: rgba(46, 93, 40, 0.12);  color: #2e5d28; }
.news-cat-badge--organization{ background: rgba(139, 92, 246, 0.12); color: #8b5cf6; }

/* ── Meta date ────────────────────────────────────────── */
.news-meta-date {
  font-size: 0.78rem;
  color: #94a3b8;
  font-weight: 500;
}

/* ── Read more link ───────────────────────────────────── */
.news-read-more {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: #17385d;
  transition: gap 0.2s ease, color 0.2s ease;
}

.news-featured-card:hover .news-read-more {
  color: #087fff;
  gap: 0.65rem;
}

/* ── Grid label ───────────────────────────────────────── */
.news-grid-label {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #94a3b8;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #F1F5F9;
}

/* ── Articles grid ────────────────────────────────────── */
.news-articles-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-bottom: 2rem;
}

/* ── News card ────────────────────────────────────────── */
.news-card {
  background: #ffffff;
  border: 1px solid #E5E7EB;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(23, 56, 93, 0.05);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  display: flex;
  flex-direction: column;
}

.news-card[hidden] { display: none; }

.news-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(23, 56, 93, 0.1);
}

.news-card__media {
  position: relative;
  display: block;
  height: 180px;
  overflow: hidden;
  text-decoration: none;
}

.news-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.news-card:hover .news-card__media img { transform: scale(1.04); }

.news-card__media .news-cat-badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
}

.news-card__body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
}

.news-card__body h3 {
  font-size: 0.98rem;
  font-weight: 700;
  color: #17385d;
  line-height: 1.4;
  margin: 0;
}

.news-card__body h3 a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.news-card__body h3 a:hover { color: #087fff; }

.news-card__body p {
  font-size: 0.88rem;
  color: #475569;
  line-height: 1.65;
  margin: 0;
  flex: 1;
}

.news-text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: #087fff;
  text-decoration: none;
  margin-top: auto;
  transition: gap 0.2s ease;
}

.news-text-link:hover { gap: 0.55rem; text-decoration: none; }

/* ── Pagination ───────────────────────────────────────── */
.news-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 1rem 0 2rem;
}

.news-pagination__page,
.news-pagination__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  border: 1px solid #E5E7EB;
  background: #ffffff;
  color: #475569;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.news-pagination__page:hover,
.news-pagination__btn:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: #17385d;
  text-decoration: none;
}

.news-pagination__page.is-active {
  background: #17385d;
  border-color: #17385d;
  color: #ffffff;
  poInter-events: none;
}

.news-pagination__btn--prev[aria-disabled="true"] {
  opacity: 0.4;
  poInter-events: none;
}

.news-pagination__ellipsis {
  width: 38px;
  text-align: center;
  color: #94a3b8;
  font-size: 0.9rem;
}

/* ── Search widget ────────────────────────────────────── */
.news-search {
  position: relative;
}

.news-search input {
  width: 100%;
  padding: 0.6rem 2.5rem 0.6rem 0.85rem;
  border: 1px solid #E5E7EB;
  border-radius: 8px;
  font-size: 0.9rem;
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: #1a1a1a;
  outline: none;
  transition: border-color 0.2s ease;
}

.news-search input:focus { border-color: #087fff; }

.news-search svg {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  poInter-events: none;
}

/* ── Newsletter form ──────────────────────────────────── */
.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.newsletter-form input {
  padding: 0.65rem 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  font-size: 0.88rem;
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  outline: none;
}

.newsletter-form input::placeholder { color: rgba(255, 255, 255, 0.5); }
.newsletter-form input:focus { border-color: #E7DD36; }

.newsletter-form .btn {
  min-width: unset;
  width: 100%;
  padding: 0.65rem 1rem;
  font-size: 0.9rem;
}

/* ── btn-outline-brand (needed here) ─────────────────── */
.btn-outline-brand {
  border: 2px solid #17385d;
  color: #17385d;
  background: #ffffff;
  min-width: 14rem;
}

.btn-outline-brand:hover {
  background: #17385d;
  color: #ffffff;
}

/* ── Responsive ───────────────────────────────────────── */
@media (max-width: 768px) {
  .news-hero__content { padding: 6rem 0 2.5rem; }
  .news-articles-grid { grid-template-columns: 1fr; }
  .news-hero__circle--1 { width: 260px; height: 260px; top: -80px; right: -50px; }
  .news-hero__circle--2 { display: none; }
}
