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

/* Body dan font */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    background-color: #f8f9fa;
    color: #333;
    margin: 0;
}

/* Header dan navbar */
header {
    background: #06121e;
    color: #fff;
    padding: 15px 0;
    text-align: center;
}

header nav ul {
    list-style: none;
}

header nav ul li {
    display: inline-block;
    margin: 0 15px;
}

header nav ul li a {
    color: #ecf0f1;
    text-decoration: none;
    font-size: 16px;
    font-weight: bold;
    transition: color 0.3s ease;
}

header nav ul li a:hover {
    color: #f39c12;
}

/* Hero Section */
.hero {
    background: url('images/mengenal-apa-itu-algoritma-pemrograman-vbi.jpg') no-repeat center center/cover;
    color: #fff;
    text-align: center;
    padding: 150px 20px; /* Tambah padding untuk tinggi lebih besar */
    width: 100%; /* Membuat lebar 100% */
    display: flex;
    flex-direction: column;
    justify-content: center; /* Pusatkan vertikal */
    align-items: center; /* Pusatkan horizontal */
    position: relative;
}

.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Overlay transparan agar teks lebih jelas */
    z-index: 1;
}

.hero h1, .hero p, .hero .btn {
    position: relative; /* Pastikan teks tampil di atas overlay */
    z-index: 2;
}

.hero h1 {
    font-size: 3em; /* Perbesar ukuran judul */
    margin-bottom: 15px;
}

.hero p {
    font-size: 1.5em; /* Perbesar ukuran deskripsi */
    margin-bottom: 30px;
    max-width: 700px; /* Batasi lebar teks agar lebih seimbang */
}

.hero .btn {
    display: inline-block;
    padding: 12px 25px;
    background-color: #f39c12;
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    transition: background 0.3s ease;
}

.hero .btn:hover {
    background-color: #e67e22;
}

/* Section Style */
.section {
    padding: 50px 20px;
    text-align: center;
    background-color: #ffffff;
    margin: 20px auto;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    max-width: 1000px;
}

.section h2 {
    font-size: 2.2em;
    margin-bottom: 15px;
    color: #2c3e50;
}

.section p {
    font-size: 1.1em;
    margin-bottom: 20px;
    color: #555;
}

.section img {
    width: 100%;
    max-width: 600px;
    margin-top: 20px;
    border-radius: 5px;
}

ul {
    list-style: none;
    display: inline-block;
    text-align: left;
    font-size: 1.1em;
}

ul li {
    margin-bottom: 10px;
    position: relative;
    padding-left: 25px;
}

ul li::before {
    content: '✔';
    position: absolute;
    left: 0;
    color: #3498db;
    font-weight: bold;
}

/* Info Section */
.info-section {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
}

/* Card Styling */
.card {
    background-color: #fff;
    max-width: 800px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    padding: 30px;
    text-align: center;
}

.card h2 {
    font-size: 2em;
    margin-bottom: 15px;
    color: #2c3e50;
    font-weight: 700;
}

.card p {
    font-size: 1.1em;
    color: #555;
    margin-bottom: 20px;
}

.card ul, .card ol {
    list-style: none;
    padding: 0;
    text-align: left;
    display: inline-block;
    margin: 10px auto 0 auto;
}

.card ul li, .card ol li {
    font-size: 1em;
    color: #333;
    margin-bottom: 10px;
    padding-left: 25px;
    position: relative;
}

.card ul li::before, .card ol li::before {
    content: '✔';
    position: absolute;
    left: 0;
    top: 0;
    color: #3498db;
    font-weight: bold;
}

/* Form Kontak */
form {
    margin: 0 auto;
    max-width: 600px;
    background: #f4f4f4;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

form label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #333;
}

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

form button {
    background: #3498db;
    color: #fff;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.3s ease;
}

form button:hover {
    background: #2980b9;
}

/* Kalkulator Latihan Berhitung */
.calculator input,
.calculator select,
.calculator button {
    margin-bottom: 15px; /* Tambahkan margin untuk lebih lega */
}

.calculator {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 20px;
}

.calculator input,
.calculator select,
.calculator button {
    width: 80%;
    max-width: 300px;
    margin: 10px 0;
    padding: 10px;
    font-size: 1em;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.calculator button {
    background-color: #3498db;
    color: white;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.calculator button:hover {
    background-color: #2980b9;
}

.calculator h3 {
    margin-top: 15px;
    font-size: 1.2em;
    color: #333;
}

/* Footer */
footer {
    background: #2c3e50;
    color: #fff;
    text-align: center;
    padding: 15px 0;
    margin-top: 30px;
}

/* Responsif */
@media (max-width: 768px) {
    nav ul li {
        display: block;
        margin: 10px 0;
    }

    .hero h1 {
        font-size: 2.2em;
    }

    .section h2 {
        font-size: 1.8em;
    }
}
