/* ============================================
   SINGLE POST - STYLING KONTEN SAJA
   ============================================ */

/* ===== BREADCRUMB dengan SVG Modern ===== */
.article-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    font-family: 'Barlow', sans-serif;
}

.breadcrumb-home {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #d32f2f;
    text-decoration: none;
    transition: all 0.2s ease;
    line-height: 0;
}

.breadcrumb-home:hover {
    color: #b71c1c;
    transform: scale(1.1);
}

.breadcrumb-home svg {
    stroke: currentColor;
}

.breadcrumb-separator {
    display: inline-flex;
    align-items: center;
    color: #999;
    line-height: 0;
}

.breadcrumb-separator svg {
    stroke: currentColor;
}

.breadcrumb-category {
    font-family: 'Barlow', sans-serif;
    font-size: 12px;
    font-weight: 700;
    color: #d32f2f;
    text-transform: uppercase;
    text-decoration: none;
    letter-spacing: 0.5px;
    transition: all 0.2s ease;
}

.breadcrumb-category:hover {
    color: #b71c1c;
    text-decoration: underline;
}

/* ===== HEADER ===== */
.article-header {
    margin-bottom: 20px;
}

.article-title {
    font-family: Barlow, sans-serif;
    font-size: 36px;
    font-weight: 900;
    line-height: 43px;
    letter-spacing: 0.4px;
    color: #212121;
}

/* ===== META & AUTHOR (DIPERBARUI SESUAI GAMBAR REFERENSI) ===== */
.article-meta {
    font-family: 'Barlow', sans-serif;
    font-size: 15px;
    font-weight: 500;
    color: #666;
    margin: 0 0 8px 0;
    line-height: 1.4;
}

.article-author {
    font-family: 'Barlow', sans-serif;
    font-size: 15px;
    font-weight: 500;
    color: #666;
    margin: 0 0 12px 0;
    line-height: 1.4;
}

.article-author .author-label {
    color: #666;
    font-weight: 400;
}

.article-author .author-name {
    font-weight: 700; /* Bold */
    color: #333;      /* Lebih gelap dari label */
}

/* ===== FEATURED IMAGE ===== */
.article-featured-image {
    margin-bottom: 20px;
    width: 100%;
    overflow: hidden;
}

.article-featured-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

.image-caption {
    font-family: Barlow, sans-serif;
    font-size: 12px;
    font-weight: 400;
    line-height: 17px;
    letter-spacing: 0.4px;
    color: #757575;
}

/* ===== SHARE BUTTONS dengan SVG Modern ===== */
.article-share {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    margin: 25px 0;
    border: 1px dashed #ddd;
    border-radius: 8px;
    background: #fafafa;
    flex-wrap: wrap;
    gap: 12px;
}

.share-label {
    font-family: 'Barlow', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: #333;
}

.share-buttons {
    display: flex;
    gap: 10px;
}

.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;
}

.share-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.share-btn svg {
    fill: currentColor;
    transition: transform 0.3s ease;
}

.share-btn:hover svg {
    transform: scale(1.1);
}

/* Warna Brand Social Media */
.share-facebook { background: #1877f2; }
.share-facebook:hover { background: #166fe5; }

.share-twitter { background: #000000; }
.share-twitter:hover { background: #333333; }

.share-whatsapp { background: #25d366; }
.share-whatsapp:hover { background: #20bd5a; }

.share-telegram { background: #0088cc; }
.share-telegram:hover { background: #0077b5; }

/* ===== KONTEN ARTIKEL ===== */
.article-content {
    font-family: Barlow, sans-serif;
    font-size: 20px;
    font-weight: 500;
    line-height: 30px;
    letter-spacing: 0.4px;
    color: #424242;
}

.article-content p { margin-bottom: 16px; }

.article-content strong,
.article-content b {
    font-weight: 700;
    color: #1a1a1a;
}

.article-content h2,
.article-content h3,
.article-content h4 {
    font-family: 'Barlow', sans-serif;
    font-weight: 800;
    color: #1a1a1a;
    margin: 20px 0 10px 0;
    line-height: 1.3;
}

.article-content h2 { font-size: 20px; }
.article-content h3 { font-size: 17px; }

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    margin: 15px 0;
    display: block;
}

.article-content blockquote {
    background: #f9f9f9;
    border-left: 4px solid #d32f2f;
    margin: 20px 0;
    padding: 15px 20px;
    font-style: italic;
    font-size: 15px;
    color: #555;
}

.article-content ul,
.article-content ol {
    margin-bottom: 16px;
    padding-left: 25px;
}

.article-content ul li,
.article-content ol li { margin-bottom: 6px; }

.article-content a {
    color: #d32f2f;
    text-decoration: none;
    font-weight: 600;
}

.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: 'Barlow', 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: 'Barlow', sans-serif;
    flex-wrap: wrap;
}

.inc-page-pagination li {
    margin: 0;
    padding: 0;
    list-style: none;
}

/* Base style untuk SEMUA item (tinggi & border sama) */
.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;
}

/* 1. ANGKA (1, 2, 3) = LINGKARAN SEMPURNA */
.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%;
}

/* 2. TOMBOL TEKS = BENTUK PIL (MEMANJANG) */
.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;
}

/* 3. HALAMAN AKTIF = LINGKARAN MERAH */
.inc-page-pagination .inc-page-current span {
    background: #d32f2f !important;
    color: #fff !important;
    border-color: #d32f2f !important;
    font-weight: 700;
}

/* Hover untuk angka yang tidak aktif */
.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 (≤768px)
   ============================================ */
@media (max-width: 768px) {
    /* Sembunyikan tombol SEBELUMNYA dan TAMPILKAN SEMUA di mobile */
    .inc-page-pagination .inc-page-prev,
    .inc-page-pagination .inc-page-all {
        display: none !important;
    }

    .article-title { font-size: 22px; }
    .article-content { font-size: 14px; }
    .article-content h2 { font-size: 18px; }

    /* ✅ META & AUTHOR - Mobile */
    .article-meta,
    .article-author {
        font-size: 14px;
    }

    /* SHARE BUTTONS TETAP SPACE-BETWEEN, HANYA UKURAN DISESUAIKAN */
    .article-share {
        padding: 12px 14px;
        gap: 8px;
    }

    .share-label { font-size: 13px; }
    .share-buttons { gap: 8px; }
    .share-btn { width: 36px; height: 36px; }
    .share-btn svg { width: 16px; height: 16px; }

    .inc-page-banner {
        padding: 14px 16px;
        border-radius: 8px;
    }
    .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) {
    .article-title { font-size: 20px; }
    .article-content { font-family: Barlow, sans-serif;
    font-size: 18px;
    font-weight: 500;
    line-height: 28px;
    letter-spacing: 0.4px;
    color: #424242; }

    .article-content h2 { font-size: 16px; }

    /* ✅ META & AUTHOR - Mobile Kecil */
    .article-meta,
    .article-author {
        font-size: 13px;
    }

    /* SHARE BUTTONS LEBIH COMPACT TAPI MASIH SPACE-BETWEEN */
    .article-share {
        padding: 10px 12px;
        gap: 6px;
    }

    .share-label { font-size: 20px; }
    .share-buttons { gap: 6px; }
    .share-btn { width: 32px; height: 32px; }
    .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 ===== */
.btp-related-posts {
    margin: 40px 0 30px 0;
    font-family: 'Barlow', sans-serif;
}

/* ===== BTP: BERITA TERKAIT - TITLE STYLE ===== */
.btp-related-title {
    font-size: 20px;
    font-weight: 900;
    font-style: italic;
    color: #666;
    margin: 0 0 20px 0;
    padding-left: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    display: inline-block;
}

/* Garis merah miring di sebelah kiri */
.btp-related-title::before {
    content: '';
    position: absolute;
    left: 2px;
    top: 50%;
    transform: translateY(-50%) rotate(15deg);
    width: 4px;
    height: 110%;
    background: #d32f2f;
    border-radius: 2px;
}

.btp-related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.btp-related-item {
    display: block;
    text-decoration: none;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s ease;
    padding-bottom: 12px;
}

.btp-related-item:hover {
    transform: translateY(-3px);
}

/* Thumbnail dengan Overlay */
.btp-related-thumb {
    position: relative;
    width: 100%;
    padding-top: 60%;
    overflow: hidden;
    margin: 0;
}

.btp-related-thumb img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.btp-related-item:hover .btp-related-thumb img {
    transform: scale(1.05);
}

.btp-related-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 100%);
    pointer-events: none;
}

/* Judul di Bawah Thumbnail */
.btp-related-post-title {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    line-height: 1.4;
    margin: 12px 12px 6px 12px;
    padding: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Tanggal di Bawah Judul */
.btp-related-date {
    display: block;
    font-size: 12px;
    color: #999;
    font-weight: 500;
    margin: 0 12px;
    padding: 0;
}

/* ===== BTP: TOPIK TERKAIT ===== */
.btp-topics-section {
    margin: 30px 0 40px 0;
    font-family: 'Barlow', sans-serif;
}

.btp-topics-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.btp-topic-tag {
    display: inline-block;
    font-size: 15px;
    font-weight: 700;
    color: #d32f2f;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btp-topic-tag:hover {
    color: #b71c1c;
    text-decoration: underline;
}

/* ===== RESPONSIVE - TABLET (≤768px) ===== */
@media (max-width: 768px) {
    .btp-related-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .btp-related-title {
        font-size: 18px;
    }
    
    .btp-related-post-title {
        font-size: 13px;
        margin: 10px 10px 5px 10px;
    }
    
    .btp-related-date {
        font-size: 11px;
        margin: 0 10px;
    }
    
    .btp-topic-tag {
        font-size: 14px;
    }
}

/* ===== RESPONSIVE - MOBILE KECIL (≤360px) ===== */
@media (max-width: 360px) {
    .btp-related-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .btp-related-title {
        font-size: 16px;
    }
    
    .btp-related-post-title {
        font-size: 12px;
        margin: 8px 8px 4px 8px;
    }
    
    .btp-related-date {
        font-size: 10px;
        margin: 0 8px;
    }
    
    .btp-topic-tag {
        font-size: 13px;
    }
}

/* ===== BTP: JANGAN LEWATKAN ===== */
.btp-latest-news {
    font-family: 'Barlow', sans-serif;
}