/* =========================================================
   NagaNews Unggulan Kategori
   - Bar Berita Terkait : #e6000b (merah) → #260062 (ungu), sama dengan header
   - Panel judul (HP)   : #1b0b3a → #3d0a5c (ungu tua)
   - Label terkait      : #ffc94d (kuning keemasan)
   - Font               : Montserrat (dimuat oleh tema)
   ========================================================= */

.nfu {
    clear: both;
    margin: 0 0 25px;
    border-radius: 12px;
    overflow: hidden;
    background: #1b0b3a;
    box-shadow: 0 6px 18px rgba(38, 0, 98, 0.18);
    font-family: 'Montserrat', sans-serif;
}

/* ---------- Foto + judul ---------- */
.nfu .nfu-top {
    position: relative;
}

.nfu .nfu-photo {
    display: block;
    aspect-ratio: 16 / 9;
    background: linear-gradient(160deg, #1b0b3a 0%, #3d0a5c 100%);
    overflow: hidden;
}

.nfu .nfu-photo img,
.nfu .nfu-img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
    transition: transform 0.6s;
}

.nfu .nfu-top:hover .nfu-img {
    transform: scale(1.03);
}

/* Desktop: judul di atas foto dengan bayangan gelap */
.nfu .nfu-body {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 80px 22px 18px;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.55) 45%, rgba(0, 0, 0, 0.85) 100%);
    pointer-events: none;
}

.nfu .nfu-title {
    margin: 0 0 8px;
    padding: 0;
    font-family: 'Montserrat', sans-serif;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.3;
    background: none;
    text-transform: none;
}

.nfu .nfu-title a {
    color: #fff !important;
    text-decoration: none !important;
    pointer-events: auto;
}

.nfu .nfu-title a:hover {
    color: #fff !important;
    text-decoration: underline !important;
}

.nfu .nfu-meta {
    color: rgba(255, 255, 255, 0.9);
    font-size: 12px;
    font-weight: 400;
    line-height: 1.4;
}

/* ---------- Bar Berita Terkait ---------- */
.nfu .nfu-rel {
    padding: 14px 22px 16px;
    background: linear-gradient(90deg, #e6000b 0%, #260062 100%);
}

.nfu .nfu-rel-label {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 10px;
    color: #ffc94d;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
}

.nfu .nfu-rel-label::after {
    content: "";
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.3);
}

.nfu .nfu-rel-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 28px;
}

.nfu .nfu-rel-list a {
    display: block;
    padding: 0;
    color: #fff !important;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.4;
    text-decoration: none !important;
}

.nfu .nfu-rel-list a:hover {
    color: #fff !important;
    text-decoration: underline !important;
}

/* ---------- HP: judul di bawah foto, panel ungu tua ---------- */
@media (max-width: 768px) {
    .nfu .nfu-photo {
        aspect-ratio: 16 / 10;
    }

    .nfu .nfu-body {
        position: static;
        padding: 14px 16px 12px;
        background: linear-gradient(160deg, #1b0b3a 0%, #3d0a5c 100%);
        pointer-events: auto;
    }

    .nfu .nfu-title {
        font-size: 18px;
    }

    .nfu .nfu-rel {
        padding: 12px 16px 14px;
        background: linear-gradient(160deg, #e6000b 0%, #260062 100%);
    }

    .nfu .nfu-rel-list {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .nfu .nfu-rel-list a + a {
        padding-top: 10px;
        border-top: 1px solid rgba(255, 255, 255, 0.15);
    }
}
