/* ============================================
   SINGLE POST - STYLING KONTEN SAJA (Prefix: btp-)
   ============================================ */
/* ===== BREADCRUMB SEDERHANA (Text Only dengan Slash) ===== */
.btp-article-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Manrope', sans-serif;
    font-size: 13px;
    flex-wrap: wrap;
}

.btp-breadcrumb-home,
.btp-breadcrumb-category {
    color: #d32f2f;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.btp-breadcrumb-home:hover,
.btp-breadcrumb-category:hover {
    color: #b71c1c;
    text-decoration: underline;
}

.btp-breadcrumb-separator {
    color: #999;
    font-weight: 400;
}

/* Hilangkan SVG */
.btp-breadcrumb-home svg,
.btp-breadcrumb-separator svg {
    display: none;
}

/* ===== HEADER ===== */
.btp-article-header {
    margin-bottom: 20px;
}

.btp-article-title {
    font-family: 'Manrope', sans-serif;
    font-size: 36px;
    font-weight: 900;
    line-height: 1.2;
    letter-spacing: -0.5px;
    color: #212121;
    margin-bottom: 12px;
}

/* ===== EXCERPT / KUTIPAN ARTIKEL ===== */
.btp-article-excerpt {
    font-family: 'Manrope', sans-serif;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.6;
    color: #555;
    margin: 0 0 16px 0;
}

/* ===== META & AUTHOR (KOMPAS.COM STYLE) ===== */
.btp-article-meta {
    font-family: 'Manrope', sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: #666;
    margin: 0 0 12px 0;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.btp-meta-source {
    font-weight: 700;
    color: #333;
}

.btp-meta-separator {
    color: #999;
}

.btp-meta-date {
    color: #666;
}

/* Author dengan Avatar Initials */
.btp-article-author {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 20px 0;
    font-family: 'Manrope', sans-serif;
}

.btp-author-avatars {
    display: flex;
    gap: 0;
}

.btp-author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    border: 2px solid #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-left: -8px;
}

.btp-author-avatar:first-child {
    margin-left: 0;
}

/* Warna Background Avatars */
.btp-author-avatar.btp-bg-purple { background: linear-gradient(135deg, #9b59b6 0%, #8e44ad 100%); }
.btp-author-avatar.btp-bg-green { background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%); }
.btp-author-avatar.btp-bg-blue { background: linear-gradient(135deg, #3498db 0%, #2980b9 100%); }
.btp-author-avatar.btp-bg-red { background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%); }
.btp-author-avatar.btp-bg-orange { background: linear-gradient(135deg, #f39c12 0%, #d68910 100%); }

.btp-author-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.btp-author-names {
    font-size: 15px;
    font-weight: 700;
    color: #212121;
    line-height: 1.3;
}

.btp-author-team {
    font-size: 13px;
    font-weight: 500;
    color: #666;
}

/* ============================================
   FEATURED IMAGE - FULL WIDTH DI MOBILE
   ============================================ */
@media (max-width: 768px) {
    
    /* Hilangkan padding container agar gambar bisa full width */
        .btp-article-featured-image {
        padding-left: 0 !important;
        padding-right: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    
    /* Gambar featured full width, rapat ke tepi */
    .btp-article-featured-image {
        width: 100vw !important;
        margin-left: calc(-50vw + 50%) !important;
        margin-right: calc(-50vw + 50%) !important;
        border-radius: 0 !important;
        overflow: hidden;
    }
    
    .btp-article-featured-image img {
        width: 100% !important;
        height: 220px !important;
        object-fit: cover !important;
        border-radius: 0 !important;
        display: block;
    }
    
    /* Caption gambar juga full width */
    .btp-image-caption {
        padding: 8px 16px;
        margin: 0;
    }
}

/* ============================================
   DESKTOP FEATURED IMAGE (Target WP Classes)
   ============================================ */
@media (min-width: 769px) {
    
    .btp-article-featured-image img.attachment-large.size-large.wp-post-image,
    .btp-article-featured-image img {
        height: 380px !important;
        width: 100% !important;
        object-fit: cover !important;
        display: block;
        border-radius: 2px;
    }
}

/* ===== SHARE BUTTONS dengan SVG Modern ===== */
.btp-article-share {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    margin: 25px 0;
    border: 1px dashed #ddd;
    border-radius: 6px;
    background: #fafafa;
    flex-wrap: wrap;
    gap: 12px;
}

.btp-share-label {
    font-family: 'Manrope', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: #333;
}

.btp-share-buttons {
    display: flex;
    gap: 10px;
}

.btp-share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    text-decoration: none;
    color: #fff;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btp-share-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.btp-share-btn svg {
    fill: currentColor;
    transition: transform 0.3s ease;
}

.btp-share-btn:hover svg {
    transform: scale(1.1);
}

/* Warna Brand Social Media */
.btp-share-btn.btp-share-facebook { background: #1877f2; }
.btp-share-btn.btp-share-facebook:hover { background: #166fe5; }

.btp-share-btn.btp-share-twitter { background: #000000; }
.btp-share-btn.btp-share-twitter:hover { background: #333333; }

.btp-share-btn.btp-share-whatsapp { background: #25d366; }
.btp-share-btn.btp-share-whatsapp:hover { background: #20bd5a; }

.btp-share-btn.btp-share-telegram { background: #0088cc; }
.btp-share-btn.btp-share-telegram:hover { background: #0077b5; }


/* ============================================
   ARTICLE CONTENT WRAPPER (Dengan Iklan Sticky)
   ============================================ */
.btp-article-content-wrapper {
    display: flex;
    gap: 24px;
    align-items: stretch;
    margin-bottom: 30px;
    position: relative;
}

.btp-article-ad-left {
    flex-shrink: 0;
    width: 160px;
    position: relative;
    overflow: visible !important;
    contain: none !important;
}

.btp-ad-placeholder {
    width: 160px;
    height: 600px;
    background: #eee;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 2px;
    position: -webkit-sticky;
    position: sticky;
    top: 100px;
    z-index: 10;
}

.btp-ad-placeholder span {
    font-family: 'Manrope', sans-serif;
    font-size: 12px;
    font-weight: 500;
    color: #c0c0c0;
    letter-spacing: 0.3px;
}

.btp-article-content {
    flex: 1;
    min-width: 0;
}

/* ============================================
   KONTEN ARTIKEL
   ============================================ */
.btp-article-content {
    font-family: 'Manrope', sans-serif;
    font-size: 17px;
    font-weight: 500;
    line-height: 1.6;
    letter-spacing: 0.2px;
    color: #424242;
}

.btp-article-content > *:first-child {
    margin-top: 0 !important;
}

.btp-article-content p { margin-bottom: 16px; }

.btp-article-content strong,
.btp-article-content b {
    font-weight: 700;
    color: #1a1a1a;
}

.btp-article-content h2,
.btp-article-content h3,
.btp-article-content h4 {
    font-family: 'Manrope', sans-serif;
    font-weight: 800;
    color: #1a1a1a;
    margin: 0;
    line-height: 1.3;
}

.btp-article-content h2 { font-size: 24px; }
.btp-article-content h3 { font-size: 18px; margin-bottom: 10px; }

/* ============================================
   GAMBAR DI KONTEN ARTIKEL - Responsive & Aman
   ============================================ */

/* Base image styling - pastikan tidak overflow */
.btp-article-content img {
    max-width: 100% !important;
     border-radius: 2px;
}

/* Handle gambar yang dibungkus <figure> (WordPress block editor) */
.btp-article-content figure {
    max-width: 100% !important;
    margin: 20px 0;
}

.btp-article-content figure img {
    margin: 0;
    border-radius: 2px;
}

/* Caption di bawah gambar */
.btp-article-content figcaption {
    font-family: 'Manrope', sans-serif;
    font-size: 13px;
    font-weight: 400;
    color: #757575;
    text-align: left;
    margin-top: 8px;
    line-height: 1.5;
}

/* Handle gambar dengan alignment WordPress */
.btp-article-content .alignleft,
.btp-article-content .alignright,
.btp-article-content .aligncenter,
.btp-article-content .alignnone {
    max-width: 100% !important;
    height: auto !important;
}

.btp-article-content .alignleft {
    float: left;
    margin: 10px 20px 10px 0;
}

.btp-article-content .alignright {
    float: right;
    margin: 10px 0 10px 20px;
}

.btp-article-content .aligncenter {
    display: block;
    margin: 20px auto;
    text-align: center;
}

.btp-article-content .alignnone {
    margin: 20px 0;
}

/* Handle gambar yang di-link (clickable) */
.btp-article-content a img {
    transition: opacity 0.2s ease;
}

.btp-article-content a img:hover {
    opacity: 0.9;
}

/* Handle gambar di dalam blockquote */
.btp-article-content blockquote img {
    max-width: 100% !important;
    height: auto !important;
    margin: 10px 0;
}

/* Handle gambar di dalam list */
.btp-article-content li img {
    max-width: 100% !important;
    height: auto !important;
    margin: 8px 0;
}

/* Gambar besar (full width) - opsional, untuk gambar yang sengaja dibuat besar */
.btp-article-content .wp-block-image.is-style-large img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
}

/* Gambar dengan ukuran tertentu dari WordPress editor */
.btp-article-content .size-thumbnail img,
.btp-article-content .size-medium img,
.btp-article-content .size-large img,
.btp-article-content .size-full img {
    max-width: 100% !important;
    height: auto !important;
    width: auto !important;
}

/* Pastikan container tidak overflow karena gambar */
.btp-article-content {
    overflow-x: hidden;
}

.btp-article-content blockquote {
    background: #f9f9f9;
    border-left: 4px solid #d32f2f;
    margin: 24px 0;
    padding: 16px 20px;
    font-style: italic;
    font-size: 16px;
    color: #555;
}

.btp-article-content ul,
.btp-article-content ol {
    margin-bottom: 16px;
    padding-left: 2px;
}

.btp-article-content ul li,
.btp-article-content ol li { margin-bottom: 8px; }

.btp-article-content a {
    color: #d32f2f;
    text-decoration: none;
    font-weight: 600;
}

.btp-article-content a:hover { text-decoration: underline; }
 

/* ===== INC-PAGE: Banner Halaman Selanjutnya ===== */
.inc-page-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, #c62828 0%, #8b1a1a 100%);
    color: #fff;
    padding: 18px 22px;
    border-radius: 10px;
    text-decoration: none;
    margin: 25px 0 20px 0;
    font-family: 'Manrope', sans-serif;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(139, 26, 26, 0.25);
    overflow: hidden;
    position: relative;
}

.inc-page-banner:hover {
    background: linear-gradient(135deg, #a52020 0%, #6d1515 100%);
    box-shadow: 0 6px 16px rgba(139, 26, 26, 0.35);
    transform: translateY(-2px);
}

.inc-page-banner-content {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
    padding-right: 15px;
    min-width: 0;
}

.inc-page-banner-label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    opacity: 0.9;
    color: #fff;
}

.inc-page-banner-excerpt {
    font-size: 14px;
    line-height: 1.4;
    font-style: italic;
    font-weight: 700;
    opacity: 1;
    color: #fff;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.inc-page-banner-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 40px;
    height: 40px;
}

.inc-page-banner-icon svg {
    stroke: #fff;
    transition: transform 0.3s ease;
}

.inc-page-banner:hover .inc-page-banner-icon svg {
    transform: translateX(4px);
}

/* ===== PAGINATION COMPACT: Angka Bulat, Tombol Pil ===== */
.inc-page-pagination {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 25px 0 30px 0;
    padding: 0;
    list-style: none;
    font-family: 'Manrope', sans-serif;
    flex-wrap: wrap;
}

.inc-page-pagination li {
    margin: 0;
    padding: 0;
    list-style: none;
}

.inc-page-pagination li a,
.inc-page-pagination li span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 42px;
    background: #fff;
    color: #666;
    text-decoration: none;
    border: 1px solid #e0e0e0;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s ease;
    box-sizing: border-box;
    white-space: nowrap;
}

.inc-page-pagination li:not(.inc-page-prev):not(.inc-page-all) a,
.inc-page-pagination li:not(.inc-page-prev):not(.inc-page-all) span {
    width: 42px;
    padding: 0;
    border-radius: 50%;
}

.inc-page-pagination .inc-page-prev a,
.inc-page-pagination .inc-page-all a {
    padding: 0 20px;
    min-width: auto;
    border-radius: 21px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #888;
}

.inc-page-pagination .inc-page-prev a:hover,
.inc-page-pagination .inc-page-all a:hover {
    background: #f5f5f5;
    border-color: #ccc;
    color: #555;
}

.inc-page-pagination .inc-page-current span {
    background: #d32f2f !important;
    color: #fff !important;
    border-color: #d32f2f !important;
    font-weight: 700;
}

.inc-page-pagination li:not(.inc-page-current):not(.inc-page-prev):not(.inc-page-all) a:hover {
    background: #f5f5f5;
    border-color: #ccc;
    color: #333;
}


/* ============================================
   RESPONSIVE - TABLET & MOBILE (≤1023px)
   ============================================ */
@media (max-width: 1023px) {
    .btp-article-content-wrapper {
        display: block;
    }
    .btp-article-ad-left {
        display: none !important;
    }
    .btp-article-content {
        width: 100%;
    }
}


/* ============================================
   RESPONSIVE - TABLET & MOBILE (≤768px)
   ============================================ */
@media (max-width: 768px) {
    
    /* ===== FEATURED IMAGE MOBILE: Tinggi 220px dengan object-fit cover ===== */
    .btp-article-featured-image img {
        height: 220px !important;
        object-fit: cover !important;
    }
    /* ========================================================================= */

    .btp-article-header { margin-bottom: 16px; }
    .btp-article-title { font-size: 24px; line-height: 1.35; letter-spacing: 0; margin-bottom: 12px; }
    .btp-article-excerpt { font-size: 14px; line-height: 1.5; margin-bottom: 14px; }
    .btp-article-meta { font-size: 12px; gap: 6px; margin-bottom: 12px; line-height: 1.4; }
    .btp-article-author { gap: 10px; }
    .btp-author-avatar { width: 36px; height: 36px; font-size: 12px; margin-left: -6px; }
    .btp-author-names { font-size: 14px; line-height: 1.3; }
    .btp-author-team { font-size: 12px; line-height: 1.3; }

    .inc-page-pagination .inc-page-prev,
    .inc-page-pagination .inc-page-all { display: none !important; }

    .btp-article-content { font-size: 16px; line-height: 1.6; }
    .btp-article-content h2 { font-size: 20px; }
    .btp-article-content h3 { font-size: 18px; }

    .btp-article-share { padding: 12px 14px; gap: 8px; }
    .btp-share-label { font-size: 13px; }
    .btp-share-buttons { gap: 8px; }
    .btp-share-btn { width: 36px; height: 36px; }
    .btp-share-btn svg { width: 16px; height: 16px; }

    .inc-page-banner { padding: 14px 16px; border-radius: 6px; }
    .inc-page-banner-label { font-size: 11px; }
    .inc-page-banner-excerpt { font-size: 13px; }
    .inc-page-banner-icon { width: 36px; height: 36px; }
    .inc-page-banner-icon svg { width: 18px; height: 18px; }

    .inc-page-pagination { gap: 6px; }
    .inc-page-pagination li a,
    .inc-page-pagination li span { height: 38px; font-size: 13px; }
    .inc-page-pagination li:not(.inc-page-prev):not(.inc-page-all) a,
    .inc-page-pagination li:not(.inc-page-prev):not(.inc-page-all) span { width: 38px; border-radius: 50%; }
    .inc-page-pagination .inc-page-prev a,
    .inc-page-pagination .inc-page-all a { padding: 0 16px; border-radius: 19px; font-size: 11px; }

    .comments-title { font-size: 16px; }
    .comment-author .avatar { width: 35px; height: 35px; }
    .comment-content { font-size: 13px; }
    .children { padding-left: 25px; }
    .comment-form textarea { min-height: 100px; }
}

/* ============================================
   RESPONSIVE - MOBILE KECIL (≤360px)
   ============================================ */
@media (max-width: 360px) {
    .btp-article-title { font-size: 20px; line-height: 1.4; }
    .btp-article-excerpt { font-size: 13px; line-height: 1.5; margin-bottom: 12px; }
    .btp-article-meta { font-size: 11px; gap: 4px; flex-wrap: wrap; }
    .btp-article-author { gap: 8px; }
    .btp-author-avatar { width: 32px; height: 32px; font-size: 11px; margin-left: -5px; }
    .btp-author-names { font-size: 13px; }
    .btp-author-team { font-size: 11px; }

    .btp-article-content { font-size: 16px; line-height: 1.6; letter-spacing: -0.2px; }
    .btp-article-content h2 { font-size: 18px; }
    .btp-article-content h3 { font-size: 16px; }

    .btp-article-share { padding: 10px 12px; gap: 6px; }
    .btp-share-label { font-size: 12px; }
    .btp-share-buttons { gap: 6px; }
    .btp-share-btn { width: 32px; height: 32px; }
    .btp-share-btn svg { width: 14px; height: 14px; }

    .inc-page-banner { padding: 12px 14px; }
    .inc-page-banner-label { font-size: 10px; }
    .inc-page-banner-excerpt { font-size: 12px; }

    .inc-page-pagination li a,
    .inc-page-pagination li span { height: 36px; font-size: 12px; }
    .inc-page-pagination li:not(.inc-page-prev):not(.inc-page-all) a,
    .inc-page-pagination li:not(.inc-page-prev):not(.inc-page-all) span { width: 36px; border-radius: 50%; }
    .inc-page-pagination .inc-page-prev a,
    .inc-page-pagination .inc-page-all a { padding: 0 12px; border-radius: 18px; font-size: 10px; }

    .comments-title { font-size: 15px; }
    .comment-author .avatar { width: 32px; height: 32px; }
    .children { padding-left: 15px; }

    .comment-form input[type="text"],
    .comment-form input[type="email"],
    .comment-form input[type="url"],
    .comment-form textarea { padding: 8px 10px; font-size: 13px; }
    .comment-form .submit { padding: 8px 20px; font-size: 13px; }
}


/* ==========================================================================
   BTP: BERITA TERKAIT (Horizontal Layout dengan Prev/Next)
   ========================================================================== */
.btp-related-horizontal {
    margin: 0;
    font-family: 'Manrope', sans-serif;
}

.btp-related-title {
    font-size: 20px;
    font-weight: 800;
    color: #212121;
    margin: 0 0 4px 0;
    line-height: 1.2;
}

.btp-related-outer {
    position: relative;
    width: 100%;
    margin: 0;
    padding: 0;
}

.btp-related-track {
    display: flex;
    gap: 4px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-bottom: 4px;
    padding-right: 0px;
    padding-left: 0px;
    -webkit-overflow-scrolling: touch;
    margin: 0;
}

.btp-related-track::-webkit-scrollbar {
    display: none;
}

/* Card artikel - Center vertikal, compact, dan rapi */
.btp-related-card {
    display: flex;
    align-items: center;
    gap: 16px;
    text-decoration: none;
    flex-shrink: 0;
    width: 70%;
    min-width: 70%;
    transition: opacity 0.2s ease;
    max-height: 80px;
    overflow: hidden;
}

.btp-related-card:hover {
    opacity: 0.85;
}

/* Thumbnail - 70x70px square */
.btp-related-thumb {
    width: 70px;
    height: 70px;
    flex-shrink: 0;
    overflow: hidden;
    border-radius: 4px;
    background: transparent;
}

.btp-related-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.btp-related-card:hover .btp-related-thumb img {
    transform: scale(1.05);
}

/* Info (Judul) */
.btp-related-info {
    flex: 1;
    min-width: 0;
}

/* Title tipis (regular weight) */
.btp-related-post-title {
    font-size: 14px;
    font-weight: 400;
    color: #212121;
    line-height: 1.4;
    margin: 0;
    padding: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Base style untuk KEDUA tombol panah */
.btp-related-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border: none;
    background: #fff;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: all 0.2s ease;
    z-index: 1;
    padding: 0;
    outline: none;
    pointer-events: auto;
    -webkit-tap-highlight-color: transparent;
}

/* Posisi Panah KIRI */
.btp-related-prev {
    left: 2px;
}

/* Posisi Panah KANAN */
.btp-related-next {
    right: 2px;
}

.btp-related-arrow:hover {
    background: #f5f5f5;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transform: translateY(-50%) scale(1.1);
}

.btp-related-arrow:active {
    transform: translateY(-50%) scale(0.95);
}

.btp-related-arrow svg {
    stroke: #333;
    pointer-events: none;
}

/* Sembunyikan panah (diatur oleh JS) */
.btp-related-arrow.is-hidden {
    opacity: 0;
    pointer-events: none;
}

/* Responsive Tablet & Mobile */
@media (max-width: 768px) {
    .btp-related-card {
        width: 80%;
        min-width: 80%;
        gap: 12px;
    }
    .btp-related-thumb {
        width: 80px;
        height: 80px;
    }
    .btp-related-post-title {
        font-size: 14px;
        font-weight: 400;
    }
    .btp-related-arrow {
        width: 32px;
        height: 32px;
    }
    .btp-related-arrow svg {
        width: 18px;
        height: 18px;
    }
    .btp-related-track {
        padding-right: 2px;
        padding-left: 2px;
    }
}

@media (max-width: 360px) {
    .btp-related-track {
        gap: 16px;
    }
    .btp-related-thumb {
        width: 70px;
        height: 70px;
    }
    .btp-related-post-title {
        font-size: 13px;
    }
}


/* ===== BTP: TOPIK TERKAIT (Simple Pill Style) ===== */
.btp-topics-section {
    margin: 30px 0 40px 0;
    font-family: 'Manrope', sans-serif;
}

.btp-topics-title {
    font-size: 16px;
    font-weight: 700;
    color: #212121;
    margin: 0 0 12px 0;
    line-height: 1.3;
}

.btp-topics-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.btp-topic-tag {
    display: inline-block;
    padding: 6px 14px;
    background: #f5f5f5;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    color: #333;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid #e0e0e0;
}

.btp-topic-tag:hover {
    background: #d32f2f;
    color: #fff;
    border-color: #d32f2f;
    transform: translateY(-1px);
}

@media (max-width: 768px) {
    .btp-topic-tag {
        padding: 5px 12px;
        font-size: 12px;
    }
}

@media (max-width: 360px) {
    .btp-topic-tag {
        padding: 4px 10px;
        font-size: 11px;
    }
}


/* ==========================================================================
   BTP: PILIHAN UNTUKMU - LOGO SYSTEM (Maintainable)
   ========================================================================== */

/* ============================================
   1. CSS VARIABLES - Ubah di sini untuk global effect
   ============================================ */
.btp-pilihan-untukmu {
    /* Logo Size Variables - Centralized Control */
    --logo-width: 40%;
    --logo-max-height: 35px;
    --logo-max-height-large: 32px;
    --logo-max-height-small: 28px;
    
    /* Logo Spacing */
    --logo-gap: 12px;
    --logo-bottom-padding: 12px;
    --logo-top-fade: 50px;
    
    /* Logo Appearance */
    --logo-filter: brightness(0) invert(1);
    --logo-object-fit: contain;
    --logo-object-position: left bottom;
    --logo-border-radius: 2px;
    
    /* Overlay Background */
    --overlay-gradient: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 100%);
    
    /* Thumb Heights */
    --thumb-height-large: 140px;
    --thumb-height-small: 110px;
    --thumb-height-large-mobile: 180px;
    --thumb-height-small-mobile: 140px;
    
    /* Card Gap */
    --card-gap: 10px;
}

/* ============================================
   2. OVERLAY BASE
   ============================================ */
.btp-pilihan-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: var(--logo-top-fade) var(--logo-gap) var(--logo-bottom-padding) var(--logo-gap);
    background: var(--overlay-gradient);
    display: flex;
    align-items: flex-end;
}

/* ============================================
   3. LOGO CONTAINER
   ============================================ */
.btp-pilihan-source {
    display: block;
    width: var(--logo-width);
    height: auto;
    max-width: 120px;
}

/* ============================================
   4. CUSTOM LOGO (WordPress Default Class)
   ============================================ */
.btp-pilihan-source .custom-logo {
    display: block;
    width: 100%;
    height: auto;
    max-height: var(--logo-max-height);
    object-fit: var(--logo-object-fit);
    object-position: var(--logo-object-position);
    filter: var(--logo-filter);
    border-radius: var(--logo-border-radius);
    transition: opacity 0.2s ease;
}

.btp-pilihan-source .custom-logo-link {
    display: block;
    line-height: 0;
    pointer-events: none;
}

.btp-pilihan-card:hover .btp-pilihan-source .custom-logo {
    opacity: 0.85;
}

/* ============================================
   5. VARIANT: CARD LARGE & SMALL
   ============================================ */
.btp-pilihan-card-large .btp-pilihan-thumb {
    height: var(--thumb-height-large);
}
.btp-pilihan-card-large .btp-pilihan-source .custom-logo {
    max-height: var(--logo-max-height-large);
}

.btp-pilihan-card-small .btp-pilihan-thumb {
    height: var(--thumb-height-small);
}
.btp-pilihan-card-small .btp-pilihan-source .custom-logo {
    max-height: var(--logo-max-height-small);
}

/* ============================================
   6. FALLBACK: Jika tidak ada logo (text mode)
   ============================================ */
.btp-pilihan-source-text {
    font-family: 'Times New Roman', serif;
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.5px;
    line-height: 1.2;
}
.btp-pilihan-card-large .btp-pilihan-source-text { font-size: 18px; }
.btp-pilihan-card-small .btp-pilihan-source-text { font-size: 16px; }

/* ============================================
   7. RESPONSIVE ADJUSTMENTS
   ============================================ */
@media (max-width: 768px) {
    .btp-pilihan-untukmu {
        --thumb-height-large: var(--thumb-height-large-mobile);
        --thumb-height-small: var(--thumb-height-small-mobile);
        --logo-max-height: 30px;
    }
}
@media (max-width: 360px) {
    .btp-pilihan-untukmu {
        --logo-width: 50%;
        --logo-max-height: 26px;
    }
}
/* ==========================================================================
   BTP: PILIHAN UNTUKMU (Berita Pilihan - Layout 2+6)
   ========================================================================== */
.btp-pilihan-untukmu {
    margin: 10px 0 10px 0;
    font-family: 'Manrope', sans-serif;
    padding-top: 30px;
}

.btp-pilihan-title {
    font-size: 20px;
    font-weight: 800;
    color: #212121;
    margin: 0 0 20px 0;
    line-height: 1.3;
}

.btp-pilihan-row {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.btp-pilihan-card {
    position: relative;
}

.btp-pilihan-thumb {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 12px;
}

.btp-pilihan-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.btp-pilihan-card:hover .btp-pilihan-thumb img {
    transform: scale(1.05);
}

/* Title dengan Link */
.btp-pilihan-post-title {
    font-size: 16px;
    font-weight: 700;
    color: #212121;
    line-height: 1.4;
    margin: 0 0 8px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.btp-pilihan-post-title a {
    color: #212121;
    text-decoration: none;
    transition: color 0.2s ease;
}

.btp-pilihan-post-title a:hover {
    color: #d32f2f;
}

.btp-pilihan-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 6px;
}

.btp-pilihan-category {
    font-size: 12px;
    font-weight: 500;
    color: #666;
}
.btp-pilihan-menu {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #999;
    transition: all 0.2s ease;
}

.btp-pilihan-menu:hover {
    color: #333;
    transform: scale(1.1);
}

/* Update SVG menjadi dot biasa yang solid */
.btp-pilihan-menu svg {
    width: 20px;
    height: 20px;
    fill: currentColor; /* Membuat dot berwarna solid sesuai warna text */
    display: block;
}

/* Ukuran spesifik untuk card kecil agar lebih proporsional */
.btp-pilihan-card-small .btp-pilihan-menu svg {
    width: 18px;
    height: 18px;
}

/* ===== ARTIKEL BESAR (Row 1: 2 kolom) ===== */
.btp-pilihan-row-featured {
    gap: 10px;
}

.btp-pilihan-card-large {
    flex: 1;
    min-width: calc(50% - 5px);
}

.btp-pilihan-card-large .btp-pilihan-thumb {
    height: 140px;
}

.btp-pilihan-card-large .btp-pilihan-post-title {
    font-size: 16px;
    line-height: 1.4;
}

.btp-pilihan-card-large .btp-pilihan-menu svg {
    width: 20px;
    height: 20px;
}

/* ===== ARTIKEL KECIL (Row 2: 6 item -> 2 baris x 3 kolom) ===== */
.btp-pilihan-row-small {
    gap: 10px;
    flex-wrap: wrap; /* Agar 6 item bisa turun ke baris kedua */
}

.btp-pilihan-card-small {
    flex: 0 0 calc(33.333% - 6.66px);
    max-width: calc(33.333% - 6.66px);
}

.btp-pilihan-card-small .btp-pilihan-thumb {
    height: 100px;
}

.btp-pilihan-card-small .btp-pilihan-post-title {
    font-size: 14px;
    -webkit-line-clamp: 3;
}

.btp-pilihan-card-small .btp-pilihan-menu svg {
    width: 18px;
    height: 18px;
}

/* ===== RESPONSIVE - TABLET (≤768px) ===== */
@media (max-width: 768px) {
    /* Row Featured: hanya tampilkan 1 card, sembunyikan yang kedua */
    .btp-pilihan-row-featured .btp-pilihan-card-large:first-child {
        flex: 0 0 100%;
        max-width: 100%;
        min-width: 100%;
    }
    
    .btp-pilihan-row-featured .btp-pilihan-card-large:first-child .btp-pilihan-thumb {
        height: 180px;
    }
    
    /* Sembunyikan card large kedua di row featured (akan dipindah JS ke row small) */
    .btp-pilihan-row-featured .btp-pilihan-card-large:last-child {
        display: none;
    }
    
    /* Row Small: atur layout untuk menerima card large yang dipindah */
    .btp-pilihan-row-small {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    /* Card Large yang dipindah ke row small - FULL WIDTH, RAPAT KE TEPI */
    .btp-pilihan-row-small .btp-pilihan-card-large {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        min-width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        order: -1; /* Pastikan selalu di paling atas row small */
    }
    
    .btp-pilihan-row-small .btp-pilihan-card-large .btp-pilihan-thumb {
        height: 180px;
        margin-bottom: 12px;
    }
    
    .btp-pilihan-row-small .btp-pilihan-card-large .btp-pilihan-post-title {
        font-size: 16px;
        line-height: 1.4;
    }
    
    /* Small cards: grid 2 kolom */
    .btp-pilihan-row-small .btp-pilihan-card-small {
        flex: 0 0 calc(50% - 5px);
        max-width: calc(50% - 5px);
        min-width: calc(50% - 5px);
    }
    
    .btp-pilihan-row-small .btp-pilihan-card-small .btp-pilihan-thumb {
        height: 100px;
    }
    
    .btp-pilihan-row-small .btp-pilihan-card-small .btp-pilihan-post-title {
        font-size: 13px;
        -webkit-line-clamp: 3;
    }
    
    .btp-pilihan-row-small .btp-pilihan-card-small .btp-pilihan-menu svg {
        width: 16px;
        height: 16px;
    }
}

/* ===== RESPONSIVE - MOBILE KECIL (≤360px) ===== */
@media (max-width: 360px) {

    .btp-article-content a {
    color: #1a1a1a;
    text-decoration: none;
    font-weight: 800;
}

    .btp-pilihan-row-featured .btp-pilihan-card-large:first-child .btp-pilihan-thumb {
        height: 160px;
    }
    
    .btp-pilihan-row-small .btp-pilihan-card-large .btp-pilihan-thumb {
        height: 180px;
    }
    
    .btp-pilihan-row-small .btp-pilihan-card-large .btp-pilihan-post-title {
        font-size: 16px;
    }
    
    .btp-pilihan-row-small .btp-pilihan-card-small .btp-pilihan-thumb {
        height: 90px;
    }
    
    .btp-pilihan-row-small .btp-pilihan-card-small .btp-pilihan-post-title {
        font-size: 13px;
  color: #1a1a1a;
  line-height: 1.35;
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-decoration: none;
  transition: color 0.2s ease;
  letter-spacing: -0.2;
    }
}
/* ===== BTP: JANGAN LEWATKAN ===== */
.btp-latest-news {
    font-family: 'Manrope', sans-serif;
}

/* ============================================
   TOP BAR NEWS (Sticky Below Header) - Prefix: btp-
   ============================================ */
.btp-top-bar-news {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to bottom, rgba(255,255,255,0.98) 0%, rgba(255,255,255,0.95) 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid #e8e8e8;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    z-index: 998;
    height: 50px;
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.2s ease, opacity 0.2s ease, visibility 0.2s ease;
}

.btp-top-bar-news.visible {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.btp-top-bar-news-inner {
    max-width: 1024px;
    margin: 0 auto;
    padding: 0 16px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.btp-top-bar-news-content {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.btp-top-bar-news-title {
    font-family: 'Manrope', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: #212121;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}

.btp-top-bar-news-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.btp-top-bar-share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #f5f5f5;
    color: #555;
    text-decoration: none;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
}

.btp-top-bar-share-btn:hover {
    background: #e0e0e0;
    color: #212121;
    transform: translateY(-2px);
}

.btp-top-bar-share-btn[href*="facebook.com"]:hover { background: #1877f2; color: #fff; }
.btp-top-bar-share-btn[href*="twitter.com"]:hover,
.btp-top-bar-share-btn[href*="x.com"]:hover { background: #000; color: #fff; }
.btp-top-bar-share-btn[href*="whatsapp.com"]:hover { background: #25d366; color: #fff; }
.btp-top-bar-share-btn[href*="linkedin.com"]:hover { background: #0077b5; color: #fff; }
.btp-top-bar-share-btn[href*="t.me"]:hover { background: #0088cc; color: #fff; }

@media (max-width: 1023px) {
    .btp-top-bar-news { display: none !important; }
}

/* ============================================
   FIX: Netralisir Parent yang Memblokir Sticky
   ============================================ */
.btp-content-area,
.btp-main-layout,
.btp-content-wrapper,
.site-main,
#primary,
article.btp-single-article,
.btp-article-content-wrapper,
.btp-article-ad-left {
    overflow: visible !important;
    transform: none !important;
    filter: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    will-change: auto !important;
    contain: none !important;
    clip-path: none !important;
}


/* ============================================
   DIRECT VIDEO PLAYER (Tanpa Overlay)
   ============================================ */
.btp-featured-video-direct {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9; /* Memaksa rasio 16:9 agar rapi */
    background: #000;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 20px;
}

.btp-featured-video-direct iframe,
.btp-featured-video-direct video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    display: block;
    object-fit: cover; /* Untuk video upload agar full area */
}

/* Pastikan kontrol video tidak tertutup */
.btp-featured-video-direct video::-webkit-media-controls {
    display: flex !important;
}