/* ================= GLOBAL ================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    background: #f2f2f2;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ================= HEADER ================= */
header {
    background-color: #b30000;
    color: white;
    padding: 20px;
    display: flex;               /* NEW */
    justify-content: center;     /* teks judul tetap di tengah */
    align-items: center;         /* posisi vertikal rapi */
    font-size: 24px;
    font-weight: bold;
    position: relative;
}

/* Tombol Login */
header a.login-btn {
    position: absolute;
    right: 20px;
    background-color: #ffffff;
    color: #b30000;
    padding: 8px 16px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    transition: 0.3s;
}

header a.login-btn:hover {
    background-color: #ffcccc;
}


/* ================= NAVIGATION ================= */
nav {
    background-color: #e60000;
    text-align: center;
    padding: 10px 0;
}

nav a {
    color: white;
    text-decoration: none;
    margin: 0 15px;
    font-weight: bold;
    transition: 0.3s;
}

nav a:hover {
    opacity: 0.8;
}

/* ================= CONTAINER ================= */
.container {
    display: flex;
    flex-wrap: wrap; /* agar responsif di layar kecil */
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
    gap: 20px;
}

/* KIRI = gambar */
.left {
    flex: 1 1 400px; /* fleksibel tapi minimal 400px */
    display: flex;
    justify-content: center;
    align-items: center;
}

.left img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

/* KANAN = teks + tombol */
.right {
    flex: 1 1 400px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.right h2 {
    font-size: 28px;
    margin-bottom: 15px;
    color: #b30000;
}

.right p {
    font-size: 16px;
    margin-bottom: 25px;
    line-height: 1.6;
    color: #333;
}

/* Tombol utama */
.button-main {
    display: inline-block;
    background-color: #b30000;
    color: white;
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: 0.3s;
}

.button-main:hover {
    background-color: #ff4d4d;
}

/* ================= FOOTER ================= */
footer {
    background-color: #b30000;
    color: white;
    text-align: center;
    padding: 15px 0;
    position: fixed;
    width: 100%;
    bottom: 0;
}

/* ================= RESPONSIVE ================= */
@media screen and (max-width: 900px) {
    .container {
        flex-direction: column;
        align-items: center;
    }

    .left, .right {
        flex: 1 1 100%;
        text-align: center;
    }

    .right p {
        margin-bottom: 20px;
    }

    .right h2 {
        margin-bottom: 10px;
    }
}
