/*
 Theme Name:   Journal Theme
 Theme URI:    https://sub7journal.com
 Description:  Custom Child Theme untuk GeneratePress dengan layout artikel khusus.
 Author:       Custom Developer
 Template:     generatepress
 Version:      1.0.2
 Text Domain:  journaltheme
*/

/* ==========================================
   RESET & UTILITIES
   ========================================== */
body {
    background-color: #FFFFFF !important;
}

/* Sembunyikan Header & Navigasi Asli Bawaan GeneratePress */
.site-header, 
.main-navigation,
.site-navigation { 
    display: none !important; 
}

/* ==========================================
   FIXED HEADER BAR
   ========================================== */
.journal-fixed-header {
    background-color: #FFFFFF;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 70px;
    z-index: 9990;
    border-bottom: 1px solid #dee2e6;
}
.header-inner-container {
    max-width: 720px;
    margin: 0 auto;
    height: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 15px;
}
.header-fixed-spacer {
    height: 70px;
    display: block;
}
.hamburger-toggle-btn {
    position: absolute;
    left: 15px;
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    padding: 0;
}
.hamburger-toggle-btn span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: #212529;
    border-radius: 2px;
}
.header-center-logo img {
    display: block;
    height: 30px;
    width: auto;
    object-fit: contain;
}

/* ==========================================
   SIDEBAR DRAWER MENU
   ========================================== */
.journal-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.45);
    z-index: 9997;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}
.journal-menu-overlay.is-active {
    opacity: 1;
    visibility: visible;
}
.journal-sidebar-menu {
    position: fixed;
    top: 0;
    left: -320px;
    width: 320px;
    height: 100%;
    background-color: #FFFFFF;
    z-index: 9999;
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
    transition: left 0.3s ease;
    overflow-y: auto;
}
.journal-sidebar-menu.is-active {
    left: 0;
}
.sidebar-header-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
    padding: 0 20px;
    border-bottom: 1px solid #dee2e6;
}
.sidebar-title {
    font-size: 1rem;
    font-weight: 700;
    color: #212529;
    border-left: 4px solid #cb0000;
    padding-left: 10px;
    line-height: 1;
}
.sidebar-close-btn {
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: #212529;
    padding: 0;
    line-height: 1;
}
.sidebar-nav-container ul.sidebar-menu-list {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}
.sidebar-nav-container .sidebar-menu-list > li {
    position: relative;
    border-bottom: 1px solid #f1f1f1;
    list-style-type: none !important;
}
.sidebar-nav-container .sidebar-menu-list li a {
    display: block;
    padding: 15px 20px;
    color: #212529 !important;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
}
.sidebar-nav-container .sidebar-menu-list li a:hover {
    color: #cb0000 !important;
}

/* ==========================================
   NETRALISASI GRID GENERATEPRESS (Agar Center)
   ========================================== */
#page {
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}
.site-content {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}
#primary {
    float: none !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* ==========================================
   KONTAINER UTAMA ARTIKEL (Posisi Tengah)
   ========================================== */
.journal-content-container {
    display: block;
    max-width: 720px;
    margin: 0 auto !important; /* Memaksa elemen ke tengah layar */
    padding: 32px 20px;
    background-color: #FFFFFF;
    box-sizing: border-box;
}

/* ==========================================
   ARTICLE STYLING (H1, H2, H3, & Body mengikuti Customizer)
   ========================================== */
.articlePost h1.entry-title {
    margin: 0 0 12px 0;
}
.articlePostContent p {
    margin-bottom: 1.5rem !important;
}

/* Metadata dan Komponen Lainnya */
.breadcrumbs-nav { 
    list-style: none !important; 
    padding: 0 !important; 
    margin: 0 0 12px 0 !important; 
    font-size: 0.8125rem; 
    font-weight: 600;
}
.breadcrumbs-nav li { 
    display: inline-block; 
    list-style-type: none !important; 
    margin-right: 5px;
    color: #6c757d;
}
.breadcrumbs-nav a { 
    text-decoration: none; 
    color: #6c757d;
}
.breadcrumbs-nav a:hover {
    color: #cb0000;
}
.entry-meta-date {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #6c757d;
    margin-bottom: 16px;
}

/* Social Share Circles */
.articlePostShare {
    margin-bottom: 24px;
    display: flex;
    gap: 10px;
}
.share-btn { 
    display: inline-flex; 
    align-items: center; 
    justify-content: center; 
    width: 40px; 
    height: 40px; 
    border-radius: 50%; 
    color: #fff !important; 
    font-size: 0.8125rem; 
    font-weight: 700; 
    text-decoration: none; 
}
.share-btn.fb { background-color: #3b5998; }
.share-btn.tw { background-color: #000000; }
.share-btn.wa { background-color: #25d366; }

/* Gambar Utama & Caption */
.articlePostImg { 
    margin-bottom: 24px; 
    width: 100%;
}
.articlePostImg img { 
    width: 100% !important; 
    height: auto !important; 
    display: block; 
}
.image-caption { 
    display: block;
    font-size: 0.75rem; 
    font-weight: 600;
    color: #6c757d; 
    text-align: right; 
    margin-top: 8px;
}

/* Bagian Tags */
.articlePostTag {
    margin-top: 32px;
    border-top: 1px solid #dee2e6;
    padding-top: 20px;
}
.tag-title {
    font-weight: 700;
    margin-bottom: 10px;
    font-size: 0.9rem;
}
.tag-list {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.tag-list li {
    list-style-type: none !important;
}
.tag-list li a { 
    display: inline-block; 
    border: 1px solid #cb0000; 
    color: inherit; 
    padding: 6px 14px; 
    border-radius: 4px; 
    font-size: 0.8125rem; 
    font-weight: 600;
    text-decoration: none; 
}
.tag-list li a:hover { 
    background-color: #cb0000; 
    color: #FFFFFF !important; 
}

/* ==========================================
   BERITA TERKAIT (Related Posts)
   ========================================== */
.related-posts-section {
    margin-top: 40px;
    padding-top: 30px;
}
.related-posts-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #212529;
    border-left: 5px solid #cb0000; /* Garis aksen merah vertikal */
    padding-left: 12px;
    margin-bottom: 20px;
    line-height: 1.2;
}
.related-posts-list {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}
.related-posts-list li {
    list-style-type: none !important;
    border-bottom: 1px solid #eaeaea; /* Garis pemisah antar artikel */
    padding: 16px 0;
}
.related-posts-list li:last-child {
    border-bottom: none; /* Hilangkan garis di list paling bawah */
}
.related-posts-list li a {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    color: #212529;
    text-decoration: none;
    line-height: 1.5;
    transition: color 0.2s ease;
}
.related-posts-list li a:hover {
    color: #cb0000;
}

/* ==========================================
   HOMEPAGE & ARCHIVE LAYOUT
   ========================================== */
.archive-header {
    margin-bottom: 24px;
}
.archive-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #212529;
    border-left: 5px solid #cb0000;
    padding-left: 12px;
    margin: 0;
    line-height: 1.2;
}

/* List Artikel */
.journal-post-list {
    display: flex;
    flex-direction: column;
}
.journal-post-item {
    display: flex;
    gap: 20px;
    padding: 24px 0;
    border-bottom: 1px solid #eaeaea;
}
.journal-post-item:last-of-type {
    border-bottom: 1px solid #eaeaea; /* Mempertahankan garis bawah pada item terakhir sebelum paginasi */
}

/* Thumbnail */
.post-thumb {
    flex-shrink: 0;
}
.post-thumb img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 6px; /* Memberikan sedikit lengkungan (rounded) */
    display: block;
}

/* Konten Judul & Meta */
.post-info {
    display: flex;
    flex-direction: column;
    justify-content: center; /* Meratakan teks ke tengah secara vertikal terhadap gambar */
}
.post-title {
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.4;
    margin: 0 0 8px 0;
}
.post-title a {
    color: #212529;
    text-decoration: none;
    transition: color 0.2s;
}
.post-title a:hover {
    color: #cb0000;
}
.post-meta {
    font-size: 0.8125rem;
    color: #6c757d;
    font-weight: 600;
}

/* ==========================================
   PAGINASI (Nomor Halaman)
   ========================================== */
.journal-pagination {
    margin-top: 40px;
    text-align: center;
}
.journal-pagination .nav-links {
    display: inline-flex;
    gap: 8px;
    justify-content: center;
}
.journal-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid #dee2e6;
    color: #212529;
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.95rem;
    font-weight: 600;
    background-color: #FFFFFF;
    transition: all 0.2s;
}
.journal-pagination .page-numbers:hover {
    border-color: #cb0000;
    color: #cb0000;
}
.journal-pagination .page-numbers.current {
    background-color: #cb0000;
    color: #FFFFFF;
    border-color: #cb0000;
}
.journal-pagination .screen-reader-text {
    display: none; /* Menyembunyikan teks screen reader bawaan WP */
}

/* Responsif untuk Layar Kecil (Mobile) */
@media (max-width: 575.98px) {
    .journal-post-item {
        gap: 15px;
        padding: 16px 0;
    }
    .post-thumb img {
        width: 100px;
        height: 100px;
    }
    .post-title {
        font-size: 1rem;
    }
}

/* ==========================================
   KATEGORI BLOK (HOMEPAGE)
   ========================================== */
.category-block-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
	margin-top: 10px;
    border-bottom: 2px solid #f1f1f1;
    padding-bottom: 12px;
}
.category-block-header .archive-title {
    margin-bottom: 0;
    font-size: 1.25rem;
}
.view-more-link {
    font-size: 0.875rem;
    font-weight: 600;
    color: #A30000;
    text-decoration: none;
    transition: color 0.2s ease;
}
.view-more-link:hover {
    color: #212529;
    text-decoration: underline !important;
}

/* Modifikasi judul H3 untuk list dalam blok kategori */
.category-block-section .post-title {
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.4;
    margin: 0 0 8px 0;
}

/* ==========================================
   FOOTER (Sesuai image_8e4656.png)
   ========================================== */
.journal-footer {
    background-color: #f8f9fa; /* Latar belakang abu-abu terang */
    padding: 50px 20px 40px;
    text-align: center;
    border-top: 1px solid #eaeaea;
    margin-top: 40px;
}
.journal-footer-container {
    max-width: 720px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Logo Footer */
.journal-footer-logo {
    margin-bottom: 24px;
}
.journal-footer-logo img {
    height: 35px;
    width: auto;
    display: block;
    object-fit: contain;
}

/* Menu Inline Footer */
.journal-footer-nav {
    margin-bottom: 30px;
}
.footer-inline-menu {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px 30px; /* Jarak antar teks menu */
}
.footer-inline-menu li {
    list-style-type: none !important;
}
.footer-inline-menu li a {
    color: #4a5568; /* Warna teks abu-abu gelap */
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s ease;
}
.footer-inline-menu li a:hover {
    color: #cb0000;
}

/* Teks Copyright */
.journal-footer-copyright {
    font-size: 0.85rem;
    color: #1c1f26;
    font-weight: 500;
}