@media (max-width: 768px) {
  .primary-menu .sub-menu {
    display: none;
  }
  .primary-menu .menu-item-has-children.active > .sub-menu {
    display: block;
  }
}
header {
    margin-bottom: 24px;
}
.cobakali-slider {
    margin-top: 0 !important;
}
/* Jarak slider dari header */
.cobakali-slider {
    margin-top: 24px;
}
/*
Theme Name: Katalog Grid
Theme URI: https://example.com/
Author: Your Name
Description: Tema WordPress grid katalog, support customizer header & warna, pagination, thumbnail, card style
Version: 1.2
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: katalog-grid
Tags: grid, katalog, customizer, responsive
*/

/* ==========================================================================
   General & Body
   ========================================================================== */
body {
    font-family: 'Poppins', sans-serif;
    /* Hapus background-color agar customizer WordPress bisa mengatur background */
    color: #f3f4f6; /* putih keabuan, nyaman di mata */
    margin: 0;
    padding: 0;
}

/* Batasi lebar konten utama dan center */
.main-content-area {
    max-width: 900px;
    margin: 0 auto;
    padding: 32px 16px 32px 16px;
    box-sizing: border-box;
    background: #23293a; /* sedikit berbeda dari body, biar ada depth */
    border-radius: 18px;
    box-shadow: 0 2px 16px 0 rgba(0,0,0,0.10);
}

/* Pisahkan background untuk header, body, dan footer */
.site-header {
    /* background khusus header */
    background-color: #232b3e; /* biru gelap sedikit lebih terang dari body */
}
.footer {
    /* background khusus footer */
    background-color: #232b3e; /* samakan dengan header agar harmonis */
}

/* Boxed background untuk header dan footer */
header, footer {
  max-width: 1164px;
  margin-left: auto;
  margin-right: auto;
  border-radius: 12px;
  overflow: visible;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.site-header, .footer {
  border-radius: 0;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.site-header {
    background-color: #232b3e; /* biru gelap sedikit lebih terang dari body */
    padding: 10px 20px;
    border-bottom: 1px solid #333;
    position: sticky;
    top: 0;
    z-index: 1000;
    
    /* === BAGIAN PENTING UNTUK POSISI === */
    display: flex;
    align-items: center;
    justify-content: space-between; /* <-- PASTIKAN BARIS INI ADA */
}

/* Site logo */
.site-logo a {
    color: #ffffff;
    font-weight: 700;
    font-size: 1.5rem;
    text-decoration: none;
    font-family: 'Poppins', sans-serif;
}

/* Menu toggle button (hamburger) */
.menu-toggle {
    background: none;
    border: none;
    cursor: pointer;
    display: none; /* Sembunyi di desktop */
    padding: 8px;
    z-index: 1001;
}

.menu-toggle .hamburger,
.menu-toggle .hamburger::before,
.menu-toggle .hamburger::after {
    display: block;
    background-color: #ffffff;
    height: 3px;
    width: 25px;
    border-radius: 2px;
    position: relative;
    transition: all 0.3s ease-in-out;
}

.menu-toggle .hamburger::before,
.menu-toggle .hamburger::after {
    content: '';
    position: absolute;
    left: 0;
}

.menu-toggle .hamburger::before {
    top: -8px;
}

.menu-toggle .hamburger::after {
    top: 8px;
}

/* Navigation menu (Desktop) */
.site-navigation {
    display: flex;
    margin-left: auto;
}

.primary-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 20px;
    align-items: center;
}

.primary-menu li {
position: relative;
overflow: visible;
}

.primary-menu li a {
    color: #f3f4f6;
    text-decoration: none;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    padding: 8px 12px;
    border-radius: 6px;
    transition: background-color 0.3s ease;
}

.primary-menu li a:hover,
.primary-menu li a:focus {
    background-color: #374151; /* abu gelap soft */
    color: #fbbf24; /* aksen kuning soft */
}

/* Dropdown menu styles (Desktop) */
.primary-menu .sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #121212;
    min-width: 180px;
    border-radius: 6px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.7);
    padding: 10px 0;
    list-style: none;
    z-index: 9999;
    margin-top: 4px;
}

.primary-menu li:hover > .sub-menu,
.primary-menu li:focus-within > .sub-menu {
    display: block;
}

.primary-menu .sub-menu li a {
    display: block;
    padding: 8px 20px;
    font-weight: 500;
}

/* Add arrow indicator for dropdown */
.primary-menu .menu-item-has-children > a::after {
    content: " ▼";
    font-size: 0.6rem;
    margin-left: 6px;
    color: #ff6600;
}

/* ==========================================================================
   Responsive Menu (Mobile) - VERSI FINAL DENGAN POSISI DI ATAS
   ========================================================================== */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
        position: relative;
        z-index: 1001;
    }
    
    .menu-toggle.active .hamburger {
        background-color: transparent;
    }
    .menu-toggle.active .hamburger::before {
        transform: translateY(0) rotate(45deg);
        top: 0;
    }
    .menu-toggle.active .hamburger::after {
        transform: translateY(0) rotate(-45deg);
        top: 0;
    }

    .site-navigation {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: rgba(18, 18, 18, 0.98);
        backdrop-filter: blur(5px);
        opacity: 0;
        pointer-events: none;
        transform: translateX(-100%);
        transition: opacity 0.3s ease, transform 0.3s ease;
        overflow-y: auto; /* Izinkan scroll jika menu sangat panjang */
    }

    /* GAYA SAAT MENU AKTIF (DIKLIK) */
    .site-navigation.active {
        opacity: 1;
        pointer-events: auto;
        transform: translateX(0);
        /* Beri jarak dari atas agar tidak tertutup header */
        padding-top: 80px; 
        padding-left: 1.5rem;
        padding-right: 1.5rem;
        box-sizing: border-box; /* Agar padding tidak merusak ukuran */
    }

    .primary-menu {
        flex-direction: column;
        gap: 0.5rem; /* Jarak antar menu utama sedikit dirapatkan */
        align-items: stretch; /* Ganti menjadi stretch agar item menu full-width */
        width: 100%;
        padding: 0;
        margin: 0;
        list-style: none;
    }

    .primary-menu li {
        width: 100%;
        text-align: left; /* Teks menu rata kiri */
    }

    .primary-menu li a {
        display: block; /* Agar link bisa di-klik di seluruh area */
        padding: 0.75rem 1rem;
        border-bottom: 1px solid #333;
        width: 100%;
        box-sizing: border-box; 
        font-size: 1.2rem; /* Ukuran font disesuaikan */
        border-radius: 8px;
    }
    
    .primary-menu li a:hover {
        background-color: rgba(255, 255, 255, 0.1);
    }
    
    .primary-menu .sub-menu {
        position: static;
        display: none;
        background: rgba(0,0,0,0.2);
        box-shadow: none;
        padding: 0.5rem 0 0.5rem 1.5rem; /* Indentasi untuk sub-menu */
        margin-top: 0.5rem;
        border-radius: 8px;
    }

    .primary-menu .menu-item-has-children.active > .sub-menu {
        display: block;
    }

    .primary-menu .sub-menu li a {
        font-size: 1rem;
        padding: 0.5rem 1rem;
        color: #a0a0a0;
    }
}

/* ==========================================================================
   Post Grid & Cards (VERSI FINAL DENGAN PENYESUAIAN MOBILE)
   ========================================================================== */
.post-grid-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* Default desktop */
    gap: 20px;
    padding: 20px;
    box-sizing: border-box;
    align-items: stretch; /* Pastikan semua card/kotak sama tinggi */
}

/* Post card styling */
.post-item {
    background-color: #263043; /* card lebih terang dari body, tetap soft */
    color: #f3f4f6;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.post-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(255, 102, 0, 0.5);
}

/* Wadah untuk gambar thumbnail */
.post-thumbnail-wrapper {
    aspect-ratio: 16 / 9; 
    background: #282c34;
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
}

/* Gambar di dalam wadah */
.post-thumbnail-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover; 
    display: block;
    transition: transform 0.3s ease;
}

.post-item:hover .post-thumbnail-wrapper img {
    transform: scale(1.05);
}

/* Teks untuk kartu tanpa gambar */
.post-thumbnail-wrapper:not(:has(img))::before {
    content: 'No Image';
    font-family: 'Poppins', sans-serif;
    color: #5c6370;
    font-size: 1.2rem;
    font-weight: bold;
    text-transform: uppercase;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Kategori yang menempel di atas gambar */
.category-overlay {
    position: absolute;
    top: 8px;
    left: 8px;
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    z-index: 2;
}

.category-badge {
    background-color: #ff6600;
    color: #fff;
    padding: 2px 8px;
    font-size: 0.65rem;
    font-weight: 600;
    border-radius: 12px;
    text-transform: uppercase;
    text-decoration: none;
}

/* Wadah untuk konten teks (Judul & Meta) */
.post-content-wrapper {
    padding: 12px 16px 16px 16px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

/* Gaya Judul dengan Pembatas 2 Baris */
.post-item h2 {
    font-size: 1.1rem;
    line-height: 1.4;
    font-weight: 600;
    color: #ffffff;
    margin: 0 0 8px 0;
    
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    min-height: 2.8em; /* 2 baris * 1.4 line-height */
}

.post-item h2 a {
    color: #f3f4f6;
    text-decoration: none;
}
.post-item h2 a:hover {
    text-decoration: none;
    color: #a5b4fc; /* aksen ungu soft saat hover */
}

/* Meta (tags, views, dll) */
.post-meta {
    margin-top: auto;
    padding-top: 8px;
    font-size: 0.85rem;
    color: #cccccc;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.post-meta .post-tags a {
    color: #66ccff;
    text-decoration: none;
    margin-right: 8px;
    font-size: 0.85rem;
}
.post-meta .post-tags a:hover {
    text-decoration: underline;
}

/* Modern View Count Style */
.meta-item.post-views {
    display: inline-flex;
    align-items: center;
    background: none;
    color: #b0b3b8;
    border-radius: 999px;
    font-weight: normal;
    font-size: 1em;
    padding: 0;
    margin-left: 10px;
    box-shadow: none;
    gap: 4px;
    opacity: 0.6;
    transition: opacity 0.2s;
    display: none !important;
}
.meta-item.post-views:before {
    /*content: '\1F441'; /* emoji mata */
    margin-right: 6px;
    font-size: 1em;
    opacity: 0.8;
}
.meta-item.post-views:hover {
    background: #ffb300;
    color: #23272f;
}

/* ==========================================================================
   Responsive Grid Adjustments (Menggunakan metode manual Anda) */
@media (max-width: 1200px) {
    .post-grid-container {
        grid-template-columns: repeat(3, 1fr);
    }
}
@media (max-width: 900px) {
    .post-grid-container {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 600px) {
    .post-grid-container {
        grid-template-columns: 1fr;
        /* === PERBAIKAN DI SINI === */
        /* Beri jarak lebih di kiri-kanan agar kartu terlihat lebih kecil */
        padding: 15px 1px; 
        gap: 15px;
    }
}
/* ==========================================================================
   Single Post, Pagination, Footer, Tags (Kode Anda, tidak diubah)
   ========================================================================== */
.single-title-center {
    text-align: center;
    margin: 30px 0;
    font-size: 2.2rem;
    font-weight: 700;
}
.pagination-container {
    margin: 32px 0 16px 0;
    text-align: center;
}
.pagination-container ul {
  display: flex;
  gap: 4px;
  justify-content: center;
  padding: 0;
  margin: 0;
  list-style: none;
}
.pagination-container .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 32px;
  line-height: 32px;
  text-align: center;
  font-size: 1em;
  color: #38bdf8;
  background: #1f2937;
  border-radius: 9999px;
  margin: 0;
  padding: 0;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
  border: none;
  font-weight: 500;
  position: relative;
}
.pagination-container .page-numbers.current {
  background: #f97316;
  color: #fff;
}
.pagination-container .page-numbers.prev,
.pagination-container .page-numbers.next {
  background: #f97316;
  color: #fff;
  font-size: 1.1em;
  font-weight: bold;
  border-radius: 9999px;
  min-width: 32px;
}
.pagination-container .page-numbers.dots {
  background: #1f2937;
  color: #38bdf8;
  pointer-events: none;
}
.pagination-container .page-numbers:hover:not(.current):not(.dots) {
  background: #f97316;
  color: #fff;
}
.pagination-container .page-numbers:active {
  filter: brightness(0.95);
}
.pagination-container {
  margin-top: 24px;
  margin-bottom: 24px;
}
@media (max-width: 600px) {
  .pagination-container .page-numbers {
    min-width: 22px;
    height: 22px;
    line-height: 22px;
    font-size: 0.9em;
  }
  .pagination-container .page-numbers.prev,
  .pagination-container .page-numbers.next {
    min-width: 22px;
    font-size: 1em;
  }
}
/* ==========================================================================
   Single Post Page Styles
   ========================================================================== */
.single-post-container {
    max-width: 800px; /* Lebar maksimal konten artikel */
    margin: 2rem auto; /* Posisi di tengah dengan jarak atas/bawah */
    /*padding: 1rem; */
}

.single-post-article {
    background-color: #1e1e1e;
    /*padding: 2rem;*/
    border-radius: 12px;
    border: 1px solid #333;
}

.single-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
    margin-bottom: 1rem;
    text-align: center; /* Judul artikel di tengah */
}


.single-post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    color: #a0a0a0;
    margin-bottom: 2rem;
    font-size: 0.9rem;
    justify-content: center; /* Tambahkan ini */
}

.single-post-thumbnail {
    margin-bottom: 2rem;
}

.single-post-thumbnail img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.single-post-content {
    color: #e5e7eb;
    line-height: 1.8;
}

.single-post-content p {
    margin-bottom: 1.5em;
}

.single-post-content a {
    color: #66ccff;
}

.single-post-footer {
    margin-top: 2rem;
    border-top: 1px solid #333;
    padding-top: 1.5rem;
    font-size: 0.9rem;
}

/* ==========================================================================
   Gaya Kategori di Halaman Single Post
   ========================================================================== */

/* Wadah untuk semua kategori */
.single-post-categories {
    display: flex;
    flex-wrap: wrap; /* Izinkan tag turun baris jika tidak muat */
    gap: 0.5rem; /* Jarak antar tag */
    margin-top: 1rem;
    margin-bottom: 1.5rem; /* Jarak ke info meta di bawahnya */
    justify-content: center; /* Posisikan tag di tengah */
}

/* Gaya untuk setiap link kategori */
.single-post-categories a {
    text-decoration: none;
    display: inline-block;
    
    /* -- Di sinilah Anda mengatur "BENTUK"-nya -- */
    background-color: #374151; /* Ganti warna background di sini (abu-abu gelap) */
    color: #f3f4f6; /* Ganti warna teks di sini (putih keabuan) */
    padding: 0.3rem 0.8rem; /* Atur ukuran padding (tebal/tipisnya tag) */
    border-radius: 6px; /* Ubah angka ini untuk membuat sudut lebih bulat/kotak. 999px = pil, 0px = kotak. */
    font-size: 0.8rem; /* Ubah ukuran font di sini */
    font-weight: 600; /* Ketebalan font */
    border: 1px solid #4b5563; /* Garis tepi (opsional) */
    transition: all 0.2s ease;
}

/* Gaya saat kursor mouse menyentuh tag */
.single-post-categories a:hover {
    background-color: #ff6600; /* Warna oranye saat hover */
    color: #fff;
    border-color: #ff6600;
    transform: translateY(-2px); /* Sedikit terangkat saat disentuh */
}
/* ==========================================================================
   Tombol Kembali ke Atas (Back to Top)
   ========================================================================== */
/* Tombol Kembali ke Atas (Back to Top) */
.back-to-top-btn {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 9999; /* Coba naikkan nilainya agar pasti di atas */

    background-color: #ff6600;
    color: #ffffff;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;

    display: flex;
    align-items: center;
    justify-content: center;

    cursor: pointer;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);

    /* Sembunyikan secara default */
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

/* Gaya saat tombol muncul */
.back-to-top-btn.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
/* ==========================================================================
   Gaya untuk Kolom Pencarian Utama
   ========================================================================== */
.main-search-container {
    padding: 2rem 20px;
    background-color: transparent
}

.main-search-form {
    display: flex;
    max-width: 800px;
    margin: 0 auto;
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid #333;
    transition: border-color 0.3s ease;
}

.main-search-form:focus-within {
    border-color: #ff6600; /* Warna highlight saat aktif */
}

.main-search-input {
    flex-grow: 1; /* Membuat kolom input mengisi ruang */
    border: none;
    padding: 1rem 1.5rem;
    font-size: 1.1rem;
    background-color: #232b3e;
    color: #f3f4f6;
    border: 1px solid #374151;
    transition: border-color 0.3s ease;
}

.main-search-input:focus {
    border-color: #a5b4fc;
    box-shadow: 0 0 0 2px #a5b4fc44;
}

.main-search-submit {
    border: none !important;
    outline: none !important;
    box-shadow: none;
    background: linear-gradient(90deg, #a5b4fc 0%, #818cf8 100%); /* gradasi ungu soft */
    color: #232b3e;
    font-size: 1.1rem;
    font-weight: 700;
    padding: 1rem 2.5rem;
    border-radius: 999px; /* full rounded */
    cursor: pointer;
    box-shadow: 0 2px 8px 0 #a5b4fc33;
    transition: background 0.3s, color 0.3s, box-shadow 0.2s, transform 0.2s;
    margin-left: 12px;
    letter-spacing: 0.02em;
}

.main-search-submit:hover {
    background: linear-gradient(90deg, #818cf8 0%, #a5b4fc 100%);
    color: #fff;
    box-shadow: 0 4px 16px 0 #a5b4fc55;
    transform: translateY(-2px) scale(1.04);
}

@media (max-width: 600px) {
    .main-search-submit {
        padding: 0.7rem 1.2rem;
        font-size: 1rem;
        margin-left: 6px;
    }
}

/* ==========================================================================
   Related Posts Mini Card Style
   ========================================================================== */
.related-posts-container {
  margin-top: 40px;
}
.related-title {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 18px;
}
.related-posts-grid {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: flex-start;
}
.related-post-card-mini {
  background: #181818;
  border-radius: 10px;
  box-shadow: 0 2px 8px 0 rgba(0,0,0,0.10);
  width: 120px;
  min-width: 100px;
  max-width: 140px;
  padding: 10px 8px 8px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: box-shadow 0.2s, transform 0.15s;
}
.related-post-card-mini:hover {
  box-shadow: 0 4px 16px 0 rgba(93,182,255,0.15);
  transform: translateY(-2px) scale(1.04);
}
.related-thumb-mini {
  width: 80px;
  height: 80px;
  margin-bottom: 8px;
  overflow: hidden;
  border-radius: 8px;
  background: #222;
  display: flex;
  align-items: center;
  justify-content: center;
}
.related-thumb-mini img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
}
.related-title-mini {
  font-size: 0.95rem;
  font-weight: 600;
  color: #5db6ff;
  margin: 0;
  margin-top: 2px;
  line-height: 1.3;
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.related-title-mini a {
  color: #5db6ff;
  text-decoration: none;
  transition: color 0.2s;
}
.related-title-mini a:hover {
  color: #fff;
}
@media (max-width: 600px) {
  .related-posts-grid {
    gap: 8px;
    justify-content: center;
  }
  .related-post-card-mini {
    width: 100px;
    min-width: 80px;
    max-width: 120px;
    padding: 7px 4px 6px 4px;
  }
  .related-thumb-mini {
    width: 60px;
    height: 60px;
  }
  .related-title-mini {
    font-size: 0.85rem;
    min-height: 28px;
  }
}

/* ==========================================================================
   Related Posts Large Card Style
   ========================================================================== */
.related-posts-large-grid {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 18px;
}
.related-post-card-large {
  background: #181818;
  border-radius: 14px;
  box-shadow: 0 2px 12px 0 rgba(0,0,0,0.13);
  width: 320px;
  max-width: 95vw;
  padding: 18px 14px 14px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: box-shadow 0.2s, transform 0.15s;
}
.related-post-card-large:hover {
  box-shadow: 0 6px 24px 0 rgba(93,182,255,0.18);
  transform: translateY(-3px) scale(1.03);
}
.related-thumb-large {
  width: 100%;
  max-width: 260px;
  height: 170px;
  margin-bottom: 14px;
  overflow: hidden;
  border-radius: 10px;
  background: #222;
  display: flex;
  align-items: center;
  justify-content: center;
}
.related-thumb-large img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
}
.related-title-large {
  font-size: 1.15rem;
  font-weight: 700;
  color: #5db6ff;
  margin: 0;
  margin-top: 2px;
  line-height: 1.35;
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.related-title-large a {
  color: #5db6ff;
  text-decoration: none;
  transition: color 0.2s;
}
.related-title-large a:hover {
  color: #fff;
}
@media (max-width: 600px) {
  .related-posts-large-grid {
    gap: 12px;
  }
  .related-post-card-large {
    width: 98vw;
    max-width: 98vw;
    padding: 10px 2vw 10px 2vw;
  }
  .related-thumb-large {
    max-width: 90vw;
    height: 120px;
  }
  .related-title-large {
    font-size: 1rem;
    min-height: 28px;
  }
}

/* ==========================================================================
   Pagination Styles (Menambahkan gaya untuk tombol pagination dengan ikon panah)
   ========================================================================== */
.pagination-icon {
  display: inline-block;
  font-size: 1.1em;
  vertical-align: middle;
  color: #fff;
  /* background: #23272f; */
  /* border-radius: 50%; */
  width: auto;
  height: auto;
  line-height: normal;
  text-align: center;
  transition: background 0.2s, color 0.2s;
}
@media (max-width: 600px) {
  .pagination-icon {
    font-size: 1em;
    width: auto;
    height: auto;
    line-height: normal;
  }
  .pagination-container .page-numbers {
    font-size: 0.95em;
    padding: 6px 10px;
  }
}

/* Konsolidasi and perbaikan style tag agar konsisten di semua tempat */
.wp-tag-badge {
  text-decoration: none;
  display: inline-block;
  background-color: #1f2937; /* Tailwind gray-800 */
  color: #fff;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 600;
  border: none;
  transition: background 0.18s, color 0.18s, background-color 0.3s ease;
  margin-right: 0.4em;
  margin-bottom: 0.4em;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}
.wp-tag-badge:hover {
  background-color: #4f46e5; /* Tailwind indigo-600 */
  color: #fff;
}

/* ==========================================================================
   Footer Styles
   ========================================================================== */
.wp-tag-badge {
  font-size: 0.75rem;
  padding: 0.15rem 0.5rem; /* perkecil padding */
  background-color: #1f2937;
  color: white;
  border-radius: 9999px;
  text-decoration: none;
  transition: background-color 0.3s ease;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  margin: 2px; /* tambah sedikit jarak antar badge jika diperlukan */
}

.back-to-top-btn {
  position: fixed;
  bottom: 0.75rem; /* lebih dekat ke tepi bawah */
  right: 0.75rem;  /* lebih dekat ke samping */
  background-color: #1f2937;
  color: white;
  padding: 0.4rem;
  border-radius: 9999px;
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s;
  font-size: 0.85rem;
}

.copyright {
  text-align: center;
  padding: 8px; /* dari 20px ke 8px */
  background-color: #1a1a1a;
  color: #e5e7eb;
  font-size: 0.8rem;
  margin: 0; /* hilangkan margin */
}

.footer-copyright {
    margin: 0.5rem 0 0 0 !important; /* atas 0.5rem, bawah 0 */
    font-size: 0.7rem;
    margin-bottom: 6px !important; /* jarak ke bawah lebih kecil */
  text-align: center;
}
.footer-tags {
    margin-bottom: 6px !important;
}
.footer {
    padding: 6px 0 4px 0 !important;
    font-size: 0.75rem;
}
@media (max-width: 600px) {
  .footer {
    font-size: 0.68rem;
    padding: 4px 0 2px 0 !important;
  }
  .footer-copyright {
    font-size: 0.65rem;
  }
}
/* =============================
   Komentar & Form Komentar
   ============================= */
#comments {
    margin-bottom: 48px;
    border-radius: 12px;
    padding: 32px 24px;
    box-shadow: 0 2px 16px 0 rgba(0,0,0,0.10);

}
#comments h2, #comments h3, #comments h4 {
    color: #ff6200;
    margin-bottom: 18px;
    font-family: 'Poppins', sans-serif;
}
.comment-list {
    list-style: none;
    padding: 0;
    margin-bottom: 32px;
}
.comment-list li {
    margin-bottom: 24px;
    border-bottom: 1px solid #232323;
    padding-bottom: 16px;
}
.comment-author {
    font-weight: 600;
    color: #ffb86c;
}
.comment-meta {
    font-size: 0.9em;
    color: #888;
    margin-bottom: 6px;
}
.comment-content {
    margin-top: 6px;
    color: #e5e7eb;
}
#respond {
    margin-top: 32px;
}
#respond h3 {
    color: #ff6200;
    margin-bottom: 12px;
}
#commentform textarea, #commentform input[type="text"], #commentform input[type="email"] {
    width: 100%;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid #333;
    background: #232323;
    color: #fff;
    margin-bottom: 14px;
    font-family: 'Poppins', sans-serif;
    font-size: 1em;
    transition: border 0.2s;
}
#commentform textarea:focus, #commentform input[type="text"]:focus, #commentform input[type="email"]:focus {
    border: 1.5px solid #ff6200;
    outline: none;
}
#commentform input[type="submit"] {
    background: linear-gradient(90deg, #ff6200 0%, #ffb86c 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 10px 28px;
    font-weight: 700;
    font-size: 1em;
    cursor: pointer;
    transition: background 0.2s;
}
#commentform input[type="submit"]:hover {
    background: linear-gradient(90deg, #ffb86c 0%, #ff6200 100%);
}

/* Modern Comment Section Styles */
.comment-section {
  background: #232326;
  border-radius: 12px;
  padding: 32px 24px;
  margin: 32px 0;
  box-shadow: 0 2px 16px rgba(0,0,0,0.15);
}
.comment-title {
  color: #ff6600;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.comment-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.comment-item {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  background: #18181a;
  border-radius: 10px;
  padding: 20px 18px;
  margin-bottom: 18px;
  box-shadow: 0 1px 6px rgba(0,0,0,0.10);
  transition: box-shadow 0.2s, transform 0.2s;
}
.comment-item:hover {
  box-shadow: 0 4px 24px 0 rgba(255,102,0,0.18), 0 1.5px 8px 0 rgba(0,0,0,0.10);
  transform: translateY(-2px) scale(1.02);
}
.comment-avatar {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #ff6600;
  background: #111;
  transition: box-shadow 0.2s, border-color 0.2s, transform 0.2s;
}
.comment-avatar:hover {
  box-shadow: 0 0 0 4px #ff660033;
  border-color: #ff6600;
  transform: scale(1.07);
}
.comment-content {
  flex: 1;
}
.comment-author {
  font-weight: 600;
  color: #fff;
  font-size: 1.1rem;
  margin-bottom: 2px;
}
.comment-date {
  color: #aaa;
  font-size: 0.95rem;
  margin-bottom: 8px;
}
.comment-text {
  color: #e0e0e0;
  font-size: 1.05rem;
  line-height: 1.6;
  margin-bottom: 0;
}

/* Responsive */
@media (max-width: 600px) {
  .comment-section {
    padding: 18px 6px;
  }
  .comment-item {
    flex-direction: column;
    align-items: flex-start;
    padding: 14px 8px;
  }
  .comment-avatar {
    width: 40px;
    height: 40px;
  }
}

/* Badge Tag Modern di Single Post */
.single-post-footer .tag-label {
  color: #ff6600;
  font-weight: 600;
  margin-right: 10px;
  font-size: 1rem;
}
.single-post-footer a[href*="tag"] {
  display: inline-block;
  /*padding: 6px 16px;*/
  border-radius: 999px;
  background: #ff6600;
  color: #fff;
  font-weight: 600;
  /*font-size: 0.9rem;*/
  margin: 4px 6px 4px 0; /* lebih rapat dari sebelumnya */
  box-shadow: 0 2px 6px 0 #23232633;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s, transform 0.2s;
  text-decoration: none;
}

/* Custom styles for slider and grid */
.main-search-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 1rem;
}

.main-search-input {
  width: 80%;
  padding: 0.5rem 1rem;
  border: 1px solid #ccc;
  border-radius: 0.375rem;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.main-search-input:focus {
  outline: none;
  border-color: #f97316; /* Tailwind orange-500 */
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.5);
}

.main-search-submit {
  width: 18%;
  background-color: #f97316; /* Tailwind orange-500 */
  color: white;
  border: none;
  padding: 0.5rem 0;
  border-radius: 0.375rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.main-search-submit:hover {
  background-color: #ea580c; /* Tailwind orange-600 */
}

.main-content-area {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem;
}

.post-grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.5rem;
}

.pagination-container ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

/* Slider specific styles */
#slider {
  position: relative;
  height: 16rem; /* 64 */
  margin-bottom: 1.5rem;
  overflow: visible;
  border-radius: 0.5rem; /* rounded-lg */
  cursor: pointer;
  perspective: 1200px;
  transform-style: preserve-3d;
  transform-origin: center center;
  transition: transform 1s ease;
  display: flex;
  justify-content: center;
  align-items: center;
}

#slider > div {
  position: absolute;
  width: 12rem;
  height: 12rem;
  top: 50%;
  left: 50%;
  margin: -6rem 0 0 -6rem;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.5);
  transition: transform 1s ease, opacity 1s ease;
  opacity: 0.6;
  background: #222;
  backface-visibility: hidden;
}

#slider > div img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
  display: block;
}

#slider > div .absolute.bottom-0 {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  max-height: 3rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 0.25rem 0.5rem;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.2;
  border-radius: 0 0 12px 12px;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  text-align: center;

.single-post-footer a[href*="tag"]:hover {
  background: #ff6600;
  color: #fff;
  box-shadow: 0 4px 16px 0 #ff660055;
  transform: translateY(-2px) scale(1.05);
}

/* Tombol favorit modern */
.favorite-btn {
  border: none;
  outline: none;
  cursor: pointer;
  background: linear-gradient(90deg, #232526 0%, #ff6600 100%);
  color: #fff;
  box-shadow: 0 2px 8px 0 #ff660055;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s, transform 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
}
.favorite-btn .favorite-icon {
  font-size: 1.3em;
  transition: color 0.2s, transform 0.2s;
}
.favorite-btn.bg-red-600 {
  background: linear-gradient(90deg, #ff3b3b 0%, #ff6600 100%);
  color: #fff;
}
.favorite-btn.bg-gray-700 {
  background: #232526;
  color: #ff6600;
}
.favorite-btn:hover {
  box-shadow: 0 4px 16px 0 #ff660099;
  transform: translateY(-2px) scale(1.05);
}
.favorite-btn:active {
  transform: scale(0.97);
}
.favorite-btn .favorite-label {
  font-weight: 600;
  letter-spacing: 0.01em;
}

/* Animasi tombol favorit */
.favorite-animate {
  animation: fav-pulse 0.4s cubic-bezier(.4,2,.6,1);
}
@keyframes fav-pulse {
  0% { transform: scale(1); }
  40% { transform: scale(1.18); }
  60% { transform: scale(0.95); }
  100% { transform: scale(1); }
}


.menu-login a, .menu-logout a {
    color: orange;
    font-weight: bold;
}
.menu-login a:hover, .menu-logout a:hover {
    text-decoration: underline;
}

