/* BAGIAN HERO */
.news-hero {
    width: 100%;
    padding: 20px 0;
    background: #f5f7fa;
}

/* BAGIAN SLIDER */
.news-slider {
    position: relative;
    width: 95%;
    margin: auto;
    overflow: hidden;
    border-radius: 20px;
}

/* PEMBUNGKUS SLIDE */
.slides {
    position: relative;
    height: 450px;
}

/* ITEM SLIDE */
.slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: scale(0.9);
    transition: 0.8s ease;
}

.slide.active {
    opacity: 1;
    transform: scale(1);
    z-index: 2;
}

/* GAMBAR SLIDE */
.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* OVERLAY TEKS */
.overlay {
    position: absolute;
    inset: 0;
    padding: 40px;
    color: white;
    z-index: 2;

    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);

    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

/* LABEL KATEGORI */
.badge {
    background: white;
    color: black;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    width: fit-content;
    margin-bottom: 10px;
}

/* JUDUL BERITA */
.overlay h1 {
    font-size: 32px;
    max-width: 700px;
    margin-bottom: 15px;
}

/* INFORMASI TAMBAHAN */
.meta {
    display: flex;
    gap: 15px;
    font-size: 13px;
    margin-bottom: 15px;
}

/* TOMBOL */
.overlay button {
    width: fit-content;
    padding: 10px 20px;
    border-radius: 30px;
    border: 1px solid white;
    background: transparent;
    color: white;
    cursor: pointer;
}

.overlay button:hover {
    background: white;
    color: black;
}

/* TOMBOL NAVIGASI SLIDE */
.slide .nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 45px;
    height: 45px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: rgba(255,255,255,0.2);
    border: 1px solid white;
    color: white;

    border-radius: 50%;
    cursor: pointer;

    backdrop-filter: blur(10px);
    z-index: 5;
    transition: 0.3s;
}

/* POSISI NAVIGASI */
.slide .prev { left: 20px; }
.slide .next { right: 20px; }

/* HOVER NAV */
.slide .nav:hover {
    background: white;
    color: black;
}

/* INDIKATOR DOT */
.dots {
    position: absolute;
    bottom: 20px;
    left: 30px;
    display: flex;
    gap: 8px;
    z-index: 5;
}

.dot {
    width: 8px;
    height: 8px;
    background: #ccc;
    border-radius: 50%;
    cursor: pointer;
}

.dot.active {
    background: #4fa3b8;
}

/* PENCARIAN */
.news-search {
    max-width: 1200px;
    margin: 40px auto 80px;

    display: flex;
    align-items: stretch;

    background: #f1f3f5;
    border-radius: 20px;
    overflow: hidden;

    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

/* INPUT PENCARIAN */
.news-search input {
    flex: 1;
    min-width: 0;
    padding: 15px 20px;
    border: none;
    outline: none;
    background: transparent;
    font-size: 14px;
}

/* TOMBOL CARI */
.news-search button {
    padding: 0 25px;
    border: none;
    background: #4fa3b8;
    color: white;
    cursor: pointer;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

/* DAFTAR BERITA */
.news-list {
    max-width: 1200px;
    margin: 40px auto 80px;
    padding: 0 10px;
}

/* HEADER BERITA */
.news-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.news-header h2 {
    font-size: 24px;
    font-weight: 600;
    color: #d4a017;
    font-family: 'Namdhinggo', serif;
}

/* GRID BERITA */
.news-grid{
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

/* CARD */
.news-item{
    display: flex;
    gap: 18px;
    align-items: center;

    background: #fff;

    border-radius: 20px;
    padding: 20px;

    box-shadow: 0 5px 20px rgba(0,0,0,0.08);

    transition: 0.3s;
}

.news-item:hover{
    transform: translateY(-5px);
}

/* FOTO */
.news-item img{
    width: 180px;
    height: 140px;

    object-fit: cover;

    border-radius: 15px;

    flex-shrink: 0;
}

/* ISI */
.news-content{
    flex: 1;
}

/* BADGE */
.news-content .badge{
    display: inline-block;

    margin-bottom: 10px;

    font-size: 13px;
}

/* JUDUL */
.news-content h3{
    font-size: 20px;
    font-weight: 700;

    margin-bottom: 12px;
}

/* META */
.news-content .meta{
    display: flex;
    flex-wrap: wrap;
    gap: 12px;

    color: #777;
    font-size: 14px;
}

/* TABLET */
@media(max-width:992px){

    .news-grid{
        grid-template-columns: 1fr;
    }
}

/* MOBILE */
@media(max-width:576px){

    .news-item{
        flex-direction: column;
        align-items: flex-start;
    }

    .news-item img{
        width: 100%;
        height: 220px;
    }

    .news-content h3{
        font-size: 22px;
    }
}
/* HILANGKAN STYLE LINK */
.news-link{
    text-decoration:none;
    color:inherit;
}

.news-link:hover{
    text-decoration:none;
    color:inherit;
}

.empty-data{
    width: 100%;
    text-align: center;
    padding: 40px;
    font-size: 20px;
    font-weight: 600;
    color: #888;
}

/* RESPONSIVE */
@media (max-width: 768px) {

    .slides {
        height: 250px;
    }

    .overlay {
        padding: 20px;
    }

    .overlay h1 {
        font-size: 18px;
    }

    .slide {
        transform: scale(1);
    }

    .news-search {
        flex-direction: row;
        margin: 30px 10px 80px;
    }

    .news-search input {
        font-size: 13px;
        padding: 12px;
    }

    .news-search button {
        padding: 0 15px;
        font-size: 13px;
    }

    .news-grid {
        grid-template-columns: 1fr;
    }

    .news-item {
        flex-direction: column;
    }

    .news-item img {
        width: 100%;
        height: 180px;
    }
}