/* ==========================================================================
   ===== RESET, SMOOTH SCROLL & DASAR INDUSTRI =====
   ========================================================================== */
html {
    scroll-behavior: smooth; /* Membuat efek skrol menu otomatis meluncur halus */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Roboto, system-ui, -apple-system, sans-serif;
    
    /* CHANGER: Mengubah latar belakang dasar di luar kotak halaman web */
    background: #f8fafc; 
    
    /* CHANGER: Mengubah warna tulisan teks utama (disarankan warna gelap) */
    color: #0f172a;      
    
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* ===== WRAPPER KONTEN UTAMA (SAMA RATA UNTUK CLASSIC & GUTENBERG EDITOR) ===== */
.entry-content {
    width: 100%;
    max-width: 1200px; /* Lebar default seragam untuk PC sejak awal */
    margin: 2rem auto;
    padding: 0 1.5rem;
    font-size: 1.1rem;
    color: #334155;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.05);
}

/* RESET BLOK GUTENBERG: Menyelaraskan seluruh blok Gutenberg agar patuh pada lebar kontainer */
.entry-content > .wp-block-group,
.entry-content > .wp-block-columns,
.entry-content > .wp-block-cover,
.entry-content > form {
    max-width: 100% !important;
    width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* ==========================================================================
   ===== HEADER & NAVIGASI KATALOG KOMERSIAL =====
   ========================================================================== */
header {
    /* CHANGER: Warna dasar balok header menu atas website */
    background: #0f172a; 
    
    /* CHANGER: Warna garis pembatas horisontal tepat di bawah menu header */
    border-bottom: 3px solid #eab308; 
    
    padding: 1.2rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

header .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
}

header h1 {
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    text-transform: uppercase;
}

header h1 a {
    /* CHANGER: Warna teks utama Nama PT / Judul di header */
    color: #ffffff; 
    text-decoration: none;
}

header h1 a span {
    /* CHANGER: Warna teks khusus variasi (teks di dalam tag <span>) di header logo */
    color: #eab308; 
}

/* Navigasi Menu Header */
nav ul {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.8rem;
    list-style: none;
    align-items: center;
}

nav ul li a {
    text-decoration: none;
    
    /* CHANGER: Warna teks link menu biasa (sebelum diarahkan kursor) */
    color: #cbd5e1; 
    
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.95rem;
    padding: 0.4rem 0;
    border-bottom: 2px solid transparent;
    transition: all 0.2s ease;
}

nav ul li a:hover {
    /* CHANGER: Warna teks link menu ketika ditunjuk kursor mouse */
    color: #eab308; 
    
    /* CHANGER: Warna garis bawah menu aktif ketika ditunjuk kursor mouse */
    border-bottom-color: #eab308; 
}

/* Tombol WhatsApp Marketing (Sangat Agresif & Mencolok) */
.menu li.menu-contact a {
    /* CHANGER: Warna gradasi background tombol WA marketing Anda */
    background: linear-gradient(135deg, #eab308, #d97706); 
    
    /* CHANGER: Warna tulisan teks di dalam tombol WA marketing (disarankan kontras tinggi) */
    color: #0f172a !important; 
    
    padding: 0.6rem 1.5rem;
    border-radius: 8px; 
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: none;
    box-shadow: 0 4px 12px rgba(234, 179, 8, 0.3);
    transition: all 0.3s ease;
    margin-left: 0.5rem;
}

.menu li.menu-contact a:hover {
    /* CHANGER: Gradasi warna tombol WA marketing saat diarahkan kursor */
    background: linear-gradient(135deg, #d97706, #b45309);
    
    /* CHANGER: Warna teks tombol WA marketing saat diarahkan kursor */
    color: #ffffff !important; 
    
    transform: translateY(-2px);
}

/* Garis Pemisah Konten */
hr {
    border: none;
    height: 1px;
    background: linear-gradient(to right, transparent, #cbd5e1, transparent);
    margin: 2rem 0;
}

/* ==========================================================================
   ===== TIPOGRAFI KONTEN & SPASI ENTER =====
   ========================================================================== */
.entry-content h1 {
    font-size: 2.4rem;
    font-weight: 700;
    
    /* CHANGER: Warna judul utama (H1) artikel/halaman Anda */
    color: #0f172a; 
    
    margin: 1.8rem 0 1rem;
    line-height: 1.2;
}

.entry-content h2 {
    font-size: 1.8rem;
    margin: 2.2rem 0 1.2rem;
    color: #1e293b;
    
    /* CHANGER: Warna aksen garis tegak di sisi kiri Judul H2 */
    border-left: 5px solid #eab308; 
    
    padding-left: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.entry-content h3 {
    font-size: 1.4rem;
    margin: 1.8rem 0 0.8rem;
    color: #334155;
}

.entry-content p {
    margin-bottom: 1.5rem;
}

/* Link di dalam halaman */
.entry-content a {
    /* CHANGER: Warna teks tautan/link biasa di dalam teks artikel */
    color: #d97706; 
    
    font-weight: 600;
    text-decoration: none;
    
    /* CHANGER: Warna garis bawah dekorasi link */
    border-bottom: 2px solid #fef08a; 
    
    transition: all 0.2s;
}

.entry-content a:hover {
    /* CHANGER: Warna teks tautan/link saat disorot kursor */
    color: #b45309; 
    
    /* CHANGER: Warna garis bawah dekorasi link saat disorot kursor */
    border-bottom-color: #d97706; 
}

/* SOLUSI ENTER: Mengatasi tombol enter di Classic Editor agar tidak mengempis */
.entry-content br {
    content: "";
    display: block;
    margin-bottom: 1rem;
}

.entry-content p:empty::before,
.entry-content p:has(> br)::before {
    content: "\00a0"; 
    display: inline-block;
}

/* DAFTAR (LIST) */
.entry-content ul,
.entry-content ol {
    margin: 0 0 1.5rem 1.8rem;
}

.entry-content li {
    margin-bottom: 0.5rem;
}

.entry-content li p {
    display: inline;
}

/* ==========================================================================
   ===== LAYOUT FOTO & DUKUNGAN KATALOG PRODUK (GUTENBERG BLOCK) =====
   ========================================================================== */
.entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px; 
    box-shadow: 0 4px 12px rgba(0,0,0,0.07);
    border: 1px solid #e2e8f0;
}

/* Perataan Posisi Gambar / Blok */
.alignleft { float: left; margin: 0.3rem 1.5rem 1rem 0; max-width: 50%; }
.alignright { float: right; margin: 0.3rem 0 1rem 1.5rem; max-width: 50%; }
.aligncenter { display: block; margin: 2rem auto; }

.has-text-align-center { text-align: center !important; }
.has-text-align-right { text-align: right !important; }
.has-text-align-left { text-align: left !important; }

.wp-block-image.aligncenter,
.wp-block-embed.aligncenter,
.wp-block-group.aligncenter {
    display: block !important;
    margin-left: auto !important;
    margin-right: auto !important;
    text-align: center;
}

.wp-block-image.alignright { float: right; margin: 0.5rem 0 1rem 1.5rem; }
.wp-block-image.alignleft { float: left; margin: 0.5rem 1.5rem 1rem 0; }

/* DUKUNGAN GRID ETALASE HOMEPAGE (DARI EDITOR BLOCK WORDPRESS) */
.wp-block-columns {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin: 2rem 0;
}

.wp-block-column {
    flex: 1;
    min-width: 280px; 
    background: #ffffff;
    border: 1px solid #e2e8f0;
    padding: 1.2rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.02);
    transition: all 0.3s ease;
}

/* Efek interaktif saat kursor menunjuk kotak spesifikasi/produk */
.wp-block-column:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
    
    /* CHANGER: Warna garis bingkai kotak produk saat disorot mouse */
    border-color: #eab308; 
}

/* GALERI FOTO PROYEK / UNIT */
.wp-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin: 2rem 0;
}

.gallery-item {
    border-radius: 8px;
    overflow: hidden;
    background: #f1f5f9;
    box-shadow: 0 4px 12px rgba(0,0,0,0.02);
    aspect-ratio: 4/3;
    border: 1px solid #e2e8f0;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* CONTAINER VIDEO DISPLAY */
.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 12px;
    margin: 2rem 0;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.video-container iframe,
.video-container video {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%; border: none;
}

/* ==========================================================================
   ===== ARSIP KATALOG & STRUKTUR KATEGORI =====
   ========================================================================== */
.page-title {
    max-width: 1200px;
    margin: 2.5rem auto 0.5rem;
    padding: 0 1.5rem;
    font-size: 2.5rem;
    font-weight: 800;
    color: #0f172a;
    text-transform: uppercase;
}

.blog-categories {
    max-width: 1200px;
    margin: 1.5rem auto;
    padding: 0 1.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.blog-categories h3 {
    margin: 0;
    font-size: 1.1rem;
}

.blog-categories h3 a {
    display: block;
    padding: 0.6rem 1.4rem;
    color: #475569;
    text-decoration: none;
    font-weight: 600;
    background: white;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    transition: all 0.2s;
}

.blog-categories h3 a:hover {
    /* CHANGER: Latar kotak tombol pilihan kategori saat disorot */
    background: #0f172a; 
    
    /* CHANGER: Warna tulisan nama kategori di dalam tombol saat disorot */
    color: #eab308; 
    
    border-color: #0f172a;
}

/* Grid Etalase Halaman Kategori */
.category-posts {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1.5rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.category-posts h2 {
    margin: 0;
    font-size: 1.3rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.02);
    border: 1px solid #e2e8f0;
    transition: all 0.2s ease;
}

.category-posts h2 a {
    display: block;
    padding: 1.5rem;
    color: #0f172a;
    text-decoration: none;
    font-weight: 600;
}

.category-posts h2 a:hover {
    background: #f8fafc;
    
    /* CHANGER: Warna judul artikel list saat kursor mouse menyentuhnya */
    color: #d97706; 
    
    border-radius: 12px;
}

/* ==========================================================================
   ===== TABEL SPESIFIKASI TEKNIS MESIN (SANGAT VITAL) =====
   ========================================================================== */
.table-container {
    width: 100%;
    overflow-x: auto;
    margin: 2.5rem 0;
    -webkit-overflow-scrolling: touch;
    border-radius: 8px;
    border: 2px solid #cbd5e1; 
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
}

.table-container table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.95rem;
    background: #ffffff;
}

.table-container th {
    /* CHANGER: Warna background kepala judul kolom tabel spek */
    background-color: #0f172a; 
    
    color: #ffffff;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.03em;
    
    /* CHANGER: Warna garis pembatas horisontal di bawah judul kolom tabel */
    border-bottom: 3px solid #eab308; 
    
    padding: 14px 18px;
}

.table-container td {
    padding: 14px 18px;
    border-bottom: 1px solid #e2e8f0;
    color: #334155;
    font-weight: 500;
}

.table-container tr:nth-child(even) {
    /* CHANGER: Warna selang-seling baris genap pada tabel (efek zebra) */
    background-color: #f8fafc; 
}

.table-container tr:hover {
    /* CHANGER: Warna sorot baris tabel saat dilewati mouse */
    background-color: #f1f5f9; 
}

/* ==========================================================================
   ===== FOOTER PERUSAHAAN DISTRIBUTOR =====
   ========================================================================== */
footer {
    text-align: center;
    padding: 2.5rem 1.5rem;
    margin-top: 4rem;
    
    /* CHANGER: Warna dasar background balok kaki website (footer) */
    background: #0f172a; 
    
    /* CHANGER: Warna pembatas garis atas pada area footer */
    border-top: 4px solid #eab308; 
    
    color: #94a3b8;
    font-size: 0.9rem;
    font-weight: 500;
}

footer hr { display: none; }

/* INFO VALIDASI DOKUMEN */
.last-updated {
    margin-top: 2.5rem;
    font-size: 0.85rem;
    color: #64748b;
    font-style: italic;
    text-align: right;
    border-top: 1px dashed #e2e8f0;
    padding-top: 1rem;
}

/* WADAH PENGUMUMAN / UPDATE UNIT */
.recent-updates {
    margin-top: 2.5rem;
    padding: 1.5rem;
    
    /* CHANGER: Latar belakang kotak kecil info tulisan artikel terbaru */
    background: #fef9c3; 
    
    /* CHANGER: Warna pembatas garis sisi kiri kotak artikel terbaru */
    border-left: 5px solid #eab308; 
    
    border-radius: 8px;
    font-size: 0.95rem;
}

.recent-updates p { margin-bottom: 0.6rem; font-weight: 700; color: #854d0e; }
.recent-updates ul { margin: 0.5rem 0 0 1.5rem; list-style-type: square; }
.recent-updates li { margin-bottom: 0.5rem; }
.recent-updates li a { color: #b45309; border-bottom: 1px dotted #d97706; }
.recent-updates li a:hover { color: #78350f; border-bottom-style: solid; }
.recent-updates small { color: #71717a; margin-left: 0.3rem; }

/* CLEANER KONTEN FLUIDA */
.entry-content::after { content: ""; clear: both; display: table; }

/* ==========================================================================
   ===== ATURAN RESPONSIVE GLASSES (BREAKPOINTS) =====
   ========================================================================== */
@media (min-width: 640px) {
    .category-posts { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
    .entry-content {
        padding: 0 3rem; /* Fokus memberikan spasi dalam yang seimbang di PC */
    }
    .category-posts { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
    header .container {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    nav ul { justify-content: flex-start; gap: 0.6rem 1.2rem; }
    .menu li.menu-contact a { margin-left: 0; margin-top: 0.5rem; width: 100%; justify-content: center; }
    
    .wp-block-columns { flex-direction: column; gap: 1.2rem; }
    
    .alignleft, .alignright {
        float: none; margin: 1rem auto; max-width: 100%; display: block;
    }
    .entry-content, .page-title, .blog-categories, .category-posts {
        max-width: 100%; 
    }
}