/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Body style */
body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    background-color: #f4f4f4;
    color: #333;
    text-align: center;
}

/* Header style */
header {
    background-color: #003d99;
    color: white;
    padding: 15px 0;
    font-size: 1.5rem; 
    text-align: center;
}

header h1 {
    font-size: 1.8rem;
    margin: 0;
}

.hero-slider {
    width: 100%;
    height: 400px;
    overflow: hidden;
    position: relative;
    background-color: #ccc;
}

.slide {
    width: 100%;
    height: 100%;
    position: absolute;
    opacity: 0; /* Semua slide disembunyikan di awal */
    transition: opacity 1s ease-in-out;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Gambar memenuhi slider tanpa terdistorsi */
    display: block;
}

/* Menampilkan slide aktif */
.slide.active {
    opacity: 1;
}

@keyframes slideAnimation {
    0%, 20% { opacity: 1; }
    25%, 100% { opacity: 0; }
}

/* Button style */
.btn-daftar {
    background-color: #003d99;
    color: white;
    border: none;
    padding: 12px 25px;
    font-size: 1.3rem;
    cursor: pointer;
    margin: 25px 0;
    border-radius: 5px;
}

.btn-daftar:hover {
    background-color: #0056cc;
}

/* Description section */
.description {
    margin: 30px auto;
    padding: 15px;
    max-width: 800px;
}

.description h2 {
    font-size: 1.8rem;
    color: #003d99;
}

.description p {
    font-size: 1.2rem;
    color: #cc0000;
    margin-top: 15px;
}

/* Styling untuk gambar tambahan sebelum footer */
.additional-image {
    text-align: center;
    margin: 30px 0;
}

.additional-image img {
    max-width: 100%;
    height: auto;
    border: 2px solid #003d99;
    border-radius: 5px;
}

/* Footer style */
footer {
    background-color: #003d99;
    color: white;
    padding: 15px 0;
    font-size: 1rem;
}

/* RESPONSIVE LAYOUT */

/* Tablet landscape (ukuran sedang) */
@media (max-width: 992px) {
    .hero-slider {
        height: 300px;
    }

    header h1 {
        font-size: 1.6rem;
    }

    .btn-daftar {
        font-size: 1.2rem;
        padding: 10px 20px;
    }

    .description {
        padding: 10px;
        font-size: 1rem;
    }

    .description h2 {
        font-size: 1.5rem;
    }

    .description p {
        font-size: 1rem;
    }

    footer {
        font-size: 0.9rem;
    }
}

/* Tablet portrait atau smartphone besar (ukuran kecil) */
@media (max-width: 768px) {
    .hero-slider {
        height: 250px;
    }

    header {
        padding: 10px 0;
    }

    header h1 {
        font-size: 1.4rem;
    }

    .btn-daftar {
        font-size: 1.1rem;
        padding: 8px 15px;
    }

    .description {
        padding: 8px;
    }

    .description h2 {
        font-size: 1.3rem;
    }

    .description p {
        font-size: 0.95rem;
    }

    .additional-image {
        margin: 20px 0;
    }

    footer {
        font-size: 0.85rem;
    }
}

/* Smartphone kecil (ukuran sangat kecil) */
@media (max-width: 576px) {
    .hero-slider {
        height: 200px;
    }

    header {
        padding: 8px 0;
    }

    header h1 {
        font-size: 1.2rem;
    }

    .btn-daftar {
        font-size: 1rem;
        padding: 6px 12px;
    }

    .description h2 {
        font-size: 1.1rem;
    }

    .description p {
        font-size: 0.85rem;
    }

    .additional-image img {
        border: 1px solid #003d99;
    }
}
