/* =========================================
   1. LAYOUT 2 KOLOM (Desktop)
   ========================================= */
.single-post-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 15px;
    background: #fff;
}

.single-row {
    display: flex;
    gap: 40px; /* Jarak antara Artikel dan Sidebar */
    align-items: flex-start; /* Agar sidebar mulai dari atas */
}

/* --- BAGIAN KIRI (ARTIKEL) --- */
.single-main-content {
    flex: 1; /* Mengisi sisa ruang (sekitar 70%) */
    min-width: 0; /* Mencegah konten meluber */
}

/* --- BAGIAN KANAN (SIDEBAR) --- */
.single-sidebar {
    width: 320px; /* Lebar Sidebar Tetap */
    flex-shrink: 0; /* Sidebar dilarang mengecil */
}

/* Sticky Sidebar */
.sidebar-inner {
    position: sticky;
    top: 90px; /* Jarak dari header sticky */
}


/* =========================================
   2. TYPOGRAPHY & META DATA (UPDATED)
   ========================================= */

/* Breadcrumb */
.single-breadcrumb {
    font-size: 13px; color: #888; margin-bottom: 10px;
}
.single-breadcrumb a { text-decoration: none; color: #555; font-weight: 500; }
.single-breadcrumb .separator { margin: 0 8px; font-size: 11px; color: #ccc; }

/* Judul Utama */
.single-title {
    font-size: 34px; font-weight: 800; line-height: 1.25; color: #111;
    margin-bottom: 15px;
}

/* --- META INFO BARU (RAPI & SEJAJAR DESKTOP) --- */
.single-meta {
    font-size: 13px;
    color: #777;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
    /* KUNCI 1: Flexbox pada Induk */
    display: flex;       
    align-items: center; /* Ratakan vertikal semua item */
    flex-wrap: wrap;
    gap: 8px;
}

.single-meta .meta-item {
    display: inline-flex;
    align-items: center;
}

.single-meta strong { color: #000; font-weight: 700; }

/* Link Author */
.single-meta strong a {
    color: #111;
    text-decoration: none;
    transition: color 0.2s;
}
.single-meta strong a:hover {
    color: #003399;
    text-decoration: underline;
}

/* Separator (Titik) */
.meta-sep { 
    color: #ccc; 
    font-size: 10px; 
    margin: 0 2px;
    position: relative;
    top: -1px; /* Naikkan dikit biar pas tengah teks */
}

/* --- FIX IKON MATA & VIEWS (DESKTOP) --- */
.meta-views {
    display: inline-flex; /* KUNCI 2: Wadah ini harus Flex juga */
    align-items: center;  /* KUNCI 3: Ratakan Ikon & Angka */
    color: #666;
}

.meta-views svg {
    color: #999; 
    width: 14px;          /* Ukuran fix */
    height: 14px;
    margin-right: 5px;    /* Jarak ke angka */
    position: relative;
    top: -1px;            /* Trik optik: naikkan 1px biar center dengan angka */
}


/* --- PERBAIKAN GAMBAR UTAMA (FEATURED IMAGE 16:9) --- */
.single-featured-image { 
    margin-bottom: 25px; 
    overflow: hidden; /* Pastikan border-radius rapi */
}

.single-featured-image img {
    width: 100%; 
    aspect-ratio: 16 / 9; /* Kunci rasio 16:9 */
    object-fit: cover;    /* Gambar tidak gepeng, akan ter-crop rapi */
    object-position: center;
    border-radius: 6px; 
    display: block;
}

.image-caption {
    font-size: 12px; color: #777; margin-top: 8px; font-style: italic;
    text-align: center;
}


/* =========================================
   3. STYLE ISI KONTEN (Body, Image, Heading)
   ========================================= */
.single-body-content {
    font-size: 18px; line-height: 1.6; color: #2a2a2a; margin-bottom: 40px;
}
/* =========================================
   PERBAIKAN TYPOGRAPHY ARTIKEL
   ========================================= */

.single-body-content p {
    font-size: 17px;         /* Ukuran font standar */
    line-height: 1.6;        /* DITURUNKAN: Sebelumnya mungkin 1.8/2.0 */
    margin-bottom: 20px;     /* Jarak antar paragraf */
    color: #333;             /* Warna teks agar nyaman di mata */
    text-align: left;        /* Rata kiri (standar web modern) */
}

.end-sign { font-weight: bold; margin-bottom: 30px; }

/* --- PERBAIKAN HEADING (H2, H3) --- */
.single-body-content h2,
.single-body-content h3,
.single-body-content h4 {
    color: #111;
    font-weight: 800;    
    margin-top: 40px;    /* Jarak atas lega */
    margin-bottom: 20px; /* Jarak bawah tidak mepet */
    line-height: 1.4;    
}
.single-body-content h2 { font-size: 24px; }
.single-body-content h3 { font-size: 20px; }

/* --- LIST (Bullet & Numbering) --- */
.single-body-content ul {
    list-style-type: disc !important;
    margin-bottom: 25px; padding-left: 25px; color: #333;
}
.single-body-content ul li { margin-bottom: 10px; line-height: 1.6; }

.single-body-content ol {
    list-style-type: decimal !important;
    margin-bottom: 25px; padding-left: 25px; color: #333;
}
.single-body-content ol li { margin-bottom: 10px; line-height: 1.6; }

/* --- QUOTE (Kutipan) --- */
.single-body-content blockquote {
    border-left: 5px solid #003399;
    background-color: #f9f9f9;
    margin: 30px 0; padding: 20px 25px;
    font-style: italic; font-size: 18px; color: #555;
    line-height: 1.6; border-radius: 0 8px 8px 0;
}
.single-body-content blockquote p:last-child { margin-bottom: 0; }

/* --- PERBAIKAN GAMBAR DALAM ARTIKEL --- */
.single-body-content figure,
.single-body-content .wp-block-image,
.single-body-content .wp-caption {
    margin: 30px 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    display: block; box-sizing: border-box;
}

.single-body-content img {
    width: 100%; max-width: 100%; height: auto;
    border-radius: 8px; box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    display: block;
}

.single-body-content figcaption,
.wp-caption-text {
    font-size: 13px !important; color: #666;
    text-align: center; font-style: italic;
    margin-top: 12px !important; line-height: 1.5;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    padding: 0 10px;
}


/* =========================================
   4. AKSESORIS (Share, Tags, Google News)
   ========================================= */

/* Wrapper Utama Footer Artikel */
.article-footer-center {
    display: flex; flex-direction: column; align-items: center;
    width: 100%; margin-bottom: 30px;
}

/* Google News Button */
.google-news-btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 10px 20px; border: 1px solid #e0e0e0; border-radius: 50px;
    text-decoration: none; color: #333; font-size: 14px;
    background: #fff; box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    margin-bottom: 25px;
}
.gnews-logo { font-weight: 700; font-family: sans-serif; letter-spacing: -0.5px; }

/* Share Buttons */
.share-buttons-container {
    display: flex; justify-content: center; gap: 15px;
    margin-bottom: 30px; width: 100%;
}
.share-btn {
    width: 45px; height: 45px; border-radius: 50%;
    border: 1px solid #ddd; background: #fff;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; color: #555; transition: 0.2s;
}
.share-btn:hover { background: #f5f5f5; color: #000; border-color: #bbb; }
.share-btn.comment-pill {
    width: auto; padding: 0 20px; border-radius: 50px;
    gap: 8px; font-weight: 600; text-decoration: none;
}

/* Share Dropdown */
.share-dropdown-wrapper { position: relative; display: inline-block; }
.share-social-menu {
    position: absolute; bottom: 55px; left: 50%;
    transform: translateX(-50%) translateY(10px);
    display: flex; gap: 10px; background: #fff;
    padding: 10px; border-radius: 50px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.15); border: 1px solid #eee;
    opacity: 0; visibility: hidden; z-index: 100;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.share-social-menu::after {
    content: ""; position: absolute; bottom: -6px; left: 50%;
    transform: translateX(-50%) rotate(45deg); width: 12px; height: 12px;
    background: #fff; border-right: 1px solid #eee; border-bottom: 1px solid #eee;
}
.share-social-menu.active { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.soc-share-item {
    width: 40px; height: 40px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: #fff; text-decoration: none; transition: transform 0.2s;
}
.soc-share-item:hover { transform: scale(1.1); }
.soc-share-item svg { width: 20px; height: 20px; }
.soc-share-item.wa { background: #25D366; }
.soc-share-item.fb { background: #1877F2; }
.soc-share-item.tw { background: #000000; }
.soc-share-item.tg { background: #0088cc; }

/* Tags */
.single-tags-area {
    display: flex; flex-direction: column; align-items: center;
    gap: 10px; margin-bottom: 40px; width: 100%;
}
.tags-label { font-weight: 700; font-size: 14px; color: #333; }
.tags-list {
    display: flex; flex-wrap: wrap; justify-content: center;
    gap: 8px; width: 100%;
}
.tag-pill {
    font-size: 13px; padding: 6px 14px; border: 1px solid #ddd;
    border-radius: 20px; text-decoration: none; color: #555;
    transition: 0.2s; background: #fff; white-space: nowrap;
}
.tag-pill:hover { border-color: #003399; color: #003399; }


/* =========================================
   5. STYLE KOMENTAR (Clean & Rapi)
   ========================================= */
.comments-area-custom {
    margin-top: 40px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
    border: none !important;
}

.comments-title-custom {
    font-size: 18px; font-weight: 700; color: #000;
    margin-bottom: 20px; border: none !important; padding-left: 0 !important;
}

/* Input Form */
.comment-input-container {
    position: relative; width: 100%; border: 1px solid #e0e0e0;
    border-radius: 8px; background: #fff; padding: 10px;
    transition: border-color 0.2s;
}
.comment-input-container:focus-within { border-color: #999; }
.comment-input-container textarea {
    width: 100%; min-height: 80px; border: none; outline: none;
    resize: vertical; font-size: 14px; color: #333;
    background: transparent; padding-bottom: 30px; font-family: inherit;
}
.comment-input-container textarea::placeholder { color: #ccc; }
.icon-send-btn {
    position: absolute; bottom: 10px; right: 15px;
    background: none; border: none; cursor: pointer;
    color: #999; padding: 5px; transition: color 0.2s;
}
.icon-send-btn:hover { color: #003399; }

/* Guest Inputs */
.comment-guest-inputs {
    display: flex; flex-direction: column; gap: 15px; margin-bottom: 15px;
}
.comment-guest-inputs input {
    width: 100%; border: 1px solid #e0e0e0; padding: 12px 15px;
    border-radius: 8px; font-size: 14px; background: #fdfdfd; transition: all 0.2s;
}
.comment-guest-inputs input:focus { border-color: #999; background: #fff; outline: none; }

/* =========================================
   REVISI FINAL: STYLE KOMENTAR (MINIMALIS & PILL BUTTON)
   ========================================= */

.comment-list-custom { 
    list-style: none; 
    padding: 0; 
    margin: 30px 0 0; 
}

/* =========================================
   FIXED LAYOUT: STRUKTUR VERTIKAL + AVATAR KIRI
   ========================================= */

.comment-list-custom li.comment {
    list-style: none;
    border-bottom: 1px dashed #ccc; /* Garis pemisah */
    padding: 25px 0;
    margin-bottom: 0;
    position: relative; /* Penting untuk pembungkus */
}

.comment-body {
    position: relative;
    padding-left: 65px; /* Memberi ruang kosong di kiri untuk Avatar */
    display: block;     /* PENTING: Jangan pakai Flex, agar teks turun ke bawah */
}

/* 1. POSISI AVATAR (Dikunci di Kiri Atas) */
.comment-author img {
    position: absolute;
    left: 0;
    top: 0;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    background: #eee;
}

/* 2. MENYUSUN NAMA, TANGGAL, KONTEN KE BAWAH */
/* Pastikan nama author tampil blok agar elemen setelahnya turun */
.comment-author {
    display: block;
    margin-bottom: 2px;
    line-height: 1.2;
}

.fn {
    font-size: 16px;
    font-weight: 800;
    color: #111;
    font-style: normal;
    margin-right: 5px;
}

.says {
    display: none; /* Menyembunyikan kata "says:" agar lebih bersih */
}

/* Tanggal di bawah Nama */
.comment-metadata {
    display: block; /* Paksa turun ke baris baru */
    margin-bottom: 8px;
}

.comment-metadata a {
    font-size: 13px;
    color: #888;
    text-decoration: none;
    display: block;
}

/* Isi Komentar di bawah Tanggal */
.comment-content {
    display: block;
    margin-bottom: 10px;
}

.comment-content p {
    font-size: 15px;
    line-height: 1.5;
    color: #222;
    margin: 0;
}

/* 3. TOMBOL BALAS (Gaya Pill/Lonjong) */
.reply {
    display: block; /* Pastikan tombol ada di baris tersendiri paling bawah */
    margin-top: 8px;
}

.reply a {
    display: inline-block;
    text-decoration: none;
    color: #484868;
    font-weight: 600;
    font-size: 12px;
    background: transparent;
    border: 1px solid #484868;
    border-radius: 50px; /* Bentuk Pill */
    padding: 5px 18px;
    transition: all 0.2s;
}

.reply a:hover {
    background: #484868;
    color: #fff;
}

/* RESPONSIVE MOBILE */
@media (max-width: 600px) {
    .comment-list-custom li.comment { 
        padding: 15px; 
    }
    
    .comment-body { 
        gap: 12px; 
    }
    
    .comment-author img {
        width: 38px;
        height: 38px;
    }
	
    .single-body-content p {
        font-size: 16px;     /* Ukuran font di HP */
        line-height: 1.5;   /* Di HP boleh sedikit lebih renggang agar mudah ditap */
        margin-bottom: 18px;
    }
}

/* =========================================
   6. RESPONSIF MOBILE (FIXED & FINAL)
   ========================================= */
@media (max-width: 991px) {
    
    /* FIX JARAK ATAS HEADER */
    .single-post-container {
        padding-top: 80px !important; 
    }

    /* Layout Stack (Tumpuk ke bawah) */
    .single-row {
        flex-direction: column; 
        gap: 0; 
    }
    
    .single-main-content { width: 100%; }

    /* --- SIDEBAR MOBILE (PERBAIKAN JARAK & BORDER) --- */
    .single-sidebar {
        width: 100%;
        margin-top: 10px !important;
        padding-top: 10px !important;
        border-top: none !important;
        padding-left: 0;        
        padding-right: 0;
    }

    /* List Komentar di HP */
    .comment-filters {
        margin-bottom: 15px !important;
    }

    /* Typography Mobile */
    .single-title { font-size: 24px; line-height: 1.3; }
    .single-body-content { font-size: 16px; }

    /* --- UPDATE FINAL: META INFO RAPI & SEJAJAR --- */
    .single-meta {
        font-size: 11px !important; 
        gap: 6px;                   /* Beri jarak sedikit antar item */
        margin-bottom: 15px;
        flex-wrap: wrap;
        line-height: 1.5;
        align-items: center;        /* KUNCI 1: Ratakan semua item meta */
    }

    /* FIX ICON MATA GA RATA */
    .meta-views {
        display: inline-flex !important; /* KUNCI 2: Paksa jadi kotak fleksibel */
        align-items: center !important;  /* KUNCI 3: Paksa isi (ikon & teks) ke tengah vertikal */
        vertical-align: middle;
    }
    
    .meta-views svg {
        width: 12px;      
        height: 12px;
        margin-right: 4px;
        margin-bottom: 0 !important; /* Hapus margin inline yang bikin kacau */
        position: relative;
        top: -1px; /* Trik visual: Naikkan 1 pixel biar pas di tengah mata */
    }

    /* Kecilkan Nama Author & Link */
    .single-meta strong a {
        font-weight: 600; 
    }

    /* Separator (Titik) */
    .meta-sep {
        font-size: 8px;   
        margin: 0 2px;    
        color: #ddd;
        position: relative;
        top: -1px; /* Naikkan titik dikit biar sejajar */
    }
}

/* =========================================
   STYLE "BACA JUGA" (REVISI: MODERN CLEAN LOOK)
   ========================================= */

/* Reset style link agar aman */
.baca-juga-box a {
    text-decoration: none;
    box-shadow: none;
}

/* Kotak Utama - Garis Biru di Kiri */
.baca-juga-box {
    border-left: 5px solid #003399; /* Garis sedikit lebih tebal sesuai gambar */
    padding-left: 15px;             
    margin: 30px 0;                 
    display: flex;
    flex-direction: column;         
    justify-content: center;
    background: transparent;
}

/* Label "Baca juga:" */
.baca-label {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 14px;        /* Ukuran sedikit dinaikkan agar terbaca jelas */
    font-weight: 700;       /* Bold */
    color: #222;            /* Hitam pekat tapi tidak #000 murni agar halus */
    margin-bottom: 5px;     /* Jarak ke judul */
    line-height: 1.2;
    text-transform: none;   /* PENTING: Menghapus kapital semua (Uppercase) */
}

/* Link Judul Artikel */
.baca-link {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 15px;        /* Ukuran desktop yang nyaman */
    font-weight: 700;       /* Bold tegas */
    color: #003399 !important; /* Warna Biru iPortal */
    line-height: 1.4;       /* Jarak antar baris lebih lega */
    margin-top: 0;
    display: block;
    font-style: normal;     /* Memastikan font TEGAK (tidak miring) */
}

.baca-link:hover {
    color: #002266 !important;
    text-decoration: underline;
}

/* --- KHUSUS LAYAR HP (MOBILE) --- */
@media (max-width: 768px) {
    .baca-juga-box {
        margin: 25px 0;      
        padding-left: 12px;  
        border-left-width: 4px; 
    }
    
    .baca-label {
        font-size: 13px;     
        margin-bottom: 3px;
    }

    .baca-link {
        font-size: 15px;     /* Ukuran font di HP disesuaikan agar tidak terlalu besar */
        line-height: 1.35;
    }
}

.ki-post-warning {
  border: 1px solid red;
  color: red;
  background-color: #fff0f0;
  padding: 12px 18px;
  font-size: 13px;
  margin-top: 30px;
  margin-bottom: 16px;
  text-align: center;
  line-height: 1.6;
}

@media (max-width: 768px) {
  .ki-post-warning {
    font-size: 11px;
  }
}

/* --- MENGEMBALIKAN STYLE ASLI FILTER KOMENTAR --- */
.comment-filters {
    display: flex;
    gap: 20px; /* Jarak antar teks sesuai gambar */
    margin: 20px 0;
    padding-bottom: 5px;
}

.comment-filters a, 
.comment-filters span {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 15px;
    text-decoration: none;
    color: #888; /* Warna teks tidak aktif (abu-abu) */
    font-weight: 600; /* Ketebalan sedang sesuai gambar */
    cursor: pointer;
    transition: color 0.2s ease;
}

/* Style teks yang sedang aktif/dipilih (Paling diminati) */
.comment-filters .active,
.comment-filters strong,
.comment-filters a:first-child {
    color: #111 !important; /* Warna hitam pekat */
    font-weight: 500 !important; /* Sangat tebal sesuai gambar referensi */
}

/* Efek saat kursor diarahkan ke teks */
.comment-filters a:hover {
    color: #333;
}

/* Penyesuaian untuk Mobile agar tetap sejajar */
@media (max-width: 768px) {
    .comment-filters {
        gap: 15px;
        margin: 15px 0;
    }
    .comment-filters a, 
    .comment-filters span {
        font-size: 14px;
    }
}

/* =========================================
   REVISI: PENYELARASAN STYLE DENGAN BERITA TERPOPULER
   ========================================= */

/* --- CONTAINER UMUM (Judul Section) --- */
.extra-title { 
    font-size: 18px; /* Menyesuaikan ukuran sidebar */
	font-style: italic;
    font-weight: 800; 
    margin-bottom: 20px; 
    color: #003399; /* Warna Biru iPortal */
    text-transform: uppercase; /* Kapital seperti Berita Terpopuler */
    display: flex;
    align-items: center;
    letter-spacing: 0.5px;
}

/* Garis dekoratif di samping judul agar mirip sidebar */
.extra-title::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #eee;
    margin-left: 15px;
}

/* --- STYLE BERITA TERKAIT (8 ITEMS - TEXT ONLY) --- */
.related-text-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 40px;
    margin-bottom: 40px;
}

.related-text-item { 
    padding: 10px 0; 
    border-bottom: 1px solid #f0f0f0; 
}

.related-text-item a { 
    text-decoration: none; 
    color: #111; 
    font-weight: 700; /* Tebal seperti judul di sidebar */
    font-size: 15px; 
	
    line-height: 1.4; 
    display: block;
    transition: color 0.2s;
}

.related-text-item a:hover {
    color: #003399;
}

/* --- STYLE REKOMENDASI (6 ITEMS - GRID 3 KOLOM) --- */
.rec-grid-wrapper {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.rec-card a { text-decoration: none; display: block; }

.rec-thumb img { 
    width: 100%; 
    aspect-ratio: 16 / 9; /* Rasio standar iPortal */
    object-fit: cover; 
    border-radius: 8px; 
    margin-bottom: 10px; 
    display: block;
}

.rec-cat { 
    font-size: 11px; 
    color: #003399; /* Biru kategori */
    font-weight: 800; 
    text-transform: uppercase; 
    display: block;
    margin-bottom: 4px;
}

.rec-title { 
    font-size: 15px; 
    font-weight: 700; /* Tebal seperti judul di sidebar */
    color: #111; 
    margin-top: 5px; 
    line-height: 1.4; 
    transition: color 0.2s;
}

.rec-card a:hover .rec-title {
    color: #003399;
}

/* --- RESPONSIVE MOBILE & TABLET --- */
@media (max-width: 991px) {
    .related-text-grid { 
        grid-template-columns: 1fr; 
        gap: 0; 
    }
    
    .rec-grid-wrapper { 
        grid-template-columns: 1fr; 
        gap: 25px; 
    }

    .extra-title {
        font-size: 17px;
    }
}

/* Styling tombol Batal Balasan yang muncul dinamis */
#cancel-comment-reply-link {
    display: inline-block;
    font-size: 12px;
    color: #cc0000;
    text-decoration: none;
    margin-bottom: 10px;
    font-weight: 600;
}

#cancel-comment-reply-link:hover {
    text-decoration: underline;
}

/* Memastikan form pindah dengan animasi halus (opsional) */
#respond {
    scroll-margin-top: 100px; /* Agar saat pindah tidak tertutup header sticky */
}

/* =========================================
   STYLE TOC (CLEAN & COMPACT - NO BULLETS)
   ========================================= */

/* 1. Container Utama (Lebih Rapat) */
.iportal-toc-container {
    background: #fff;
    border-radius: 8px;
    padding: 20px 25px;       /* Padding atas-bawah dikurangi sedikit */
    margin: 30px 0 40px; 
    box-shadow: 0 4px 15px rgba(0,0,0,0.06); 
    border: 1px solid #f0f0f0;
    
    display: block;
    width: 100%;
    position: relative;
    transition: all 0.3s ease;
}

/* 2. Header: Judul & Ikon */
.toc-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;      /* Jarak ke list dikurangi */
    border-bottom: 2px solid #f5f5f5;
    padding-bottom: 10px;
}

.toc-title {
    font-size: 19px;
    font-weight: 800;
    color: #111;
    font-family: 'Georgia', serif; 
    display: flex;
    align-items: center;
}

.toc-toggle-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    color: #555;
    transform: rotate(0deg);
    transition: transform 0.3s;
}

/* Logika Toggle */
.iportal-toc-container.closed .toc-list { display: none; }
.iportal-toc-container.closed .toc-toggle-btn { transform: rotate(180deg); }

/* 3. List Container (Reset Total) */
.toc-list {
    list-style: none !important; /* Hapus bullet bawaan browser */
    padding: 0 !important;
    margin: 0 !important;
}

/* 4. Item List (Rapat & Tanpa Bullet) */
.toc-list li {
    list-style-type: none !important; /* Pastikan tidak ada bullet */
    margin-bottom: 6px;       /* Jarak antar baris diperkecil (Rapat) */
    padding-left: 0 !important; /* Hapus ruang kiri bekas bullet */
    line-height: 1.4;
    position: relative;
}

/* HAPUS PSEUDO-ELEMENT (Hapus titik/angka custom sebelumnya) */
.toc-list li::before {
    content: none !important;
    display: none !important;
}

/* 5. Style Link */
.toc-list li a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    font-size: 16px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    transition: color 0.2s;
    border-bottom: 1px solid transparent;
    display: inline-block;
}

.toc-list li a:hover {
    color: #003399;
    text-decoration: underline;
}

/* =========================================
   6. HIRARKI (JOROK KE DALAM)
   ========================================= */

/* H2 (Level 2): Utama */
.toc-level-2 {
    margin-left: 0;
    margin-top: 10px; /* Jarak antar Topik Utama sedikit lebih renggang */
}
/* Hapus margin-top untuk item pertama agar tidak ada space kosong di paling atas */
.toc-list li:first-child {
    margin-top: 0;
}

.toc-level-2 > a {
    font-weight: 700;
    color: #000;
}

/* H3 (Level 3): Masuk 20px */
.toc-level-3 {
    margin-left: 20px;
    margin-bottom: 4px; /* Sub-menu lebih rapat lagi */
}
.toc-level-3 > a {
    font-size: 15px;
    color: #444;
}

/* H4 (Level 4): Masuk 40px */
.toc-level-4 {
    margin-left: 40px;
    margin-bottom: 4px;
}

/* H5 & H6 */
.toc-level-5, .toc-level-6 {
    margin-left: 60px;
    margin-bottom: 4px;
}

/* =========================================
   FIX POSISI SCROLL TOC (Agar tidak ketutup header)
   ========================================= */

.single-body-content h2,
.single-body-content h3,
.single-body-content h4,
.single-body-content h5,
.single-body-content h6 {
    /* Memberi jarak "napas" di atas heading saat link TOC diklik */
    scroll-margin-top: 100px; 
}

/* Jika tampilan Mobile headernya lebih kecil, jaraknya bisa dikurangi */
@media (max-width: 768px) {
    .single-body-content h2,
    .single-body-content h3,
    .single-body-content h4,
    .single-body-content h5,
    .single-body-content h6 {
        scroll-margin-top: 80px; 
    }
}

/* =========================================
   FIX: WARNA LINK DI ARTIKEL (POSTINGAN)
   ========================================= */

/* Target semua link (a) di dalam area konten artikel */
.single-body-content a {
    color: #003399 !important;      /* FORCE warna Biru iPortal */
    font-weight: 700 !important;    /* FORCE Tebal */
    border-bottom: 1px solid rgba(0, 51, 153, 0.3); /* Garis bawah tipis */
    text-decoration: none !important;
    transition: all 0.2s ease;
}

/* Efek saat mouse diarahkan (Hover) */
.single-body-content a:hover {
    color: #002266 !important;      /* Biru lebih gelap */
    background-color: #e6f0ff;      /* Latar biru muda */
    border-bottom-color: #002266;
}

/* --- PENGECUALIAN (Agar elemen lain tidak ikut berubah) --- */

/* 1. Link di dalam kotak "Baca Juga" jangan ikut dikasih garis bawah dobel */
.single-body-content .baca-juga-box a,
.single-body-content .baca-link {
    border-bottom: none !important;
    background-color: transparent !important;
}

/* 2. Link di dalam TOC (Daftar Isi) biarkan default style TOC */
.single-body-content .iportal-toc-container a {
    border-bottom: none !important;
    font-weight: normal !important; /* Biarkan font normal di TOC */
    color: #333 !important;         /* Biarkan hitam di TOC */
}
/* Kecuali saat hover di TOC, boleh biru */
.single-body-content .iportal-toc-container a:hover {
    color: #003399 !important;
    text-decoration: underline !important;
}