/* =========================================================
   NEWS PAGES
========================================================= */

.news-hero {
  position: relative;

  padding: 78px 0 66px;

  color: var(--color-white);

  background:
    radial-gradient(circle at 85% 35%, rgba(255, 201, 40, 0.2), transparent 25%),
    linear-gradient(125deg, #073c32, #052f28 60%, #0f4c3a);
}

.news-hero-overlay {
  position: absolute;
  inset: 0;

  background:
    linear-gradient(180deg, rgba(5, 47, 40, 0.05), rgba(5, 47, 40, 0.35));
}

.news-hero-container {
  position: relative;
  z-index: 2;
}

.news-hero-content {
  width: min(100%, 700px);
}

.news-eyebrow {
  margin-bottom: 10px;

  color: rgba(255, 255, 255, 0.8);

  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.11em;
}

.news-hero h1 {
  margin-bottom: 14px;
  font-size: clamp(2rem, 4vw, 3.1rem);
  line-height: 1.1;
}

.news-hero p {
  margin: 0;

  color: rgba(255, 255, 255, 0.86);
  font-size: 0.95rem;
}

.news-list-section,
.news-detail-section {
  padding: 48px 0 72px;
}

.news-list-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;

  gap: 16px;

  margin-bottom: 16px;
}

.news-list-header h2 {
  margin: 0;

  color: var(--color-green-950);
  font-size: 1.75rem;
}

.news-list-header span {
  color: var(--color-gray-500);
  font-size: 0.85rem;
  font-weight: 700;
}

.news-list {
  border: 1px solid rgba(5, 47, 40, 0.12);
  border-radius: var(--border-radius-medium);

  overflow: hidden;

  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow-small);
}

.news-item {
  display: block;

  padding: 18px 22px;

  border-bottom: 1px solid var(--color-gray-200);

  transition:
    background-color var(--transition-fast),
    padding var(--transition-fast);
}

.news-item:last-child {
  border-bottom: 0;
}

.news-item:hover {
  padding-left: 27px;
  background: rgba(255, 201, 40, 0.08);
}

.news-item-top {
  display: flex;
  align-items: center;
  flex-wrap: wrap;

  gap: 8px;

  margin-bottom: 6px;
}

.news-item-date {
  color: var(--color-green-700);
  font-size: 0.78rem;
  font-weight: 800;
}

.news-item-category,
.news-item-pinned {
  padding: 2px 9px;
  border-radius: 999px;

  color: #0f3f34;

  font-size: 0.72rem;
  font-weight: 800;

  background: rgba(18, 99, 79, 0.12);
}

.news-item-pinned {
  background: rgba(255, 201, 40, 0.3);
}

.news-item h3 {
  margin-bottom: 5px;

  color: var(--color-gray-900);
  font-size: 1.07rem;
}

.news-item p {
  margin: 0;

  color: var(--color-gray-700);
  font-size: 0.87rem;
}

.news-detail-card {
  padding: 26px;
  border: 1px solid rgba(5, 47, 40, 0.12);
  border-radius: var(--border-radius-medium);

  background: rgba(255, 255, 255, 0.84);
  box-shadow: var(--shadow-small);
}

.news-detail-card h1 {
  margin-bottom: 14px;

  color: var(--color-green-950);
  font-size: clamp(1.55rem, 3vw, 2.15rem);
}

.news-detail-card .news-item-top {
  margin-bottom: 18px;
}

.news-detail-content p {
  margin-bottom: 12px;

  color: var(--color-gray-700);
  font-size: 0.95rem;
  line-height: 1.75;
}

.news-detail-back {
  margin-top: 20px;
}

.news-related {
  margin-top: 28px;
}

.news-empty {
  width: min(760px, calc(100% - 48px));
  margin: 0 auto;
  padding: 22px;

  border: 1px solid rgba(5, 47, 40, 0.13);
  border-radius: var(--border-radius-medium);

  background: rgba(255, 255, 255, 0.78);

  text-align: center;
}

.news-empty strong {
  display: block;
  margin-bottom: 6px;

  color: var(--color-gray-900);
  font-size: 1rem;
}

.news-empty p {
  margin-bottom: 14px;

  color: var(--color-gray-500);
  font-size: 0.86rem;
}

@media (max-width: 768px) {
  .news-list-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .news-item {
    padding: 16px;
  }

  .news-item:hover {
    padding-left: 20px;
  }

  .news-detail-card {
    padding: 20px;
  }
}
