/* =========================================================
   NagaNews Trending
   Warna mengikuti header NagaNews:
   - Gradien : #e6000b (merah) → #260062 (ungu)
   - Garis judul seksi : #ff0000
   - Font : Montserrat (dimuat oleh tema)
   ========================================================= */

.naga-trending {
    font-family: 'Montserrat', sans-serif;
    margin: 0 0 15px;
}

/* Judul seksi — sama dengan "BERITA NASIONAL" di sidebar */
.naga-trending .naga-trending-title {
    margin: 0;
    padding: 15px 0;
    font-family: 'Montserrat', sans-serif;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.2;
    text-transform: uppercase;
    color: #000;
    background: none;
}

.naga-trending .naga-trending-title::after {
    content: " ";
    display: block;
    width: 75px;
    height: 3px;
    margin-top: 8px;
    background-color: #ff0000;
}

/* Panel gradien */
.naga-trending-box {
    background: linear-gradient(160deg, #e6000b 0%, #260062 100%);
    border-radius: 14px;
    padding: 12px;
    box-shadow: 0 6px 18px rgba(38, 0, 98, 0.25);
}

.naga-trending .naga-trending-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* Item biasa */
.naga-trending .naga-trending-item {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 0 0 8px;
    padding: 10px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.08);
    list-style: none;
}

.naga-trending .naga-trending-item:last-child {
    margin-bottom: 0;
}

.naga-trending .naga-trending-num {
    flex: 0 0 28px;
    width: 28px;
    height: 28px;
    border-radius: 7px;
    background: #fff;
    color: #e6000b;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.naga-trending .naga-trending-link {
    color: #fff !important;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.35;
    text-decoration: none;
    padding-top: 5px;
}

.naga-trending .naga-trending-link:hover {
    color: #fff !important;
    text-decoration: underline;
}

/* Item nomor 1 — kartu putih "TERPOPULER" */
.naga-trending .naga-trending-item.is-top {
    background: #fff;
    padding: 24px 12px 14px;
    margin-bottom: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.naga-trending .is-top .naga-trending-num {
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    border-radius: 9px;
    background: linear-gradient(135deg, #e6000b 0%, #260062 100%);
    color: #fff;
    font-size: 15px;
}

.naga-trending .is-top .naga-trending-link {
    color: #284a9a !important;
    font-size: 14px;
    padding-top: 7px;
}

.naga-trending .is-top .naga-trending-link:hover {
    color: #000 !important;
    text-decoration: none;
}

.naga-trending .naga-trending-badge {
    position: absolute;
    top: 0;
    right: 12px;
    padding: 3px 8px;
    border-radius: 0 0 6px 6px;
    background: #ff8a00;
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    line-height: 1.2;
}

/* =========================================================
   Recent Posts by Category — panel Biru Laut ke Tosca
   Hanya mengubah tampilan widget bawaan tema; pengaturan
   jumlah berita dan tanggal tetap dari widget aslinya.
   - Gradien : #0f2a6b (biru laut) → #0e8a9a (tosca)
   ========================================================= */

.text-wrap:has(> .recent-post-widget) {
    background: linear-gradient(160deg, #0f2a6b 0%, #0e8a9a 100%);
    border-radius: 14px;
    padding: 12px;
    box-shadow: 0 6px 18px rgba(15, 42, 107, 0.25);
    font-family: 'Montserrat', sans-serif;
}

.text-wrap .recent-post-widget {
    box-sizing: border-box;
    margin: 0 0 8px;
    padding: 10px;
    border-bottom: none;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.75);
    font-size: 11px;
}

.text-wrap .recent-post-widget:last-child {
    margin-bottom: 0;
}

.text-wrap .recent-post-widget > p {
    margin: 0 0 8px;
    border-radius: 8px;
    overflow: hidden;
}

.text-wrap .recent-post-widget img {
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.text-wrap .recent-post-widget:hover img {
    transform: scale(1.05);
}

.text-wrap .recent-post-widget a {
    display: block;
    padding: 0;
    color: #fff !important;
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.35;
    text-decoration: none;
}

.text-wrap .recent-post-widget a:hover {
    color: #fff !important;
    text-decoration: underline;
}

/* Tanggal (jika diaktifkan di pengaturan widget) */
.text-wrap .recent-post-widget span,
.text-wrap .recent-post-widget time,
.text-wrap .recent-post-widget .post-date {
    display: block;
    margin-top: 4px;
    color: rgba(255, 255, 255, 0.75) !important;
    font-size: 11px;
    font-weight: 400;
}
