.news-intro {
  margin-bottom: 24px;
}

.news-intro h1 {
  margin-bottom: 8px;
}

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

.news-card {
  width: 100%;
  min-width: 0;
  aspect-ratio: 1 / 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 0;
  border-radius: 12px;
  background: var(--card);
  box-shadow: var(--shadow);
  color: var(--text);
  cursor: pointer;
  font: inherit;
  text-align: left;
  text-decoration: none;
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.news-card:hover,
.news-card:focus {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(17, 24, 39, 0.1);
  outline: none;
}

.news-card:focus-visible {
  outline: 3px solid rgba(41, 171, 135, 0.35);
  outline-offset: 3px;
}

.news-image {
  height: 43%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #eef2f4;
}

.news-image img {
  width: 100%;
  max-width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.news-image-contain {
  padding: 24px;
  background: #ffffff;
}

.news-image-contain img {
  object-fit: contain;
}

.news-card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 14px 16px 16px;
  min-height: 0;
}

.news-card time,
.news-modal time {
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.news-title {
  display: block;
  margin-top: 7px;
  color: var(--text);
  font-size: 1rem;
  font-weight: 750;
  line-height: 1.25;
}

.news-summary {
  display: -webkit-box;
  margin-top: 8px;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

body.news-modal-open {
  overflow: hidden;
}

.news-modal[hidden] {
  display: none;
}

.news-modal {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.news-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17, 24, 39, 0.72);
}

.news-modal-content {
  position: relative;
  z-index: 1;
  width: min(920px, 100%);
  max-height: calc(100vh - 48px);
  overflow: auto;
  padding: 20px;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.28);
}

.news-text-modal {
  max-width: 760px;
}

.news-modal-content h2 {
  margin: 10px 42px 14px 0;
  font-size: 1.35rem;
  line-height: 1.35;
}

.news-modal-content p {
  margin: 0 0 14px;
  color: var(--text);
  line-height: 1.65;
}

.news-modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: #f3f4f6;
  color: var(--muted);
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
}

.news-modal-close:hover,
.news-modal-close:focus {
  background: #e5e7eb;
  color: var(--text);
  outline: none;
}

.news-modal-close:focus-visible {
  outline: 3px solid rgba(41, 171, 135, 0.35);
  outline-offset: 3px;
}

.news-modal-logo {
  width: min(260px, 70%);
  height: auto;
  display: block;
  margin-bottom: 20px;
}

.news-modal-link {
  display: inline-flex;
  align-items: center;
  margin-top: 4px;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--accent);
  color: #ffffff;
  font-weight: 700;
  text-decoration: none;
}

.news-modal-link:hover,
.news-modal-link:focus {
  background: var(--accent-2);
  outline: none;
}

.news-video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 8px;
  background: #000000;
}

.news-video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

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

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

  .news-card {
    aspect-ratio: auto;
    min-height: 360px;
  }

  .news-modal {
    padding: 14px;
  }

  .news-modal-content {
    max-height: calc(100vh - 28px);
    padding: 16px;
  }

  .news-modal-content h2 {
    font-size: 1.1rem;
  }
}
