﻿:root {
  --news-forest: #2f6d57;
  --news-mint: #6aa99a;
  --news-mint-soft: #e9f4ef;
  --news-border: #d8e4df;
  --news-text: #2f3f39;
  --news-muted: #5f706a;
  --news-card: #ffffff;
  --news-shadow: 0 12px 30px rgba(33, 53, 45, 0.08);
}

.news-section {
  padding: 18px 0 28px;
}

.news-shell {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 14px;
}

.news-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  padding: 20px 22px;
  background: #fff;
  border: 1px solid var(--news-border);
  border-radius: 18px;
  box-shadow: var(--news-shadow);
  text-align: center;
}

.news-head--compact {
  margin-bottom: 18px;
  padding: 18px 20px;
}

.news-head--embedded {
  margin-bottom: 10px;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.news-head__actions--embedded {
  margin-top: 14px;
}

.news-kicker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--news-mint-soft);
  color: var(--news-forest);
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.news-title {
  margin: 0;
  color: var(--news-forest);
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  font-size: 20px;
  line-height: 1.15;
  font-weight: 600;
}

.news-subtitle {
  margin: 0;
  max-width: 820px;
  color: var(--news-muted);
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  font-size: 14px;
  line-height: 1.6;
  font-weight: 500;
}

.news-head__actions {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 2px;
}

.news-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 10px;
  border: 1px solid rgba(47, 109, 87, 0.22);
  background: #fff;
  color: var(--news-forest);
  font-size: 0.94rem;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.news-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 16px rgba(33, 53, 45, 0.08);
}

.news-btn--primary {
  background: linear-gradient(180deg, #5da695 0%, #3e7f6b 100%);
  color: #fff;
  border-color: rgba(47, 109, 87, 0.15);
}

.news-btn--ghost {
  background: #fff;
  color: var(--news-forest);
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.news-grid--compact {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.news-empty {
  grid-column: 1 / -1;
  padding: 28px 18px;
  border: 1px dashed #bdd0c7;
  border-radius: 16px;
  background: #fbfdfc;
  color: var(--news-muted);
  text-align: center;
}

.news-card {
  height: 100%;
}

.news-card__link {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 330px;
  overflow: hidden;
  border: 1px solid var(--news-border);
  border-radius: 16px;
  background: var(--news-card);
  box-shadow: 0 10px 24px rgba(33, 53, 45, 0.06);
  color: inherit;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.news-card__link:hover {
  transform: translateY(-2px);
  border-color: rgba(47, 109, 87, 0.24);
  box-shadow: 0 14px 28px rgba(33, 53, 45, 0.1);
}

.news-card__media {
  position: relative;
  height: 150px;
  background: linear-gradient(135deg, rgba(90, 166, 149, 0.15), rgba(90, 166, 149, 0.03));
  overflow: hidden;
}

.news-card__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.news-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 8px;
  padding: 14px 15px 15px;
}

.news-card__date {
  color: var(--news-mint);
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.news-card__title {
  margin: 0;
  color: var(--news-text);
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  font-size: 15px;
  line-height: 1.3;
  font-weight: 600;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-card__text {
  margin: 0;
  color: var(--news-muted);
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  font-size: 13px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  min-height: 4.5em;
}

.news-card__action {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  padding: 0 14px;
  min-height: 36px;
  border: 1px solid rgba(47, 109, 87, 0.22);
  border-radius: 10px;
  background: #f7fbf9;
  color: var(--news-forest);
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  font-size: 13px;
  font-weight: 600;
}

.news-detail {
  margin: 0 0 18px;
  padding: 18px;
  border: 1px solid var(--news-border);
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--news-shadow);
}

.news-detail__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.4fr);
  gap: 20px;
  align-items: start;
}

.news-detail__media {
  overflow: hidden;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(90, 166, 149, 0.15), rgba(90, 166, 149, 0.03));
}

.news-detail__media img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.news-detail__content {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.news-detail__date {
  color: var(--news-mint);
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.news-detail__title {
  margin: 0;
  color: var(--news-forest);
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  font-size: 20px;
  line-height: 1.2;
  font-weight: 600;
}

.news-detail__text {
  color: var(--news-text);
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  font-size: 14px;
  line-height: 1.7;
}

.news-detail__text img,
.news-detail__text iframe,
.news-detail__text video {
  max-width: 100%;
  height: auto;
}

.news-detail__actions {
  margin-top: 8px;
}

.news-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
  flex-wrap: wrap;
}

.news-pagination__link,
.news-pagination__current {
  min-width: 46px;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.92rem;
  font-weight: 700;
}

.news-pagination__link {
  border: 1px solid rgba(47, 109, 87, 0.22);
  background: #fff;
  color: var(--news-forest);
  text-decoration: none;
}

.news-pagination__link--disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.news-pagination__current {
  background: var(--news-mint-soft);
  color: var(--news-forest);
  border: 1px solid rgba(47, 109, 87, 0.14);
}

@media (max-width: 1024px) {
  .news-grid,
  .news-grid--compact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .news-detail__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .news-section {
    padding-top: 12px;
  }

  .news-head,
  .news-detail {
    padding: 16px;
    border-radius: 14px;
  }

  .news-card__link {
    min-height: 300px;
  }

  .news-card__media {
    height: 140px;
  }

  .news-card__body {
    padding: 14px;
  }
}

@media (max-width: 640px) {
  .news-grid,
  .news-grid--compact {
    grid-template-columns: 1fr;
  }

  .news-card__link {
    border-radius: 14px;
  }
}






