@media (max-width: 768px) {
  .main {
    padding-left: 16px;
    padding-right: 16px;
  }
}

.news-filter {
  display: flex;
  gap: 20px;
  margin-bottom: 40px;
  flex-wrap: wrap;
  align-items: center;
  max-width: 1000px;
  margin: 80px auto 20px;
}
@media (max-width: 768px) {
  .news-filter {
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
  }
}
.news-filter__year {
  min-width: 150px;
}
.news-filter__select {
  width: 100%;
  padding: 12px 40px 12px 16px;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  font-size: 16px;
  font-weight: 400;
  background-color: #ffffff;
  background-image: url('data:image/svg+xml;utf8,<svg fill="%231a7a4e" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M7 10l5 5 5-5z"/></svg>');
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 20px;
  appearance: none;
  cursor: pointer;
}
.news-filter__select:focus {
  outline: none;
  border-color: #006637;
}
.news-filter__categories {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  flex: 1;
}
.news-filter__category {
  border: none;
  background: none;
  padding: 0;
  cursor: pointer;
  font-family: inherit;
  padding: 13px 20px;
  border-radius: 4px;
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  font-size: 14px;
  font-weight: 400;
  color: #333333;
  transition: all 0.3s ease;
  white-space: nowrap;
}
.news-filter__category:hover {
  border-color: #006637;
  background-color: rgba(0, 102, 55, 0.05);
}
.news-filter__category.active {
  background-color: #006637;
  color: #ffffff;
  border-color: #006637;
}

.news-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 40px;
  max-width: 1000px;
  margin: 0 auto 40px;
}

.news-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px;
  border: 1px solid #f2f2f2;
  transition: all 0.3s ease;
  cursor: pointer;
  background-color: #fff;
  margin-bottom: 5px;
  border-radius: 8px;
  text-decoration: none;
  color: #333333;
}
.news-item:hover {
  border-color: #006637;
  box-shadow: 0 4px 12px rgba(0, 102, 55, 0.15);
}
.news-item:hover .news-item__title {
  color: #006637;
}
.news-item:hover .news-item__link {
  transform: translateX(4px);
}
.news-item__content {
  flex: 1;
  border-right: 1px solid #c9ddca;
}
.news-item__meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 4px;
}
.news-item__date {
  font-size: 14px;
  color: #333333;
  font-weight: 400;
}
.news-item__category {
  display: inline-block;
  padding: 2px 8px;
  background-color: #ffffff;
  color: #333333;
  font-size: 11px;
  font-weight: 400;
  border-radius: 3px;
  border: 1px solid #e0e0e0;
}
.news-item__title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 4px;
  line-height: 1.5;
  color: #333333;
  transition: color 0.3s ease;
}
@media (max-width: 768px) {
  .news-item__title {
    font-size: 16px;
  }
}
.news-item__excerpt {
  font-size: 14px;
  color: #666666;
  line-height: 1.8;
  margin-bottom: 0;
}
.news-item__link {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background-color: #006637;
  border-radius: 50%;
  transition: all 0.3s ease;
}
.news-item__link svg {
  width: 20px;
  height: 20px;
  stroke-width: 2;
}
@media (max-width: 768px) {
  .news-item__link {
    width: 40px;
    height: 40px;
  }
  .news-item__link svg {
    width: 18px;
    height: 18px;
  }
}
@media (max-width: 768px) {
  .news-item {
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 16px;
    gap: 12px;
  }
  .news-item .news-item__content {
    width: 100%;
    border-right: none;
  }
  .news-item .news-item__link {
    align-self: flex-end;
  }
}

.news-empty,
.news-no-result {
  text-align: center;
  padding: 60px 20px;
  color: #666666;
  font-size: 16px;
}

.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 60px;
}
.pagination a,
.pagination span {
  padding: 10px 16px;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  color: #333333;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.3s ease;
  text-decoration: none;
}
.pagination a:hover,
.pagination span:hover {
  border-color: #006637;
  background-color: rgba(0, 102, 55, 0.05);
}
.pagination a.current,
.pagination span.current {
  background-color: #006637;
  color: #ffffff;
  border-color: #006637;
}

.news-detail {
  max-width: 800px;
  margin: 0 auto;
  padding-bottom: 80px;
}
.news-detail__meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 32px;
  padding-bottom: 20px;
  border-bottom: 2px solid #e0e0e0;
}
.news-detail__meta--right {
  justify-content: flex-end;
}
.news-detail__date {
  font-size: 16px;
  color: #666666;
  font-weight: 600;
}
.news-detail__thumbnail {
  margin-bottom: 32px;
}
.news-detail__thumbnail img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
}
.news-detail__category {
  display: inline-block;
  padding: 6px 16px;
  background-color: #e8f5e9;
  color: #2d5a3d;
  font-size: 14px;
  font-weight: 600;
  border-radius: 4px;
}
.news-detail__content {
  font-size: 16px;
  line-height: 1.8;
  color: #333333;
  margin-bottom: 60px;
}
.news-detail__content p {
  margin-bottom: 20px;
}
.news-detail__content h2 {
  font-size: 24px;
  font-weight: 700;
  margin: 40px 0 20px;
  color: #333333;
}
.news-detail__content h3 {
  font-size: 20px;
  font-weight: 700;
  margin: 32px 0 16px;
  color: #333333;
}
.news-detail__content img {
  max-width: 100%;
  height: auto;
  margin: 24px 0;
  border-radius: 8px;
}
.news-detail__content ul,
.news-detail__content ol {
  margin: 20px 0;
  padding-left: 24px;
}
.news-detail__content ul li,
.news-detail__content ol li {
  margin-bottom: 8px;
}
.news-detail__nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 40px;
  padding-top: 40px;
  border-top: 2px solid #e0e0e0;
}
@media (max-width: 768px) {
  .news-detail__nav {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}
.news-detail__nav-link {
  display: flex;
  flex-direction: column;
  padding: 20px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  background-color: #ffffff;
  transition: all 0.3s ease;
  text-decoration: none;
}
.news-detail__nav-link:hover {
  border-color: #006637;
  background-color: rgba(0, 102, 55, 0.02);
  transform: translateY(-2px);
}
.news-detail__nav-link--prev .news-detail__nav-title {
  text-align: left;
}
.news-detail__nav-link--next .news-detail__nav-label,
.news-detail__nav-link--next .news-detail__nav-title {
  text-align: right;
}
.news-detail__nav-label {
  font-size: 12px;
  color: #666666;
  font-weight: 600;
  margin-bottom: 8px;
}
.news-detail__nav-title {
  font-size: 14px;
  color: #333333;
  font-weight: 600;
  line-height: 1.4;
}
.news-detail__back {
  text-align: center;
  margin-top: 60px;
}
