/* =========================================
   News Detail – Layout
========================================= */

.news-detail {
  width: 100%;
}

/* =========================================
   Header
========================================= */

.news-header {
  text-align: center;
  margin: var(--space-lg) 0 0;
}

.news-title {
  font-size: var(--heading-h1);
  margin: 0 0 var(--space-2xs);
  line-height: 1.15;
}

.news-meta {
  color: var(--color-text-muted);
  font-size: var(--text-meta);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* =========================================
   Hero Image
========================================= */

.news-hero-image {
  margin: 0 0 var(--space-2xl);
}

.news-hero-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-md);
}

/* =========================================
   Content Typography
========================================= */

.news-content {
  font-size: var(--font-md);
  line-height: 1.75;
}

.news-content p {
  margin-bottom: var(--space-lg);
}

.news-content h2,
.news-content h3,
.news-content h4 {
  margin: var(--space-xl) 0 var(--space-md);
  line-height: 1.2;
}

.news-content h2 {
  font-size: var(--heading-h2);
}

.news-content h3 {
  font-size: var(--heading-h3);
}

.news-content img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: var(--space-md) 0 var(--space-xl);
  border-radius: var(--radius-md);
}

.news-content ul,
.news-content ol {
  margin: 0 0 var(--space-lg) var(--space-lg);
}

/* =========================================
   Pagination
========================================= */

.news-pagination {
  margin: var(--space-lg) 0;
  padding-top: var(--space-lg);
  border-top: 1px solid var(--color-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.news-prev-next {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
  justify-content: flex-end;
}

/* =========================================
   Links / Buttons (temporär lokal)
========================================= */

.news-back {
  font-size: var(--text-small);
  text-decoration: none;
  color: var(--color-text-primary);
  font-weight: 600;
}

.news-prev,
.news-next {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);

  padding: var(--space-sm) var(--space-lg);
  border-radius: var(--radius-sm);

  background: var(--color-bg-default);
  color: var(--color-text-default);

  font-size: var(--text-small);
  font-weight: 600;

  text-decoration: none;
  white-space: nowrap;
}

.news-prev span,
.news-next span {
  line-height: 1;
  display: inline-block;
}

.news-prev:visited,
.news-next:visited {
  color: var(--color-text-default);
}

.news-prev:hover,
.news-next:hover {
  background: var(--color-accent);
  color: var(--color-text-default);
}

.news-prev i,
.news-next i {
  line-height: 1;
  position: relative;
  top: 1px;
}
