.banner-berita{
    background-image:
        linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)),
        url('/images/bannerfiks.jpg');
    background-size: cover;
    background-position: center;
    padding: 100px 0;
    height: 270px;
    margin: 80px 20px 0 20px;
    border-radius: 20px;
    text-align: center;
}
.container-berita{
    padding: 10px 150px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    text-align: center;
    color: white;
}

.page {
  gap:20px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: center;
  justify-content: center;
  padding: 40px 150px;
}

.news-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
  overflow: hidden;
  /* Animasi muncul satu per satu */
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.6s ease forwards;
}

/* Delay bertahap untuk setiap kartu */
.page .news-card:nth-child(1) {
  animation-delay: 0.1s;
}
.page .news-card:nth-child(2) {
  animation-delay: 0.2s;
}
.page .news-card:nth-child(3) {
  animation-delay: 0.3s;
}
.page .news-card:nth-child(4) {
  animation-delay: 0.4s;
}
.page .news-card:nth-child(5) {
  animation-delay: 0.5s;
}
.page .news-card:nth-child(6) {
  animation-delay: 0.6s;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.news-image-wrapper {
  flex: 0 0 260px;
}

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

.news-content {
  padding: 20px 28px 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
}

.news-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #111827;
}

.news-description {
  font-size: 0.86rem;
  line-height: 1.5;
  color: #4b5563;
  max-width: 100%;
}

.news-footer {
  margin-top: auto;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
}

.news-date .label {
  font-weight: 600;
}

.news-date .value {
  font-weight: 600;
}

.news-button {
  padding: 10px 28px;
  border-radius: 999px;
  background: #556B2F;
  color: #ffffff;
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(34, 197, 94, 0.35);
  white-space: nowrap;
}
.news-footer a{
  color: white;
}

.news-card:hover {
  background: #fffffF;
  box-shadow: 0 14px 30px rgba(22, 163, 74, 0.4);
}

.news-button:hover {
  background: #556B2F;
  transform: scale(1.1);
  box-shadow: 0 14px 30px rgba(22, 163, 74, 0.4);
}

.news-button:active {
  transform: translateY(0px);
  box-shadow: 0 6px 16px rgba(22, 163, 74, 0.4);
}

.popup-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.6);
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.popup-content img {
    width: 450px;        
    max-width: 100%;  
    height: auto;
    border-radius: 8px;
    object-fit: cover;
}

.popup-box {
    width:80%;
    background: #fff;
    padding: 20px;
    border-radius: 10px;
}

.popup-close {
    font-size: 40px;
    cursor: pointer;
    float: right;
}

.popup-content {
    display: flex;
    /* flex-direction: column; */
    gap: 20px;
}

@keyframes popup {
	0% {
		transform: scale(0.5);
	}

	100% {
		transform: scale(1);
	}
}


.paginationBerita {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 20px 0;
}


@media (max-width: 992px) {
    .banner-berita{
      padding: 65px 0;
      height: 175px;
    }
    .page {
      grid-template-columns: repeat(2, 1fr);
      padding: 40px 100px;
    }
    .popup-box {
      font-size: 14px;
      display: block;
      width: 52%;
    }
    .popup-close {
    font-size: 40px;
    top: 0;
    cursor: pointer;
    float: right;
}
}
@media (max-width: 768px) {
  .container-berita{
    padding: 0px;
}
    .page {
      grid-template-columns: repeat(2, 1fr);
      padding: 40px 20px;
    }
    .popup-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
    .popup-box {
      font-size: 14px;
      display: block;
      width: 55%;
    }
    .banner-berita{
      padding: auto;
      height: 175px;
    }
}
@media (max-width: 480px) {
    .banner-berita{
      padding: auto;
      height: 175px;
    }
    .popup-box {
      font-size: 12px;
      display: block;
      width: 86%;
    }
    .page {
      grid-template-columns: 1fr;
      padding: 40px 20px;
    }
}