/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

/* General Styles */
body {
    line-height: 1.6;
    background-color: #f4f4f9;
    color: #333;
}

/* Header with Logo */
header {
    background: #020900;
    color: #fff;
    padding: 1rem 0;
}

nav ul {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    list-style: none;
    margin: 0;
    padding: 0;
    padding-left: 1rem;
    height: 15px;
}

nav ul li {
    margin: 0 1rem;
}

.logo {
    width: 80px;
    height: auto;
    margin-right: 1rem;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: #ffcc00;
}

/* Banner Styling */
.banner {
    background: url('banner.jpg') no-repeat center center/cover;
    color: #fff;
    padding: 4rem 1rem;
    position: relative;
    display: flex;
    align-items: center; /* Mengatur vertikal rata tengah */
    height: 450px;
    justify-content: space-between; 
}

.banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
}

.banner-content {
    position: relative;
    z-index: 1;
    max-width: 600px;
    text-align: left; /* Teks rata kiri */
    margin: 0;
    padding-left: 3rem;
}

.hero-image {
    margin-left: auto; /* Menggeser hero image ke kanan */
}

.hero-image img {
    width: 500px; /* Sesuaikan ukuran hero image */
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3); /* Menambahkan bayangan */
    filter: brightness(1.2);
   
}

.banner h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.banner p {
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

/* Styling for Banner Buttons */
.banner-button, .chat-button {
    display: inline-flex;
    align-items: center;
    background: #ffcc00;
    color: #333;
    padding: 0.5rem 1.5rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.3s ease, color 0.3s ease;
    margin-right: 0.5rem; /* Menambah jarak antar tombol */
}
.chat-button {
    display: inline-flex;
    align-items: center;
    background: transparent; /* Mengatur background menjadi transparan */
    color: #ffcc00; /* Warna teks agar kontras */
    padding: 0.5rem 1.5rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
    margin-right: 0.5rem;
    border: 2px solid #ffcc00; /* Memberikan border agar tetap terlihat */
}


.banner-button i, .chat-button i {
    margin-right: 0.8rem; /* Jarak antara ikon dan teks */
}

.banner-button:hover, .chat-button:hover {
    background: #ffd633;
    color: #222;
}


/* Section Styling */
.section {
    padding: 2rem;
    text-align: center;
}

h2 {
    font-size: 1.8rem;
    color: #333;
    margin-bottom: 1rem;
}

.section p {
    font-size: 1rem;
    color: #666;
    margin-bottom: 2rem;
}

/* Program 1 List Styling */
.program-list {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    
}

.program-item {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 15px;
    padding: 0.5rem 1rem; /* Mengurangi padding untuk kontainer lebih kompak */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 300px;
    max-height: 100px; /* Menambahkan batas tinggi maksimum */
    transition: transform 0.3s ease;
    overflow: hidden; /* Menjaga konten tetap di dalam batas kontainer */
}

.program-item h3 {
    font-size: 1.1rem;
    color: #333;
    margin-bottom: 0.5rem; /* Menambahkan jarak bawah untuk judul */
}

.program-item:hover {
    transform: scale(1.05);
}

.program-item h3 i {
    margin-right: 0.5rem; /* Jarak antara ikon dan teks */
    color: #ffcc00; /* Warna ikon sesuai preferensi */
}

.program-item p {
    font-size: 0.9rem;
    color: #777;
    margin-bottom: 1rem;
}

.icon-scroll {
    font-size: 40px; /* Ukuran ikon */
    text-align: center;
    display: block;
    margin: 0px 0 0px -1px; /* Posisi ikon */
    color: #333;
    text-decoration: none; /* Menghapus garis bawah pada tautan */
}

.icon-scroll:hover {
    color: #ffcc00; /* Warna saat dihover */
}

/* Program 2 List Styling */
.program-minat-list {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;    
}

.program-minat-item {
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Menjaga jarak antara elemen */
    background: #ffffff00;
    border: 1px solid #dddddd00;
    border-radius: 20px;
    padding: 1rem 1rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 300px;
    transition: transform 0.3s ease;
}

.program-minat-item .detail-button {
    margin-top: auto; /* Memastikan tombol berada di bagian bawah */
    background: #333;
    color: #fff;
    padding: 0.2rem 1rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.program-minat-item .detail-button:hover {
    background: #ffcc00;
}

.program-minat-item h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: #333;
}

.program-minat-item p {
    font-size: 0.9rem;
    color: #777;
    margin-bottom: 1rem;
}

.program-minat-item:hover {
    transform: scale(1.05);
}

.program-minat-item h3 i {
    margin-right: 0.5rem; /* Jarak antara ikon dan teks */
    color: #ffcc00; /* Warna ikon sesuai preferensi */
}

.program-minat-item .program-image {
    width: 100%; /* Full width of the container */
    height: auto; /* Maintain aspect ratio */
    border-radius: 8px; /* Optional: rounded corners */
    margin-bottom: 1rem; /* Space between image and text */
}

.iconminat-scroll {
    font-size: 40px; /* Ukuran ikon */
    text-align: center;
    display: block;
    margin: 0px 0 0px -0px; /* Posisi ikon */
    color: #333;
    text-decoration: none; /* Menghapus garis bawah pada tautan */
}

.iconminat-scroll:hover {
    color: #ffcc00; /* Warna ikon saat dihover */
}

.kelasku-list { 
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 300px));
    gap: 1.5rem;

    justify-content: center; /* grid ke tengah */
    max-width: 1000px;       /* ⬅️ BATASI LEBAR */
    margin: 0 auto;          /* ⬅️ CENTER HALAMAN */
}


.kelasku-item {
    background: #ffffff00;
    border: 1px solid #dddddd00;
    border-radius: 15px;
    padding: 0.5rem 1rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 300px;
    transition: transform 0.3s ease;
    text-align: center;
}

.kelasku-item img {
    width: 100%;
    border-radius: 10px;
    margin-bottom: 0.5rem;
}

.kelasku-item h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.kelasku-item p {
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.kelasku-item:hover {
    transform: scale(1.05);
}

.detail-button {
    display: block;
    width: 100%; /* Memastikan tombol memanjang penuh */
    background-color: #333;
    color: #ffffff;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    cursor: pointer;
    text-align: center; /* Menjaga teks tetap di tengah */
    transition: background 0.3s ease;
}

.detail-button:hover {
    background-color: #ffd633;
}

.kelasku-scroll {
    font-size: 40px; /* Ukuran ikon */
    text-align: center;
    display: block;
    margin: 0px 0 0px -0px; /* Posisi ikon */
    color: #333;
    text-decoration: none; /* Menghapus garis bawah pada tautan */
}

.kelasku-scroll:hover {
    color: #ffcc00; /* Warna ikon saat dihover */
}

.tessimulasi-list {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.tessimulasi-item {
    background: #ffffff00;
    border: 1px solid #dddddd00;
    border-radius: 15px;
    padding: 0.5rem 1rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 300px;
    transition: transform 0.3s ease;
    text-align: center;
}

.tessimulasi-item img {
    width: 100%;
    border-radius: 10px;
    margin-bottom: 0.5rem;
}

.tessimulasi-item h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.tessimulasi-item p {
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.tessimulasi-item:hover {
    transform: scale(1.05);
}

.detail-button {
    background-color: #333;
    color: #ffffff;
    border: none;
    padding: 0.2rem 1rem;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s ease;
    text-decoration: none;
}

.detail-button:hover {
    background-color: #ffd633;
}

.voucher-list {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.voucher-item {
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 15px;
    padding: 1rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
    text-align: center;
    transition: transform 0.3s ease;
}

.voucher-item img {
    width: 100%;
    border-radius: 10px;
    margin-bottom: 0.5rem;
}

.voucher-item h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.voucher-item p {
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.download-button {
    display: inline-block;
    background-color: #4CAF50;
    color: #fff;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.3s ease;
}

.download-button:hover {
    background-color: #45a049;
}


/* Button Styling */
button {
    background: #333;
    color: #fff;
    border: none;
    padding: 0.6rem 1.2rem;
    font-size: 1rem;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s ease;
}

button:hover {
    background: #ffcc00;
}

/* Footer Styling */
footer {
    background: #333;
    color: #fff;
    text-align: center;
    padding: 1rem 0;
    font-size: 0.9rem;
    margin-top: 2rem;
}

footer p {
    margin: 0;
}

/* Promo Popup Styling */
.promo-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    max-width: 400px;
    background-color: rgba(255, 255, 255, 0); /* Warna putih transparan */  
    z-index: 1000;
    display: none; /* Hidden by default */
}

/* Styling for the promo image */
.promo-popup .promo-image {
    width: 100%; /* Menyesuaikan lebar gambar dengan popup */
    height: auto;
    border-radius: 10px; /* Opsional: sudut membulat */
    margin-bottom: 0rem; /* Spasi di bawah gambar */
}

.promo-popup h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.promo-popup p {
    font-size: 1rem;
    margin-bottom: 1rem;
    color: #f2de05;
}

/* Close button styling */
.close-button {
    position: absolute;
    top: 1px;
    right: 1px;
    background: none;
    border-radius: 10px;
    font-size: 1.5rem;
    cursor: pointer;
    color: #fbf9f9;
}

/* Register button styling */
.register-button {
    display: block;
    margin-top: 0rem;
    background-color: #ffcc00;
    color: #333;
    padding: 0.5rem 1.5rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    text-align: right;
    float: right; /* Menempatkan tombol di kanan bawah */
}

.register-button:hover {
    background-color: #ffd633;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    display: none;
}

/* Responsive Layout */

/* Default styles (for large screens) are already defined above */

/* Tablet view (768px - 1024px) */
@media (max-width: 1024px) {
    .banner {
        flex-direction: column;
        height: auto;
        text-align: center;
        padding: 2rem 1rem;
    }

    .banner-content {
        padding-left: 0;
    }

    .hero-image img {
        width: 100%; /* Full width for smaller screens */
        max-width: 400px; /* Optional: Limit max size */
        margin: 1rem auto; /* Center the image */
    }

    nav ul {
        justify-content: center;
        padding-left: 0;
    }

    nav ul li {
        margin: 0.5rem;
    }

    .program-list, .program-minat-list, .kelasku-list, .tessimulasi-list {
        flex-direction: column; /* Stack items vertically */
        align-items: center;
    }

    .program-item, .program-minat-item, .kelasku-item, .tessimulasi-item {
        width: 90%; /* Adjust the width for better fit */
        max-width: 400px;
    }
}

/* Tambahkan media query untuk perangkat handphone */
@media (max-width: 768px) {
    /* Hero image di handphone */
    .banner {
        flex-direction: column; /* Atur arah layout menjadi kolom */
        height: auto; /* Sesuaikan tinggi secara otomatis */
        text-align: center; /* Teks rata tengah */
        padding: 2rem 1rem;
    }

    .banner-content {
        margin-bottom: 1rem; /* Tambahkan jarak bawah */
        padding: 0;
    }

    .hero-image {
        margin: 0 auto; /* Posisikan di tengah */
    }

    .hero-image img {
        width: 90%; /* Perbesar hero image */
        height: auto;
        border-radius: 15px; /* Berikan efek rounded */
    }

    /* Navbar pindah ke bawah */
    header {
        position: fixed;
        bottom: 0;
        width: 100%;
        background-color: #020900; /* Pastikan terlihat */
        z-index: 9999; /* Agar tetap di atas */
        padding: 0.5rem 0;
    }

    nav ul {
        justify-content: center; /* Posisi menu rata tengah */
        padding: 0;
    }

    nav ul li {
        margin: 0 0.5rem;
    }

    nav ul li a {
        font-size: 0.9rem; /* Perkecil font agar pas */
    }
}


/* Extra small screens (up to 480px) */
@media (max-width: 480px) {
    .banner h1 {
        font-size: 1.5rem;
    }

    .banner p {
        font-size: 0.9rem;
    }

    .banner-button, .chat-button {
        padding: 0.3rem 1rem;
        font-size: 0.8rem;
    }

    .program-item, .program-minat-item, .kelasku-item, .tessimulasi-item {
        font-size: 0.8rem;
        padding: 0.5rem;
    }

    .hero-image img {
        max-width: 300px;
    }
}
