/* --- Aturan Dasar & Perbaikan Overflow (Versi Diperkuat) --- */
html,
body {

}

html {
    box-sizing: border-box;
}
*, *::before, *::after {
    box-sizing: inherit;
}
body {
    font-family: sans-serif;
    margin: 0;
    line-height: 1.2;
    color: #333;
    background-color: #ffffff;
}

a {
    color: #007bff;
    text-decoration: none;
}
a:hover {
    text-decoration: underline;
}
.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
    word-wrap: normal !important;
}

/* ==========================================================================
   Header Styles
   ========================================================================== */
.site-header {
    background-color: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    padding: 10px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between; /* Menjaga jarak antara grup kiri dan kanan */
    align-items: center;
    padding: 0 20px;
}

/* KUNCI: Buat grup untuk logo dan menu */
.header-left-group {
    display: flex;
    align-items: center;
    gap: 30px; /* Jarak antara logo dan menu navigasi */
}

/* Sembunyikan kontainer menu mobile di layar besar (desktop) */
.mobile-nav-container {
    display: none;
}

/* Site Branding (Logo/Nama Situs) */
.site-branding .custom-logo-link img {
    max-height: 24px;
    width: auto;
    display: block; /* Menghilangkan spasi aneh di bawah gambar */
}
.site-branding .site-title {
    margin: 0;
    font-size: 1.6rem;
    font-weight: 700;
}
.site-branding .site-title a {
    color: #333;
    text-decoration: none;
}

/* Main Navigation */
.main-navigation ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    gap: 15px;
}
.main-navigation li {
    position: relative;
}
.main-navigation a {
    color: #555;
    text-decoration: none;
    font-weight: 500;
    padding: 5px 0;
    transition: color 0.2s ease-in-out;
    font-size: 0.95rem;
}
.main-navigation a:hover {
    color: #007bff;
}
.main-navigation ul ul {
    display: none;
    position: absolute;
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    min-width: 160px;
    top: 100%;
    left: 0;
    flex-direction: column;
    padding: 10px 0;
    border-radius: 4px;
    z-index: 10;
}
.main-navigation ul ul li { margin: 0; }
.main-navigation ul ul a { padding: 8px 15px; white-space: nowrap; }
.main-navigation li:hover > ul { display: flex; }

/* Tombol hamburger (disembunyikan di desktop) */
.mobile-nav-toggle {
    display: none;
}

/* Header Search */
.header-search {
    position: relative;
    margin-left: 150px;
}
.header-search .search-toggle {
    background: none; border: none; padding: 0; cursor: pointer;
    color: #555; display: flex; align-items: center;
}
.header-search .search-toggle:hover { color: #007bff; }
.search-form-container {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 10px;
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    border-radius: 4px;
    padding: 15px;
    min-width: 250px;
    z-index: 100;
}
.search-form {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 5px;
}
.search-form .search-field {
    border: none; outline: none; padding: 8px 10px; flex-grow: 1;
    font-size: 0.95rem;
}
.search-form .search-submit {
    background: none; border: none; cursor: pointer; color: #007bff;
    padding: 8px 10px; display: flex; align-items: center;
}
.search-form .search-submit:hover { color: #0056b3; }

/* ==========================================================================
   Search Overlay Styles
   ========================================================================== */
.search-overlay-container {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    z-index: 1001;
    padding: 5px 0;
}
.search-overlay-inner {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    gap: 20px;
}
body.search-is-active .site-header {
    opacity: 0;
    visibility: hidden;
}
.search-overlay-container .search-form {
    flex-grow: 1;
    border: none;
    padding: 0;
}
.search-overlay-container .search-field {
    padding: 8px 0;
    font-size: 0.8rem;
    font-family: 'Poppins', sans-serif;
    width: 100%;
    background: none;
}
.search-overlay-container .search-field::placeholder { color: #aaa; }
.search-overlay-container .search-submit { display: none; }
.close-search {
    background: none; border: none; padding: 0; cursor: pointer;
    color: #007bff; display: flex; align-items: center; flex-shrink: 0;
}
.close-search:hover { color: #0056b3; }

/* ==========================================================================
   Content & Footer
   ========================================================================== */
.site-content,
.site-content-container {
    max-width: 1140px;
    margin: 30px auto;
    padding: 0 20px;
}
.site-footer {
    text-align: center;
    padding: 30px 20px;
    margin-top: 50px;
    background-color: #333;
    color: #eee;
    font-size: 0.9rem;
}
.site-footer a { color: #007bff; }

/* ==========================================================================
   Mobile Styles (Tablet and below)
   ========================================================================== */
@media (max-width: 768px) {
	
    .header-inner {
        padding: 0 15px;
        justify-content: space-between;
    }
    .main-navigation {
        display: none;
    }
    .site-branding .site-title {
        font-size: 1.5rem;
    }
    .header-icons-wrapper {
        display: flex;
        align-items: center;
        gap: 15px;
    }
    .header-search {
        margin-left: 0;
    }
    .mobile-nav-toggle {
        display: block;
        background: none;
        border: none;
        padding: 0;
        cursor: pointer;
        color: #333;
    }
    .mobile-nav-container {
        display: none;
        background-color: #fff;
        border-top: 1px solid #eee;
        box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    }
    .mobile-nav-container ul {
        list-style: none;
        padding: 10px 0;
        margin: 0;
        width: 100%;
    }
    .mobile-nav-container li a {
        display: block;
        padding: 12px 20px;
        text-decoration: none;
        color: #333;
        border-bottom: 1px solid #f0f0f0;
    }
    .mobile-nav-container li:last-child a {
        border-bottom: none;
    }
    .mobile-nav-container li a:hover {
        background-color: #f8f9fa;
    }
}

/* ==========================================================================
   Homepage Layout Styles
   ========================================================================== */

/* --- Struktur Utama Dua Kolom --- */
.site-content-container {
    max-width: 1100px;
    margin: 30px auto;
    padding: 0 20px;
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.content-area {
    flex: 1;
}

/* Menghilangkan garis di postingan terakhir agar rapi */
.site-main > .post-list-item:last-of-type {
    border-bottom: none;
    padding-bottom: 0;
}

.widget-area {
    width: 380px;
    flex-shrink: 0;
    position: sticky; /* Pastikan ini ada */
    top: 70px;      /* Jarak dari header, pastikan ini ada */
}
/* --- Gaya Postingan Pertama (Besar) --- */
.post-featured-large {
    overflow: hidden;
}
.post-thumbnail-featured {
    aspect-ratio: 16 / 9;
    overflow: hidden;
}
.post-thumbnail-featured img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.post-content-featured {
    padding: 20px 0 0 0; /* Padding atas 20px, sisi lainnya 0 */
}
.post-content-featured .entry-title {
    margin: 0 0 10px 0;
    font-size: 1.2rem;
    line-height: 1.3;
}
.post-content-featured .entry-title a {
    color: #222;
    text-decoration: none;
}
.post-content-featured .entry-meta {
    font-size: 0.85rem;
    color: #777;
}
.post-content-featured .entry-meta a {
    color: #007bff;
    text-decoration: none;
}

/* --- Gaya Daftar Postingan (Kecil) - VERSI BARU --- */
.post-list-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start; /* Ubah agar sejajar dari atas */
    gap: 25px; /* Jarak antar gambar dan teks diperbesar */
    padding: 20px 0;
    border-bottom: 1px solid #eee;
}
.post-list-item:last-of-type { /* Untuk item terakhir, hapus border */
    border-bottom: none;
}

.post-content-list {
    flex-grow: 1;
}
.post-category {
    font-size: 0.8rem; /* Ukuran kategori sedikit diperbesar */
    text-transform: uppercase;
    color: #007bff;
    font-weight: 600;
    margin-bottom: 8px; /* Jarak bawah kategori */
    display: block;
    text-decoration: none;
}
.post-content-list .entry-title {
    margin: 0 0 8px 0; /* Jarak bawah judul */
    font-size: 1.25rem; /* Ukuran judul diperbesar */
    line-height: 1.4;
}
.post-content-list .entry-title a {
    color: #333;
    text-decoration: none;
}
.post-content-list .entry-title a:hover {
    color: #007bff;
}
.post-content-list .entry-meta {
    font-size: 0.85rem; /* Ukuran meta sedikit diperbesar */
    color: #888;
}
.post-thumbnail-list {
    width: 160px;  /* Lebar gambar diperbesar */
    height: 160px; /* Tinggi gambar dibuat sama agar kotak */
    flex-shrink: 0;
}
.post-thumbnail-list img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 5px;
}



/* Pagination */
.the-posts-pagination {
    margin-top: 40px;
}



/* ==========================================================================
   Mobile Styles (Tablet and below)
   ========================================================================== */
@media (max-width: 768px) {

    /* --- Struktur Utama & Header --- */
    .site-content-container {
        flex-direction: column; /* Konten utama di atas, sidebar di bawah */
        padding: 1px;
    }
    .widget-area {
        width: 100%; /* Sidebar mengisi lebar penuh */
        margin-top: 30px;
    }
	

    .header-inner {
        padding: 0 15px;
    }
    .main-navigation {
        display: none;
    }
    .header-icons-wrapper {
        display: flex;
        align-items: center;
        gap: 15px;
    }
    .mobile-nav-toggle {
        display: block;
    }

    /* --- Postingan Unggulan (Besar) di Mobile --- */
    .post-featured-large {
        /* Dibiarkan block, akan otomatis stacked (tersusun ke bawah) */
        background: none;
        border: none;
        box-shadow: none;
        border-radius: 0;
        margin-bottom: 4px;
    }
    .post-thumbnail-featured img {
        border-radius: 4px; /* Sudut gambar tumpul */
    }
    .post-content-featured {
        padding: 10px 0 0 0;
    }
    .post-content-featured .entry-title {
        font-size: 1rem; /* Judul lebih kecil di mobile */
        line-height: 1.2;
    }

    /* --- Daftar Postingan Biasa di Mobile --- */
    .post-list-item {
        align-items: flex-start; /* Ganti dari center ke start */
    }
    .post-content-list {
        order: 1; /* Pastikan teks di kiri */
    }
    .post-thumbnail-list {
        order: 2; /* Pastikan gambar di kanan */
        width: 100px; /* Perkecil lagi gambar thumbnail */
        height: auto;
    }
    .post-content-list .entry-title {
        font-size: 0.9rem; /* Perkecil judul daftar */
    }

    /* --- Sidebar Widget di Mobile --- */
    .widget {
			
        padding: 15px; /* Kurangi padding widget di mobile */
    }
    .widget_recent_entries li,
    .widget_recent_posts li {
        padding-left: 40px; /* Kurangi padding nomor agar tidak terlalu jauh */
    }
    .widget_recent_entries li::before,
    .widget_recent_posts li::before {
        font-size: 1.8rem; /* Perkecil ukuran nomor */
    }
	
}


/* --- Gaya Khusus untuk Widget Daftar Bernomor --- */

.widget {
    margin-bottom: 30px !important;
}

.widget-title {
    display: flex; /* Mengaktifkan mode flexbox */
    align-items: center; /* Membuat judul dan garis sejajar secara vertikal */
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 0;
    margin-bottom: 20px;
    width: 100%; /* Pastikan kontainer mengambil lebar penuh */
}

/* Membuat garis memanjang di samping judul */
.widget-title::after {
    content: '';
    flex-grow: 1; /* KUNCI: Membuat garis mengisi sisa ruang */
    height: 2px; /* Tebal garis */
    background-color: #007bff; /* Warna garis biru */
    margin-left: 15px; /* Jarak antara teks judul dan garis */
}

.widget_simpelqu_random_numbered_posts ul {
    list-style: none;
    padding: 0;
    margin: 0;
    counter-reset: numbered-posts-counter; /* Mulai penghitungan nomor */
}

.widget_simpelqu_random_numbered_posts li {
    position: relative;
    padding-left: 40px; /* Ruang untuk nomor */
    padding-bottom: 10px;
    margin-bottom: 10px;
    border-bottom: 1px solid #f0f0f0;
	
}

.widget_simpelqu_random_numbered_posts li:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.widget_simpelqu_random_numbered_posts li::before {
    counter-increment: numbered-posts-counter;
    content: "#" counter(numbered-posts-counter);
    position: absolute;
    left: 0;
    top: 0;
    font-size: 1.5rem;
    font-weight: 600;
    color: #808080;
    line-height: 1;
	
}

.widget_simpelqu_random_numbered_posts li a {
    text-decoration: none;
    color: #333;
    font-weight: 600;
    font-size: 0.95rem;
	
}

.widget_simpelqu_random_numbered_posts li a:hover {
    color: #007bff;
}



/* --- Penyesuaian Widget Bernomor di Mobile --- */
@media (max-width: 768px) {
	#secondary .widget {
    margin-bottom: 30px !important;
}
	
    /* Penyesuaian Widget Bernomor di Mobile */
    .widget-title {
        font-size: 0.9rem; /* Judul widget sedikit lebih kecil di mobile */
    }

    .widget_simpelqu_random_numbered_posts li {
        display: flex;
        align-items: flex-start;
        padding-left: 0;
        gap: 10px; /* Jarak antara nomor dan teks sedikit ditambah */
        padding-bottom: 12px;
        margin-bottom: 12px;
    }

    .widget_simpelqu_random_numbered_posts li::before {
        position: static;
        flex-shrink: 0;
        font-size: 1.5rem;
        top: auto;
        left: auto;
        color: #b0b0b0;
        line-height: 1.2;
    }

    .widget_simpelqu_random_numbered_posts li a {
        flex-grow: 1;
        font-size: 0.95rem;
        line-height: 1.4;
        color: #444;
    }

  /* Atur ulang widget supaya center */
  .widget {
      margin: 0 auto !important;
      padding: 0 0px !important; /* biar ada jarak kiri-kanan */
      box-sizing: border-box;
  }
}
	
/* ==========================================================================
   Pagination Styles (Corrected)
   ========================================================================== */

/* Wrapper utama dari the_posts_pagination() */
.navigation.pagination {
    margin: 40px 0 20px 0;
    text-align: center;
}

.navigation.pagination .nav-links {
    display: inline-flex;
    gap: 5px;
}

/* Gaya dasar untuk setiap tombol nomor, termasuk 'Next' dan 'Prev' */
.pagination .page-numbers {
    display: inline-block;
    padding: 10px 16px;
    border: 1px solid #ddd;
    background-color: #fff;
    text-decoration: none;
    color: #555;
    border-radius: 4px;
    transition: background-color 0.2s, color 0.2s;
    font-size: 0.8rem;
    font-weight: 500;
}

/* Gaya untuk nomor halaman yang sedang aktif */
.pagination .page-numbers.current {
    background-color: #007bff;
    color: #fff;
    border-color: #007bff;
    font-weight: bold;
}

/* Gaya untuk titik-titik [...] */
.pagination .page-numbers.dots {
    border: none;
    background: none;
    padding: 10px 5px;
}

/* Gaya saat kursor mouse menyentuh tombol nomor */
.pagination a.page-numbers:hover {
    background-color: #f5f5f5;
    color: #333;
    border-color: #ccc;
    text-decoration: none;
}

/* ==========================================================================
   Footer Styles (Perbaikan)
   ========================================================================== */
.site-footer {
    background-color: #0d6efd;
    color: #ffffff;
    padding: 20px 0;
    font-size: 0.9rem;
}

.footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.footer-copyright {
    text-align: left;
}

.footer-navigation ul.footer-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap; /* KUNCI 1: Izinkan menu untuk turun baris */
    gap: 14px;
}

.footer-navigation a {
    color: #ffffff;
    text-decoration: none;
    opacity: 0.9;
    transition: opacity 0.2s;
}

.footer-navigation a:hover {
    opacity: 1;
    text-decoration: none;
}

/* Penyesuaian untuk mobile */
@media (max-width: 768px) {
    .footer-inner {
        flex-direction: column; /* Tumpuk ke bawah di mobile */
        justify-content: center; /* Posisikan di tengah */
    }
    .footer-copyright {
        text-align: center; /* Teks copyright rata tengah di mobile */
    }
    
/* KUNCI 2: Atur agar menu di mobile rapi saat turun baris */
    .footer-navigation ul.footer-menu {
        justify-content: center;
        flex-wrap: wrap;
        gap: 8px 12px;      /* Jarak vertikal & horizontal DIPERKECIL */
    }

    /* Tambahan: Perkecil ukuran font link di footer mobile */
    .footer-navigation a {
        font-size: 0.95em; /* Ukuran font DIPERKECIL */
    }
}

/* ==========================================================================
   Gaya Widget "Berita Lainnya"
   ========================================================================== */

/* Nama kelas ini diambil dari ID dasar widget: 'simpelqu_berita_lainnya' */
.widget_simpelqu_berita_lainnya ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.widget_simpelqu_berita_lainnya li {
    padding-bottom: 15px;
    margin-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
}

.widget_simpelqu_berita_lainnya li:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.recent-post-item {
    display: flex;
    gap: 15px; /* Jarak antara gambar dan teks */
    align-items: center;
}

.recent-post-thumbnail {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
}

.recent-post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
}

.recent-post-text {
    flex-grow: 1;
}

.recent-post-title {
    margin: 0 0 5px 0;
    font-size: 0.95rem;
    line-height: 1.4;
    font-weight: 600;
}

.recent-post-title a {
    color: #333;
    text-decoration: none;
}
.recent-post-title a:hover {
    color: #007bff;
}

.recent-post-date {
    font-size: 0.8rem;
    color: #888;
}

/* --- TAMBAHKAN KODE INI KE style.css ANDA --- */

/* 1. Layout Utama (Konten Kiri, Sidebar Kanan) */
.container {
    display: flex;
    flex-wrap: wrap;
    gap: 30px; /* Jarak antara konten dan sidebar */
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 15px;
}

#primary {
    flex: 1; /* Konten utama akan mengambil sisa ruang */
    min-width: 65%; /* Lebar minimum konten utama */
}

#secondary {
    flex-basis: 300px; /* Lebar tetap untuk sidebar */
    flex-shrink: 0;
}

/* Responsif untuk layar kecil */
@media (max-width: 900px) {
    #primary {
        min-width: 100%;
    }
    #secondary {
        flex-basis: 100%;
    }
}


/* ==========================================================================
   STYLE LENGKAP UNTUK SINGLE POST (SUDAH DIPERBAIKI)
   ========================================================================== */

/* --- Umum --- */
.entry-header, .entry-content, .entry-footer {
    margin-bottom: 2em;
}

/* --- Breadcrumb --- */
.breadcrumbs {
    font-size: 0.9em;
    color: #777;
    margin-bottom: 1em;
}
.breadcrumbs a {
    color: #555;
    text-decoration: none;
}
.breadcrumbs a:hover {
    text-decoration: underline;
}

/* --- Judul Artikel --- */
.entry-title {
    font-size: 2.5em;
    margin-bottom: 0.5em;
    line-height: 1.2;
}

/* --- Meta Info (Penulis, Tanggal, Views) --- */
.entry-meta {
    margin-bottom: 1.5em;
    font-size: 0.9em;
    color: #555;
}
.meta-line-1 {
    margin-bottom: 5px;
}
.meta-author a {
    color: #333;
    font-weight: bold;
    text-decoration: none;
}
.meta-author a:hover {
    text-decoration: underline;
}
.meta-line-2 {
    font-size: 0.95em;
    color: #777;
}

/* --- Tombol Social Share --- */
.social-share-container {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
    margin: 1em 0;
}
.share-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    color: #ffffff;
    font-size: 13px;
    text-decoration: none;
    transition: transform 0.2s ease-out, opacity 0.2s;
}
.share-btn:hover {
    transform: translateY(-3px);
    opacity: 0.85;
}
.share-btn.facebook  { background-color: #1877F2; }
.share-btn.twitter   { background-color: #000000; }
.share-btn.whatsapp  { background-color: #25D366; }
.share-btn.telegram  { background-color: #2AABEE; }

/* --- Gambar Utama & Caption --- */
.post-thumbnail {
    margin-bottom: 1.5em;
}
.post-thumbnail img {
    width: 100% !important;
    height: auto !important;
    display: block;
    aspect-ratio: 16 / 9 !important;
    object-fit: cover !important;
    border-radius: 2px !important;
}
.post-thumbnail .wp-caption-text {
    font-size: 0.9em;
    color: #555;
    text-align: left;
    margin-top: 0.75em;
    font-style: normal;
}

/* --- Isi Konten Artikel --- */
.entry-content {
    line-height: 1.7;
}
.entry-content p {
    margin-bottom: 1.5em;
}

/* KUNCI PERBAIKAN: Mengatur gambar di dalam konten */
.entry-content img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 1.5em auto; /* Jarak atas-bawah dan otomatis di tengah */
    border-radius: 5px;
}
.entry-content .aligncenter {
    margin-left: auto;
    margin-right: auto;
}
.entry-content .alignleft {
    float: left;
    margin-right: 1.5em;
}
.entry-content .alignright {
    float: right;
    margin-left: 1.5em;
}
.entry-content .wp-caption {
    max-width: 100%;
}
.entry-content .wp-caption-text {
    font-size: 0.9em;
    color: #6c757d;
    text-align: center;
    margin-top: 0.5em;
}

/* --- Page Break () --- */
.page-links {
    margin: 30px 0;
    font-size: 14px;
}
.page-links span {
    background: #f5f5f5;
    padding: 6px 12px;
    margin: 0 3px;
    border-radius: 3px;
}
.page-links a span {
    background: #007bff;
    color: #fff;
}

/* --- Footer Artikel (Tags & Share Bawah) --- */
.entry-footer {
    margin-top: 40px;
    padding-top: 2px;
}
.tags-list a {
    display: inline-block;
    margin: 3px;
    padding: 6px 12px;
    background: #f2f2f2;
    color: #444;
    border-radius: 3px;
    text-decoration: none;
    font-size: 13px;
}
.tags-list a:hover {
    background: #007bff;
    color: #fff;
}
.share-container-bottom {
    text-align: right;
}

/* --- Navigasi Post Sebelumnya & Selanjutnya --- */
.post-navigation {
    margin: 2em 0;
}
.post-navigation .nav-links {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}
.post-navigation .nav-links > div {
    flex-basis: 48%;
}
.post-navigation .nav-previous {
    text-align: left;
}
.post-navigation .nav-next {
    text-align: right;
}
.post-navigation .nav-subtitle {
    display: block;
    font-size: 0.9em;
    color: #777;
    margin-bottom: 0.25em;
}
.post-navigation a {
    text-decoration: none;
}
.post-navigation .nav-title {
    font-weight: bold;
    color: #333;
    transition: color 0.2s ease-in-out;
}
.post-navigation a:hover .nav-title {
    color: #0073aa;
}


/* ==========================================================================
   STYLE KOMENTAR
   ========================================================================== */
#comments {
    margin-top: 2.5em;
    padding-top: 2em;
    border-top: 1px solid #eee;
    font-size: 0.9em;
}
.comments-title,
.comment-reply-title {
    font-size: 1.3em;
    font-weight: 600;
    color: #212529;
    margin-bottom: 1.2em;
}
.comment-form {
    background-color: #fafafa;
    padding: 1.2em 1.5em;
    border-radius: 6px;
    border: 1px solid #e5e5e5;
}
.comment-form label {
    display: block;
    margin-bottom: 4px;
    font-weight: 500;
    font-size: 0.8em;
    color: #555;
}
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: #fff;
    font-size: 0.9em;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.comment-form input:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 2px rgba(0,115,170,0.1);
}
.comment-form .form-submit {
    margin-top: 1em;
}
.comment-form .submit {
    background-color: #0073aa;
    color: #fff;
    border: none;
    padding: 10px 22px;
    border-radius: 4px;
    font-size: 0.9em;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
}
.comment-form .submit:hover {
    background-color: #005f88;
}
.comment-notes,
.logged-in-as {
    font-size: 0.75em;
    color: #777;
    margin-bottom: 1em;
}
.comment-list {
    list-style: none;
    padding: 0;
    margin: 2em 0 0 0;
}
.comment-list .comment {
    padding-bottom: 1.2em;
    margin-bottom: 1.2em;
    border-bottom: 1px solid #f0f0f0;
}
.comment-list .comment:last-child {
    margin-bottom: 0;
    border-bottom: none;
}
.comment-body {
    display: flex;
    gap: 12px;
}
.comment-author .avatar {
    border-radius: 50%;
    width: 40px;
    height: 40px;
}
.comment-content-wrapper {
    flex: 1;
}
.comment-author .fn {
    font-weight: 600;
    font-size: 0.95em;
    color: #333;
}
.comment-metadata a {
    font-size: 0.7em;
    color: #888;
    text-decoration: none;
    margin-left: 6px;
}
.comment-metadata a:hover {
    text-decoration: underline;
}
.comment-content p {
    line-height: 1.6;
    margin-top: 0.4em;
    font-size: 0.9em;
    color: #444;
}
.reply a {
    display: inline-block;
    margin-top: 0.4em;
    font-size: 0.75em;
    font-weight: 600;
    color: #0073aa;
    text-decoration: none;
    padding: 3px 8px;
    border: 1px solid #ddd;
    border-radius: 3px;
    transition: background 0.2s ease, border-color 0.2s ease;
}
.reply a:hover {
    background-color: #f5f5f5;
    border-color: #ccc;
}
.comment-list .children {
    list-style: none;
    padding-left: 1.5em;
    margin-top: 1em;
    border-left: 2px solid #eee;
}


/* ==========================================================================
   STYLE RESPONSIVE UNTUK SINGLE POST (MOBILE)
   ========================================================================== */

@media screen and (max-width: 768px) {
    
    .single-post .site-content {
        padding-left: 8px;
        padding-right: 8px;
        margin-top: 0;
        padding-top: 7px;
    }

    /* --- Heading di dalam konten (H2, H3, dst) --- */
    .entry-content h2,
    .entry-content h3,
    .entry-content h4,
    .entry-content h5,
    .entry-content h6 {
        line-height: 1.4;
        font-weight: 700;
        color: #212529;
    }
    .entry-content h2 { font-size: 20px; }
    .entry-content h3 { font-size: 17px; }
    .entry-content h4 { font-size: 15px; }
    .entry-content h5,
    .entry-content h6 { font-size: 14px; }
    
    /* --- Font & Spacing --- */
    .entry-title {
        font-size: 1.5em;
        line-height: 1.3;
    }
    .entry-header, .entry-content, .entry-footer {
        margin-bottom: 1.5em;
    }
    .entry-content p {
        margin-bottom: 1.2em;
    }
    
    /* --- Gambar Utama Full-width --- */
    .post-thumbnail {
        width: 100vw;
        max-width: 100vw;
        position: relative;
        left: 50%;
        right: 50%;
        margin-left: -50vw;
        margin-right: -50vw;
    }
    .post-thumbnail img {
        border-radius: 0 !important;
    }
    .post-thumbnail .wp-caption-text {
        padding-left: 15px;
        padding-right: 15px;
        font-size: 0.7em;
        margin-top: 0.8em;
    }
	
	/* Mengatur caption untuk gambar di dalam artikel */
.entry-content .wp-caption-text {
    font-size: 0.8em;  /* Ukuran font diperkecil */
    text-align: left;  /* Teks dibuat rata kiri */
    color: #6c757d;
    font-style: normal; /* Gaya miring untuk caption */
}

    /* --- Navigasi Postingan --- */
    .post-navigation .nav-links {
        flex-direction: column;
        gap: 15px;
    }
    .post-navigation .nav-previous,
    .post-navigation .nav-next {
        text-align: left;
    }

    /* --- Komentar --- */
    .comment-form {
        padding: 1.2em;
    }
    .comments-title,
    .comment-reply-title {
        font-size: 1.2em;
    }
    .comment-list .children {
        padding-left: 1.2em;
    }
}

/* =================================================================== */
/* === STYLING KHUSUS UNTUK TEMPLATE HALAMAN (PAGE.PHP) === */
/* =================================================================== */

/* 1. Layout Dua Kolom untuk Desktop */
.page-container {
    display: flex;
    gap: 40px; /* Jarak antara sidebar kiri dan konten kanan */
    padding: 30px 0; /* Jarak atas dan bawah */
}

.page-sidebar {
    flex-shrink: 0; /* Mencegah sidebar menyusut */
    width: 280px;  /* Lebar sidebar kiri */
}

.page-content-area {
    flex-grow: 1; /* Konten kanan mengambil sisa ruang */
    min-width: 0; /* Mencegah konten meluber */
}

/* 2. Styling Menu Navigasi di Sidebar Kiri */
.page-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.page-navigation li a {
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    padding: 14px 15px; 
    text-decoration: none;
    color: #333;
    border-bottom: 1px solid #f0f0f0; 
    transition: background-color 0.2s, color 0.2s;
    font-weight: 600; 
    font-size: 15px;
}

.page-navigation li:last-child a {
    border-bottom: none; 
}

.page-navigation li a:hover {
    background-color: #f9f9f9;
    color: #0d6efd;
}

/* 3. Menambahkan Icon Panah (Chevron) di Kanan */
.page-navigation li a::after {
    content: '\f054'; 
    font-family: 'Font Awesome 6 Free'; 
    font-weight: 900; 
    font-size: 13px;
    color: #aaa;
    transition: color 0.2s;
}

.page-navigation li a:hover::after {
    color: #0d6efd;
}

/* 4. Memberi Tanda pada Halaman yang Sedang Aktif */
.page-navigation li.current_page_item > a {
    color: #0d6efd; 
    background-color: #fff;
    font-weight: 700;
}

.page-navigation li.current_page_item > a::after {
    color: #0d6efd; 
}


/* 5. Aturan Responsif (Desktop & Mobile) */

/* 5.1. Di Desktop (layar 901px ke atas), SEMBUNYIKAN judul */
@media (min-width: 901px) {
    .page .entry-header {
        display: none;
    }
}

/* 5.2. Di Mobile (layar 900px ke bawah) */
@media (max-width: 900px) {
	    body.page .site-content {
        padding-top: 0; /* Atur jarak atas yang diinginkan */
        margin-top: 0;
    }
	
    /* Sembunyikan sidebar kiri */
    .page-sidebar {
        display: none; 
    }

    .page-container {
        padding: 15px 0; /* Kurangi padding di mobile */
    }

    /* Tampilkan dan atur gaya judul */
    .page .entry-header {
        margin-bottom: 15px; 
        padding: 10px 0 0 0; 
    }
    
    .page .entry-title {
        font-size: 20px; 
        line-height: 1.3; 
        margin: 0; 
    }
}



/* =================================================================== */
/* === PENYESUAIAN DESKTOP & TYPOGRAPHY (AGUSTUS 2025) === */
/* =================================================================== */

/* 1. Perbaikan untuk Template Halaman (Desktop) */
@media (min-width: 901px) {

	
    /* 1.1. Membuat Sidebar Kiri menjadi 'Sticky' */
    .page-sidebar {
        position: -webkit-sticky; /* Untuk kompatibilitas browser lama */
        position: sticky;
        top: 20px; /* Jarak dari atas layar saat 'menempel' */
        align-self: flex-start; /* Penting untuk 'sticky' agar bekerja dengan baik di dalam flexbox */
    }

    /* 1.2. Menyejajarkan Posisi Sidebar dengan Konten */
    .page-navigation {
        padding-top: 10px; /* Menurunkan menu agar sejajar. Anda bisa ubah angka 10px ini (misal: 12px atau 8px) agar pas sempurna. */
    }

}


/* --- GANTI BLOK CSS LAMA UNTUK KOTAK PROFIL DENGAN INI --- */

/* --- Kotak Profil Penulis --- */
.author-profile-box {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    background-color: #fff; /* Latar diubah jadi putih bersih */
    padding: 1.5em;
    border: none; /* Border dihilangkan */
    border-radius: 8px;
    margin-bottom: 3em;
}

.author-avatar img {
    border-radius: 50%;
    width: 100px;
    height: 100px;
}

/* --- GANTI BLOK CSS INI DI BAGIAN PROFIL PENULIS --- */

.author-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.8em; /* KUNCI: Memberi jarak seragam antar elemen */
}

.author-profile-label {
    font-size: 0.8em;
    font-weight: 400;
    color: #6c757d;
    text-transform: none;
    letter-spacing: normal;
    margin: 0; /* Reset margin */
}

.author-title {
    font-size: 20px;
    font-weight: 700;
    color: #000;
    margin: 0; /* Reset margin */
    line-height: 1.2;
}

/* Wadah untuk jumlah artikel */
.author-meta {
    margin: 0; /* Reset margin */
}

.author-post-count {
    font-size: 0.9em;
    font-weight: 400;
    color: #555;
    background-color: transparent;
    padding: 0;
}

.author-bio {
    display: block;
    font-size: 0.9em;
    color: #495057;
    line-height: 1.6;
    margin: 0; /* Reset margin */
}

/* --- Ikon Sosial Media Penulis --- */
.author-social-links {
    display: flex;
    gap: 4px; /* Jarak antar ikon diperkecil */
}

.author-social-links .social-link {
    width: 27px;
    height: 27px;
    font-size: 12px;
    /* Sisanya sama */
    display: flex; justify-content: center; align-items: center; border-radius: 50%;
    color: #fff; text-decoration: none; transition: transform 0.2s, opacity 0.2s;
}
.author-social-links .social-link:hover {
    transform: translateY(-2px);
    opacity: 0.85;
}
.social-link.facebook  { background-color: #1877F2; }
.social-link.twitter   { background-color: #000000; }
.social-link.instagram { background-color: #E4405F; }
.social-link.youtube   { background-color: #FF0000; }
.social-link.whatsapp  { background-color: #25D366; }
.social-link.telegram  { background-color: #2AABEE; } /* Menambahkan Telegram */

/* --- Judul "Tulisan Terbaru" --- */
.section-title {
    font-size: 1em; /* Diperkecil */
    font-weight: 700;
    margin-bottom: 1.5em;
    text-transform: uppercase;
    color: #333;
    display: flex;
    align-items: center;
    border-bottom: none;
    padding-bottom: 0;
}

.section-title::before {
    content: ''; display: inline-block; width: 5px;
    height: 1.2em; background-color: #0073aa; margin-right: 10px;
}

/* --- GANTI BLOK CSS LAMA UNTUK DAFTAR ARTIKEL DENGAN INI --- */

/* --- Daftar Artikel Penulis --- */
.author-posts-list {
    /* Wadah untuk daftar artikel */
}

.author-post-item {
    display: flex;
    gap: 25px;
    margin-bottom: 1.8em;
    padding-bottom: 1.8em;
    border-bottom: 1px solid #f0f0f0;
}
.author-post-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.post-thumbnail-archive img {
    width: 220px;
    height: 140px;
    object-fit: cover;
    border-radius: 5px;
}


.entry-title-archive {
    font-size: 1.3em;
    line-height: 1.4;
    font-weight: 700;
    margin: 0 0 0.5em 0;
}
.entry-title-archive a {
    text-decoration: none;
    color: #212529;
}
.entry-title-archive a:hover {
    color: #0073aa;
}

/* Meta info (Kategori & Tanggal) */
.entry-meta-archive {
    display: flex;
    align-items: baseline;
    gap: 8px;
    font-size: 0.8em;
    font-weight: 400;
    color: #6c757d;
    margin-top: auto;
}

.entry-meta-archive .post-category a {
    font-weight: inherit;
    color: #555;
    text-decoration: none;
    text-transform: uppercase;
}
.entry-meta-archive .post-category a:hover {
    color: #0073aa;
}

/* --- Navigasi Halaman (Pagination) --- */
.pagination {
    margin-top: 2em; text-align: center;
}
.pagination .nav-links {
    display: flex; justify-content: center; gap: 5px;
}
.pagination .page-numbers {
    display: inline-block; padding: 8px 14px; border: 1px solid #dee2e6;
    border-radius: 4px; text-decoration: none; color: #0073aa; background-color: #fff;
}
.pagination .page-numbers:hover {
    background-color: #f8f9fa;
}
.pagination .page-numbers.current {
    background-color: #0073aa; color: #fff; border-color: #0073aa;
}
.pagination .dots {
    align-self: flex-end;
}

/* ==========================================================================
   STYLE RESPONSIVE FINAL UNTUK HALAMAN PENULIS (GAYA LIST)
   ========================================================================== */

@media screen and (max-width: 768px) {

	    body.author .site-content {
        padding-left: 7px;
        padding-right: 7px;
    
}
    /* --- Kotak Profil Penulis --- */
    .author-profile-box {
        flex-direction: column;
        text-align: center;
        gap: 15px;
        padding: 1.2em;
    }
    .author-avatar {
        margin: 0 auto;
    }
    .author-avatar img {
        width: 90px;
        height: 90px;
    }
    .author-title {
        font-size: 18px;
    }
    .author-profile-label {
        display: none;
    }
    .author-post-count {
        font-size: 12px;
    }
    .author-info {
        gap: 0.6em;
    }
    .author-social-links {
        justify-content: center;
    }

    /* --- Daftar Artikel Penulis (Gaya List) --- */
    .author-post-item {
        flex-direction: row; /* Kunci: Membuat gambar dan teks sejajar */
        align-items: center; /* Membuat gambar dan teks di tengah secara vertikal */
        gap: 15px;
    }

    .post-thumbnail-archive img {
        width: 80px;  /* Ukuran gambar dibuat kecil dan tetap */
        height: 80px; /* Dibuat persegi agar rapi */
        aspect-ratio: 1 / 1; /* Memaksa gambar jadi persegi */
        object-fit: cover;
    }

    .entry-title-archive {
        font-size: 1em; /* Ukuran judul disesuaikan untuk list */
        line-height: 1.4;
        font-weight: 600;
        margin-bottom: 5px;
    }
    
    .entry-meta-archive {
        font-size: 0.8em;
    }

    /* --- Navigasi Halaman (Pagination) --- */
    .pagination .page-numbers {
        padding: 6px 12px;
        font-size: 0.9em;
    }
}

/* ==========================================================================
   STYLE LENGKAP UNTUK HALAMAN ARSIP (archive.php)
   ========================================================================== */

/* --- Judul Halaman Arsip --- */
.page-header {
    margin-bottom: 2em;
    padding-bottom: 1em;
    border-bottom: 2px solid #e9ecef;
}

.page-title {
    font-size: 1.8em;
    font-weight: 700;
    color: #212529;
}

.archive-description {
    margin-top: 0.5em;
    font-size: 0.95em;
    color: #6c757d;
}

/* Style untuk judul arsip kustom */
.custom-archive-title {
    font-size: 1.1em;
    font-weight: 400;
    color: #555;
}

/* Style untuk nama kategori/tag yang ditebalkan */
.custom-archive-title strong {
    font-weight: 700;
    color: #000;
}


/* --- Daftar Artikel (Style Bersama dengan author.php) --- */
.author-post-item,
.archive-post-item {
    display: flex;
    gap: 25px;
    margin-bottom: 1.8em;
    padding-bottom: 1.8em;
    border-bottom: 1px solid #f0f0f0;
}
.author-post-item:last-child,
.archive-post-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.post-thumbnail-archive img {
    width: 220px;
    height: 140px;
    object-fit: cover;
    border-radius: 5px;
}

.post-content-archive {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.entry-title-archive {
    font-size: 1.3em;
    line-height: 1.4;
    font-weight: 700;
    margin: 0 0 0.5em 0;
}
.entry-title-archive a {
    text-decoration: none;
    color: #212529;
}
.entry-title-archive a:hover {
    color: #0073aa;
}

.entry-meta-archive {
    display: flex;
    align-items: baseline;
    gap: 8px;
    font-size: 0.8em;
    font-weight: 400;
    color: #6c757d;
    margin-top: auto;
}

.entry-meta-archive .post-category a {
    font-weight: inherit;
    color: #555;
    text-decoration: none;
    text-transform: uppercase;
}
.entry-meta-archive .post-category a:hover {
    color: #0073aa;
}


/* --- Navigasi Halaman (Pagination) --- */
.pagination {
    margin-top: 2em;
    text-align: center;
}
.pagination .nav-links {
    display: flex;
    justify-content: center;
    gap: 5px;
}
.pagination .page-numbers {
    display: inline-block;
    padding: 8px 14px;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    text-decoration: none;
    color: #0073aa;
    background-color: #fff;
}
.pagination .page-numbers:hover {
    background-color: #f8f9fa;
}
.pagination .page-numbers.current {
    background-color: #0073aa;
    color: #fff;
    border-color: #0073aa;
}

/* ==========================================================================
   PERBAIKAN TAMPILAN HALAMAN ARSIP DI MOBILE
   ========================================================================== */

@media screen and (max-width: 768px) {

    /* 1. Membuat layout lebih penuh & NAIK KE ATAS */
    body.archive .site-content {
        padding-left: 7px;
        padding-right: 7px;
        padding-top: 2px; /* Atur jarak atas yang diinginkan */
        margin-top: 0;
    }

    /* 2. Menghilangkan garis di bawah judul & mengurangi jarak */
    .page-header {
        margin-bottom: 1.5em;
        padding-bottom: 0;      /* Hapus padding bawah */
        border-bottom: none;    /* Hapus garis bawah */
    }

    /* 3. Mengecilkan font judul arsip */
    .page-title,
    .custom-archive-title {
        font-size: 16px;
        line-height: 1.4;
        text-align: left;
    }
    /* Style list di mobile berlaku untuk archive dan author */
    .author-post-item,
    .archive-post-item {
        flex-direction: row;
        align-items: center;
        gap: 10px;
			margin-bottom: 1rem;
			padding-bottom: 1rem;
    }
    .post-thumbnail-archive img {
        width: 90px;
        height: 85px;
        aspect-ratio: 1 / 1;
    }
    .entry-title-archive {
        font-size: 1em;
    }
    .entry-meta-archive {
        font-size: 0.75em;
    }
}

/* =======================================================
   PERBAIKAN LAYOUT UNTUK HALAMAN 404
   ======================================================= */

/* Kontainer utama yang membungkus konten dan sidebar */
.content-area-container {
    display: flex;
    gap: 30px; /* Jarak antara konten utama dan sidebar */
}

/* Area konten utama (kiri) */
.site-main {
    flex: 1; /* Mengambil sisa ruang yang tersedia */
}

/* Sidebar (kanan) */
.widget-area {
    flex-basis: 300px; /* Menetapkan lebar sidebar */
    flex-shrink: 0;
}

/* =======================================================
   STYLE UNTUK HALAMAN 404 (Modern di Dalam Layout)
   ======================================================= */

/* Kontainer utama untuk konten 404 */
.error-404-content-wrapper {
    text-align: center;
    padding: 40px 20px 60px 20px; /* Jarak atas dan bawah */
}

/* Teks "404" */
.error-code {
    font-family: 'Oswald', sans-serif;
    font-size: 150px;
    font-weight: 700;
    line-height: 1;
    color: #333;
}

/* Teks "Ooops!" */
.error-oops {
    font-family: 'Oswald', sans-serif;
    font-size: 42px;
    font-weight: 700;
    line-height: 1;
    color: #e53935; /* Warna merah */
    margin-top: -10px;
}

/* Judul "Halaman Tidak Ditemukan" */
.error-title {
    font-family: 'Roboto', sans-serif;
    font-size: 24px;
    font-weight: 600;
    color: #444;
    margin-top: 25px;
    margin-bottom: 10px;
}

/* Subtitle "Kemungkinan..." */
.error-subtitle {
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    color: #888;
    margin-top: 0;
    margin-bottom: 30px;
}

/* Tombol "Lihat konten lainnya" */
.error-button {
    display: inline-block;
    background-color: #0073aa;
    color: #fff;
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    font-weight: bold;
    text-decoration: none;
    padding: 14px 35px;
    border-radius: 50px; /* Bentuk kapsul */
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.error-button:hover {
    background-color: #0073aa;
    transform: translateY(-2px);
}

/* Penyesuaian ukuran font di mobile */
@media (max-width: 768px) {
	
	    /* Di layar kecil, buat layout kembali menumpuk */
    .content-area-container {
        flex-direction: column;
    }

    .widget-area {
        flex-basis: auto; /* Lebar sidebar kembali normal */
        margin-top: 40px;
    }
    .error-code {
        font-size: 100px;
    }
    .error-oops {
        font-size: 32px;
    }
    .error-title {
        font-size: 20px;
    }
    .error-subtitle {
        font-size: 14px;
    }
    .error-button {
        padding: 12px 30px;
        font-size: 14px;
    }
}

/* ==========================================================================
   STYLE UNTUK HALAMAN PETA SITUS (SITEMAP)
   ========================================================================== */

/* Layout utama peta situs menggunakan flexbox */
.sitemap-container {
    display: flex;
    flex-wrap: wrap;
    gap: 40px; /* Jarak antar kolom */
    margin-top: 2em;
}

/* Setiap bagian (Halaman, Postingan, dll) menjadi satu kolom */
.sitemap-section {
    flex: 1; /* Setiap kolom mengambil ruang yang sama */
    min-width: 250px; /* Lebar minimum sebelum pindah baris */
}

.sitemap-title {
    font-size: 1.5em;
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 1em;
    padding-bottom: 0.5em;
    border-bottom: 2px solid #e9ecef;
}

/* Styling untuk daftar list */
.sitemap-section ul {
    list-style-type: none;
    padding-left: 0;
    margin: 0;
}

.sitemap-section li {
    margin-bottom: 0.8em;
}

.sitemap-section a {
    text-decoration: none;
    color: #0073aa;
}

.sitemap-section a:hover {
    text-decoration: underline;
}

/* ==========================================================================
   STICKY SIDEBAR UNTUK SINGLE POST DI DESKTOP
   ========================================================================== */

@media screen and (min-width: 901px) {
    
    /* Pastikan kontainer utama mendukung layout sticky */
    .site-content {
        align-items: flex-start;
    }

    /* Membuat sidebar menjadi sticky */
    #secondary { /* #secondary adalah ID default untuk sidebar */
        position: -webkit-sticky; /* Untuk browser Safari lama */
        position: sticky;
        top: 20px; /* Jarak dari atas layar saat 'menempel' */
    }

}

/* ==========================================================================
   Mobile Sticky Menu Fix
   ========================================================================== */
@media (max-width: 768px) {

    /* Pastikan tombol hamburger di atas konten lain */
    .mobile-nav-toggle {
        position: relative;
        z-index: 2001;
    }

    /* Kontainer menu mobile muncul fixed (bukan ikut sticky header) */
    .mobile-nav-container {
        position: fixed;          /* tempel ke layar */
        top: 45px;                /* sesuaikan tinggi header (ubah kalau header lebih tinggi/rendah) */
        left: 0;
        width: 100%;
        max-height: calc(100vh - 60px); /* biar bisa scroll kalau isi panjang */
        overflow-y: auto;
        display: none;
        z-index: 2000;            /* lebih tinggi dari header */
        background-color: #fff;   /* kasih background biar jelas */
        border-top: 1px solid #eee;
        box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    }

    /* Saat toggle aktif */
    .mobile-nav-container.active {
        display: block;
    }
}
