/* =========================================
   GLOBAL STYLES & TYPOGRAPHY
   ========================================= */
body {
    font-family: 'Poppins', sans-serif;
    color: #333;
    background-color: #ffffff;
}

/* =========================================
   HEADER & MENU (TERMASUK DROPDOWN)
   ========================================= */
.main-header {
    border-bottom: 2px solid #d4a373;
}
.title-eppid {
    color: #0b1c3c;
    line-height: 1;
}
.subtitle-eppid {
    font-size: 11px;
    color: #666;
    letter-spacing: 0.5px;
}

/* Memastikan baris ini hanya berlaku untuk ul level 1 (menu utama) */
.main-menu > ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 20px;
    align-items: center;
}
.main-menu ul li {
    position: relative; /* Penting untuk penempatan dropdown */
}
.main-menu ul li a {
    text-decoration: none;
    color: #0b1c3c;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    padding: 15px 5px; /* Padding diperbesar agar area hover lebih luas */
    display: block;
    position: relative;
    transition: color 0.3s ease;
}
.main-menu ul li a:hover,
.main-menu ul li.active > a {
    color: #d4a373;
}

/* Styling Khusus Dropdown (Sub-menu) */
.main-menu ul ul.nav-child {
    display: none; /* Sembunyikan secara default */
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #ffffff;
    min-width: 220px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    border-radius: 8px;
    padding: 10px 0;
    z-index: 1000;
    margin: 0;
    border: 1px solid #eee;
    list-style: none;
}
/* Tampilkan saat menu induk di-hover */
.main-menu ul li.deeper.parent:hover > ul.nav-child {
    display: block;
}
/* Tampilan link di dalam dropdown */
.main-menu ul ul.nav-child li a {
    padding: 10px 20px;
    font-size: 13px;
    text-transform: none; /* Mengembalikan huruf menjadi normal (Title Case) */
    font-weight: 500;
    color: #444;
}
.main-menu ul ul.nav-child li a:hover {
    background-color: #f8f9fa;
    color: #d4a373;
    padding-left: 25px; /* Efek geser teks sedikit ke kanan saat dihover */
}

/* Menghilangkan garis bawah animasi untuk sub-menu */
.main-menu ul ul.nav-child li a::after {
    display: none;
}

/* =========================================
   HERO SECTION
   ========================================= */
.hero-section {
    position: relative;
    background-image: url('../images/bg-gedung.jpg');
    background-size: cover;
    background-position: center;
    min-height: 550px;
    color: white;
    display: flex;
    align-items: center;
}
.hero-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(11, 28, 60, 0.88); /* Overlay Biru PA */
    z-index: 1;
}
.hero-wave {
    position: absolute;
    bottom: 0; left: 0; width: 100%; height: 40px;
    background-color: #d4a373;
    clip-path: polygon(0 40%, 100% 0, 100% 100%, 0% 100%);
    z-index: 2;
}

/* Teks dan Tombol Hero (Untuk di-paste di modul) */
.hero-content {
    position: relative;
    z-index: 3;
    padding: 60px 0;
}
.hero-content h1 {
    font-size: 70px;
    font-weight: 700;
    color: #d4a373;
    margin-bottom: 0;
}
.btn-eppid-outline {
    border: 2px solid #d4a373;
    color: #d4a373;
    background: transparent;
    padding: 10px 25px;
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: 0.3s;
}
.btn-eppid-outline:hover {
    background: #d4a373;
    color: #0b1c3c;
}

/* 1. Menggeser Blok Teks ke Kanan */
.hero-content {
    position: relative;
    z-index: 3;
    padding: 60px 0;
    /* Gunakan transform untuk memaksa blok teks bergeser ke kanan */
    transform: translateX(60px); 
}
/* 2. Menggeser Foto Model Merapat ke Tepi Kanan */
.hero-model-container img {
    max-height: 100%;
    width: auto;
    object-fit: contain;
    transform: translateX(100px); /* Tambahkan baris ini. Memaksa gambar bergeser 100px keluar dari batas container */
}

/* =========================================
   TITLES & LAYANAN PUBLIK
   ========================================= */
.section-title {
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #0b1c3c;
    font-size: 22px;
}
.section-title::before, .section-title::after {
    content: "";
    height: 2px;
    width: 40px;
    background-color: #d4a373;
    margin: 0 15px;
}
.service-card {
    background: #ffffff;
    border-radius: 8px;
    padding: 30px 15px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.04);
    height: 100%;
    border: 1px solid #eee;
    transition: all 0.3s ease;
}
.service-card:hover {
    transform: translateY(-5px);
    border-color: #d4a373;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}
.service-icon {
    font-size: 35px;
    color: #0b1c3c;
    margin-bottom: 15px;
}
.service-card h4 {
    font-size: 15px;
    font-weight: 700;
    color: #0b1c3c;
}
.service-card p {
    font-size: 11px;
    color: #777;
    margin-bottom: 0;
}

/* =========================================
   TRANSPARANSI (STATISTIK)
   ========================================= */
.statistik-section {
    background-color: #0b1c3c;
    color: #ffffff;
    padding: 40px 0;
    border-top: 4px solid #d4a373;
}
.stat-item {
    border-right: 1px solid rgba(255, 255, 255, 0.15);
    padding: 10px 15px;
}
.stat-item:last-child {
    border-right: none;
}
.stat-number {
    font-size: 32px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}
.stat-number i {
    color: #d4a373;
    font-size: 24px;
}
.stat-desc {
    font-size: 13px;
    color: #ccc;
}

/* =========================================
   PEJABAT PPID CARDS
   ========================================= */
.pejabat-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    text-align: center;
    padding-bottom: 15px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.03);
}
.pejabat-img {
    width: 100%;
    height: 300px; /* Tingginya ditambah agar proporsional */
    object-fit: cover;
    object-position: top; /* Ini kunci utamanya: memaksa agar kepala (bagian atas) tidak terpotong */
    background-color: #f0f0f0;
}
.pejabat-name {
    font-size: 15px;
    font-weight: 700;
    color: #0b1c3c;
    margin: 15px 0 5px;
}
.pejabat-role {
    font-size: 12px;
    color: #666;
}

/* =========================================
   BERITA / INFORMASI TERBARU
   ========================================= */
.news-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #eee;
}
.news-img {
    height: 160px;
    width: 100%;
    object-fit: cover;
}
.news-body {
    padding: 15px;
}
.news-date {
    font-size: 11px;
    color: #888;
    margin-bottom: 8px;
}
.news-title {
    font-size: 14px;
    font-weight: 600;
    color: #0b1c3c;
    line-height: 1.4;
    margin-bottom: 15px;
}
.badge-category {
    background-color: #fdf5e6;
    color: #d4a373;
    font-size: 10px;
    padding: 4px 10px;
    border-radius: 20px;
    font-weight: 600;
}

/* =========================================
   TENTANG & LOKASI (BOTTOM INFO)
   ========================================= */
.info-box {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    height: 100%;
    border: 1px solid #eee;
}
.info-box.dark {
    background: #0b1c3c;
    color: white;
    border: none;
}
.info-box.dark h4 {
    color: #d4a373;
}
.info-box-icon {
    color: #d4a373;
    font-size: 20px;
    margin-right: 10px;
}

/* =========================================
   FOOTER
   ========================================= */
.main-footer {
    background-color: #0b1c3c;
    color: #ccc;
    font-size: 13px;
}
.main-footer h5 {
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 20px;
}
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-links li {
    margin-bottom: 10px;
}
.footer-links a {
    color: #ccc;
    text-decoration: none;
    transition: 0.3s;
}
.footer-links a:hover {
    color: #d4a373;
    padding-left: 5px;
}
.social-icons a {
    display: inline-block;
    width: 35px; height: 35px;
    background: rgba(255,255,255,0.1);
    color: #fff;
    text-align: center;
    line-height: 35px;
    border-radius: 50%;
    margin-right: 10px;
    transition: 0.3s;
}
.social-icons a:hover {
    background: #d4a373;
}

.hero-model-container {
    position: relative;
    z-index: 4; /* Pastikan z-index lebih tinggi dari hero-wave */
    height: 550px;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
}
.hero-wave {
    position: absolute;
    bottom: -2px; /* Menutup celah putih */
    left: 0; 
    width: 100%; 
    height: 80px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320'%3E%3Cpath fill='%23ffffff' fill-opacity='1' d='M0,288L48,272C96,256,192,224,288,197.3C384,171,480,149,576,165.3C672,181,768,235,864,250.7C960,267,1056,245,1152,213.3C1248,181,1344,139,1392,117.3L1440,96L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z'%3E%3C/path%3E%3C/svg%3E");
    background-size: cover;
    background-repeat: no-repeat;
    z-index: 2;
}

/* Tim PPID Tabs */
.tim-ppid-container {
    background-color: #ffffff;
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}
.nav-pills-custom .nav-link {
    color: #555;
    background-color: #f8f9fa;
    border-radius: 50px;
    padding: 10px 25px;
    font-size: 14px;
    font-weight: 600;
    border: 1px solid #e0e0e0;
    margin: 0 5px 10px;
    transition: all 0.3s ease;
}
.nav-pills-custom .nav-link.active {
    background-color: #0b1c3c;
    color: #ffffff;
    border-color: #0b1c3c;
}
.nav-pills-custom .nav-link i {
    color: #d4a373; /* Warna ikon emas */
    margin-right: 8px;
}
/* Styling Banner Halaman Dalam */
.inner-page-banner {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    background-image: url('../images/bg-gedung.jpg');
    background-size: cover;
    background-position: center;
    padding: 100px 0 140px 0;
}
.inner-page-banner::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(11, 28, 60, 0.92); /* Overlay biru tua */
    z-index: 1;
}
.inner-page-banner::after {
    content: '';
    position: absolute;
    bottom: -2px; left: 0; width: 100%; height: 60px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320'%3E%3Cpath fill='%23ffffff' fill-opacity='1' d='M0,128L48,144C96,160,192,192,288,197.3C384,203,480,181,576,165.3C672,149,768,139,864,154.7C960,171,1056,213,1152,218.7C1248,224,1344,192,1392,176L1440,160L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z'%3E%3C/path%3E%3C/svg%3E");
    background-size: cover;
    z-index: 2;
}
/* =========================================
   CUSTOM CSS VISFORMS (FORMULIR ePPID FIX)
   ========================================= */

/* Wadah Utama Formulir */
#visformcontainer {
    background: #ffffff;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border: 1px solid #eee;
    margin: 40px auto;
    max-width: 800px;
}

/* Memaksa Label Tampil di Atas (Tidak Menyamping) */
.visform .visCSSlabel {
    display: block !important;
    width: 100% !important;
    text-align: left !important;
    float: none !important;
    font-weight: 600 !important;
    color: #0b1c3c !important;
    font-size: 14px !important;
    margin-bottom: 8px !important;
}

/* Gaya Kotak Isian (Input, Select, Textarea) */
.visform .visCSSinput {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 15px !important;
    border: 1px solid #ced4da !important;
    border-radius: 8px !important;
    background-color: #f8f9fa !important;
    font-size: 14px !important;
    color: #495057 !important;
    box-sizing: border-box;
    margin-bottom: 25px !important;
    transition: all 0.3s ease !important;
}

/* Efek Saat Kotak Isian Diklik */
.visform .visCSSinput:focus {
    border-color: #d4a373 !important;
    background-color: #fff !important;
    box-shadow: 0 0 0 0.2rem rgba(212, 163, 115, 0.25) !important;
    outline: none !important;
}

/* Menghilangkan Jarak Kosong Bawaan Visforms */
.visform .visCSSclear {
    display: none !important;
}

/* Gaya Tombol Kirim */
.visform .visBtnCon input[type="submit"] {
    background-color: #0b1c3c !important;
    color: #fff !important;
    border: none !important;
    padding: 15px 40px !important;
    border-radius: 50px !important;
    font-weight: 600 !important;
    font-size: 15px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    width: 100%;
    margin-top: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.visform .visBtnCon input[type="submit"]:hover {
    background-color: #d4a373 !important;
    color: #0b1c3c !important;
}

/* Menyembunyikan Teks "Required *" Bawaan di Atas Form */
.visform .vis_mandatory {
    display: none !important;
}

/* Memaksa menu tetap tampil di desktop agar tidak disembunyikan oleh CSS bawaan komponen */
@media (min-width: 992px) {
    #menuUtamaMobile.collapse {
        display: flex !important;
        height: auto !important;
        visibility: visible !important;
    }
}
/* Memaksa Dropdown Menu Tetap Tampil Saat Di-hover di Halaman Apapun */
.main-menu ul li.deeper.parent:hover > ul.nav-child,
.main-menu ul li:hover > ul.nav-child,
.main-menu ul li:hover > ul.dropdown-menu {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Mencegah area header memotong/menyembunyikan dropdown yang memanjang ke bawah */
.main-header, 
.main-menu,
.collapse.navbar-collapse {
    overflow: visible !important;
}

/* =========================================
   HALAMAN HASIL PENCARIAN (COM_SEARCH)
   ========================================= */

/* Wadah Utama Formulir Pencarian */
.search {
    background: #ffffff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.03);
    border: 1px solid #eee;
    margin-bottom: 40px;
}

/* Kolom Input & Tombol Cari */
.search .btn-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 25px;
}
.search .btn-toolbar input.inputbox {
    padding: 10px 15px;
    border: 1px solid #ced4da;
    border-radius: 8px;
    width: 100%;
    max-width: 400px;
    font-size: 14px;
    color: #495057;
}
.search .btn-toolbar input.inputbox:focus {
    border-color: #d4a373;
    outline: none;
    box-shadow: 0 0 0 0.2rem rgba(212, 163, 115, 0.25);
}
.search .btn-toolbar button.btn {
    background-color: #0b1c3c;
    color: #ffffff;
    border: none;
    padding: 10px 25px;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}
.search .btn-toolbar button.btn:hover {
    background-color: #d4a373;
    color: #0b1c3c;
}

/* Label Total Hasil */
.searchintro {
    font-size: 15px;
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px dashed #eee;
}
.searchintro .badge {
    background-color: #d4a373;
    color: #0b1c3c;
    padding: 5px 10px;
    border-radius: 50px;
    font-size: 14px;
}

/* Pengaturan Opsi Pencarian (Fieldsets) */
.search fieldset {
    border: 1px solid #e9ecef;
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    background: #f8f9fa;
}
.search fieldset legend {
    font-size: 14px;
    font-weight: 600;
    color: #0b1c3c;
    padding: 0 10px;
    width: auto;
    border-bottom: none;
    margin-bottom: 15px;
}
.search label.radio, .search label.checkbox {
    display: inline-flex;
    align-items: center;
    margin-right: 20px;
    font-size: 13px;
    color: #555;
    margin-bottom: 10px;
}
.search label.radio input, .search label.checkbox input {
    margin-right: 8px;
}
.search select.inputbox {
    padding: 6px 12px;
    border: 1px solid #ced4da;
    border-radius: 6px;
    font-size: 13px;
    color: #495057;
}

/* Daftar Hasil Pencarian */
.search-results {
    margin-top: 30px;
}
.search-results dt.result-title {
    margin-top: 30px;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}
.search-results dt.result-title a {
    color: #0b1c3c;
    text-decoration: none;
    transition: 0.3s;
}
.search-results dt.result-title a:hover {
    color: #d4a373;
}
.search-results dd {
    margin-left: 0;
    margin-bottom: 5px;
}
.search-results dd.result-category {
    font-size: 12px;
    color: #d4a373;
    font-weight: 500;
}
.search-results dd.result-text {
    font-size: 14px;
    line-height: 1.6;
    color: #555;
    margin-top: 8px;
}
.search-results dd.result-created {
    font-size: 12px;
    color: #999;
    margin-top: 10px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

/* Sorotan Kata Kunci yang Dicari */
.search-results span.highlight {
    background-color: rgba(212, 163, 115, 0.3);
    font-weight: 600;
    padding: 2px 4px;
    border-radius: 4px;
}