.news-page {
  padding: 130px 6% 80px;

  background: #f8faf7;
}

.news-hero {
  text-align: center;

  max-width: 800px;

  margin: auto auto 70px;
}

.news-hero h1 {
  font-size: clamp(2.4rem, 5vw, 4rem);

  margin: 18px 0;
}

.news-layout {
  display: grid;

  grid-template-columns:
    minmax(0, 1fr)
    320px;

  gap: 35px;

  align-items: start;
}

/* kiri */

.news-list {
  display: flex;

  flex-direction: column;

  gap: 30px;

  min-width: 0;
}

.news-item {
  display: grid;

  grid-template-columns: 320px 1fr;

  gap: 25px;

  background: white;

  padding: 20px;

  border-radius: 30px;

  box-shadow: var(--shadow);

  transition: 0.4s;
}

.news-item:hover {
  transform: translateY(-8px);
}

.news-image {
  overflow: hidden;

  border-radius: 22px;
}

.news-image img {
  width: 100%;

  height: 100%;

  object-fit: cover;

  display: block;

  transition: 0.8s;
}

.news-item:hover img {
  transform: scale(1.06);
}

.news-meta {
  display: flex;

  gap: 18px;

  margin-bottom: 15px;

  font-size: 14px;

  color: var(--text-secondary);
}

.news-content h2 {
  margin-bottom: 15px;

  font-size: 28px;
}

.news-content p {
  line-height: 1.8;

  color: var(--text-secondary);

  margin-bottom: 22px;
}

.news-content a {
  display: flex;

  gap: 10px;

  align-items: center;

  width: max-content;

  text-decoration: none;

  color: var(--primary-color);

  font-weight: 600;

  transition: 0.35s ease;
}

.news-content a i {
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.news-content a:hover {
  gap: 16px;
  transform: translateX(6px);
}

/* animation */
.news-hero,
.news-item,
.sidebar-box {
  opacity: 0;

  transition:
    opacity 0.8s ease,
    transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);

  will-change: opacity, transform;
}

/* hero */

.news-hero {
  transform: translateY(60px);
}

/* berita */

.news-item {
  transform: translateX(-60px);
}

/* sidebar isi */

.sidebar-box {
  transform: translateX(60px);
}

/* aktif */

.news-show {
  opacity: 1;

  transform: translate3d(0, 0, 0);
}

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

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

  .news-content h2 {
    font-size: 22px;
  }
}
