.main-content {
    margin-top: 130px;
}

body {
    z-index: 0;
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("/img/background-page.png");
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.7;
    z-index: -1;
}

h2.section-title {
    font-weight: 700;
    color: #427057;
    margin-bottom: 2rem;
    font-size: 1.75rem;
}
.news-card {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    cursor: pointer;
    transition: transform 0.3s ease;
}
.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(13, 58, 145, 0.15);
}
.news-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 12px;
    transition: filter 0.3s ease;
}
.news-img-left {
    height: 550px;
}
.news-img-right {
    height: 267px;
}
.news-card:hover .news-img {
    filter: brightness(0.8);
}
.news-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255 255 255 / 0.8);
    padding: 1rem;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
    color: #111;
    font-weight: 600;
    font-size: 1rem;
    line-height: 1.3;
    max-height: 6.2rem;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    box-shadow: inset 0 8px 10px -10px rgb(255 255 255);
}
@media (max-width: 767.98px) {
    /* Mobile styling - single column */
    .news-caption {
        font-size: 0.9rem;
        padding: 0.75rem;
        max-height: 5.4rem;
        -webkit-line-clamp: 4;
    }
}

.card {
    transition: transform 0.2s;
    /*min-height: 500px;*/
    height: 500px !important;
}
.card:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(13, 58, 145, 0.15);
}
.other-news-img {
    height: 300px !important;
}

/* Animasi transisi konten other news */
.fade-transition {
  transition: opacity 0.5s ease-in-out;
  opacity: 1;
}

.fade-out {
  opacity: 0;
}

/* Pagination */
.page-item.active .page-link {
    background-color: #427057;
    border-color: #427057;
    color: #fff;
}
.page-link {
    color: #427057;
}

.page-link:hover {
    color: #fff;
    background-color: #427057;
    border-color: #427057;
}

/* ANIMASI MASUK UNTUK BERITA */

/* Efek masuk dari bawah */
@keyframes fadeInUpNews {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Efek masuk dari kiri */
@keyframes fadeInLeftNews {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Efek masuk dari kanan */
@keyframes fadeInRightNews {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.animate-fadeInUp {
  animation: fadeInUpNews 0.8s ease-out both;
}
.animate-fadeInLeft {
  animation: fadeInLeftNews 1s ease-out both;
}
.animate-fadeInRight {
  animation: fadeInRightNews 1s ease-out both;
}

/* Delay bertahap */
.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }
.delay-4 { animation-delay: 0.8s; }
