/* ============================================================
   NEWS  (/uutiset/, /uutiset/{slug}/, homepage section)
   ============================================================ */

.news-page { display: flex; flex-direction: column; gap: 20px; padding-bottom: 40px; }

/* ── Cards ── */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.news-card {
  display: flex; flex-direction: column; background: var(--card-2, #230c47);
  border: 1px solid rgba(255,255,255,0.08); border-radius: 14px; overflow: hidden;
  text-decoration: none; transition: transform .15s ease, border-color .15s ease;
}
.news-card:hover { transform: translateY(-3px); border-color: rgba(255,91,189,0.4); }
.news-card-cover { position: relative; aspect-ratio: 16 / 9; background: #150528; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.news-card-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.news-card-cover-fallback { color: rgba(255,255,255,0.35); font-weight: 800; font-size: 15px; }
.news-topic {
  display: inline-block; background: var(--accent, #ff5bbd); color: #fff;
  font-size: 11px; font-weight: 800; letter-spacing: .5px; text-transform: uppercase;
  padding: 4px 10px; border-radius: 6px;
}
.news-card-topic { position: absolute; top: 10px; left: 10px; }
.news-card-body { display: flex; flex-direction: column; gap: 8px; padding: 14px 16px 16px; }
.news-card-title { font-size: 16px; font-weight: 800; color: var(--text, #f7eaff); line-height: 1.35; }
.news-card-excerpt { font-size: 13px; color: var(--muted, #ccb6e6); line-height: 1.6; }
.news-card-meta { font-size: 12px; color: var(--muted, #ccb6e6); opacity: .85; }

/* ── Single article ── */
.news-article {
  background: linear-gradient(180deg, var(--card-2, #230c47), var(--card, #18062f));
  border: 2px solid rgba(255,255,255,0.08); border-radius: 16px; padding: 28px;
}
/* display:block overrides bundle.css's bare `header { display:flex }` (site-logo
   rule) which otherwise rows the topic badge + H1 + byline side by side. */
.news-article-head { display: block; padding: 0; }
.news-article-head h1 { font-size: clamp(24px, 4vw, 34px); font-weight: 900; color: var(--text, #f7eaff); margin: 10px 0 10px; line-height: 1.25; }
.news-byline { margin: 0 0 6px; font-size: 13px; color: var(--muted, #ccb6e6); }
.news-byline a { color: var(--accent, #ff5bbd); font-weight: 700; }
.news-article-cover { margin: 16px 0; }
.news-article-cover img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 12px; display: block; }
.news-article-body { color: var(--muted, #ccb6e6); font-size: 15.5px; line-height: 1.85; }
.news-article-body p { margin: 0 0 16px; }
.news-article-body h2 { font-size: 21px; font-weight: 800; color: var(--text, #f7eaff); margin: 26px 0 10px; }
.news-article-body h3 { font-size: 17px; font-weight: 700; color: var(--text, #f7eaff); margin: 20px 0 8px; }
.news-article-body a { color: var(--accent, #ff5bbd); }
.news-article-body ul, .news-article-body ol { margin: 0 0 16px; padding-left: 22px; }
.news-article-body img { max-width: 100%; height: auto; border-radius: 10px; }
.news-article-body blockquote { border-left: 4px solid var(--accent-2, #ffa83a); margin: 0 0 16px; padding: 8px 16px; background: rgba(255,255,255,0.04); border-radius: 0 10px 10px 0; }
.news-source { margin: 18px 0 0; font-size: 13px; color: var(--muted, #ccb6e6); }
.news-source a { color: var(--accent, #ff5bbd); }

/* ── Sections (related etc.) ── */
.news-section {
  background: linear-gradient(180deg, var(--card-2, #230c47), var(--card, #18062f));
  border: 2px solid rgba(255,255,255,0.08); border-radius: 16px; padding: 24px;
}
.news-section-title { font-size: 20px; font-weight: 800; color: var(--text, #f7eaff); margin: 0 0 16px; padding-bottom: 12px; border-bottom: 2px solid rgba(255,255,255,0.1); }

/* ── Reporter strip on the hub ── */
.news-reporters { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 12px; }
.news-reporter {
  display: inline-flex; align-items: center; gap: 7px; background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12); border-radius: 999px; padding: 5px 13px 5px 6px;
  font-size: 13px; font-weight: 700; color: var(--text, #f7eaff); text-decoration: none;
}
.news-reporter:hover { border-color: var(--accent, #ff5bbd); }
.news-reporter img { border-radius: 50%; display: block; }

/* ── Homepage section ── */
.home-news { padding: 32px 0; }
.home-news-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.home-news-head h2 { margin: 0 0 4px; font-size: 26px; font-weight: 800; color: var(--text, #f7eaff); }
.home-news-intro { margin: 0; color: var(--muted, #ccb6e6); font-size: 15px; }
.home-news-all { flex: none; color: var(--accent, #ff5bbd); font-weight: 700; text-decoration: none; white-space: nowrap; }

@media (max-width: 900px) { .news-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) {
  .news-grid { grid-template-columns: 1fr; }
  .news-article { padding: 20px 16px; }
}
