.news-page {
  padding: 32px 0 12px;
}

.news-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(240px, 0.7fr);
  gap: 24px;
  align-items: stretch;
  margin-bottom: 28px;
}

.news-hero-copy,
.news-meta-card,
.news-controls,
.news-card,
.news-empty-state {
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  box-shadow: var(--shadow-md);
}

.news-hero-copy {
  padding: 28px;
  background:
    radial-gradient(circle at top right, rgba(11, 102, 255, 0.16), transparent 34%),
    linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.news-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand);
  background: rgba(11, 102, 255, 0.08);
}

.news-hero h1 {
  margin: 16px 0 14px;
  font-size: clamp(2rem, 5vw, 3.35rem);
  line-height: 1.06;
  letter-spacing: -0.03em;
}

.news-hero p {
  margin: 0;
  max-width: 60ch;
  color: var(--text-muted);
  font-size: 1.05rem;
}

.news-meta-card {
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background:
    linear-gradient(135deg, rgba(5, 150, 105, 0.1), rgba(11, 102, 255, 0.05)),
    #fff;
}

.news-meta-label {
  color: var(--text-muted);
  font-size: 0.86rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}

.news-meta-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
}

.news-shell {
  display: grid;
  gap: 22px;
}

.news-controls {
  padding: 20px;
  display: grid;
  gap: 18px;
}

.news-search {
  display: grid;
  gap: 10px;
}

.news-search-label {
  font-weight: 700;
  color: var(--text);
}

.news-search input {
  width: 100%;
  min-height: 54px;
  border-radius: 14px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  padding: 0 16px;
  font: inherit;
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.news-search input:focus {
  outline: none;
  border-color: rgba(11, 102, 255, 0.55);
  box-shadow: 0 0 0 4px rgba(11, 102, 255, 0.12);
}

.news-topics {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.news-topic-chip {
  appearance: none;
  border: 1px solid rgba(15, 23, 42, 0.1);
  background: #fff;
  color: var(--text);
  border-radius: 999px;
  padding: 9px 14px;
  font: inherit;
  font-size: 0.93rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.news-topic-chip:hover,
.news-topic-chip.is-active {
  border-color: rgba(11, 102, 255, 0.2);
  background: rgba(11, 102, 255, 0.08);
  color: var(--brand);
}

.news-status-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.news-result-count {
  margin: 0;
  font-weight: 700;
  color: var(--text);
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.news-card {
  padding: 20px;
  display: grid;
  gap: 18px;
}

.news-card[hidden] {
  display: none;
}

.news-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.news-source-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.news-source-icon {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: #fff;
  flex-shrink: 0;
}

.news-topic-label {
  color: var(--brand);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 4px;
}

.news-source-line,
.news-published {
  color: var(--text-muted);
  font-size: 0.92rem;
}

.news-card h2 {
  margin: 0;
  font-size: 1.28rem;
  line-height: 1.28;
}

.news-card h2 a {
  color: var(--text);
  text-decoration: none;
}

.news-card h2 a:hover {
  color: var(--brand);
}

.news-snippet {
  margin: 0;
  color: var(--text-muted);
}

.news-card-foot {
  margin-top: auto;
}

.news-read-link {
  color: var(--brand);
  font-weight: 700;
  text-decoration: none;
}

.news-read-link:hover {
  text-decoration: underline;
}

.news-empty-state {
  padding: 28px;
  text-align: center;
}

.news-empty-state h2 {
  margin: 0 0 10px;
}

.news-empty-state p {
  margin: 0;
  color: var(--text-muted);
}

/* ── Load more ── */

.news-load-more-wrap {
  text-align: center;
  padding: 8px 0;
}

.news-load-more-wrap[hidden] {
  display: none;
}

.news-load-more {
  appearance: none;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: #fff;
  color: var(--brand);
  border-radius: 12px;
  padding: 13px 32px;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.news-load-more:hover {
  background: rgba(11, 102, 255, 0.06);
  border-color: rgba(11, 102, 255, 0.2);
}

@media (max-width: 980px) {
  .news-hero,
  .news-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .news-page {
    padding-top: 20px;
  }

  .news-hero-copy,
  .news-meta-card,
  .news-controls,
  .news-card,
  .news-empty-state {
    border-radius: 14px;
  }

  .news-card-head {
    flex-direction: column;
  }
}

/* ── FAQ section ── */

.news-faq-section {
  margin-top: 40px;
  padding-bottom: 20px;
}

.news-faq-heading {
  text-align: center;
  font-size: 1.85rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0 0 20px;
}

.news-faq-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.news-faq {
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 14px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  padding: 20px;
  box-shadow: var(--shadow-md);
}

.news-faq h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
  color: var(--text);
}

.news-faq p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.94rem;
  line-height: 1.6;
}

@media (max-width: 640px) {
  .news-faq-grid {
    grid-template-columns: 1fr;
  }
}

/* ── External link exit overlay ── */

.news-exit-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.news-exit-overlay[hidden] {
  display: none;
}

.news-exit-dialog {
  background: #fff;
  border-radius: 18px;
  padding: 32px;
  max-width: 480px;
  width: 92%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.18);
  text-align: center;
}

.news-exit-dialog h2 {
  margin: 0 0 14px;
  font-size: 1.4rem;
}

.news-exit-dialog p {
  margin: 0 0 12px;
  color: var(--text-muted);
  font-size: 0.96rem;
  line-height: 1.55;
}

.news-exit-url {
  word-break: break-all;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--brand);
  background: rgba(11, 102, 255, 0.06);
  border-radius: 8px;
  padding: 10px 14px;
}

.news-exit-hint {
  font-size: 0.88rem;
  color: var(--text-muted);
  font-style: italic;
}

.news-exit-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 20px;
}

.news-exit-cancel,
.news-exit-continue {
  padding: 11px 24px;
  border-radius: 10px;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.news-exit-cancel {
  appearance: none;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: #fff;
  color: var(--text);
}

.news-exit-cancel:hover {
  background: rgba(15, 23, 42, 0.04);
}

.news-exit-continue {
  border: none;
  background: var(--brand);
  color: #fff;
}

.news-exit-continue:hover {
  background: var(--brand-hover, #0952cc);
}