.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    will-change: opacity, transform;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.fade-in-up.muncul {
    opacity: 1;
    transform: translateY(0);
}

.hero-berita {
    background: linear-gradient(135deg, #0f766e 0%, #064e3b 100%);
    padding: 160px 20px 80px; 
    text-align: center;
    color: white;
    border-bottom-left-radius: 60px;
    border-bottom-right-radius: 60px;
    box-shadow: 0 15px 35px rgba(15, 118, 110, 0.15);
    position: relative;
    overflow: hidden;
}

.hero-berita h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 15px;
    letter-spacing: -1px;
}

.hero-berita p {
    font-size: 1.15rem;
    opacity: 0.85;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.container-berita {
    max-width: 1200px;
    margin: 50px auto 90px; 
    padding: 0 25px;
    position: relative;
}

.grid-berita {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

.card-berita {
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(15, 118, 110, 0.06);
    border: 1px solid rgba(241, 245, 249, 0.8);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.card-berita:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(4, 47, 46, 0.15);
}

/* Bagian Gambar Berita */
.card-img-wrapper {
    position: relative;
    height: 220px; /* Mengunci tinggi gambar agar seragam */
    overflow: hidden;
}

.card-img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Mencegah gambar melar */
    transition: transform 0.6s ease;
}

.card-berita:hover .card-img {
    transform: scale(1.08); /* Efek zoom in saat di-hover */
}

/* Label/Badge di atas gambar */
.card-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #fde047;
    color: #042f2e;
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* Bagian Teks (Body Card) */
.card-body {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-date {
    font-size: 0.85rem;
    color: #64748b;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}

.card-date i {
    color: #0f766e;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 12px 0;
    line-height: 1.4;
}

.card-text {
    color: #475569;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 25px;
    flex-grow: 1;
}

.btn-baca {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #0f766e;
    font-weight: 600;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.btn-baca:hover {
    color: #042f2e;
}

.btn-baca i {
    transition: transform 0.3s ease;
}

.btn-baca:hover i {
    transform: translateX(6px);
}

@media (max-width: 768px) {
    .hero-berita {
        padding: 140px 16px 80px;
        border-bottom-left-radius: 40px;
        border-bottom-right-radius: 40px;
    }

    .hero-berita h1 {
        font-size: 2.2rem;
    }

    .container-berita {
        margin: 30px auto 60px;
        padding: 0 16px;
    }

    .grid-berita {
        grid-template-columns: 1fr;
    }
}