/* Reset dan Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Inter", sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

/* Container responsif utama */
.main-container {
    font-family: "Inter", sans-serif;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    max-width: 1900px;
}

@media (max-width: 1900px) {
    .main-container {
        max-width: 992px;
    }
}

@media (max-width: 992px) {
    .main-container {
        max-width: 768px;
    }
}

@media (max-width: 768px) {
    .main-container {
        max-width: 100%;
        padding: 0 10px;
    }
}

/* Header */
header {
    background-color: #800000;
    color: white;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    padding: 10px 5%;
    gap: 10px;
}

.container {
    font-family: "Inter", sans-serif;
    max-width: 100%;
    margin: 0 3% 0 3%;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.logo img {
    height: 60px;
    max-width: 100%;
    margin-bottom: 0;
}

.logo {
    margin-left: 3%;
    display: flex;
    align-items: center;
}

/* Saat layar sempit (misalnya < 768px), logo ditengah */
@media screen and (max-width: 768px) {
    .logo {
        margin-left: 0;
        justify-content: center;
        width: 100%;
    }

    .logo img {
        max-width: 80%;
        /* Supaya tidak terlalu besar di layar kecil */
        height: 60px;
    }
}

nav {
    background-color: #800000;
    /* maroon */
    flex: 1 1 auto;
    margin-left: 30px;
    padding: 10px 20px;
    transition: padding 0.3s ease;
}

@media (max-width: 768px) {
    nav {
        padding: 0;
        /* Hilangkan padding saat layar kecil */
    }
}

.has-submenu::after {
    content: " ▼";
    font-size: 0.7em;
    margin-left: 1px;
}

#menu-toggle {
    background-color: #a00000;
    color: white;
    font-size: 18px;
    padding: 8px 12px;
    border: none;
    display: none;
    cursor: pointer;
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

nav ul li {
    position: relative;
}

nav ul li a {
    color: #f3dfdf;
    text-decoration: none;
    font-weight: bold;
    padding: 5px 10px;
    display: block;
}

nav ul li a:hover,
nav ul li a:focus {
    text-decoration: underline;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
}

/* Submenu */
nav ul li ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #531212;
    /* dark maroon */
    min-width: 265px;
    max-width: auto;
    z-index: 1000;
}

nav ul li:hover > ul,
nav ul li:focus-within > ul {
    display: block;
}

nav ul li ul li a {
    font-weight: normal;
    padding: 10px;
}

/* Submenu dalam submenu */
nav ul li ul li ul {
    left: 100%;
    top: 0;
}

/* Mobile responsive */
@media (max-width: 768px) {
    /* nav {
        position: relative;
    } */

    #menu-toggle {
        display: block;
        position: absolute;
        top: 10px;
        left: 10px;
        z-index: 1001;
    }

    #main-menu {
        display: none;
        flex-direction: column;
        gap: 0;
        width: 100%;
        margin-top: -20px;
        /* beri ruang agar tidak tertutup tombol */
    }

    #main-menu.active {
        display: flex;
    }

    nav ul li {
        width: 100%;
    }

    nav ul li ul {
        position: static;
        background-color: #990000;
    }

    nav ul li ul li ul {
        position: static;
    }
}

/* Container utama */
.container-ppid {
    max-width: 100%;
    margin: 0 auto;
    padding: 20px 20px 40px;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
    box-sizing: border-box;
}

/* Judul Tengah */
.judul {
    text-align: center;
    margin: 0px 0 30px;
    font-size: 18px;
    font-weight: 700;
    color: #800000;
    letter-spacing: 2px;
}

/* Grid Konten Utama */
.container-section {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
}

/* Konten Visi Misi */
.isi-section {
    flex: 1 1 70%;
    min-width: 350px;
    background: #fff;
    padding: 30px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
    min-height: 600px;
}

.isi-section h2 {
    font-size: 24px;
    color: #800000;
    /* margin-top: 25px; */
    border-bottom: 3px solid #c50a0a;
    padding-bottom: 6px;
    font-weight: 600;
}

.isi-section img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 30px auto;
    border-radius: 8px;
    box-shadow: 4px 4px 20px 4px rgb(0 0 0 / 79%);
}

.isi-section p,
.isi-section ol {
    font-size: 16px;
    line-height: 1.7;
    color: #333;
    text-align: justify;
    margin-top: 16px;
}

.isi-section ol {
    padding-left: 20px;
}

.isi-section li {
    margin-bottom: 12px;
}

.riwayat-hidup,
.riwayat-pendidikan,
.riwayat-kerja,
.riwayat-organisasi {
    margin-bottom: 35px;
}

.riwayat-hidup h3,
.riwayat-pendidikan h3,
.riwayat-kerja h3,
.riwayat-organisasi h3 {
    color: #800000;
    /* merah tua */
    border-bottom: 2px solid #800000;
    /* garis bawah merah tua */
    padding-bottom: 6px;
    margin-bottom: 15px;
    font-weight: 600;
}

.riwayat-hidup p {
    font-size: 16px;
    line-height: 1.5;
    margin: 6px 0;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
}

table thead tr {
    background-color: #800000;
    /* header tabel warna merah tua */
    color: #fdf1f1;
}

table td {
    padding: 10px 12px;
    border: 1px solid #ddd;
    /* text-align: left; */
}

table tbody tr:nth-child(even) {
    background-color: #fcf7f7;
}

/* Header rata tengah dan tinggi custom */
.table-center-th thead th {
    text-align: center !important;
    vertical-align: middle !important;
    height: 50px;
    /* Atur sesuai kebutuhan */
    border-bottom: 2px solid #ddd;
}

/* Tabel rounded hanya bagian atas */
.table-rounded thead th:first-child {
    border-top-left-radius: 12px;
}

.table-rounded thead th:last-child {
    border-top-right-radius: 12px;
}

/* Opsional: Hilangkan overflow dan pastikan tampil */
.table-rounded {
    border-collapse: separate;
    border-spacing: 0;
    overflow: hidden;
}

/* Isi tengah */
.table-center-isi tbody td {
    text-align: center;
    vertical-align: middle;
}

/* #dip-kabupaten-table td:nth-child(11) {
    text-align: left !important;
} */

.sidebar-kanan {
    background-color: #f5f5f5;
    padding: 20px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    height: fit-content;
    flex: 1 1 25%;
    min-width: 280px;
}

.sidebar-kanan h2 {
    font-size: 24px;
    color: #800000;
    margin-bottom: 20px;
    border-bottom: 3px solid #c50a0a;
    font-weight: 600;
}

/* Responsif Mobile */
@media (max-width: 768px) {
    .container-visi-misi {
        flex-direction: column;
    }

    .visi-misi,
    .sidebar-kanan {
        width: 100%;
        margin-bottom: 20px;
    }

    .judul-visi-misi h1 {
        font-size: 2rem;
    }
}

.language-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
    flex-wrap: wrap;
    margin-top: 0;
}

.language-toggle button {
    background: none;
    border: 1px solid white;
    color: white;
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 3px;
    font-size: 16px;
}

.language-toggle button:focus {
    outline: 2px solid white;
    outline-offset: 2px;
}

.language-toggle {
    margin-right: 10%;
}

.logo,
.language-toggle,
.header-top {
    margin: 0 !important;
    padding: 0 !important;
}

@media (max-width: 768px) {
    header {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }

    nav {
        margin-left: 0;
        width: 100%;
    }

    .language-toggle {
        margin: 10px 0 0 0;
        justify-content: flex-start;
    }

    #main-menu {
        flex-direction: column;
    }
}

/* Hero Slider */
.hero {
    position: relative;
    height: 400px;
    overflow: hidden;
}

.slider {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    /* Ensure no overflow issues */
}

.slides {
    display: flex;
    width: 300%;
    /* 3 slides */
    height: 100%;
    transition: transform 0.5s ease-in-out;
}

.slide {
    flex: 0 0 33.333%;
    /* Each slide takes exactly 1/3 of the width */
    height: 100%;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    /* Ensure images are block elements */
}

.slider-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 9999;
    /* tampil di depan */
    color: white;
    background: rgba(0, 0, 0, 0.6);
    padding: 20px;
    border-radius: 5px;
    max-width: 500px;
    text-align: center;
    /* opsional */
}

.slider-content h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    font-weight: bold;
}

.slider-content .info {
    margin-bottom: 20px;
}

.slider-content .info p {
    margin: 5px 0;
    font-size: 1rem;
}

.slider-content .info span[role="img"] {
    margin-right: 5px;
}

.slider-content .forms {
    display: flex;
    gap: 20px;
    margin-top: 20px;
}

.slider-content .forms a {
    background-color: #c50a0a;
    color: white;
    padding: 10px 20px;
    text-align: center;
    text-decoration: none;
    border-radius: 5px;
    display: inline-block;
    transition: background-color 0.3s;
}

.slider-content .forms a:hover,
.slider-content .forms a:focus {
    background-color: #940303;
}

.slider-dots {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.dot {
    width: 10px;
    height: 10px;
    background-color: #bbb;
    border-radius: 50%;
    cursor: pointer;
}

.dot.active {
    background-color: #fff;
}

/* Services Section */
.layanan {
    background-color: #f3f3f3;
    padding: 40px 20px;
    text-align: center;
}

.layanan h2 {
    font-size: 1.8rem;
    margin-bottom: 30px;
    color: #333;
}

.layanan-items {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.layanan-item {
    width: 160px;
    background-color: #800000;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    text-decoration: none;
    color: #fff;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.25);
    transition: transform 0.2s ease, box-shadow 0.2s ease,
        background-color 0.2s ease;
}

.layanan-item img {
    width: 100%;
    max-width: 100px;
    height: auto;
    margin-bottom: 15px;
}

.layanan-item p {
    font-size: 1rem;
    font-weight: 600;
    color: #f3dfdf;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    transition: color 0.2s ease;
}

.layanan-item:hover {
    transform: translateY(-5px);
    background-color: #ffdddd;
    /* Warna latar saat hover */
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.35);
}

/* Warna teks berubah saat hover */
.layanan-item:hover p {
    color: #000;
    text-shadow: none;
}

@media (max-width: 600px) {
    .layanan-item {
        width: 100%;
        max-width: 300px;
    }
}

/* Services Section */
.permohonan {
    background-color: #f3f3f3;
    padding: 40px 20px;
    text-align: center;
}

.permohonan h2 {
    font-size: 1.8rem;
    margin-bottom: 30px;
    color: #333;
}

.permohonan-items {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.permohonan-item {
    width: 160px;
    background-color: #800000;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    text-decoration: none;
    color: #fff;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.25);
    transition: transform 0.2s ease, box-shadow 0.2s ease,
        background-color 0.2s ease;
}

.permohonan-item img {
    width: 100%;
    max-width: 100px;
    height: auto;
    margin-bottom: 15px;
}

.permohonan-item p {
    font-size: 1rem;
    font-weight: 600;
    color: #f3dfdf;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    transition: color 0.2s ease;
}

.permohonan-item:hover {
    transform: translateY(-5px);
    background-color: #ffdddd;
    /* Warna latar saat hover */
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.35);
}

/* Warna teks berubah saat hover */
.permohonan-item:hover p {
    color: #000;
    text-shadow: none;
}

@media (max-width: 600px) {
    .permohonan-item {
        width: 100%;
        max-width: 300px;
    }
}

/* Footer */
footer {
    background-color: #4a0000;
    /* Maroon gelap */
    color: #f3dfdf;
    padding: 30px 20px;
    text-align: center;
}

/* Container besar */
.footer-partners,
.footer-content,
#speech-widget {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Logo mitra */
.footer-partners {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 20px;
    border-bottom: 2px solid #cbb0b0;
    padding-bottom: 20px;
}

.footer-partners img {
    height: 60px;
    max-width: 450px;
    object-fit: contain;
}

/* Konten utama */
.footer-content {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
    text-align: left;
}
.footer-info {
    text-align: left;
}

.footer-info h3,
.footer-info p,
.footer-visitors p,
.footer-social h4 {
    color: #f3dfdf;
}

.footer-info h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.footer-info p {
    font-size: 0.9rem;
    margin: 5px 0;
}

.footer-visitors p {
    font-size: 1rem;
}

.footer-social h4 {
    font-size: 1rem;
    margin-bottom: 10px;
}

/* Ikon sosial */
.footer-social a {
    margin: 0 5px;
}

.footer-social img {
    width: 30px;
    height: 30px;
    filter: brightness(0) invert(1);
    /* Ikon putih */
}

.footer-social a:hover img,
.footer-social a:focus img {
    filter: brightness(0) invert(0.8);
    /* Hover efek */
}

/* Hak cipta */
.footer-copyright {
    font-size: 0.8rem;
    opacity: 0.8;
    color: #f3dfdf;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

/* Speech widget */
#speech-widget {
    /* background-color: #6d1e1e; */
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
}

/* Responsive Breakpoints */
@media (max-width: 1200px) {
    .footer-partners,
    .footer-content,
    #speech-widget {
        max-width: 992px;
    }
}

@media (max-width: 992px) {
    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-info,
    .footer-visitors,
    .footer-social {
        width: 100%;
    }

    .footer-partners,
    #speech-widget {
        max-width: 768px;
    }
}

@media (max-width: 768px) {
    .footer-partners,
    .footer-content,
    #speech-widget {
        max-width: 100%;
        padding: 0 10px;
    }

    .footer-partners img {
        max-width: 100px;
        height: auto;
    }
}

/* modal pop up */
/* Style untuk modal */
.modal {
    display: none;
    /* Hidden by default */
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
    /* Black background with opacity */
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: #fff;
    padding: 20px;
    width: 100%;
    max-width: 600px;
    border-radius: 8px;
    position: relative;
}

.search-input {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border-radius: 5px;
    border: 1px solid #ccc;
}

.search-list {
    max-height: 200px;
    overflow-y: auto;
    padding-left: 0;
    list-style: none;
}

.search-list li {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.search-list li:last-child {
    border-bottom: none;
}

.modal-footer {
    text-align: right;
    margin-top: 15px;
}

/* spinner loading data */
.spinner-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.spinner {
    border: 6px solid #f3f3f3;
    border-top: 6px solid #007bff;
    /* biru */
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin-bottom: 10px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Accessibility Widget */
#speech-widget {
    position: fixed;
    bottom: 0px;
    left: 0px;
    z-index: 1000;
}

#speech-toggle {
    background-color: #800000;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
}

#speech-controls {
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 10px;
    margin-top: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    gap: 5px;
}

#speech-controls button {
    padding: 5px 10px;
    background-color: #f0f0f0;
    border: none;
    border-radius: 3px;
    cursor: pointer;
}

#speech-controls button:hover,
#speech-controls button:focus {
    background-color: #ddd;
}

#speech-voice {
    padding: 5px;
}

#speech-rate {
    width: 100%;
}

.btn-cari,
.btn-ajukan {
    background-color: #800000;
    color: white;
    font-weight: 600;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-cari {
    margin-top: 10px;
    margin-bottom: 30px;
    display: inline-block;
}

.btn-cari:hover,
.btn-ajukan:hover {
    background-color: #374151;
}

/* Hover Speak Styles */
[data-lang-id]:hover,
p:hover,
a:hover {
    cursor: pointer;
    background-color: rgba(128, 0, 0, 0.1);
    transition: background-color 0.3s;
}

/* Accessibility Enhancements */
:focus {
    outline: 3px solid #800000;
    outline-offset: 2px;
}

.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: #800000;
    color: white;
    padding: 8px;
    z-index: 1000;
    text-decoration: none;
}

.skip-link:focus {
    top: 0;
}

/* High Contrast Mode */
body.high-contrast {
    background-color: #000;
    color: #fff;
}

body.high-contrast a {
    color: #ff0;
}

body.high-contrast header {
    background-color: #400000;
}

body.high-contrast .hero {
    background: linear-gradient(rgba(64, 0, 0, 0.7), rgba(64, 0, 0, 0.7)),
        url("https://via.placeholder.com/1200x400?text=Semarang+Skyline");
}

body.high-contrast .hero .forms a {
    background-color: #333;
}

body.high-contrast .services a {
    background-color: #222;
    border-color: #555;
}

body.high-contrast footer {
    background-color: #300000;
}

body.high-contrast .footer-info h3,
body.high-contrast .footer-social h4 {
    color: #fff;
}

body.high-contrast .footer-info p,
body.high-contrast .footer-visitors p,
body.high-contrast .footer-copyright {
    color: #fff;
}

body.high-contrast .footer-social img {
    filter: brightness(0) invert(1);
}

/* Responsive Design */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        gap: 10px;
    }

    nav ul {
        flex-direction: column;
        align-items: center;
    }

    .hero {
        height: 300px;
    }

    .slider-content h1 {
        font-size: 1.8rem;
    }

    .slider-content .forms {
        flex-direction: column;
        align-items: center;
    }

    .slider-content .forms a {
        max-width: 100%;
        margin-bottom: 10px;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero {
        height: 200px;
    }

    .slider-content h1 {
        font-size: 1.5rem;
    }

    .services a {
        min-width: 120px;
    }

    .slider-content .info {
        max-width: 100%;
    }

    .services a {
        min-width: 120px;
    }

    .hero .info {
        max-width: 100%;
    }

    .footer-partners img {
        height: 30px;
    }
}

/* Popup Styles */
.popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

.popup-content {
    background-color: white;
    padding: 20px;
    border-radius: 5px;
    text-align: center;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.popup-content h2 {
    margin-bottom: 10px;
    color: #800000;
}

.popup-content p {
    margin-bottom: 20px;
}

.popup-content button {
    padding: 10px 20px;
    margin: 0 10px;
    background-color: #800000;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.popup-content button:hover {
    background-color: #600000;
}

/* galeri dan website wilayah */

.region-gallery {
    display: flex;
    flex-wrap: wrap;
    background-color: #a71210;
    /* Maroon */
    color: #f3dfdf;
    padding: 40px 20px;
    justify-content: center;
    gap: 40px;
}

.region-list,
.gallery-list {
    flex: 1 1 45%;
    max-width: 600px;
}

.region-list h2,
.gallery-list h2 {
    text-align: center;
    font-size: 1.5rem;
    margin-bottom: 20px;
    border-bottom: 2px solid #cbb0b0;
    padding-bottom: 10px;
}

.region-items,
.gallery-items {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.region-item,
.gallery-item {
    text-align: center;
    flex: 1 1 100px;
}

.region-item img,
.gallery-item img {
    width: 110px;
    height: 110px;
    object-fit: cover;
    border-radius: 8px;
    background-color: #fff;
    padding: 5px;
}

.region-item a {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: white;
}

.region-item p {
    margin-top: 20px;
    font-size: 0.9rem;
    font-weight: bold;
    color: white;
}

.gallery-item img {
    width: 110px;
    height: 110px;
    object-fit: cover;
    border-radius: 8px;
    background-color: #fff;
    padding: 5px;
}

.gallery-item p {
    margin-top: 10px;
    font-size: 0.9rem;
    font-weight: bold;
}

.see-all {
    text-align: center;
    margin-top: 20px;
    font-size: 0.9rem;
    font-style: italic;
}

/* satu data */

.satu-data {
    background-color: #ffffff;
    padding: 40px 20px;
    text-align: center;
}

.satu-data h2 {
    font-size: 1.8rem;
    margin-bottom: 30px;
    color: #333;
}

.satu-data-items {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.satu-data-item {
    width: 150px;
    text-align: center;
    text-decoration: none;
    color: #111;
    transition: transform 0.2s;
}

.satu-data-item img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 50%;
    background-color: white;
    padding: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.satu-data-item p {
    margin-top: 10px;
    font-weight: bold;
    font-size: 1rem;
}

.satu-data-item:hover {
    transform: scale(1.05);
}

/* berita */

.berita {
    display: flex;
    flex-wrap: wrap;
    background-color: #e9e7e7;
    /* light */
    color: #4c4b4b;
    padding: 40px 20px;
    justify-content: center;
    gap: 40px;
}

.berita-kab-list,
.berita-ppid-list {
    flex: 1 1 45%;
    max-width: 600px;
}

.berita-kab-list h2,
.berita-ppid-list h2 {
    text-align: center;
    font-size: 1.5rem;
    margin-bottom: 20px;
    border-bottom: 2px solid #b49d9d;
    padding-bottom: 10px;
}

.berita-kab-items,
.berita-ppid-items {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.berita-kab-item,
.berita-ppid-item {
    text-align: center;
    flex: 1 1 100px;
}

.berita-kab-item img,
.berita-ppid-item img {
    width: 75%;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
    background-color: #fff;
    padding: 5px;
}

.berita-ppid-item img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
    background-color: #fff;
    padding: 5px;
}

.berita-kab-item p,
.berita-ppid-item p {
    margin-top: 10px;
    font-size: 0.9rem;
    font-weight: bold;
}

.wa-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 999;
    background-color: #25d366;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: bottom 0.3s ease;
}

.wa-float img {
    width: 30px;
    height: 30px;
}

.wa-float.shift-up {
    bottom: 70px;
}

.wa-float:hover {
    transform: scale(1.1);
}

.floating-translate {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    background-color: white;
    border-radius: 8px;
    padding: 5px 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter {
    margin-bottom: 1rem;
}

table.dataTable {
    margin-top: 1rem;
}

.grid-files {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    width: 100%;
    box-sizing: border-box;
    padding: 10px 0;
}

.file-box {
    background-color: #ffffff;
    border: 2px solid #800000;
    border-radius: 10px;
    padding: 15px;
    color: #000000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    text-decoration: none;
    color: inherit;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;

    /* ✅ Tambahan min-height untuk seragam */
    min-height: 150px;
}

.file-box:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.file-info {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-left: 5px;
}

.file-number {
    font-weight: 700;
    font-size: 30px;
    color: #000;
    flex-shrink: 0;
    width: 30px;
    text-align: left;
    margin-left: 20px;
}

.file-name {
    font-size: 18px;
    font-weight: 600;
    text-align: left;
    color: #000;
    word-wrap: break-word;
    /* ✅ jika nama file panjang */
}

.info-item {
    display: flex;
    gap: 30px;
    margin-bottom: 30px;
    margin-left: 30px;
    align-items: center;
}

.info-item i {
    font-size: 40px;
    background-color: #800000;
    color: #fff;
    padding: 20px;
    border-radius: 50px;
    text-align: center;
}

.info-item.align-h2 {
    align-items: flex-start;
}

.info-item.align-h2 i {
    margin-top: 20px;
}

.info-text {
    font-size: 20px;
    color: #333;
}

.info-text h2 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #333;
}

.info-text p,
.info-text ol {
    font-size: 1rem;
    color: #444;
    margin-bottom: 10px;
}

.info-text ol {
    padding-left: 20px;
}

.container-ppid .card {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 20px;
}

/* Permohonan Section */
.permohonan {
    background-color: #f3f3f3;
    padding: 40px 20px;
    text-align: center;
}

.permohonan h2 {
    font-size: 1.8rem;
    margin-bottom: 30px;
    color: #333;
}

.permohonan-items {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.permohonan-item {
    width: 160px;
    background-color: #800000;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    text-decoration: none;
    color: #fff;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.25);
    transition: transform 0.2s ease, box-shadow 0.2s ease,
        background-color 0.2s ease;
}

.permohonan-item img {
    width: 100%;
    max-width: 100px;
    height: auto;
    margin-bottom: 15px;
}

.permohonan-item p {
    font-size: 1rem;
    font-weight: 600;
    color: #f3dfdf;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    transition: color 0.2s ease;
}

.permohonan-item:hover {
    transform: translateY(-5px);
    background-color: #ffdddd;
    /* Warna latar saat hover */
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.35);
}

/* Warna teks berubah saat hover */
.permohonan-item:hover p {
    color: #000;
    text-shadow: none;
}

@media (max-width: 600px) {
    .layanan-item {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 1024px) {
    .isi-section,
    .sidebar-kanan {
        flex: 1 1 100%;
    }
}

.box-berita-sidebar {
    display: flex;
    gap: 16px;
    box-shadow: 0 0 10px #ccc;
    border-radius: 3px;
    padding: 16px;
    background-color: white;
    margin-bottom: 2%;
}

.search-result-link {
    display: block;
    padding: 8px 12px;
    color: #333;
    text-decoration: none;
    border-bottom: 1px solid #ddd;
    transition: background-color 0.2s;
}

.search-result-link:hover {
    background-color: #f0f0f0;
    color: #000;
}

.search-meta {
    font-size: 0.9em;
    color: #666;
}

div.dataTables_wrapper {
    width: 100%;
    margin: 0 auto;
}

table.dataTable {
    width: 100% !important;
}

.dataTables_scrollBody {
    overflow-x: auto !important;
}

.footer {
    background: #f8f9fa;
    padding: 30px 20px;
    font-size: 14px;
}

.footer__partners {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.footer__partners img {
    height: 40px;
    object-fit: contain;
}

.footer__content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    text-align: left;
    gap: 20px;
}

.footer__info,
.footer__social {
    flex: 1 1 300px;
}

.footer__social a img {
    width: 28px;
    height: 28px;
    margin-right: 10px;
    transition: transform 0.2s;
}

.footer__social a img:hover {
    transform: scale(1.1);
}

.footer__copyright {
    text-align: center;
    margin-top: 30px;
    font-size: 12px;
    color: #666;
}

.back-to-top {
    display: none;
    position: fixed;
    bottom: 30px;
    right: 40px;
    z-index: 999;
    background: none;
    border: none;
    cursor: pointer;
}

.back-to-top img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

#arjuna-messages {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    font-size: 14px;
    padding: 10px;
    padding-bottom: 20px;
}

.arjuna-message {
    margin-bottom: 10px;
    padding: 6px 10px;
    border-radius: 12px;
    max-width: 80%;
    font-size: 14px;
    line-height: 1.4;
    word-wrap: break-word;
}

.arjuna-user {
    background-color: #d1f0d0;
    align-self: flex-end;
    text-align: right;
    padding: 8px 12px;
    border-radius: 10px;
    max-width: 75%;
    word-wrap: break-word;
    white-space: pre-wrap;
}

.arjuna-bot {
    background-color: #f1f0f0;
    align-self: flex-start;
    text-align: left;
    padding: 8px 12px;
    border-radius: 10px;
    max-width: 75%;
    word-wrap: break-word;
    white-space: pre-wrap;
}

.arjuna-chat-input {
    display: flex;
    align-items: center;
    border: 2px solid #800000;
    border-radius: 12px;
    padding: 8px;
    background-color: #fff;
    position: relative;
}

.arjuna-chat-textarea {
    flex: 1;
    border: none;
    resize: none;
    outline: none;
    font-size: 14px;
    padding: 6px 8px;
    border-radius: 8px;
    min-height: 40px;
    max-height: 100px;
}

.arjuna-send-button {
    border: none;
    background: #f0f0f0;
    padding: 8px;
    border-radius: 8px;
    margin-left: 8px;
    cursor: pointer;
    transition: background 0.2s;
}

.arjuna-send-button:hover {
    background: #e0e0e0;
}

@media (max-width: 768px) {
    #arjuna-chat-box {
        width: 320px;
        height: 450px;
        right: 5vw;
        bottom: 80px; /* muncul di atas tombol */
    }

    #arjuna-chat-bubble {
        bottom: 20px;
        right: 20px;
    }
}
.arjuna-box {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 85px;
    width: 320px;
    height: 450px;
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    z-index: 999;
    overflow: hidden;
    flex-direction: column;
}
