/* Gaya umum */
body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f9f9f9;
    color: #333;
}

.container {
    width: 80%;
    margin: auto;
}

/* Header */
header {
    background-color: #4CAF50;
    color: white;
    padding: 20px 0;
}

header h1 {
    text-align: center;
    margin: 0;
    font-size: 36px;
}

nav ul {
    list-style-type: none;
    text-align: center;
    padding: 0;
}

nav ul li {
    display: inline-block;
    margin: 0 20px;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-size: 18px;
}

nav ul li a:hover {
    text-decoration: underline;
}

/* Gaya Slideshow */
.slideshow-container {
    position: relative;
    max-width: 1000px;
    margin: 40px auto;
}

.slider {
    display: flex; /* Menggunakan flexbox untuk menggeser gambar */
    overflow: hidden; /* Sembunyikan gambar yang tidak aktif */
    width: 100%;
}

.mySlides {
    min-width: 100%; /* Setiap slide mengisi lebar penuh */
    transition: transform 0.5s ease; /* Animasi transisi saat menggeser */
}

img {
    width: 100%;
    height: auto;
}

.text {
    position: absolute;
    bottom: 10px;
    left: 20px;
    font-size: 24px;
    color: white;
    background-color: rgba(0, 0, 0, 0.6);
    padding: 10px;
}

/* Tombol navigasi */
.navigation {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
}

.navigation button {
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    font-size: 24px;
    padding: 10px;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.navigation button:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

/* Gaya artikel */
.about, .potensi, .berita, .kontak {
    background-color: #ffffff;
    padding: 40px 20px;
    margin: 20px 0;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

h2 {
    text-align: center;
    margin-bottom: 20px;
    font-size: 28px;
}

.about p, .potensi ul, .berita p, .kontak p {
    text-align: center;
    font-size: 18px;
    line-height: 1.6;
}

.potensi ul {
    list-style-type: none;
    padding: 0;
}

.potensi li {
    margin: 10px 0;
}

/* Footer */
footer {
    text-align: center;
    padding: 20px;
    background-color: #333;
    color: white;
}

/* Animasi fade untuk slideshow */
.fade {
    animation: fade 1s ease;
}

@keyframes fade {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Media Queries untuk Responsivitas */
@media screen and (max-width: 768px) {
    header h1 {
        font-size: 28px;
    }

    nav ul li {
        display: block;
        margin: 10px 0;
    }

    nav ul li a {
        font-size: 16px;
    }

    h2 {
        font-size: 24px;
    }

    .about p, .potensi ul, .berita p, .kontak p {
        font-size: 16px;
    }
}
