/* =========================
   NEWS LIST FINAL (POLIFORM STYLE)
========================= */

.news-section{
    padding: 60px 0;
}

.news-section .container{
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* =========================
   GRID
========================= */
.news-grid{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

/* ITEM */
.news-item{
    text-align: center;
}

/* =========================
   IMAGE (FIX HEIGHT 🔥)
========================= */
.news-item img{
    width: 100%;
    height: 430px; /* 🔥 lebih tinggi (recommended) */
    object-fit: cover;
}

/* =========================
   TITLE (NGIKUT LEBAR IMAGE)
========================= */
.news-content{
    margin-top: 15px;
}

.news-content h3{
    font-size: 14px;
    font-weight: 400;
    line-height: 1.5;
    margin-bottom: 12px;

    /* 🔥 penting: biar ga maksa 1 baris */
    white-space: normal;
}

/* =========================
   BUTTON (DEFAULT GARIS 🔥)
========================= */
.discover,
.load-more a{
    font-size: 12px;
    color: #000;
    text-decoration: none;
    display: inline-block;
    padding: 6px 0;
    letter-spacing: 1px;
    position: relative;
}

/* garis bawah */
.discover::after,
.load-more a::after{
    content: "";
    display: block;
    width: 60px;
    height: 1px;
    background: #000;
    margin: 8px auto 0;
    transition: 0.3s;
}

/* =========================
   HOVER (JADI BLOK HITAM 🔥)
========================= */
.discover:hover,
.load-more a:hover{
    background: #000;
    color: #fff;
    padding: 10px 18px;
}

/* hilangkan garis saat hover */
.discover:hover::after,
.load-more a:hover::after{
    display: none;
}

/* =========================
   LOAD MORE
========================= */
.load-more{
    text-align: center;
    margin-top: 70px;
}

/* =========================
   TITLE PAGE
========================= */
.news-title{
    font-size: 22px;
    letter-spacing: 1px;
    font-weight: 500;
    margin-bottom: 50px;
    text-align: center;
}

/* =========================
   MOBILE (2 GRID)
========================= */
@media (max-width: 768px){

    .news-grid{
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .news-item img{
        height: 200px;
    }

    .news-content h3{
        font-size: 13px;
    }
}