/*
 * ===================================================================
 * CSS FINAL - Menggabungkan gaya tema asli dengan kustomisasi
 * untuk tata letak tiga kolom yang stabil dan sempurna.
 * ===================================================================
*/

/* === Normalize.css & Basic Reset === */
html { line-height: 1.15; -ms-text-size-adjust: 100%; -webkit-text-size-adjust: 100%; }
body { margin: 0; }
article, aside, footer, header, nav, section { display: block; }
h1 { font-size: 2em; margin: .67em 0; }
img { border-style: none; max-width: 100%; height: auto; }
*, *:before, *:after { box-sizing: border-box; }

/* === GAYA DASAR === */
body {
  font-family: "Noto Serif", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen-Sans", "Ubuntu", "Cantarell", "Helvetica Neue", sans-serif;
  background: #e7f3dd;
  color: #333;
}
a {
  color: #4b7d92;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

/* === HEADER & BANNER === */
.pkp_structure_head {
    padding: 0;
    background-color: #006064;
}
.pkp_head_wrapper {
    max-width: 100% !important;
    width: 100% !important;
    margin: 0 !important;
    
}
.pkp_site_name a.is_img {
    display: block;
    line-height: 0;
}
.pkp_site_name img {
    width: 100%;
    height: auto;
    max-height: none;
    display: block;
}

/* === NAVIGASI UTAMA === */
.pkp_navigation_primary_row {
    background-color: #006064;
    border: none !important;
}
.pkp_navigation_primary_wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 10px;
    padding-right: 10px;
    position: relative;
}
#navigationPrimary > li {
    position: relative;
}
#navigationPrimary > li > a {
    color: #fff !important;
    display: block;
    padding: 0.75rem 1rem;
    text-decoration: none;
}
#navigationPrimary > li > a:hover {
    background-color: rgba(255,255,255,0.15);
}

/* === SUBMENU DROPDOWN === */
#navigationPrimary ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 1000;
    min-width: 200px;
    background-color: #006064;
    list-style: none;
    padding: 0.5rem 0;
    margin-top: 0;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    border-radius: 0 0 4px 4px;
}
#navigationPrimary li:hover > ul {
    display: block;
}
#navigationPrimary ul li a {
    padding: 5px 20px;
    display: block;
    white-space: nowrap;
    color: #fff !important;
}
#navigationPrimary ul li a:hover {
    background-color: #00838f;
}

/* === STRUKTUR HALAMAN UTAMA === */
.pkp_structure_page {
    /* PERBAIKAN: Menghapus margin atas dan bawah */
    margin: 0 auto;
    max-width: 1200px;
    background: #ffffff;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
}

/* === TATA LETAK 3 KOLOM (FLEXBOX) === */
.pkp_structure_content {
    display: flex !important;
    flex-flow: row wrap;
    padding: 0;
    width: 100%;
    background-color: #ffffff;
}
.pkp_structure_content > * {
    margin: 0;
    float: none !important;
    position: relative;
    box-sizing: border-box;
    padding: 1.5rem; /* Padding seragam untuk semua kolom */
    width: auto !important; /* Menimpa lebar default dari tema */
}
.pkp_structure_content > .pkp_sidebar_left {
    order: 1;
    flex: 0 0 22%;
}
.pkp_structure_content > .pkp_structure_main {
    order: 2;
    flex: 1 1 56%;
    padding: 1.5rem 2rem; /* Padding horizontal lebih besar */
    background-color: #fafafa;
}
/* PERBAIKAN: Membuat teks rata kanan-kiri */
.pkp_structure_main .page, .pkp_structure_main p {
    text-align: justify;
}
.pkp_structure_content > .pkp_sidebar_right {
    order: 3;
    flex: 0 0 22%;
}
.pkp_structure_main:before, .pkp_structure_main:after,
.pkp_structure_sidebar:before, .pkp_structure_sidebar:after {
    display: none !important;
}

/* === RESPONSIVE UNTUK LAYAR KECIL === */
@media (max-width: 992px) {
    .pkp_structure_page { margin: 0; box-shadow: none; }
    .pkp_structure_content { flex-direction: column !important; }
    .pkp_structure_content > * {
        width: 100% !important;
        padding: 1.5rem;
        background-color: #ffffff;
        flex-basis: auto !important;
    }
    .pkp_structure_content > .pkp_structure_main { order: 1 !important; }
    .pkp_structure_content > .pkp_sidebar_left { order: 2 !important; }
    .pkp_structure_content > .pkp_sidebar_right { order: 3 !important; }

    /* === PERBAIKAN MENU MOBILE === */
    .pkp_site_nav_menu {
        background-color: #006064 !important; /* Pastikan warna dasar konsisten */
    }
    #navigationPrimary ul {
        position: static !important; /* Kembalikan ke alur normal di mobile */
        background-color: transparent !important; /* Hapus background submenu */
        box-shadow: none !important; /* Hapus bayangan di mobile */
        border-radius: 0;
        padding-left: 1rem; /* Beri indentasi agar terlihat seperti submenu */
    }
    #navigationPrimary ul li a {
        padding-left: 1rem !important; /* Sesuaikan padding untuk item submenu */
    }
}

/* === GAYA KONTEN SIDEBAR === */
.pkp_block {
    margin-bottom: 2.5rem;
    padding: 0 !important;
}
.pkp_block .title {
    font-size: 0.9rem !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    color: #333;
    border-bottom: 2px solid #00838f;
    padding-bottom: 0.5em;
    margin-bottom: 1em;
}

.pkp_block .nama {
    font-size: 1.5rem !important;
    font-weight: 700 !important;
    text-transform: capitalize;
    color: #2003c7;
    padding-bottom: 0.5em;
    margin-bottom: 1em;
}
.pkp_block .content {
    padding: 0 !important;
}
.pkp_block ul a {
    display: block;
    color: #005a8d !important;
    padding: 8px 0 !important;
    margin: 0 !important;
    background: none !important;
    font-size: 0.9em;
}
.pkp_block ul a:hover {
    color: #003c5d !important;
}

/* === Gaya seragam untuk gambar sidebar === */
.sidebar-image-container {
    text-align: center;
}
.sidebar-image-container p {
    margin-bottom: 1rem;
}
.sidebar-image-container img {
    max-width: 180px; /* Lebar maksimal seragam */
    height: auto;
    display: inline-block;
}

/* === Gaya tombol untuk user yang sudah login (PERBAIKAN) === */
.block_user_info .content {
    /* Tidak perlu flexbox lagi */
}
a.sidebar_button, button.login_button {
    display: block; /* Tombol menjadi block, otomatis pindah baris */
    width: 100%; /* Memenuhi lebar kontainer */
    padding: 10px;
    color: #fff !important;
    border: none;
    border-radius: 3px;
    font-weight: bold;
    font-size: 0.9em;
    cursor: pointer;
    text-align: center;
    text-decoration: none !important;
    transition: background-color 0.2s;
    margin-bottom: 0.5rem;
}
a.sidebar_button:last-child {
    margin-bottom: 0;
}
a.sidebar_button:hover, button.login_button:hover {
    text-decoration: none !important;
}
a.profile_button, button.login_button {
     background-color: #00838f;
}
a.profile_button:hover, button.login_button:hover {
    background-color: #006064;
}
a.logout_button {
    background-color: #c62828; /* Merah untuk logout */
}
a.logout_button:hover {
    background-color: #b71c1c;
}

/* === GAYA FORM LOGIN SIDEBAR === */
.block_login .form-group { margin-bottom: 1rem; }
.block_login label { display: block; font-size: 0.85em; color: #555; margin-bottom: 0.25rem; }
.block_login input[type="text"], .block_login input[type="password"] { width: 100%; padding: 8px; border: 1px solid #ccc; border-radius: 3px; font-size: 0.9em; }
.block_login .remember-me { display: flex; align-items: center; margin-bottom: 1rem; }
.block_login .remember-me input { margin-right: 5px; }
.block_login .remember-me label { margin-bottom: 0; font-size: 0.8em; }
.block_login .login_links { font-size: 0.8em; margin-top: 1rem; text-align: center; }
.block_login .login_links a { display: block; margin-top: 0.5rem; }
.sidebar_login_error { background-color: #ffebee; color: #c62828; border: 1px solid #ef9a9a; border-radius: 4px; padding: 10px; margin-bottom: 1rem; font-size: 0.9em; font-weight: bold; }

/* === FOOTER === */
.pkp_structure_footer_wrapper {
    background-color: #006064 !important; /* Warna biru tua disamakan dengan header */
    color: #e0e0e0 !important;             /* Warna teks dasar abu-abu terang */
    padding: 2rem 1rem !important;         /* Padding atas-bawah diperbesar agar lebih seimbang */
    margin-top: 0;
    border: none !important;
}
.pkp_structure_footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}
.pkp_footer_content, .pkp_brand_footer { flex: 1; }
.pkp_footer_content { text-align: left; }
.pkp_brand_footer { text-align: right; }
.pkp_brand_footer a { float: none; display: inline-block; }

