* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    color: #333;
    transition: overflow 0.3s ease;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Header */
header {
    background: linear-gradient(90deg, navy, red);
    padding: 15px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 1001;
}

p {
    text-align: justify;
}

/* Logo */
.logo-container {
    flex-shrink: 0;
}

.logo-container img {
    width: 150px;
    height: auto;
    max-width: 100%;
}

/* Navigasi umum */
nav {
    flex-grow: 1;
    display: flex;
    justify-content: flex-end;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-size: 18px;
    padding: 10px;
    display: block;
    transition: background 0.3s ease;
}

nav ul li a:hover {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 5px;
}

/* Dropdown bahasa */
select {
    padding: 8px;
    border-radius: 5px;
    border: 1px solid #ccc;
    font-size: 16px;
    max-width: 120px;
    transition: border 0.3s ease;
}

select:hover {
    border-color: navy;
}

/* Tombol menu burger */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: transparent; /* Latar belakang transparan */
    border: none;
    z-index: 1002;
    padding: 5px;
}

/* Garis hamburger */
.menu-toggle .bar {
    width: 25px;
    height: 3px;
    background-color: white; /* Garis putih */
    border-radius: 2px;
    transition: all 0.3s ease;
}

.menu-toggle.active .bar:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active .bar:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active .bar:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Tampilan utama */
main {
    flex: 1;
    padding: 40px;
    text-align: center;
    max-width: 800px;
    margin: auto;
}

/* Footer */
footer {
    background: linear-gradient(90deg, navy, red);
    color: white;
    text-align: center;
    padding: 20px 0;
    width: 100%;
}

/* Footer untuk tampilan desktop */
.footer-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px 50px;
    max-width: 1000px;
    margin: auto;
}

.footer-left img {
    width: 110px;
    height: auto;
    margin-right: 20px;
}

.footer-right {
    text-align: left;
    font-size: 16px;
}

/* Tampilan Mobile */
@media (max-width: 768px) {
    .footer-container {
        display: flex;
        flex-direction: row;
        justify-content: flex-start; /* Menggeser elemen ke kiri */
        align-items: center;
        text-align: left;
        padding: 15px;
    }

    .footer-left {
        flex: 1;
        display: flex;
        justify-content: flex-start; /* Logo tetap di kiri */
    }

    .footer-left img {
        width: 80px;
        height: auto;
    }

    .footer-right {
        flex: 2; /* Memberikan lebih banyak ruang pada elemen kanan */
        text-align: left; /* Ubah teks agar rata kiri */
        font-size: 10px;
        padding-left: 20px; /* Beri sedikit jarak ke kiri */
    }
}

.footer-bottom {
    text-align: center; /* Rata tengah */
    font-size: 9px; /* Ukuran font lebih kecil */
    color: white; /* Warna teks */
    padding: 0 0; /* Beri sedikit ruang atas dan bawah */
    position: relative;
}

.footer-bottom::before {
    content: "";
    display: block;
    width: 95%; /* Lebar garis dikurangi agar tidak terlalu mepet */
    height: 1px; /* Ketebalan garis */
    background-color: white; /* Warna garis */
    margin: 0 auto 10px auto; /* Posisi rata tengah dengan jarak bawah */
}

footer p {
    text-align: center !important;
}

/* Responsif: Menu geser dari kanan */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    nav {
        position: fixed;
        top: 0;
        right: 0;
        height: 100vh;
        width: 250px;
        background-color: navy;
        transform: translateX(100%);
        transition: transform 0.3s ease-in-out;
        padding: 60px 20px;
        display: block;
    }

    nav ul {
        flex-direction: column;
        gap: 20px;
    }

    nav.active {
        transform: translateX(0);
    }

    body.menu-open {
        overflow: hidden;
    }
}


.embed-container {
    position: relative;
    width: 100%;
    height: auto;
    padding-bottom: 177.77%; /* Rasio 9:16 */
    overflow: hidden;
}

.embed-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
