.news {
  width: 100%;
  background-color: #ffffff;
}

.news__header {
  padding: 88px 180px;
  max-width: 1800px;
  margin: 0 auto;
}

.news__header-row {
  display: flex;
  gap: 24px;
  align-items: stretch;
}

.news__header-col {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.news__header-col--left {
  gap: 4px;
}

.news__header-col--right {
  justify-content: center;
  gap: 24px;
}
.news__badge {
  display: inline-flex;
  align-items: center;
  padding-bottom: 4px;
  border-bottom: 1px dashed #4c62ad;
  align-self: flex-start;
}

.news__badge-text {
  color: #4a514a;
  font-size: 16px;
  line-height: 1.35;
}
.news__headline {
  color: #4a514a;
  font-size: 48px;
  font-weight: 700;
  line-height: 1.35;
  margin: 0;
}
.news__description {
  color: #4a514a;
  font-size: 24px;
  line-height: 1.35;
  margin: 0;
}

.news__listing {
  padding: 0 180px 88px;
  max-width: 1800px;
  margin: 0 auto;
}

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

.news__card {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 24px;
  background-color: #f6f7f9;
  border-radius: 16px;
  min-width: 0;
  height: 475px;
}

.news__card.is-new {
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.news__card.is-visible:hover,
.news__card.is-new:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}
.news__card-image-link {
  display: block;
  text-decoration: none;
}
.news__card-image {
  width: 100%;
  height: 240px;
  border-radius: 8px;
  overflow: hidden;
  background-color: #e5e7eb;
}

.news__card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.news__card:hover .news__card-image img {
  transform: scale(1.05);
}

.news__card-image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9ca3af;
}
.news__card-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex: 1;
}
.news__card-title-link {
  text-decoration: none;
  align-self: flex-start;
}
.news__card-title {
  color: #4a514a;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.35;
  margin: 0;
  transition: color 0.3s ease;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news__card-title-link:hover .news__card-title {
  color: #4c62ad;
}
.news__card-excerpt {
  color: #4a514a;
  font-size: 16px;
  line-height: 1.35;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news__card-spacer {
  flex: 1;
}
.news__card-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 24px;
  background-color: #ffffff;
  border: 1px solid #4a514a;
  border-radius: 99px;
  color: #4a514a;
  font-size: 12px;
  line-height: 1.35;
  text-decoration: none;
  transition: all 0.3s ease;
  align-self: flex-start;
}

.news__card-button:hover {
  background-color: #71984f;
  border-color: #71984f;
  color: #ffffff;
}

.news__card-button:hover .news__card-button-icon {
  filter: brightness(0) invert(1);
}

.news__card-button-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  transition: filter 0.3s ease;
}

.news__load-more-wrapper {
  padding-top: 40px;
}

.news__load-more {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  width: 100%;
  padding: 16px 32px;
  background-color: #f6f7f9;
  border: none;
  border-radius: 99px;
  color: #4a514a;
  font-size: 16px;
  line-height: 1.35;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.news__load-more:hover {
  background-color: #e8eaed;
}

.news__load-more:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

.news__load-more-arrow {
  width: 24px;
  height: 24px;
}

.news__load-more-loading {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.news__load-more-loading .spinner {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.news__empty {
  text-align: center;
  padding: 48px;
  color: #6b7280;
}

.news__card.is-new {
  opacity: 0;
  animation: fadeInUp 0.5s ease forwards;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@media (max-width: 1440px) {
  .news__header {
    padding: 72px 80px;
  }

  .news__listing {
    padding: 0 80px 72px;
  }

  .news__headline {
    font-size: 40px;
  }

  .news__description {
    font-size: 20px;
  }
}
@media (max-width: 1280px) {
  .news__header {
    padding: 60px 48px;
  }

  .news__listing {
    padding: 0 48px 60px;
  }

  .news__header-row {
    gap: 20px;
  }

  .news__headline {
    font-size: 36px;
  }

  .news__description {
    font-size: 18px;
  }

  .news__grid {
    gap: 20px;
  }

  .news__card {
    padding: 20px;
    gap: 20px;
    height: 440px;
  }

  .news__card-image {
    height: 200px;
  }

  .news__card-title {
    font-size: 18px;
  }
}
@media (max-width: 1024px) {
  .news__header {
    padding: 48px 32px;
  }

  .news__listing {
    padding: 0 32px 48px;
  }

  .news__header-row {
    flex-direction: column;
    gap: 16px;
  }

  .news__headline {
    font-size: 32px;
  }

  .news__description {
    font-size: 16px;
  }

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

  .news__card {
    padding: 16px;
    gap: 16px;
    height: 400px;
  }

  .news__card-image {
    height: 180px;
  }

  .news__card-content {
    gap: 12px;
  }

  .news__card-title {
    font-size: 16px;
  }

  .news__card-excerpt {
    font-size: 14px;
  }
}
@media (max-width: 767px) {
  .news__header {
    padding: 40px 16px;
  }

  .news__listing {
    padding: 0 16px 40px;
  }

  .news__badge-text {
    font-size: 14px;
  }

  .news__headline {
    font-size: 28px;
  }

  .news__description {
    font-size: 16px;
  }

  .news__grid {
    grid-template-columns: 1fr;
  }

  .news__card {
    height: auto;
  }

  .news__card-image {
    height: 200px;
  }

  .news__load-more {
    padding: 12px 24px;
    font-size: 14px;
    gap: 12px;
  }

  .news__load-more-arrow {
    width: 20px;
    height: 20px;
  }
}
@media (max-width: 480px) {
  .news__headline {
    font-size: 24px;
  }

  .news__description {
    font-size: 14px;
  }

  .news__card-image {
    height: 180px;
  }
}
