/* Reset CSS untuk memastikan konsistensi */
img {
    max-width: none;
    max-height: none;
    margin: 0;
    padding: 0;
    border: none;
}

div.img-more {
    width: 160px;
    height: 154px;
    overflow: hidden;
    position: relative;
    box-sizing: border-box; /* Pastikan padding dan border tidak mengubah ukuran */
}

/* Pastikan gambar mengisi container dengan benar */
div.img-more img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* Gaya untuk seluruh bagian berita */
div.more-news, div.more-news p.text1, div.more-news p.text2 {
    text-align: center;
    margin: 15px 0;

}
div.more-news{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.the-news {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Dua kolom untuk berita */
    gap: 20px; /* Jarak antar elemen */
    align-items: start; /* Rata atas */
    width: 1000px; /* Lebar tetap 1000px */
    box-sizing: border-box; /* Pastikan padding dan border tidak mempengaruhi lebar */
}

/* Gaya untuk tiap elemen berita */
.morenews {
    width: 490px;
    height: 154px;
    background-color: white;
    border-radius: 10px;
    display: flex;
    flex-direction: row;
    text-align: left;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.05); /* Efek bayangan */
    overflow: hidden;
}
.content-morenews{
    max-width: 275px;
}
.content-morenews p {
    margin: 10px 10px;
    font-weight: 400;
    font-family: 'Work Sans', sans-serif;
}

.content-morenews p.date {
    color: rgba(25, 236, 21, 1);
    font-size: 16px;
}

.content-morenews p.title a {
    color: rgba(33, 33, 36, 1);
    font-size: 20px;
    text-decoration: none; /* Hilangkan underline */
}

/* Tombol See More */
.see-more-container {
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    grid-column: span 1; /* Tetap hanya satu kolom */
}

.see-more {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 10px 15px;
    background-color: rgba(20, 106, 14, 1);
    color: rgba(202, 248, 191, 1);
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-align: center;
    width: 160px;
    height: 154px;
    font-weight: 400;
    font-family: 'Work Sans', sans-serif;
    font-size: 24px;
}

.see-more:hover {
    background-color: rgba(202, 248, 191, 1);
    color: rgba(20, 106, 14, 1);
}

/* Responsif untuk layar kecil */
@media (max-width: 600px) {
    .the-news {
        grid-template-columns: 1fr; /* Satu kolom pada layar kecil */
    }

    .see-more-container {
        grid-column: span 1;
        justify-content: flex-start;
    }
}
