/* ===============================================
   NEWS HOMEPAGE - MODERN (v3 refreshed)
=============================================== */

/* HERO WRAP (2 kolumny) */
.news-hero-wrap {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin: 22px 0 30px;
}

.news-hero-card {
  position: relative;
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,.06);
  transition: transform .3s ease, box-shadow .3s ease;
}

.news-hero-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(0,0,0,.09);
}

.news-hero-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.news-hero-link:hover {
  text-decoration: none;
  color: inherit;
}

/* THUMBNAIL */
.news-hero-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 2;
  background: #f1f5f9;
  overflow: hidden;
}

.news-hero-thumb picture {
  display: block;
  width: 100%;
  height: 100%;
}

.news-hero-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .5s ease;
}

.news-hero-card:hover .news-hero-thumb img {
  transform: scale(1.04);
}

/* CATEGORY BADGE */
.news-hero-cat {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 3px 8px;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(6px);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .03em;
  text-transform: uppercase;
  color: #317baf;
  border-radius: 4px;
}

/* BODY */
.news-hero-body {
  padding: 18px 20px 20px;
}

.news-hero-headline {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.3;
  color: #111;
  margin: 0 0 10px;
  transition: color .2s ease;
}

.news-hero-card:hover .news-hero-headline {
  color: #317baf;
}

/* META */
.news-hero-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.news-hero-time {
  font-size: 13px;
  color: #317baf;
}

.news-hero-ago {
  font-size: 12px;
  font-weight: 600;
  color: #317baf;
}

/* EXCERPT */
.news-hero-excerpt {
  font-size: 14px;
  line-height: 1.5;
  color: #6b7280;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* LIST (2 kolumny) */
.news-list-wrap {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0 28px;
  margin-bottom: 32px;
}

.news-list-item {
  display: block;
  border-bottom: 1px solid #eee;
}

.news-list-link {
  display: flex;
  gap: 14px;
  padding: 14px 0;
  text-decoration: none;
  color: inherit;
  align-items: center;
}

.news-list-link:hover {
  text-decoration: none;
  color: inherit;
}

.news-list-thumb {
  position: relative;
  flex: 0 0 120px;
  width: 120px;
  aspect-ratio: 3 / 2;
  border-radius: 10px;
  overflow: hidden;
  background: #f1f5f9;
}

.news-list-thumb picture {
  display: block;
  width: 100%;
  height: 100%;
}

.news-list-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s ease;
}

.news-list-item:hover .news-list-thumb img {
  transform: scale(1.05);
}

.news-list-content {
  flex: 1;
  min-width: 0;
}

.news-list-cat {
  display: block;
  font-size: 8px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .03em;
  color: #317baf;
  margin-bottom: 2px;
}

.news-list-headline {
  font-size: 15px;
  font-weight: 500;
  line-height: 1.35;
  color: #1a1a1a;
  margin: 0 0 6px;
  transition: color .2s ease;
}

.news-list-item:hover .news-list-headline {
  color: #317baf;
}

.news-list-meta {
  display: flex;
  align-items: center;
  gap: 10px;
}

.news-list-time {
  font-size: 12px;
  color: #317baf;
}

.news-list-ago {
  font-size: 11px;
  font-weight: 600;
  color: #317baf;
}

/* FOOTER */
.news-footer-cta {
  text-align: center;
  margin: 36px 0;
}

.news-view-all {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 26px;
  font-size: 14px;
  font-weight: 600;
  color: #317baf;
  text-decoration: none;
  border: 2px solid #317baf;
  border-radius: 10px;
  transition: all .25s ease;
}

.news-view-all:hover {
  background: #317baf;
  color: #fff;
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(49,123,175,.2);
}

.news-view-all svg {
  transition: transform .25s ease;
}

.news-view-all:hover svg {
  transform: translateX(4px);
}

/* MOBILE */
@media (max-width: 768px) {
  .news-hero-wrap {
    grid-template-columns: 1fr;
    gap: 18px;
    margin: 18px 0 26px;
  }

  .news-hero-body {
    padding: 16px;
  }

  .news-hero-headline {
    font-size: 17px;
  }

  .news-hero-cat {
    top: 10px;
    left: 10px;
    font-size: 7px;
    padding: 3px 7px;
  }

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

  .news-list-thumb {
    flex: 0 0 100px;
    width: 100px;
  }

  .news-list-headline {
    font-size: 14px;
  }
}

/* LOADING SKELETON */
@keyframes shimmer {
  0% { background-position: -468px 0; }
  100% { background-position: 468px 0; }
}

.news-hero-thumb:empty,
.news-list-thumb:empty {
  background: linear-gradient(90deg, #f0f0f0 0px, #f8f8f8 40px, #f0f0f0 80px);
  background-size: 600px;
  animation: shimmer 1.5s infinite;
}
