/*
 Theme Name:   GeneratePress Child
 Template:     generatepress
 Version:      1.0.0
*/

/* Tulis CSS kustom Anda di bawah ini */

/* --- Root Variables & Reset --- */
:root {
    --primary-color: #0070f3; /* Biru Cerah */
    --secondary-color: #00dfd8; /* Cyan/Teal */
    --text-main: #1a1a1a;
    --text-muted: #555555;
    --bg-light: #f8f9fa;
    --white: #ffffff;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    --border-radius: 12px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: var(--text-main);
    line-height: 1.6;
}

/* --- Hero Section --- */
.custom-hero {
    background: linear-gradient(135deg, #ffffff 0%, #eef2f7 100%);
    padding: 20px 0;
    overflow: hidden;
}

.hero-inner {
    display: flex;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
}

.hero-content {
    flex: 1;
    min-width: 300px;
}

.hero-content h1 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 30px;
    max-width: 800px;
}

.hero-visual {
    flex: 1;
    text-align: center;
    min-width: 300px;
}

.hero-visual img {
    max-width: 90%;
    height: auto;
    filter: drop-shadow(0 20px 40px rgba(0,112,243,0.15));
}

/* Layout Grid Utama */
.topics-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 Kolom untuk ruang lebih luas */
    gap: 20px;
    margin: 35px 0;
}

/* Kotak Kartu */
.topic-card {
    background: #ffffff;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #edf2f7;
    text-align: left; /* Teks rata kiri agar lebih profesional */
    transition: all 0.3s ease;
}

.topic-card:hover {
    border-color: #0073aa;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

/* Bagian Header Kartu (Ikon + Judul) */
.card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.card-header i {
    font-size: 24px;
}

.card-header h3 {
    margin: 0;
    font-size: 18px;
    color: #1a202c;
    font-weight: 700;
}

/* Deskripsi Singkat */
.topic-card p {
    margin: 0;
    font-size: 13px;
    line-height: 1.5;
    color: #718096;
}

/* Warna Ikon */
.icon-linux { color: #333; }
.icon-cloud { color: #00aaff; }
.icon-docker { color: #2496ed; }
.icon-cpanel { color: #ff6c2c; }

/* Responsif untuk Mobile */
@media (max-width: 600px) {
    .topics-grid {
        grid-template-columns: 1fr; /* 1 Kolom di HP agar tidak sempit */
    }
}

/* --- Button Style --- */
.button {
    background-color: var(--primary-color) !important;
    color: var(--white) !important;
    padding: 15px 35px !important;
    border-radius: 50px !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 14px 0 rgba(0,118,255,0.39) !important;
}

.button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,118,255,0.23) !important;
    background-color: #0061d1 !important;
}

/* --- Category Section --- */
.category-section {
    padding: 80px 0;
    background: var(--white);
}

.section-title {
    text-align: center;
    font-weight: 700;
    margin-bottom: 50px;
    font-size: 2rem;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.cat-card {
    padding: 40px;
    background: var(--white);
    border-radius: var(--border-radius);
    border: 1px solid #eaeaea;
    transition: all 0.3s ease;
    text-align: center;
}

.cat-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-10px);
    box-shadow: var(--shadow);
}

.cat-card h3 {
    margin-bottom: 15px;
    color: var(--primary-color);
    font-weight: 700;
}

.cat-card p {
    font-size: 0.95rem;
    color: var(--text-muted);
}

/* Responsif Mobile */
@media (max-width: 768px) {
    .utility-inner {
        grid-template-columns: 1fr;
    }
    
    .hero-content {
        text-align: center;
    }
    
    .hero-content p {
        margin: 0 auto 30px;
    }
}

/* Pastikan Grid Container di dalam Hero tetap konsisten */
.custom-hero .grid-container {
    max-width: 1800px; /* Sesuaikan dengan settingan GeneratePress Anda */
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;  /* Memberi ruang di layar HP agar tidak nempel ke pinggir */
    padding-right: 20px;
}

.hero-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%; /* Memastikan dia mengambil 100% dari grid-container */
    gap: 40px;
}
/* Pengaman agar tidak ada scroll horizontal */
/*html, body {
    overflow-x: hidden;
}*/

/* Pastikan elemen pembungkus tidak menghalangi sticky */
html, body {
    overflow-x: visible; /* Penting agar sticky berfungsi */
}

/* --- Perbaikan Hero Inner untuk Iklan 300x600 --- */
.hero-inner {
    display: grid;
    /* Kolom 1: Otomatis, Kolom 2: Pasti 300px, Kolom 3: Otomatis */
    grid-template-columns: 1fr 300px 1fr; 
    align-items: start; /* Iklan biasanya lebih tinggi, start agar teks tidak turun ke tengah */
    gap: 30px;
    width: 100%;
}

/* Styling Box Iklan Tengah */
.hero-ads-middle {
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.ads-wrapper {
    width: 300px;  /* Lebar Pasti */
    height: 600px; /* Tinggi Pasti */
    background: #f9f9f9;
    border: 1px dashed #ddd;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Label Advertisement kecil di atas iklan */
.ads-wrapper::before {
    content: "ADVERTISEMENT";
    position: absolute;
    top: 5px;
    font-size: 9px;
    color: #bbb;
    letter-spacing: 1px;
}

/* RESPONSIVE: Pengaturan untuk Tablet & HP */
@media (max-width: 1200px) {
    /* Jika layar mulai menyempit, kita kecilkan gap agar tidak pecah */
    .hero-inner {
        gap: 15px;
        grid-template-columns: 1fr 300px 0.8fr;
    }
}

@media (max-width: 1024px) {
    /* Pada Tablet, sembunyikan visual agar Iklan dan Teks tetap leluasa */
    .hero-inner {
        grid-template-columns: 1fr 300px;
    }
    .hero-visual {
        display: none !important;
    }
}

@media (max-width: 768px) {
    .hero-inner {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero-content {
        width: 100%;
        text-align: center;
    }

    /* Di Mobile, jika iklan 600px terlalu tinggi, kita bisa buat auto */
    .hero-ads-middle {
        width: 100%;
        order: 2; /* Iklan muncul setelah headline sebelum footer */
        margin: 30px 0;
    }
    
    .ads-wrapper {
        width: 300px; /* Lebar tetap 300 agar tidak meluap keluar layar HP */
        height: 250px; /* Di mobile biasanya iklan berubah jadi kotak (Medium Rectangle) */
        min-height: 250px;
    }
}
/* --- Search Section Horizontal dengan Background Hitam Keabuan --- */
.search-section {
    padding: 40px 0;
    background-color: #1e2124; /* Hitam keabuan (dark charcoal) */
    border-top: 1px solid #333;
    border-bottom: 1px solid #333;
}

.search-container-horizontal {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Headline menjadi warna putih agar terbaca */
.search-headline h2 {
    font-size: 26px;
    font-weight: 700;
    margin: 0;
    color: #ffffff; /* Putih terang */
    line-height: 1.2;
}

.search-form-wrapper {
    flex: 2;
    max-width: 750px;
}

/* Penyesuaian Input Group agar kontras di latar gelap */
.search-input-group {
    display: flex;
    background: #ffffff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3); /* Bayangan lebih gelap */
    border-radius: 50px;
    overflow: hidden;
    border: 1px solid #444; /* Border tipis gelap */
    transition: all 0.3s ease;
}

.search-input-group:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 0 15px rgba(0, 112, 243, 0.4);
}

.search-field {
    flex-grow: 1;
    border: none !important;
    padding: 18px 30px !important;
    font-size: 16px;
    outline: none;
    background-color: #ffffff;
    color: #333;
}

.search-submit {
    background: var(--primary-color) !important;
    color: white !important;
    border: none;
    padding: 0 35px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
}

/* Responsif Mobile */
@media (max-width: 992px) {
    .search-container-horizontal {
        flex-direction: column;
        text-align: center;
        gap: 25px;
    }
}
/* --- Search Section Horizontal (Dark Mode) --- */
.search-section {
    padding: 50px 0;
    background-color: #1e2124; /* Hitam keabuan */
    border-top: 1px solid #333;
}

.search-container-horizontal {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Pengaturan Teks Dua Baris */
.search-headline {
    flex: 1;
    text-align: left;
}

.search-headline h2 {
    font-size: 28px; /* Lebih besar */
    font-weight: 800;
    margin: 0 0 5px 0; /* Jarak tipis ke baris bawah */
    color: #ffffff;
    line-height: 1.1;
}

.search-headline p {
    font-size: 20px;
    font-weight: 800;
    margin: 0;
    color: #a0aec0; /* Abu-abu terang agar tidak seputih judul */
    letter-spacing: 0.5px;
}

/* Wrapper Form tetap 750px */
.search-form-wrapper {
    flex: 2;
    max-width: 750px;
}

/* Style Input Group tetap konsisten */
.search-input-group {
    display: flex;
    background: #ffffff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    border-radius: 50px;
    overflow: hidden;
    border: 1px solid #444;
}

.search-field {
    flex-grow: 1;
    border: none !important;
    padding: 18px 30px !important;
    font-size: 16px;
    outline: none;
}

.search-submit {
    background: var(--primary-color) !important;
    color: white !important;
    border: none;
    padding: 0 35px;
    font-weight: 700;
    cursor: pointer;
}

/* Responsif Mobile */
@media (max-width: 992px) {
    .search-container-horizontal {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }
    
    .search-headline {
        text-align: center;
    }
}
/* --- Penyesuaian FluentForms di Section Subscribe --- */
.subscribe-section {
    padding: 5px 0;
    background-color: #ffffff;
}

.subscribe-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
}

.subscribe-content { flex: 1.2; }
.subscribe-image { flex: 0.8; text-align: center; }

/* Menghilangkan margin bawaan FluentForms agar rapi */
.fluent-form-wrapper .ff-el-form-content {
    margin-bottom: 0 !important;
}

/* Membuat Input dan Tombol Berdampingan (Inline) */
.fluent-form-wrapper form.frm-fluentform {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.fluent-form-wrapper .ff-el-group {
    flex: 1; /* Input Email mengambil ruang sisa */
    margin-bottom: 0 !important;
}

.fluent-form-wrapper .ff-el-form-control {
    border-radius: 8px !important;
    padding: 12px 15px !important;
}

.fluent-form-wrapper .ff-btn-submit {
    width: auto !important;
    padding: 0 30px !important;
    border-radius: 8px !important;
    height: 50px; /* Sesuaikan dengan tinggi input */
}

/* Responsif Mobile */
@media (max-width: 768px) {
    .subscribe-inner {
        flex-direction: column;
        text-align: center;
    }
    
    .fluent-form-wrapper form.frm-fluentform {
        flex-direction: column;
    }
}

/* Responsif Mobile */
@media (max-width: 992px) {
    .subscribe-inner {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }

    .subscribe-input-group {
        margin: 0 auto;
        flex-direction: column;
    }

    .subscribe-image {
        order: -1; /* Gambar pindah ke atas di mobile (opsional) */
    }
}
/* --- Latest Articles Section --- */
.latest-articles {
    padding: 20px 0;
    background-color: #f8f9fa;
}

/* Mengatur lebar maksimal 1600px */
.latest-articles .grid-container {
    max-width: 1600px !important;
    margin: 0 auto;
    padding: 0 30px;
}

.section-title {
    text-align: center;
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 50px;
    position: relative;
}

/* Konfigurasi Grid Artikel */
.article-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 kolom di desktop */
    gap: 30px;
}

/* Desain Kartu Artikel */
.article-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #eee;
    transition: all 0.3s ease;
    display: flex;
}

.card-link-wrapper {
    text-decoration: none !important;
    color: inherit;
    display: flex;
    flex-direction: column;
    width: 100%;
}

.article-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    border-color: var(--primary-color);
}

/* Thumbnail */

.article-card:hover .article-thumbnail img {
    transform: scale(1.1);
}

/* Body Kartu */
.article-body {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.article-cat {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--primary-color);
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.article-body h3 {
    font-size: 20px;
    line-height: 1.4;
    margin-bottom: 15px;
    font-weight: 700;
}

.article-excerpt {
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
    line-height: 1.6;
}

.read-more {
    margin-top: auto;
    font-size: 14px;
    font-weight: 700;
    color: var(--primary-color);
    transition: margin-left 0.3s ease;
}

.article-card:hover .read-more {
    margin-left: 5px;
}

/* --- Responsif --- */
@media (max-width: 1400px) {
    .article-grid {
        grid-template-columns: repeat(3, 1fr); /* 3 kolom di layar sedang */
    }
}

@media (max-width: 992px) {
    .article-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 kolom di tablet */
    }
}

@media (max-width: 600px) {
    .article-grid {
        grid-template-columns: 1fr; /* 1 kolom di HP */
        gap: 20px;
    }
    
    .latest-articles .grid-container {
        padding: 0 20px;
    }
}
/* --- warna artikel --- */
.article-cat {
    display: inline-flex; /* Menggunakan inline-flex agar alignment teks lebih stabil */
    align-items: center;
    width: fit-content;   /* Memaksa lebar hanya mengikuti isi teks */
    white-space: nowrap;  /* Mencegah teks turun ke bawah jika sempit */
    
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    padding: 4px 10px;    /* Padding kiri-kanan dikurangi sedikit agar lebih pas */
    border-radius: 4px;
    margin-bottom: 12px;
    letter-spacing: 0.5px;
    line-height: 1;       /* Memastikan tinggi background proporsional dengan teks */
}

/* Warna tetap sama seperti sebelumnya */
.article-cat.cat-linux {
    background-color: #1a202c !important;
    color: #ffffff !important;
}

.article-cat.cat-cpanel {
    background-color: #ff6c2c !important;
    color: #ffffff !important;
}
.article-cat.cat-cloud {
    background-color: #1a202c !important;
    color: #ffffff !important;
}
/* Container Thumbnail */
/* Container Thumbnail dengan posisi relatif untuk overlay */
.article-thumbnail {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background-color: #f0f0f0;
    position: relative; /* Penting untuk posisi overlay */
}

/* Efek Gradasi di Bagian Bawah Gambar */
.article-thumbnail::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40%; /* Gradasi menutupi 40% area bawah gambar */
    background: linear-gradient(to top, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0) 100%);
    pointer-events: none; /* Agar klik tetap tembus ke gambar/link */
    transition: height 0.3s ease;
}

/* Efek saat kartu di-hover */
.article-card:hover .article-thumbnail::after {
    height: 55%; /* Gradasi sedikit naik saat di-hover untuk efek dramatis */
    background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0) 100%);
}

.article-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.article-card:hover .article-thumbnail img {
    transform: scale(1.1);
}

/* Styling Kategori di Bawah Gambar */
.article-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* Memastikan badge kategori hanya selebar tulisan */
}

.article-cat {
    display: inline-block;
    width: fit-content; /* Background hanya sepanjang tulisan */
    font-size: 11px;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 4px;
    margin-bottom: 12px;
    text-transform: uppercase;
    line-height: 1;
}

/* Memastikan Judul tetap rapi */
.article-body h3 {
    margin-top: 0;
    font-size: 18px;
    line-height: 1.4;
}
/* --- Subscribe Section dengan Background Tipis --- */
.subscribe-section {
    padding: 20px 0;
    /* Warna hitam keabuan yang berbeda tipis dengan section lainnya */
    background-color: #1a1d21; 
    position: relative;
    border-top: 1px solid #2d3436; /* Garis pemisah halus di atas */
    border-bottom: 1px solid #2d3436; /* Garis pemisah halus di bawah */
}

/* Mengatur teks agar kontras di background gelap */
.subscribe-content h2 {
    color: #ffffff !important;
    font-size: 36px;
    margin-bottom: 20px;
}

.subscribe-content p {
    color: #a0aec0 !important; /* Abu-abu terang agar nyaman dibaca */
    font-size: 18px;
    line-height: 1.6;
}

/* Memastikan area gambar tetap rapi */
.subscribe-image img {
    height: 400px;      /* Menetapkan tinggi 200px */
    width: auto;        /* Lebar menyesuaikan agar proporsional */
    object-fit: cover;  /* Memotong gambar dengan rapi jika dimensinya tidak pas */
    border-radius: 40px; /* Opsional: memberikan sudut melengkung agar lebih modern */
    display: block;
}

/* Jika Anda ingin gambarnya memenuhi lebar kolom namun tetap tinggi 200px */
@media (min-width: 768px) {
    .subscribe-image img {
        width: 100%;    /* Gambar memenuhi lebar kontainer kolomnya */
        max-width: 450px; /* Batas lebar maksimal agar tidak terlalu lebar */
		margin-left: auto;
    }
}
.spam-text {
    color: #718096 !important;
}
/* Styling Utama Pre-Footer */
.pre-footer {
    background-color: #ffffff;
    padding: 60px 0;
    border-top: 1px solid #f0f0f0;
    width: 100%; /* Memastikan section mengambil lebar penuh layar */
}

.grid-container {
    max-width: 1600px; /* Mengatur lebar maksimal menjadi 1600px */
    margin: 0 auto;    /* Menjaga agar container tetap di tengah layar */
    padding: 0 40px;   /* Memberikan ruang di sisi kiri/kanan agar tidak menempel layar */
}

.footer-columns {
    display: grid;
    /* Menggunakan fr (fractional unit) agar kolom membagi ruang 1600px secara proporsional */
    grid-template-columns: 1.5fr 1fr 1fr 1fr; 
    gap: 50px; /* Jarak antar kolom diperlebar karena container sekarang lebih luas */
}

/* Kolom Brand & Logo */
/* Update pada bagian col-brand */
.footer-col.col-brand {
    display: flex;
    flex-direction: column;
    align-items: center;    /* Mengetengahkan secara horizontal */
    text-align: center;     /* Mengetengahkan teks deskripsi */
}

.footer-logo {
    max-width: 180px;
    height: auto;
    margin-bottom: 20px;
    display: block;         /* Memastikan image berperilaku seperti block */
}

.social-links {
    display: flex;
    justify-content: center; /* Mengetengahkan ikon sosial media */
    gap: 10px;
    margin-top: 10px;
}
}

.social-links a:hover {
    background: #0073aa; /* Warna biru WordPress */
    color: #fff;
    transform: translateY(-3px);
}

/* Judul Kolom */
.footer-col h4 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 25px;
    color: #222;
    position: relative;
}

/* List & Link */
.footer-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-list li {
    margin-bottom: 12px;
    font-size: 14px;
}

.footer-list li a {
    color: #555;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-list li a:hover {
    color: #0073aa;
}

/* Style Khusus Komentar */
.comment-author {
    font-weight: 600;
    color: #222;
    display: block;
    font-size: 13px;
    margin-bottom: 2px;
}

/* Responsif (Mobile Friendly) */
@media (max-width: 992px) {
    .footer-columns {
        grid-template-columns: 1fr 1fr; /* 2 kolom di tablet */
    }
}

@media (max-width: 600px) {
    .footer-columns {
        grid-template-columns: 1fr; /* 1 kolom di HP */
        text-align: center;
    }
    
    .footer-logo {
        margin: 0 auto 20px;
    }
    
    .social-links {
        justify-content: center;
        display: flex;
    }
}
/* Mengatur tinggi footer utama (copyright area) */
.site-footer .site-info {
    height: 80px;
    min-height: 80px;
    padding: 0 !important; /* Menghapus padding bawaan GP */
    display: flex;
    align-items: center; /* Mengetengahkan konten secara vertikal */
    justify-content: center; /* Mengetengahkan konten secara horizontal */
    background-color: #000000; /* Warna hitam sesuai keinginan sebelumnya */
    color: #ffffff;
}

/* Mengatur agar link di dalam footer juga berwarna putih */
.site-footer .site-info a {
    color: #ffffff;
}

/* --- 1. MEMBUAT CONTAINER UTAMA MENJADI STICKY --- */
.site-header {
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 99999;
    background-color: #000000 !important;
    border-bottom: 2px solid #2b59c3;
    padding: 0 !important; /* Menghilangkan padding bawaan */
}

/* --- 2. MENYATUKAN LOGO DAN MENU --- */
.inside-header {
    max-width: 1600px !important; 
    margin-left: 200px !important; /* Ganti 'auto' menjadi angka kecil agar menempel ke kiri */
    margin-right: auto !important; /* Biarkan sisi kanan yang menyesuaikan */
    padding-left: 0 !important;   /* Menghilangkan padding dalam kontainer */
    display: flex !important;
    justify-content: space-between !important;
}
/* Memastikan Logo di Kiri */
.site-logo {
    order: 1;
    display: block !important;
    margin-right: auto;
}

.site-logo img {
    height: 45px !important;
    width: auto !important;
}

/* Memaksa Navigasi Masuk ke Baris Header */
#site-navigation {
    order: 2;
    background: transparent !important;
    position: relative !important;
    top: auto !important;
    width: auto !important;
}

.inside-navigation {
    padding: 0 !important;
}

/* --- 3. PENGATURAN TEKS MENU --- */
.main-navigation .main-nav ul {
    display: flex !important;
    flex-direction: row !important;
}

.main-navigation .main-nav ul li a {
    color: #ffffff !important;
    font-weight: 600;
    line-height: 70px; /* Samakan dengan tinggi header */
    padding: 0 15px;
}

.main-navigation .main-nav ul li:hover > a {
    color: #4caf50 !important;
}

/* --- 4. PENYESUAIAN HALAMAN & ADMIN BAR --- */
#page {
    margin-top: 70px !important;
}

.admin-bar .site-header {
    top: 32px !important;
}
/* Keadaan awal saat di paling atas */
.site-header {
    transition: all 0.4s ease-in-out !important;
}

/* Keadaan SAAT DI-SCROLL (Class nav-scrolled aktif) */
.site-header.nav-scrolled {
    background-color: rgba(0, 0, 0, 0.9) !important; /* Hitam transparan */
    padding: 2px 0 !important; /* Mengecilkan padding agar header lebih ramping */
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    border-bottom: 2px solid #4caf50; /* Berubah jadi hijau logo saat scroll */
}

/* Mengecilkan logo sedikit saat scroll */
.nav-scrolled .site-logo img {
    height: 35px !important;
    transition: all 0.4s ease-in-out;
}

/* Menyesuaikan tinggi teks menu saat scroll agar tetap di tengah */
.nav-scrolled .main-navigation .main-nav ul li a {
    line-height: 50px !important;
}
/* --- 5. RESPONSIVE MOBILE --- */
@media (max-width: 782px) {
    .admin-bar .site-header {
        top: 46px !important;
    }
    .inside-header {
        height: 60px;
    }
    .site-logo img {
        height: 35px !important;
    }
}
/* --- FIX MOBILE MENU VISIBILITY --- */

/* 1. Mengubah warna ikon garis tiga (hamburger) menjadi putih */
.menu-toggle .gp-icon svg {
    fill: #ffffff !important;
}

/* 2. Mengubah warna teks "Menu" di samping ikon (jika ada) */
.menu-toggle {
    color: #ffffff !important;
    background-color: transparent !important; /* Menghilangkan background kotak jika ada */
}

/* 3. Efek saat tombol menu diklik atau di-hover di mobile */
.menu-toggle:hover, .menu-toggle:focus {
    color: #4caf50 !important; /* Warna hijau logo saat ditekan */
}
.menu-toggle:hover .gp-icon svg {
    fill: #4caf50 !important;
}

/* --- 2. PERBAIKAN TAMPILAN DROPDOWN MOBILE --- */
/* Memastikan saat menu diklik, daftar menunya punya background yang jelas */
@media (max-width: 768px) {
    #site-navigation .main-nav ul {
        background-color: #1a1a1a !important; /* Hitam sedikit terang agar beda dengan header */
    }
    
    #site-navigation .main-nav ul li a {
        border-bottom: 1px solid rgba(255,255,255,0.05);
        padding: 15px 20px !important;
        line-height: normal !important; /* Reset line-height dari desktop */
    }
}
/* --- FIX MOBILE TOGGLE --- */

@media (max-width: 768px) {
    /* 1. Sembunyikan menu secara default di mobile */
    .main-navigation ul {
        display: none !important;
    }

    /* 2. Tampilkan kembali menu hanya saat tombol hamburger diklik (class .toggled) */
    .main-navigation.toggled ul {
        display: block !important;
        position: absolute;
        top: 100%; /* Muncul tepat di bawah bar navigasi */
        left: 0;
        width: 100%;
        background-color: #1a1a1a !important; /* Warna dropdown */
        z-index: 10000;
    }

    /* 3. Atur list menu agar tersusun vertikal di mobile */
    .main-navigation.toggled ul li {
        width: 100%;
        text-align: left;
    }

    .main-navigation.toggled ul li a {
        display: block;
        padding: 15px 20px !important;
        line-height: normal !important; /* Reset tinggi baris desktop */
        border-bottom: 1px solid rgba(255,255,255,0.05);
    }

    /* 4. Pastikan logo dan hamburger tetap satu baris */
    .inside-header {
        justify-content: space-between !important;
    }
}