.news-index-page {
  padding: 20px 0 10px;
}

.news-index-wrap {
  max-width: 1200px;
}

.news-index-header {
  margin-bottom: 34px;
  padding: 34px 0 10px;
}

.news-index-badge {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 6px 12px;
  border-radius: 999px;
  background: #eef3ff;
  color: #1f2a44;
  font-size: 0.85rem;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 16px;
}

.news-index-title {
  margin: 0 0 14px;
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: #1f2a44;
}

.news-index-intro {
  max-width: 760px;
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.75;
  color: #667085;
}

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

.news-card {
  background: #ffffff;
  border: 1px solid #e6ebf2;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(20, 30, 60, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.news-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 34px rgba(20, 30, 60, 0.1);
}

.news-card-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.news-card-image-wrap {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #f4f7fb;
}

.news-card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.news-card:hover .news-card-image {
  transform: scale(1.03);
}

.news-card-body {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 22px 22px 24px;
}

.news-card-meta {
  margin-bottom: 12px;
}

.news-card-date {
  display: inline-flex;
  align-items: center;
  padding: 6px 11px;
  border-radius: 999px;
  background: #fff1f7;
  color: #e5007d;
  font-size: 0.83rem;
  font-weight: 700;
  line-height: 1;
}

.news-card-title {
  margin: 0 0 12px;
  font-size: 1.28rem;
  line-height: 1.3;
  color: #1f2a44;
}

.news-card-intro {
  margin: 0 0 18px;
  color: #4b5563;
  line-height: 1.7;
  flex-grow: 1;
}

.news-card-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  color: #1f2a44;
  font-weight: 700;
  transition: color 0.2s ease, transform 0.2s ease;
}

.news-card:hover .news-card-more {
  color: #e5007d;
  transform: translateX(2px);
}

.news-empty {
  grid-column: 1 / -1;
  background: #ffffff;
  border: 1px solid #e6ebf2;
  border-radius: 22px;
  padding: 36px 28px;
  text-align: center;
  box-shadow: 0 10px 24px rgba(20, 30, 60, 0.05);
}

.news-empty h2 {
  margin: 0 0 10px;
  color: #1f2a44;
}

.news-empty p {
  margin: 0;
  color: #667085;
}

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

@media (max-width: 700px) {
  .news-index-page {
    padding-top: 8px;
  }

  .news-index-header {
    margin-bottom: 24px;
    padding-top: 20px;
  }

  .news-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .news-card-body {
    padding: 18px 18px 20px;
  }

  .news-index-title {
    font-size: 2rem;
  }

  .news-index-intro {
    font-size: 1rem;
  }
}

/* ===== LISTA AKTUALNOŚCI ===== */

.news-list {
  display: flex;
  flex-direction: column;
}

.news-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 28px;
  gap: 16px;
  align-items: center;
  padding: 20px 0;
  border-top: 1px solid #eef2f6;
  text-decoration: none;
  color: inherit;
}

.news-row:first-child {
  border-top: 0;
}

.news-row:hover,
.news-row:focus {
  background: #f8fafc;
  margin-left: -14px;
  margin-right: -14px;
  padding-left: 14px;
  padding-right: 14px;
  border-radius: 12px;
}

.news-row:focus {
  outline: 3px solid #ffbf47;
  outline-offset: 2px;
}

.news-row-main {
  min-width: 0;
}

.news-row-date {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #eef2f6;
  color: #344054;
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.news-row-title {
  margin: 0 0 8px;
  font-size: 1.25rem;
  line-height: 1.3;
  color: #1f2a44;
}

.news-row-intro {
  margin: 0;
  color: #475467;
  font-size: 0.95rem;
  line-height: 1.6;
}

.news-row-arrow {
  color: #216b2a;
  font-size: 1.2rem;
  transition: transform 0.2s ease;
}

.news-row:hover .news-row-arrow {
  transform: translateX(4px);
}