/* ==========================================================================
   MOBILE: FEATURED POST (VERSI ASLI - TIDAK DISENTUH)
   Tampil di layar < 1024px
   ========================================================================== */
.btp-featured-wrapper {
    display: none; /* Sembunyikan versi desktop di mobile */
}

.featured-post-wrapper { 
    padding: 0; 
    margin: 0;
}

.featured-post {
    background: linear-gradient( 100deg, #040404 50%, #343332 100% );
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
}

.featured-post-image {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    background: #000;
}

.featured-post-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.featured-post-content {
    padding: 12px 16px 16px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* ✅ PERUBAHAN: Font size diubah dari 17px menjadi 16px */
.featured-post-title {
    font-family: 'Manrope', sans-serif;
    font-size: 16px; 
    font-weight: 800;
    color: #fff;
    line-height: 1.35;
    margin: 0 0 8px 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.featured-post-title a { 
    color: inherit; 
    text-decoration: none; 
}

.featured-post-category {
    font-family: 'Manrope', sans-serif;
    font-size: 12px;
    color: #888;
    font-weight: 500;
    text-transform: capitalize;
    margin: 0;
    line-height: 1.2;
}

/* ==========================================================================
   DESKTOP: FEATURED POST (VERSI BARU DENGAN BERITA TERKAIT)
   Tampil di layar >= 1024px
   ========================================================================== */
@media (min-width: 1024px) {
    /* Sembunyikan versi mobile di desktop */
    .featured-post-wrapper { 
        display: none !important; 
    }
    
    /* Tampilkan versi desktop */
    .btp-featured-wrapper {
        display: block;
        width: 100%;
        margin-bottom: 30px;
        border-radius: 8px;
        overflow: hidden;
        background: linear-gradient( 100deg, #040404 50%, #343332 100% );
        box-shadow: 0 2px 12px rgba(0,0,0,0.1);
    }

    .btp-featured-main {
        position: relative;
        width: 100%;
    }

    .btp-featured-image {
        position: relative;
        width: 100%;
        padding-bottom: 56.25%;
        height: 0;
        overflow: hidden;
        background: #000;
    }

    .btp-featured-image img {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
        transition: transform 0.5s ease;
    }

    .btp-featured-main:hover .btp-featured-image img {
        transform: scale(1.03);
    }

    .btp-featured-overlay {
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.6) 40%, rgba(0,0,0,0.95) 100%);
        padding: 80px 18px 0px;
        color: #fff;
        z-index: 2;
    }

    .btp-featured-title {
        font-family: 'Manrope', sans-serif;
        font-size: 22px;
        font-weight: 800;
        line-height: 1.4;
        margin: 0 0 12px 0;
        text-shadow: 0 2px 8px rgba(0,0,0,0.5);
    }

    .btp-featured-title a {
        color: #fff;
        text-decoration: none;
        transition: color 0.2s ease;
    }

    .btp-featured-title a:hover {
        color: #fcc43f;
    }

    .btp-featured-meta {
        display: flex;
        align-items: center;
        gap: 12px;
        font-family: 'Manrope', sans-serif;
        font-size: 13px;
        color: rgba(255,255,255,0.9);
        text-shadow: 0 1px 4px rgba(0,0,0,0.6);
    }

    .btp-featured-category {
        font-weight: 400;
        color: #fff;
        text-transform: capitalize;
    }

    .btp-featured-time {
        color: rgba(255,255,255,0.8);
    }

    /* ==========================================================================
       BERITA TERKAIT SECTION - DESKTOP ONLY
       ========================================================================== */
    .btp-related-section {
        padding: 16px 20px;
    }

    /* ==========================================================================
       DESKTOP: BERITA TERKAIT SECTION (FLEX LABEL & GARIS)
       ========================================================================== */

    /* 1. Reset Header (Hapus display:flex di sini agar tidak bentrok) */
    .btp-related-header {
        width: 100%;
        margin-bottom: 12px;
    }

    /* 2. Label sebagai Flex Container */
    .btp-related-label {
        display: flex; /* KUNCI: Membuat label menjadi flex container */
        align-items: center; /* Menengahkan garis secara vertikal terhadap teks */
        width: 100%; /* Memastikan label mengambil lebar penuh agar garis bisa memanjang */
        
        font-family: 'Manrope', sans-serif;
        font-size: 13px;
        font-weight: 700;
        color: #fcc43f; /* Warna teks ORANGE */
        letter-spacing: 0.5px;
        white-space: nowrap;
    }

    /* 3. Garis Putih Otomatis */
    .btp-related-label::after {
        content: '';
        flex-grow: 1; 
        border-top: 1px solid rgba(255, 255, 255, 0.1); /* Garis 1px putih transparan */
        margin-left: 12px; 
        display: block;
    }

    .btp-related-grid.btp-related-grid-compact {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }

    .btp-related-item.btp-related-item-compact {
        display: flex;
        align-items: flex-start;
    }

    .btp-related-item.btp-related-item-compact .btp-related-content {
        flex: 1;
        min-width: 0;
    }

    .btp-related-item.btp-related-item-compact .btp-related-title {
        font-family: 'Manrope', sans-serif;
        font-size: 13px;
        font-weight: 600;
        line-height: 1.5;
        margin: 0;
    }

    .btp-related-item.btp-related-item-compact .btp-related-title a {
        color: #fff;
        text-decoration: none;
        transition: all 0.2s ease;
        display: inline-block;
    }

    .btp-related-item.btp-related-item-compact .btp-related-title a:hover {
         color: #fcc43f;
    }
}