/* ============================================
   Система-Інвест — Новини (блок-анонс, архів, single).
   Базові .news-grid/.news-card — у style.css (з Головної). Тут — тема-only
   доповнення: клік-лінки карток, пагінація, типографіка статті, пред/наст.
   ============================================ */

/* Клікабельні картинка + назва картки (у статиці лінк лише на «Переглянути»). */
.news-media a { display: block; width: 100%; height: 100%; }
.news-card h3 a { color: inherit; text-decoration: none; transition: color var(--transition); }
.news-card h3 a:hover { color: var(--color-teal); }
.news-archive .section-head { margin-bottom: 40px; }
.news-empty { text-align: center; color: rgba(0, 35, 67, 0.6); }

/* ---- Пагінація ---- */
.si-pagination { margin-top: 44px; }
.si-pagination ul { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.si-pagination a,
.si-pagination span {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 44px; height: 44px; padding: 0 12px; border-radius: 8px;
  font-family: var(--font-display); font-weight: 600; font-size: 15px;
  color: var(--color-navy); background: var(--color-white); box-shadow: var(--shadow-card);
  transition: background var(--transition), color var(--transition);
}
.si-pagination a:hover { background: rgba(1, 146, 164, 0.1); color: var(--color-teal); }
.si-pagination .current { background: var(--color-teal); color: #fff; }
.si-pagination .dots { background: none; box-shadow: none; }

/* ---- Single: одна новина ---- */
.single-news-title {
  font-family: var(--font-display); font-weight: 700; text-transform: uppercase;
  font-size: clamp(28px, 3.4vw, 44px); line-height: 1.15; color: var(--color-navy); margin: 0 0 16px;
}
.single-news-meta { color: rgba(0, 35, 67, 0.6); font-size: 14px; margin-bottom: 28px; }
.single-news-media { border-radius: 18px; overflow: hidden; margin-bottom: 32px; }
.single-news-media img { width: 100%; height: auto; display: block; }

/* Типографіка контенту статті */
.single-news-content { color: var(--color-navy); font-size: 16px; line-height: 1.7; }
.single-news-content > * + * { margin-top: 20px; }
.single-news-content h2 { font-family: var(--font-display); font-weight: 700; text-transform: uppercase; font-size: clamp(22px, 2.4vw, 30px); margin-top: 36px; }
.single-news-content h3 { font-family: var(--font-display); font-weight: 700; font-size: 20px; margin-top: 28px; }
.single-news-content a { color: var(--color-teal); text-decoration: underline; }
.single-news-content strong { font-weight: 700; }
.single-news-content em { font-style: italic; }
.single-news-content ul, .single-news-content ol { padding-left: 24px; }
.single-news-content ul { list-style: disc; }
.single-news-content ol { list-style: decimal; }
.single-news-content li { margin-bottom: 8px; }
.single-news-content li::marker { color: var(--color-teal); }
.single-news-content img { border-radius: 14px; height: auto; }
.single-news-content blockquote {
  border-left: 3px solid var(--color-teal); padding-left: 20px;
  color: rgba(0, 35, 67, 0.8); font-style: italic;
}

/* Пред/наст новина */
.single-news-nav { display: flex; justify-content: space-between; gap: 20px; margin-top: 48px; padding-top: 28px; border-top: 1px solid rgba(0, 35, 67, 0.12); }
.single-news-nav a { display: flex; flex-direction: column; gap: 4px; max-width: 48%; }
.single-news-nav .snav-next { text-align: right; margin-left: auto; }
.single-news-nav span { font-size: 13px; color: var(--color-teal); font-weight: 600; }
.single-news-nav b { font-family: var(--font-display); font-weight: 600; font-size: 15px; color: var(--color-navy); }
.single-news-nav a:hover b { color: var(--color-teal); }

@media (max-width: 560px) {
  .single-news-nav { flex-direction: column; }
  .single-news-nav a,
  .single-news-nav .snav-next { max-width: 100%; text-align: left; margin-left: 0; }
}
