/*
Theme Name: Nyetak Theme Pro
Theme URI: https://kreativalab.id/themes/nyetak-pro
Author: Kreativa Lab
Author URI: https://kreativalab.id
Description: Tema WordPress Modern dengan konsep "Mobile App Shell" khusus untuk bisnis Percetakan & Digital Printing. Dioptimalkan untuk kecepatan tinggi (Lightweight), UX mobile-first, dan konversi penjualan maksimal via WhatsApp. Terintegrasi penuh dengan Nyetak Core Engine.
Version: 3.1 (Stable Release)
Text Domain: nyetak-theme
Tags: printing, digital-printing, mobile-app, woocommerce, app-shell
*/

/* --- 1. CONFIG (VARIABEL GLOBAL) --- */
:root {
    --primary: #0073aa;       /* Warna Utama (Default Biru) */
    --primary-light: #52accc; /* Warna Muda (Untuk Border Hover) */
    --accent: #e67e22;        /* Warna Aksen (Oranye) */
    --bg-body: #f0f2f5;       /* Background Luar */
    --bg-app: #ffffff;        /* Background Aplikasi */
    --text-main: #333333;     /* Teks Utama */
    --text-muted: #999999;    /* Teks Pasif */
    --app-width: 480px;       /* LEBAR APLIKASI */
}

/* --- 2. RESET & GLOBAL --- */
body {
    background-color: var(--bg-body);
    margin: 0; padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    color: var(--text-main);
    -webkit-tap-highlight-color: transparent;
}
a { text-decoration: none; color: inherit; }
* { box-sizing: border-box; }

/* HILANGKAN ELEMEN BAWAAN WP */
header.entry-header, .entry-title, #masthead, .site-header { display: none !important; }

/* --- 3. APP FRAME (CANGKANG UTAMA) --- */
#nyetak-app-frame {
    max-width: var(--app-width);
    margin: 0 auto;
    background: var(--bg-app);
    min-height: 100vh;
    position: relative;
    box-shadow: 0 0 30px rgba(0,0,0,0.05);
    padding-bottom: 70px; /* Space Menu Bawah */
    overflow-x: hidden;
}

/* --- 4. HEADER SYSTEM --- */
.app-header {
    height: 60px;
    background: var(--bg-app);
    border-bottom: 1px solid #f0f0f0;
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 20px;
    position: sticky; top: 0; z-index: 1000;
}
.brand-area h1 { margin: 0; font-size: 18px; color: var(--primary); font-weight: 800; line-height: 1; }
.brand-area small { font-size: 11px; color: var(--text-muted); font-weight: normal; }
.location-badge {
    background: #e3f2fd; color: var(--primary);
    padding: 5px 12px; border-radius: 50px;
    font-size: 11px; font-weight: bold;
    display: flex; align-items: center; gap: 5px;
}
.header-back-btn {
    width: 32px; height: 32px; background: #f5f5f5; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: var(--text-main); transition: 0.2s;
}
.header-title { font-size: 16px; font-weight: 600; }

/* --- 5. HOMEPAGE COMPONENTS --- */

/* A. Search Bar */
.nyetak-search-box {
    background: #f1f3f4;
    border-radius: 10px;
    padding: 12px 15px;
    display: flex; align-items: center; gap: 10px;
}
.nyetak-search-box input {
    border: none; background: transparent; width: 100%; outline: none; font-size: 14px;
}

/* B. Slider Banner */
.nyetak-slider-wrapper {
    display: flex;
    overflow-x: auto;
    gap: 10px;
    padding: 0 15px 15px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none; /* Firefox */
}
.nyetak-slider-wrapper::-webkit-scrollbar { display: none; /* Chrome */ }

.nyetak-slide-item {
    min-width: 90%; /* Banner lebar */
    scroll-snap-align: center;
    border-radius: 10px;
    overflow: hidden;
}
.nyetak-slide-item img {
    width: 100%; display: block; border-radius: 10px;
}

/* C. Menu Grid */
.nyetak-menu-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 Kolom Rata */
    gap: 15px 10px;
    padding: 0 15px 20px;
    text-align: center;
}
.nyetak-menu-item {
    display: flex; flex-direction: column; align-items: center;
    text-decoration: none; color: #333;
}
.nyetak-menu-icon {
    width: 48px; height: 48px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    margin-bottom: 8px;
    display: flex; align-items: center; justify-content: center;
    color: var(--primary);
    box-shadow: 0 2px 5px rgba(0,0,0,0.03);
    transition: transform 0.2s;
}
.nyetak-menu-item:hover .nyetak-menu-icon {
    transform: translateY(-3px); border-color: var(--primary);
}
.nyetak-menu-icon .dashicons { font-size: 24px; width: 24px; height: 24px; }
.nyetak-menu-label { font-size: 11px; font-weight: 500; line-height: 1.2; }

/* --- 6. NAVIGATION (STICKY BOTTOM) --- */
.app-bottom-nav {
    height: 65px; background: var(--bg-app);
    border-top: 1px solid #eee;
    position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
    width: 100%; max-width: var(--app-width);
    z-index: 2000;
    display: flex; align-items: center;
    padding-bottom: env(safe-area-inset-bottom);
}
.nav-item {
    flex: 1; height: 100%;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    color: var(--text-muted); cursor: pointer; transition: 0.2s;
}
.nav-item.active { color: var(--primary); }
.nav-item .dashicons { font-size: 22px; margin-bottom: 4px; display: block; height: 22px; }
.nav-item label { font-size: 10px; font-weight: 500; }

/* --- 7. DRAWER MENU (SLIDE UP) --- */
.app-drawer-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.5); z-index: 2900;
    display: none;
}
.app-drawer-overlay.active { display: block; }

.app-drawer {
    position: fixed; bottom: 0; left: 50%; transform: translateX(-50%) translateY(100%);
    width: 100%; max-width: var(--app-width);
    background: #fff; border-radius: 20px 20px 0 0;
    z-index: 3000; transition: transform 0.3s ease-out;
    max-height: 70vh; display: flex; flex-direction: column;
}
.app-drawer.open { transform: translateX(-50%) translateY(0); }

.drawer-header {
    padding: 15px 20px; border-bottom: 1px solid #eee;
    display: flex; justify-content: space-between; align-items: center;
    font-weight: bold; font-size: 16px;
}
.drawer-body { overflow-y: auto; padding: 10px 0; }
.nyetak-mobile-menu ul { list-style: none; padding: 0; margin: 0; }
.nyetak-mobile-menu li a {
    display: block; padding: 12px 20px; border-bottom: 1px solid #f9f9f9;
    color: #333; font-size: 14px;
}

/* --- 8. GLOBAL UTILS --- */
.container-padded { padding: 15px; }

/* LIST PRODUK STYLE (Backup Style di Tema) */
.nyetak-list-card {
    display: flex; align-items: center; gap: 15px;
    padding: 15px; border-bottom: 1px solid #f0f0f0;
    transition: background 0.2s;
}
.nyetak-list-img {
    width: 65px; height: 65px; border-radius: 10px;
    background: #eee; flex-shrink: 0; overflow: hidden;
}
.nyetak-list-img img { width: 100%; height: 100%; object-fit: cover; }
.nyetak-list-info { flex: 1; }
.nyetak-list-title { margin: 0; font-size: 14px; font-weight: 600; }
.nyetak-list-price { color: var(--accent); font-weight: bold; font-size: 13px; }

/* --- HEADER LOGO FIX --- */
.site-logo img { 
    max-height: 40px; 
    width: auto; 
    display: block;
}

/* --- SLIDER FIX (Auto Ratio & Scroll) --- */
.nyetak-slider-container {
    padding: 5px 15px 15px; 
}

.nyetak-slider-wrapper {
    display: flex;
    overflow-x: auto;
    gap: 15px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none; 
    border-radius: 15px;
}
.nyetak-slider-wrapper::-webkit-scrollbar { display: none; }

.nyetak-slide-item {
    min-width: 100%; 
    scroll-snap-align: center;
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    display: block; 
    aspect-ratio: 2 / 1; 
}

.nyetak-slide-item img {
    width: 100%;
    height: 100%;
    object-fit: cover; 
    border-radius: 15px;
    display: block;
}

/* Placeholder Style */
.nyetak-slide-item.placeholder {
    background: #e0e0e0;
    display: flex; align-items: center; justify-content: center;
    text-align: center; color: #888; font-size: 14px; font-weight: bold;
}

/* --- SLIDER DOTS NAVIGATION --- */
.slider-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 12px;
}

.slider-dot {
    width: 8px;
    height: 8px;
    background-color: #ddd; 
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-dot.active {
    background-color: var(--primary); /* Mengikut Warna Global */
    width: 20px; 
    border-radius: 10px;
}

/* =========================================
   MENU GRID HOMEPAGE (8 ICONS)
   ========================================= */

/* 1. Container Menu */
.nyetak-menu-section {
    margin: 25px auto; 
    padding: 0 20px; /* Padding kiri-kanan */
    max-width: 100%;
    box-sizing: border-box;
}

/* 2. Grid Layout */
.nyetak-menu-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 Kolom Rata */
    gap: 20px 10px; /* Jarak antar menu */
    text-align: center;
    justify-content: space-between;
}

/* 3. Item Menu */
.nyetak-menu-item {
    display: flex; 
    flex-direction: column; 
    align-items: center;
    text-decoration: none; 
    color: #333; 
    transition: transform 0.2s;
    width: 100%;
}

.nyetak-menu-item:hover { 
    transform: translateY(-3px); 
}

/* 4. Kotak Ikon */
.nyetak-icon-box {
    width: 65px; 
    height: 65px; 
    background: #fff; 
    border-radius: 15px;
    display: flex; 
    align-items: center; 
    justify-content: center;
    margin-bottom: 10px; 
    border: 1px solid #f0f0f0;
    box-shadow: 0 4px 10px rgba(0,0,0,0.04);
}

/* 5. Gambar Ikon */
.nyetak-icon-box img { 
    width: 32px; 
    height: 32px; 
    object-fit: contain; 
}

/* 6. Dashicon (Ikon Bawaan) */
.nyetak-icon-box .dashicons {
    font-size: 32px; 
    width: 32px; 
    height: 32px; 
    /* Menggunakan variabel warna dari Footer */
    color: var(--nyetak-primary, #0073aa); 
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 7. Judul Menu */
.nyetak-menu-title { 
    font-size: 13px; 
    font-weight: 600; 
    line-height: 1.3; 
    color: #444; 
}

/* Responsif HP Kecil */
@media (max-width: 360px) {
    .nyetak-menu-section { padding: 0 10px; }
    .nyetak-icon-box { width: 55px; height: 55px; }
    .nyetak-icon-box img, .nyetak-icon-box .dashicons { width: 28px; height: 28px; font-size: 28px; }
    .nyetak-menu-title { font-size: 11px; }
}

/* --- LIST PRODUK GAYA BARU (HOVER + DESC) --- */

.nyetak-product-list {
    display: flex;
    flex-direction: column;
    gap: 15px; 
    padding: 0 5px; 
}

/* Container Item */
.nyetak-item {
    display: flex;
    align-items: center;
    gap: 15px;
    background: #fff;
    padding: 12px;
    border-radius: 12px;
    border: 1px solid #f0f0f0; 
    transition: all 0.3s ease; 
    position: relative;
    overflow: hidden;
}

/* EFEK HOVER (Mouse Over) */
.nyetak-item:hover {
    transform: translateY(-3px); 
    box-shadow: 0 5px 15px rgba(0,0,0,0.08); 
    border-color: var(--primary-light); /* Menggunakan warna variasi */
    background-color: #fafafa;
}

/* Gambar */
.nyetak-item-img {
    flex-shrink: 0;
    width: 70px;
    height: 70px;
    border-radius: 10px;
    overflow: hidden;
    background: #eee;
}
.nyetak-item-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Info Tengah */
.nyetak-item-info {
    flex: 1; 
    min-width: 0; 
}

.nyetak-item-title {
    margin: 0 0 3px;
    font-size: 15px;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.2;
}

.nyetak-item-price {
    font-size: 14px;
    color: var(--primary); /* Mengikut Warna Global */
    font-weight: 700;
    margin-bottom: 3px;
}
.nyetak-unit {
    font-size: 11px;
    color: #999;
    font-weight: normal;
}

/* SHORT DESCRIPTION */
.nyetak-item-desc {
    font-size: 11px;
    color: #888;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2; 
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* TOMBOL PESAN (Gaya Tombol Utama) */
.nyetak-btn-small {
    background-color: var(--primary); /* Mengikut Warna Global */
    color: #fff !important;
    padding: 6px 16px;
    border-radius: 50px; 
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    transition: 0.2s;
    white-space: nowrap;
}

.nyetak-btn-small:hover {
    filter: brightness(0.9);
    transform: scale(1.05); 
}

/* Responsive di HP */
@media (max-width: 480px) {
    .nyetak-item { padding: 10px; gap: 10px; }
    .nyetak-item-img { width: 60px; height: 60px; }
    .nyetak-item-title { font-size: 14px; }
    .nyetak-item-desc { -webkit-line-clamp: 1; }
}

/* --- PRODUCT GALLERY SLIDER (Auto Scroll) --- */

.product-slider-container {
    position: relative;
    width: 100%;
    background: #f9f9f9;
    border-bottom: 1px solid #eee;
}

.product-slider-wrapper {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none; 
    -webkit-overflow-scrolling: touch; 
}
.product-slider-wrapper::-webkit-scrollbar { display: none; }

.product-slide-item {
    min-width: 100%; 
    scroll-snap-align: center;
    position: relative;
    aspect-ratio: 1 / 1; 
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.product-slide-item img {
    width: 100%;
    height: 100%;
    object-fit: cover; 
    display: block;
}

/* Dots Indikator Produk */
.product-slider-dots {
    position: absolute;
    bottom: 15px;
    left: 0; 
    right: 0;
    display: flex;
    justify-content: center;
    gap: 6px;
    z-index: 5;
}

.p-dot {
    width: 8px;
    height: 8px;
    background: rgba(255,255,255, 0.5);
    border-radius: 50%;
    border: 1px solid rgba(0,0,0,0.1);
}
.p-dot.active {
    background: var(--primary); /* Mengikut Warna Global */
    width: 20px;
    border-radius: 10px;
    border: none;
}

/* --- NAVIGASI PANAH SLIDER (KIRI & KANAN) --- */

.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.7); 
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: all 0.2s;
    color: #333;
}

.slider-nav:active {
    background: #fff;
    transform: translateY(-50%) scale(0.9);
}

.slider-nav .dashicons {
    font-size: 20px;
    width: 20px;
    height: 20px;
}

/* Posisi Kiri & Kanan */
.prev-slide { left: 10px; }
.next-slide { right: 10px; }

/* =========================================
   MARKETING POPUP STYLES (Final Fix)
   ========================================= */

/* --- A. WRAPPER ATAS (BARU: Agar Fake Sale Rata Layout) --- */
.nyetak-top-popup-wrapper {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%); /* Center Horizontal */
    width: 100%;
    max-width: 500px; /* Lebar Layout Utama */
    height: 0;
    z-index: 9999;
    pointer-events: none; /* Agar area kosong tembus klik */
}

/* --- B. WRAPPER BAWAH (Agar Bubble Chat Rata Layout) --- */
.nyetak-popup-wrapper {
    position: fixed;
    bottom: 90px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 500px; 
    height: 0;
    z-index: 9990;
    display: flex;
    justify-content: flex-end; /* Rata Kanan */
    padding: 0 15px;
    pointer-events: none;
}


/* --- C. CSS FAKE SALES (POSISI RELATIF TERHADAP WRAPPER ATAS) --- */
#nyetak-fake-sale {
    position: absolute;  /* Absolute terhadap .nyetak-top-popup-wrapper */
    top: 80px;           /* Jarak dari Atas Wrapper (di bawah Header) */
    left: 15px;          /* Jarak dari Kiri Wrapper (BUKAN Layar) */
    
    /* Style Kotak */
    width: auto;
    min-width: 220px;
    max-width: 280px;
    background: #ffffff;
    padding: 12px 15px 12px 12px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    border-left: 4px solid var(--nyetak-primary);
    
    display: flex; 
    align-items: center; 
    gap: 12px;
    pointer-events: auto; /* Agar bisa diklik close */

    /* Animasi Turun */
    transform: translateY(-200%); 
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.4, 0.0, 0.2, 1);
}

#nyetak-fake-sale.show { 
    transform: translateY(0); 
    opacity: 1; 
}

/* Icon & Konten Fake Sale (Sama seperti sebelumnya) */
.nfs-img {
    width: 36px; height: 36px; background: #f0f2f5; 
    border-radius: 50%; display: flex; align-items: center; justify-content: center; 
    color: var(--nyetak-primary); flex-shrink: 0;
}
.nfs-img span { font-size: 18px; }

.nfs-content { display: flex; flex-direction: column; font-size: 11px; line-height: 1.3; flex: 1; }
.nfs-name { font-weight: 700; color: #333; font-size: 12px; }
.nfs-action { color: #888; font-size: 10px; }
.nfs-prod { font-weight: 600; color: var(--nyetak-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 140px; }

.nfs-close { 
    position: absolute; top: 2px; right: 2px; cursor: pointer; 
    color: #ccc; font-size: 14px; width: 16px; height: 16px; line-height: 16px; text-align: center; border-radius: 50%; 
}
.nfs-close:hover { background: #eee; color: #333; }

/* --- 3. CSS CHAT WIDGET (KANAN) --- */
#nyetak-chat-widget {
    pointer-events: auto;
    position: absolute;
    right: 15px; /* Nempel Kanan Wrapper */
    bottom: 0;
    width: 280px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.15);
    overflow: hidden;
    transform: translateY(150%);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}
#nyetak-chat-widget.show { transform: translateY(0); opacity: 1; }
.ncw-header { padding: 15px; color: #fff; display: flex; align-items: center; gap: 10px; position: relative; background-color: var(--nyetak-primary); }
.ncw-admin-img { position: relative; width: 40px; height: 40px; flex-shrink: 0; }
.ncw-admin-img img { width: 100%; height: 100%; border-radius: 50%; border: 2px solid #fff; }
.ncw-online-status { position: absolute; bottom: 0; right: 0; width: 10px; height: 10px; background: #2ecc71; border-radius: 50%; border: 2px solid #fff; }
.ncw-admin-info { display: flex; flex-direction: column; }
.ncw-name { font-weight: 700; font-size: 14px; }
.ncw-status-text { font-size: 11px; opacity: 0.9; }
.ncw-close-btn { position: absolute; top: 10px; right: 12px; cursor: pointer; font-size: 24px; line-height: 1; opacity: 0.7; transition: 0.2s; }
.ncw-close-btn:hover { opacity: 1; }
.ncw-body { padding: 15px; background: #f9f9f9; }
.ncw-message-bubble { background: #fff; padding: 12px; border-radius: 12px; border-top-left-radius: 2px; font-size: 13px; color: #444; line-height: 1.4; box-shadow: 0 2px 5px rgba(0,0,0,0.03); position: relative; }
.ncw-message-bubble::before { content: ''; position: absolute; top: 0; left: -8px; width: 0; height: 0; border-top: 10px solid #fff; border-left: 10px solid transparent; }
.ncw-footer { padding: 12px; background: #fff; border-top: 1px solid #eee; }
.ncw-start-chat-btn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; padding: 10px; border-radius: 25px; color: #fff; font-weight: 600; text-decoration: none; font-size: 14px; transition: 0.2s; box-shadow: 0 3px 10px rgba(0,0,0,0.1); background-color: var(--nyetak-primary); }
.ncw-start-chat-btn:hover { filter: brightness(1.1); transform: translateY(-2px); }

/* Responsif HP Kecil */
@media (max-width: 400px) {
    .nyetak-top-popup-wrapper { padding: 0 10px; }
    .nyetak-popup-wrapper { padding: 0 10px; }
    #nyetak-fake-sale { left: 10px; max-width: 200px; font-size: 10px; }
    #nyetak-chat-widget { right: 10px; width: 240px; }
}

/* =========================================
   DRAWER MENU STYLING (PERBAIKAN TAMPILAN)
   ========================================= */

/* Hapus padding/margin bawaan list */
.nyetak-mobile-menu, 
.nyetak-mobile-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* Style Tiap Item Menu */
.nyetak-mobile-menu li {
    border-bottom: 1px solid #f5f5f5; /* Garis pemisah halus */
}

/* Style Link Menu */
.nyetak-mobile-menu li a {
    display: flex;
    align-items: center;
    justify-content: space-between; /* Agar jika ada panah submenu bisa di kanan */
    padding: 15px 20px;
    color: #444;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1); /* Transisi halus */
    position: relative;
    overflow: hidden;
}

/* EFEK HOVER KEREN */
.nyetak-mobile-menu li a:hover {
    background-color: #fcfcfc;       /* Warna background jadi agak terang */
    color: var(--nyetak-primary);    /* Warna teks jadi Biru (sesuai tema) */
    padding-left: 28px;              /* Teks bergeser ke kanan */
    font-weight: 600;
}

/* Menambahkan Garis Indikator di Kiri saat Hover */
.nyetak-mobile-menu li a:hover::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background-color: var(--nyetak-primary);
}

/* =========================================
   ARCHIVE BLOG LISTING (NEWS FEED STYLE)
   ========================================= */

/* Container Arsip */
.nyetak-archive-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px 15px 80px; /* Padding bawah besar agar tidak ketutup menu footer */
}

/* Header Arsip */
.archive-header {
    margin-bottom: 25px;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
}
.archive-title {
    font-size: 20px;
    font-weight: 700;
    color: #333;
    margin: 0;
}
.archive-desc {
    font-size: 13px;
    color: #666;
    margin-top: 5px;
}

/* KARTU ARTIKEL (Style Inti) */
.nyetak-blog-card {
    display: flex; /* Layout Kiri-Kanan */
    gap: 15px;
    background: #fff;
    border: 1px solid #f0f0f0;
    border-radius: 12px;
    padding: 12px;
    margin-bottom: 15px;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 5px rgba(0,0,0,0.02);
}

.nyetak-blog-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    border-color: var(--nyetak-primary, #0073aa);
}

/* Bagian Gambar (Kiri) */
.blog-card-img {
    flex-shrink: 0;
    width: 90px;
    height: 90px;
    border-radius: 8px;
    overflow: hidden;
    background: #f9f9f9;
}

.blog-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Agar gambar full kotak */
}

.blog-placeholder {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    color: #ccc;
}
.blog-placeholder span { font-size: 30px; }

/* Bagian Konten (Kanan) */
.blog-card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.blog-cat {
    font-size: 10px;
    text-transform: uppercase;
    color: var(--nyetak-primary, #0073aa);
    font-weight: 700;
    margin-bottom: 4px;
}

.blog-title {
    margin: 0 0 6px;
    font-size: 15px;
    line-height: 1.3;
    font-weight: 600;
}
.blog-title a {
    text-decoration: none;
    color: #333;
    display: -webkit-box;
    -webkit-line-clamp: 2; /* Batasi max 2 baris judul */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-excerpt {
    font-size: 12px;
    color: #666;
    line-height: 1.4;
    margin-bottom: 8px;
    display: none; /* Di HP biasanya excerpt disembunyikan agar ringkas, nyalakan jika perlu */
}

.blog-meta {
    font-size: 11px;
    color: #999;
    display: flex;
    align-items: center;
    gap: 4px;
}
.blog-meta .dashicons { font-size: 14px; width: 14px; height: 14px; }

/* Pagination Style */
.nyetak-pagination {
    margin-top: 30px;
    text-align: center;
}
.nyetak-pagination .nav-links {
    display: flex;
    justify-content: center;
    gap: 5px;
}
.nyetak-pagination a, 
.nyetak-pagination span {
    display: flex;
    align-items: center; justify-content: center;
    width: 35px; height: 35px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 50%;
    text-decoration: none;
    color: #333;
    font-size: 13px;
    font-weight: 600;
}
.nyetak-pagination .current, 
.nyetak-pagination a:hover {
    background: var(--nyetak-primary, #0073aa);
    color: #fff;
    border-color: var(--nyetak-primary, #0073aa);
}

/* Responsif Desktop (Jika layar lebar, excerpt muncul) */
@media (min-width: 768px) {
    .blog-excerpt { display: block; }
    .blog-card-img { width: 120px; height: 120px; }
    .blog-title { font-size: 18px; }
}

/* =========================================
   SINGLE POST & RELATED FIX
   ========================================= */

/* 1. Container Wrapper */
.nyetak-single-wrapper {
    max-width: 800px;
    margin: 0 auto;
    padding: 25px 20px 100px; /* Padding atas ditambah agar judul aman */
}

/* 2. Header & Judul (H1) */
.entry-header { 
    margin-bottom: 25px; 
    position: relative;
    z-index: 1;
}

.entry-cat a {
    display: inline-block;
    background: var(--nyetak-primary, #0073aa);
    color: #fff !important;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 4px;
    text-decoration: none;
    margin-bottom: 10px;
}

.entry-title {
    display: block;
    width: 100%;
    font-size: 26px !important; /* Paksa ukuran besar */
    line-height: 1.3 !important;
    font-weight: 800 !important;
    color: #111 !important; /* Paksa warna hitam pekat */
    margin: 5px 0 15px !important;
    clear: both; /* Hindari float error */
}

.entry-meta {
    font-size: 12px;
    color: #777;
    display: flex; gap: 15px;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
}

/* 3. Gambar & Konten */
.entry-thumbnail {
    margin-bottom: 25px;
    border-radius: 10px;
    overflow: hidden;
}
.entry-thumbnail img { width: 100%; height: auto; }

.entry-content { font-size: 16px; line-height: 1.8; color: #333; }
.entry-content p { margin-bottom: 1.5em; }

/* 4. Related Posts (Fix Layout Kosong) */
.nyetak-related-posts {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 2px dashed #eee;
}
.related-heading {
    font-size: 18px;
    font-weight: 700;
    color: #333;
    margin-bottom: 15px;
    border-left: 4px solid var(--nyetak-primary, #0073aa);
    padding-left: 10px;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 Kolom */
    gap: 15px;
}

.related-card {
    text-decoration: none;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s;
}
.related-card:hover { transform: translateY(-3px); border-color: var(--nyetak-primary); }

.related-img {
    height: 120px;
    background: #f2f2f2;
    overflow: hidden;
    position: relative;
}
.related-img img { width: 100%; height: 100%; object-fit: cover; }
.related-placeholder {
    width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
}
.related-placeholder .dashicons { font-size: 30px; color: #ccc; }

.related-info { padding: 12px; flex: 1; display: flex; flex-direction: column; justify-content: center; }
.related-info h4 {
    font-size: 14px; margin: 0 0 5px; color: #222 !important; /* Warna Judul Related */
    font-weight: 600;
    line-height: 1.4;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.related-info span { font-size: 11px; color: #999; }