/* =========================================
   1. RESET & BASIC TYPOGRAPHY
   ========================================= */
:root {
    --global-palette1: #3182CE; /* Primary Blue */
    --global-palette2: #2B6CB0;
    --global-palette9: #1A202C; /* Dark Text */
    --global-palette-btn: #000000;
    --global-palette-btn-text: #ffffff;
    --site-bg: #f7fafc;
    --content-bg: #ffffff;
}

body {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--site-bg);
    color: var(--global-palette9);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: var(--global-palette1);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--global-palette2);
}

img, video {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Container */
.site-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* =========================================
   2. HEADER
   ========================================= */
.site-header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    padding: 10px 0;
    position: relative;
    z-index: 100;
}

.site-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.custom-logo {
    max-height: 60px;
    width: auto;
}

/* Navigation */
.main-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 20px;
}

.main-navigation a {
    color: #333;
    font-weight: 500;
    font-size: 16px;
    padding: 10px;
}

.main-navigation a:hover {
    color: var(--global-palette1);
}

/* Mobile Header Toggles (Simplified) */
.mobile-toggle-open-container {
    display: none; /* Hidden on desktop */
}

/* =========================================
   3. CONTENT LAYOUT
   ========================================= */
.content-bg {
    background-color: var(--content-bg);
    margin-top: 30px;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.entry-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: #1a202c;
}

/* Kadence Columns / Grid System */
.kb-row-layout-wrap {
    margin-bottom: 30px;
}

.kt-row-column-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.wp-block-kadence-column {
    flex: 1;
    min-width: 300px; /* Responsive break */
}

/* Headings inside content */
h2, h3 {
    color: #2d3748;
    margin-top: 0;
}

h2 { font-size: 1.8rem; border-bottom: 2px solid #edf2f7; padding-bottom: 10px; }
h3 { font-size: 1.4rem; text-align: center; margin-bottom: 15px; }

/* Video Wrapper */
.wp-video {
    width: 100% !important;
    margin-bottom: 20px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* =========================================
   4. BUTTONS
   ========================================= */
.kb-buttons-wrap {
    text-align: center;
    margin-top: 15px;
}

.kb-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--global-palette-btn);
    color: var(--global-palette-btn-text) !important;
    padding: 12px 24px;
    border-radius: 5px;
    font-weight: bold;
    font-size: 16px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    gap: 10px;
}

.kb-button:hover {
    background-color: #333;
    transform: translateY(-2px);
    transition: all 0.2s;
}

.kb-svg-icon-wrap svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
    stroke: currentColor;
}

/* =========================================
   5. LISTS (How to make...)
   ========================================= */
.kt-svg-icon-list {
    list-style: none;
    padding: 0;
}

.kt-svg-icon-list-item-wrap {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 6px;
}

.kt-svg-icon-list-single {
    margin-right: 15px;
    color: var(--global-palette1);
    flex-shrink: 0;
}

.kt-svg-icon-list-single svg {
    width: 20px;
    height: 20px;
}

/* =========================================
   6. RELATED POSTS (Carousel Fallback)
   ========================================= */
/* Karena JS slider mungkin tidak jalan, kita buat jadi Grid */
.splide__list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    padding: 0;
    list-style: none;
}

.entry-related-title {
    text-align: center;
    margin: 40px 0 20px;
    font-size: 2rem;
}

.loop-entry {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.post-thumbnail img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.loop-entry .entry-header {
    padding: 15px;
}

.loop-entry .entry-title {
    font-size: 1.1rem;
    margin: 0;
    text-align: left;
}

.loop-entry .entry-summary {
    padding: 0 15px;
    font-size: 0.9rem;
    color: #666;
    flex-grow: 1;
}

.loop-entry .entry-footer {
    padding: 15px;
    border-top: 1px solid #eee;
}

.post-more-link {
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* =========================================
   7. FOOTER
   ========================================= */
.site-footer {
    background-color: #1a202c;
    color: #cbd5e0;
    padding: 40px 0 20px;
    margin-top: 60px;
}

.site-footer a {
    color: #fff;
}

.site-footer-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

.footer-menu-container ul {
    list-style: none;
    padding: 0;
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.footer-social-inner-wrap {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.social-button {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.1);
    padding: 8px 16px;
    border-radius: 4px;
}

.social-button:hover {
    background: var(--global-palette1);
}

.site-info {
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    width: 100%;
}

/* =========================================
   PERBAIKAN JARAK FOOTER
   ========================================= */

.site-footer {
    /* Menambah jarak yang cukup besar agar grid di atas tidak menabrak */
    margin-top: 120px !important; 
    
    /* Properti standar lainnya */
    background-color: #1a202c;
    color: #cbd5e0;
    padding: 40px 0 20px;
    position: relative; /* Memastikan posisi footer stabil */
    z-index: 10;       /* Memastikan footer berada di layer yang benar */
    clear: both;       /* Membersihkan elemen floating di atasnya */
}

/* =========================================
   PERBAIKAN MOBILE DRAWER MENU (VERTIKAL)
   ========================================= */

/* Pastikan container menu mengisi lebar penuh */
.mobile-menu-container {
    width: 100%;
}

/* Mengatur list agar vertikal */
#mobile-menu {
    display: flex !init;
    flex-direction: column; /* Ini kunci agar tersusun ke bawah */
    padding: 20px;
    margin: 0;
    list-style: none;
    width: 100%;
    box-sizing: border-box;
}

/* Mengatur setiap item list (li) */
#mobile-menu li {
    display: block;
    width: 100%;
    margin-bottom: 0;
    border-bottom: 1px solid #e2e8f0; /* Garis pemisah tipis antar menu */
}

/* Mengatur link agar area klik luas & rapi */
#mobile-menu li a {
    display: block;        /* Agar bisa diklik sepanjang baris */
    padding: 15px 0;       /* Jarak atas bawah agar tidak mepet */
    font-size: 16px;
    font-weight: 500;
    color: #2d3748;
    text-decoration: none;
    text-align: left;      /* Rata kiri */
}

/* Efek hover saat disentuh/diklik */
#mobile-menu li a:hover {
    color: #3182CE;       /* Warna biru saat dihover */
    padding-left: 10px;   /* Efek geser sedikit ke kanan */
    transition: all 0.3s ease;
}

/* Menghilangkan garis pada menu terakhir */
#mobile-menu li:last-child {
    border-bottom: none;
}

/* =========================================
   HILANGKAN SKIP TO CONTENT
   ========================================= */
.skip-link {
    display: none !important;
}

/* =========================================
   8. RESPONSIVE / MOBILE
   ========================================= */
@media (max-width: 768px) {
    /* Header */
    .site-header-row {
        flex-wrap: wrap;
    }
    
    .site-branding {
        margin: 0 auto;
    }

    /* Sembunyikan menu desktop, tampilkan tombol mobile (simulasi) */
    .main-navigation {
        display: none; 
    }
    
    .mobile-toggle-open-container {
        display: block;
        position: absolute;
        right: 20px;
        top: 20px;
    }

    /* Columns stack vertically */
    .kt-row-column-wrap {
        flex-direction: column;
    }
    
    .entry-title {
        font-size: 1.8rem;
    }

    /* Footer stacks */
    .footer-menu-container ul {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
}