/**
 * Theme Name:     GeneratePress Child
 * Author:         Tom Usborne
 * Template:       generatepress
 * Text Domain:	   generatepress-child
 * Description:    GeneratePress is a lightweight WordPress theme built with a focus on speed and usability. Performance is important to us, which is why a fresh GeneratePress install adds less than 10kb (gzipped) to your page size. We take full advantage of the block editor (Gutenberg), which gives you more control over creating your content. If you use page builders, GeneratePress is the right theme for you. It is completely compatible with all major page builders, including Beaver Builder and Elementor. Thanks to our emphasis on WordPress coding standards, we can boast full compatibility with all well-coded plugins, including WooCommerce. GeneratePress is fully responsive, uses valid HTML/CSS, and is translated into over 25 languages by our amazing community of users. A few of our many features include 60+ color controls, powerful dynamic typography, 5 navigation locations, 5 sidebar layouts, dropdown menus (click or hover), and 9 widget areas. Learn more and check out our powerful premium version at https://generatepress.com
 */
/* ==================================================
   ARCHIVE GRID & CLEANUP
   =================================================== */
/* Grid Dasar (Mobile First - 1 Kolom) */
.archive .site-main, 
.blog .site-main, 
.search .site-main {
    display: grid !important;
    grid-template-columns: 1fr !important; /* 1 Kolom untuk HP */
    gap: 20px;
}

/* Grid Tablet & Desktop (2 Kolom) */
@media (min-width: 768px) {
    .archive .site-main, 
    .blog .site-main, 
    .search .site-main {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* Sembunyikan paksa sisa-sisa elemen bawaan (Folder, Tags, Meta, Content) */
.archive .entry-content, .blog .entry-content, .search .entry-content,
.archive .entry-header, .blog .entry-header, .search .entry-header,
.archive footer.entry-meta, .blog footer.entry-meta, .search footer.entry-meta,
.archive .entry-meta, .blog .entry-meta {
    display: none !important;
}

/* Hilangkan padding container asli GP, tapi berikan margin bawah untuk mobile */
.archive .inside-article, 
.blog .inside-article, 
.search .inside-article {
    padding: 0 !important;
    margin: 0 0 20px 0 !important;
    background: transparent !important;
    border: none !important;
}

/* Hilangkan margin bawah di tablet/desktop karena sudah diatur oleh grid gap */
@media (min-width: 768px) {
    .archive .inside-article, 
    .blog .inside-article, 
    .search .inside-article {
        margin: 0 !important;
    }
}
/* ==================================================
   SERBAHOBI CARD LAYOUT (CLEAN & BORDERLESS)
   =================================================== */
.serbahobi-custom-card {
    background: transparent; /* Hilangkan warna latar putih */
    border: none; /* Hilangkan garis tepi */
    border-radius: 0; 
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Hilangkan efek box-shadow saat hover agar sesuai referensi */
.serbahobi-custom-card:hover {
    transform: none;
    box-shadow: none;
}

.serbahobi-card-image-wrapper {
    position: relative;
    line-height: 0;
    overflow: hidden;
    margin-bottom: 15px; /* Jarak antara gambar dan teks di bawahnya */
}

/* Gambar Landscape 16:9 */
.serbahobi-img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
    border-radius: 0; /* Gambar kotak tajam sesuai referensi */
}

/* Label Kategori (Dibuat lebih subtle/halus) */
.serbahobi-category-label {
    display: inline-block;
    color: #ff6600; /* Hanya teksnya yang oranye */
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 5px;
    text-decoration: none;
    transition: color 0.2s ease;
}

.serbahobi-category-label:hover {
    color: #222;
}

/* Body Card tanpa padding agar sejajar dengan gambar */
.serbahobi-card-body {
    padding: 0; 
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

/* Judul Card */
.serbahobi-card-title {
    margin: 0 0 10px 0 !important;
    line-height: 1.3 !important;
    font-size: 22px !important; /* Diperbesar sedikit sesuai referensi */
    font-weight: 700; /* Font lebih tebal (Bold) */
}

.serbahobi-card-title a {
    color: #222;
    text-decoration: none;
    transition: color 0.2s ease;
}

.serbahobi-card-title a:hover {
    color: #ff6600;
}

/* Meta Data (Author & Date) */
.serbahobi-card-meta {
    font-size: 13px;
    color: #777; /* Warna abu-abu halus */
    font-weight: 500;
    margin-top: auto; /* Mendorong meta ke bagian paling bawah secara rapi */
}

.serbahobi-card-meta .author-name {
    color: #222; /* Nama author lebih gelap */
    font-weight: 700;
}


/* ==================================================
   KUSTOMISASI PAGE HEADER (MINIMALIS)
   =================================================== */
.archive .site-main .page-header,
.search .site-main .page-header {
    grid-column: 1 / -1 !important;
    background: transparent;
    border: none;
    padding: 0 0 15px 0; /* Padding bawah saja untuk garis */
    margin-bottom: 30px;
    box-shadow: none;
    border-bottom: 2px solid #f0f0f0; /* Garis pemisah bawah yang halus */
}

/* Kustomisasi Teks Judul Kategori/Pencarian */
.page-header .page-title {
    font-size: 28px !important;
    font-weight: 700;
    color: #222;
    margin-bottom: 5px;
}

/* Jika ada teks "Search Results for", beri warna oranye pada kata kuncinya */
.page-header .page-title span {
    color: #ff6600; 
}

/* Sembunyikan Teks Deskripsi demi tampilan Clean Minimalis */
.page-header .taxonomy-description {
    display: none !important;
}
/* ==================================================
   KUSTOMISASI NAVIGASI HALAMAN (PAGINATION)
   =================================================== */

/* 1. Memaksa area navigasi membentang penuh (tidak nyempil di kolom grid) */
.archive .site-main .paging-navigation,
.blog .site-main .paging-navigation,
.search .site-main .paging-navigation {
    grid-column: 1 / -1 !important; /* Wajib agar full width */
    margin-top: 30px;
    margin-bottom: 40px;
}

/* 2. Mengatur posisi tombol agar berada di tengah */
.nav-links {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px; /* Jarak antar tombol angka */
}

/* 3. Tampilan dasar tombol angka */
.nav-links .page-numbers {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-width: 42px;
    height: 42px;
    padding: 0 15px;
    background-color: #ffffff;
    color: #444444;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    border: 1px solid #e5e5e5;
    border-radius: 8px; /* Sudut membulat senada dengan card */
    transition: all 0.2s ease; /* Animasi mulus saat dihover */
}

/* 4. Tampilan halaman yang sedang aktif saat ini */
.nav-links .page-numbers.current {
    background-color: #ff6600;
    color: #ffffff;
    border-color: #ff6600;
    box-shadow: 0 4px 12px rgba(255, 102, 0, 0.25); /* Efek bayangan memancarkan warna oranye */
}

/* 5. Efek melayang (hover) saat tombol angka disentuh kursor */
.nav-links a.page-numbers:hover {
    background-color: #fcfcfc;
    border-color: #ff6600;
    color: #ff6600;
    transform: translateY(-2px); /* Tombol sedikit naik ke atas */
    box-shadow: 0 4px 10px rgba(0,0,0,0.06);
}

/* 6. Penyesuaian khusus untuk tombol "Next" dan "Previous" agar lebih menonjol */
.nav-links .next.page-numbers,
.nav-links .prev.page-numbers {
    background-color: #222222; /* Warna gelap agar kontras */
    color: #ffffff;
    border-color: #222222;
    padding: 0 20px;
}

.nav-links a.next.page-numbers:hover,
.nav-links a.prev.page-numbers:hover {
    background-color: #ff6600;
    border-color: #ff6600;
    color: #ffffff;
}

/* 7. Sembunyikan titik-titik (dots) pembatas bawaan yang sering mengganggu layout */
.nav-links .dots {
    background: transparent;
    border: none;
    color: #888;
}