* {
    box-sizing: border-box;
}

.slider-container {
    position: relative;
    max-width: 500px;
    margin: 40px auto;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.slides {
    display: flex;
    transition: transform 0.5s ease-in-out;
    width: 100%;
}

.slide {
    min-width: 100%;
    position: relative;
}

.slide img {
    width: 100%;
    /* height: 650px; */
    object-fit: cover;
    display: block;
}

.caption {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background-color: rgba(0, 0, 0, 0.6);
    color: #fff;
    padding: 10px 15px;
    border-radius: 5px;
    font-size: 1rem;
}

.nav-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    border: none;
    color: white;
    font-size: 2rem;
    padding: 10px;
    cursor: pointer;
    z-index: 10;
}

.nav-button:hover {
    background-color: rgba(0, 0, 0, 0.7);
}

.prev {
    left: 10px;
}

.next {
    right: 10px;
}

@media (max-width: 768px) {
    .slide img {
        height: 250px;
    }

    .caption {
        font-size: 0.9rem;
    }
}

.konten-html table,
.konten-html td,
.konten-html th {
    border: 1px solid #ccc;
    border-collapse: collapse;
    padding: 8px;
}

.dark .konten-html table,
.dark .konten-html td,
.dark .konten-html th {
    color: white;
    border-color: #666;
}

.konten-html p {
    margin-bottom: 1rem;
}

.konten-html h1,
.konten-html h2,
.konten-html h3,
.konten-html h4,
.konten-html h5,
.konten-html h6 {
    font-weight: 700;
    margin-top: 2rem;
    margin-bottom: 1rem;
    line-height: 1.25;
}

.konten-html h1 {
    font-size: 2.25rem;
}
.konten-html h2 {
    font-size: 1.875rem;
}
.konten-html h3 {
    font-size: 1.5rem;
}
.konten-html h4 {
    font-size: 1.25rem;
}
.konten-html h5 {
    font-size: 1.125rem;
}
.konten-html h6 {
    font-size: 1rem;
}

.konten-html ul,
.konten-html ol {
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.konten-html ul {
    list-style-type: disc;
}

.konten-html ol {
    list-style-type: decimal;
}

.konten-html li {
    margin-bottom: 0.5rem;
}

.konten-html blockquote {
    margin: 1.5rem 0;
    padding: 1rem 1.25rem;
    background-color: #f9fafb;
    border-left: 4px solid #3b82f6;
    font-style: italic;
    color: #374151;
}

.konten-html a {
    color: #2563eb;
    text-decoration: underline;
}

.konten-html img {
    max-width: 100%;
    height: auto;
    border-radius: 0.5rem;
    margin: 1rem 0;
}

.konten-html pre {
    background-color: #1f2937;
    color: #f9fafb;
    padding: 1rem;
    overflow-x: auto;
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
}

.konten-html code {
    background-color: #f3f4f6;
    color: #e11d48;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-family: monospace;
}

/* Dark mode support */
.dark .konten-html {
    color: #d1d5db; /* text-gray-300 */
}

.dark .konten-html blockquote {
    background-color: #111827;
    color: #e5e7eb;
    border-left-color: #3b82f6;
}

.dark .konten-html a {
    color: #60a5fa;
}

.dark .konten-html code {
    background-color: #374151;
    color: #fbbf24;
}

.dark .konten-html pre {
    background-color: #111827;
    color: #e5e7eb;
}

/* untuk list badan */
.badan-list {
    display: grid;
    /* grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); */
    gap: 30px;
    list-style: none;
}

.badan-item {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    padding: 20px;
    border-radius: 12px;
    border-left: 5px solid #3498db;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.badan-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
    border-left-color: #e74c3c;
}

.badan-item::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 0;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(52, 152, 219, 0.1),
        rgba(46, 204, 113, 0.1)
    );
    transition: width 0.3s ease;
}

.badan-item:hover::after {
    width: 100%;
}

.badan-item h3 {
    color: #2c3e50;
    font-size: 1.1rem;
    margin-bottom: 8px;
    position: relative;
    z-index: 1;
}

.badan-item p {
    color: #7f8c8d;
    font-size: 0.9rem;
    position: relative;
    z-index: 1;
}

/* untuk list kecamatan */
.container-kecamatan {
    max-width: 600px;
    margin: 0 auto;
    /* background-color: #fff; */
    /* padding: 20px 30px; */
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

h1 {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 25px;
}

.kecamatan-list {
    list-style-type: none; /* Menghilangkan bullet default */
    padding: 0;
    margin: 0;
}

.kecamatan-list li {
    background-color: #e9ecef;
    margin-bottom: 10px;
    padding: 12px 15px;
    border-radius: 5px;
    border-left: 5px solid #007bff; /* Garis vertikal di kiri */
    display: flex;
    align-items: center;
    transition: transform 0.2s ease-in-out, background-color 0.2s ease-in-out;
}

.kecamatan-list li:hover {
    transform: translateX(5px); /* Efek sedikit bergeser saat di-hover */
    background-color: #d1e7dd; /* Warna latar belakang berubah saat di-hover */
}

/* untuk pagination */
.pagination-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 1rem;
    font-family: sans-serif;
    font-size: 14px;
}

.pagination {
    display: flex;
    list-style: none;
    padding: 0;
    gap: 4px;
}

.pagination li {
    border: 1px solid #d1d5db;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    user-select: none;
}

.pagination li.active {
    font-weight: bold;
    background-color: #f3f4f6;
}

.pagination li.disabled {
    color: #9ca3af;
    cursor: not-allowed;
}

/* pagination custom lagi */
/* .pagination {
        display: flex;
        gap: 4px;
        list-style: none;
        padding: 0;
    }

    .pagination li {
        border: 1px solid #d1d5db;
        padding: 6px 12px;
        border-radius: 6px;
        cursor: pointer;
        user-select: none;
        background-color: #f9fafb;
    }

    .pagination li.active {
        font-weight: bold;
        background-color: #e5e7eb;
    }

    .pagination li.disabled {
        color: #9ca3af;
        cursor: not-allowed;
    }

    /* Desktop mode: tampilkan semua */
    .pagination-full {
        display: flex;
    }

    .pagination-simple {
        display: none;
    }

    .break-words {
        overflow-wrap: break-word;
        word-wrap: break-word;
        word-break: break-word;
}

    /* Mobile mode: hanya "Sebelumnya" dan "Selanjutnya" */
    @media (max-width: 640px) {
        .pagination-full {
            display: none;
        }

        .pagination-simple {
            display: flex;
        }
    } */
