body {
    font-family: sans-serif;
    background-color: #fff;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    background-color: #fff;
    padding: 5px 0;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-left {
    display: flex;
    align-items: center;
}

.header-menu ul {
    display: flex;
    list-style: none;
    padding: 20px;
}

.header-menu li {
    margin-right: 20px;
    font-weight: bold;
}

.header-menu a {
    text-decoration: none;
    color: #333;
}

/* Search Icon */
.search-icon {
    position: relative;
}

.search-toggle {
    display: inline-block;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: #eee;
    text-align: center;
    line-height: 30px;
    color: #333;
    text-decoration: none;
}

.search-toggle:hover {
    background-color: #ddd;
}

.search-form-container {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: #fff;
    border: 1px solid #ccc;
    padding: 10px;
    z-index: 999;
    width: 250px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Sembunyikan label bawaan form pencarian */
.search-form-container label {
    display: none;
}

.search-form-container input[type="text"] {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    box-sizing: border-box;
}

.search-form-container input[type="submit"] {
    display: none;
}

/* Hamburger Icon (Mobile) - disembunyikan secara default */
.hamburger-icon {
    display: none;
    cursor: pointer;
    font-size: 24px;
}

/* Main Content (Index/Home) */
.post-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding-top: 15px;
}

.post-item {
    border: 1px solid #9d9d9d;
    padding-top: 15px;
    padding: 20px;
    /* Ubah untuk 3 kolom di desktop */
    flex: 0 0 calc(33.333% - 20px); /* 33.333% untuk 3 kolom, kurangi gap */
    box-sizing: border-box;
    position: relative;
    border-radius: 10px;
}

.post-item-link {
    display: block;
    color: inherit;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* PERBAIKAN UTAMA DI SINI */
.post-item h2,
.post-item .excerpt {
    text-decoration: none; /* Hilangkan garis bawah LANGSUNG di sini */
    position: relative;
    z-index: 2;
}

.post-item h2 {
    font-size: 1.5em;
    margin-bottom: 10px;
    /* Batasi tinggi judul menjadi 2 baris */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Style untuk excerpt di halaman depan (index) */
.post-item .index-excerpt {
    font-size: 1em;
    color: #666;
    overflow: hidden; /* Menyembunyikan overflow */
    max-height: 6em; /* Menampilkan maksimal ~2 baris (sesuaikan jika perlu) */
}

/* Style untuk excerpt di related posts */
.related-posts .excerpt {
    font-size: 0.9em;
    color: #777; /* Warna abu-abu yang lebih lembut */
    line-height: 1.4; /* Spasi baris agar lebih mudah dibaca */
    overflow: hidden; /* Hide any overflow */
}

/* Mobile: Related Posts Excerpt length ~20 words */
.related-posts .excerpt {
    max-height: 2.8em; /* Adjust based on line-height */
}

/* Desktop: Related Posts Excerpt length ~30 words */
@media (min-width: 768px) {
    .related-posts .excerpt {
        max-height: 4.2em; /* Adjust based on line-height */
    }
}

/* Footer */
footer {
    background-color: #fff;
    padding: 20px 0;
    border-top: 1px solid #eee;
    text-align: center;
}

.footer-menu ul {
    display: inline-flex;
    justify-content: center;
    flex-wrap: wrap;
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-menu li {
    margin: 5px 10px;
}

.footer-menu a {
    text-decoration: none;
    color: #333;
}

/* Post/Page Styling */
.single-post,
.page {
    padding-top: 0px;
}

.single-post h1,
.page h1 {
    font-size: 1.5em;
    margin-bottom: 10px;
    font-weight: bold;
    line-height: 1.2;
}

/* ===== START: TEKS TEBAL ===== */
.single-post .entry-content p,
.page .entry-content p {
    font-weight: normal; /* Reset default font-weight */
}

.single-post .entry-content strong,
.single-post .entry-content b,
.page .entry-content strong,
.page .entry-content b {
    font-weight: bold;
}

.single-post .entry-content em,
.single-post .entry-content i,
.page .entry-content em,
.page .entry-content i {
    font-style: italic;
}

/* Fix for elements like span, a, etc. within a bold/strong tag */
.single-post .entry-content strong *,
.single-post .entry-content b *,
.page .entry-content strong *,
.page .entry-content b * {
    font-weight: inherit; /* Or specify a particular weight if needed */
}
/* ===== END: TEKS TEBAL ===== */

.single-post .entry-content,
.page .entry-content {
    line-height: 1.7;
    margin-bottom: 20px;
}

/* Styling untuk Heading (h2 dan h3) */
h2 {
    font-size: 1.8em;
    font-weight: bold;
    margin-bottom: 0.8em;
    color: #333;
    line-height: 1.3;
}

h3 {
    font-size: 1.4em;
    font-weight: bold;
    margin-bottom: 0.6em;
    color: #444;
    line-height: 1.4;
}

.single-post h2,
.page h2 {
    font-size: 2em;
    margin-bottom: 0.5em;
}

/* Styling untuk Unordered List (ul) dan List Item (li) */
ul {
    list-style-type: disc;
    margin-bottom: 1em;
    padding-left: 20px;
}

li {
    margin-bottom: 0.5em;
}

.no-bullets {
    list-style-type: none;
    padding-left: 0;
}

.post-item h2 a {
    text-decoration: none; /* Menghapus garis bawah */
    color: inherit; /* Opsional: Memastikan warna teks mengikuti warna parent (h2) */
    font-size: 1em;
}

/* Navigasi Halaman (Pagination) */
.pagination {
    margin-top: 10px; /* Jarak dari konten di atasnya */
    text-align: center; /* Pusatkan link */
    margin-bottom: 10px;
}

.pagination .page-numbers {
    display: inline-block; /* Agar bisa diberi padding, margin, dll. */
    padding: 8px 12px;
    margin: 0 4px;
    border: 1px solid #ccc;
    text-decoration: none;
    color: #333;
    background-color: #fff;
}

.pagination .page-numbers.current {
    background-color: #007bff; /* Warna untuk halaman aktif (sesuaikan) */
    color: #fff;
    border-color: #007bff;
}

.pagination .page-numbers:hover {
    background-color: #eee; /* Efek hover */
}

.pagination .prev,
.pagination .next {
    /* Anda bisa styling link "Sebelumnya" dan "Berikutnya" secara khusus di sini,
     misalnya menambahkan ikon */
}

/* Sembunyikan teks "Halaman" secara visual (untuk screen reader) */
.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    overflow: hidden;
    position: absolute;
    width: 1px;
    white-space: nowrap;
}

.ads_above_title {
    margin-top: 10px; /* Jarak untuk elemen dengan class ads_above_title */
}

.ads_below_article {
    margin-bottom: 10px; /* Jarak untuk elemen dengan class ads_above_title */
}

/* ============================================================
   RELATED POSTS STYLING (REVISED)
   ============================================================ */

.related-posts {
    margin-top: 30px;
}

.related-posts h2 {
    font-size: 1.3em;
    margin-bottom: 15px;
    color: #333;
}

.related-posts ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.related-posts li {
    margin-bottom: 10px;
}

.related-posts li a {
    color: #007bff;
    text-decoration: none;
    font-weight: 600; /* Sedikit lebih tebal dari regular */
    transition: color 0.2s ease-in-out; /* Efek hover yang halus */
}

.related-posts li a:hover {
    color: #0056b3; /* Warna link saat di-hover */
}