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

html, body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif; /* Sama di semua halaman */
}
        
/* Header */
.top-bar {
    background-color: #1f1e1d;
    padding: 5px 15px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    color: white;
    font-size: 12px;
}

.top-bar a {
    color: #ffffff;
    text-decoration: none;
    margin-left: 20px;
}

/* Main Navbar */
nav.main-nav {
    background-color: #333;
    color: white;
    padding: 10px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 0.2px solid #ff9900; /* Border Bottom */
}

nav.main-nav .logo img {
    height: 50px;
}

.nav-list {
    display: flex;
    gap: 30px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-list li {
    position: relative; /* For dropdown positioning */
    margin: 0 4px;
}

.nav-list li a {
    color: white;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease; /* Animation on hover */
}

.nav-list li a:hover {
    color: #ff9900;
}

/* Dropdown Menu Styles */
.dropdown-menu {
    display: none; /* Initially hidden */
    position: absolute;
    top: 100%; /* Position below the parent menu */
    left: 0;
    background-color: #444;
    list-style: none;
    padding: 10px 0;
    min-width: 190px;
    z-index: 10;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.dropdown-menu li {
    margin: 0;
}

.dropdown-menu a {
    padding: 10px 20px;
    color: white;
}

/* Show dropdown on hover */
.nav-list .dropdown:hover .dropdown-menu {
    display: block;
}

/* Membership Dropdown */
.language-dropdown {
    position: relative;
    display: inline-block;
}

.language-dropdown .dropdown-toggle {
    color: white;
    text-decoration: none;
    font-size: 12px;
    cursor: pointer;
}

.language-dropdown .dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #444;
    list-style: none;
    width: 10px; /* Mengatur lebar menu dropdown */
    max-width: 10px; /* Menjaga lebar menu tetap kecil */
    box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.3);
    z-index: 10; /* Increase z-index to ensure it's above other content */
    opacity: 0; /* Initially hidden */
    visibility: hidden; /* Initially hidden */
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.language-dropdown .dropdown-menu li {
    padding: 1px 1px;
}

.language-dropdown .dropdown-menu li a {
    color: white;
    text-decoration: none;
    display: block;
    font-size: 12px;
}

.language-dropdown:hover .dropdown-menu {
    display: block;
    opacity: 1; /* Make the menu visible */
    visibility: visible; /* Make the menu visible */
}

.language-dropdown .dropdown-menu li:hover {
    background-color: #f4b400; /* Highlight on hover */
}

/* Language Dropdown */
.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #444;
    list-style: none;
    padding: 10px 20px;
    min-width: 175px;
    z-index: 10;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.dropdown-menu a {
    padding: 10px 0px;
    color: white;
}


.hamburger {
    background: none;
    border: none;
    font-size: 24px;
    color: white;
    cursor: pointer;
}

/* Responsif untuk layar kecil */
@media (max-width: 768px) {
    .nav-list {
        display: flex; /* Ubah ke flex agar properti transform bekerja */
        flex-direction: column;
        gap: 10px;
        position: fixed;
        top: 0;
        right: 0;
        height: 100%;
        background-color: #333;
        width: 80%;
        padding: 20px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
        z-index: 1000;
        overflow-y: auto;

        /* Animasi default */
        opacity: 0; /* Awalnya tidak terlihat */
        transform: translateX(100%); /* Awalnya keluar layar */
        pointer-events: none; /* Agar tidak bisa diklik saat tersembunyi */
        transition: opacity 0.3s ease, transform 0.3s ease; /* Animasi smooth */
    }

    /* Tampilkan menu dengan animasi */
    .nav-list.show {
        opacity: 1; /* Tampilkan menu */
        transform: translateX(0); /* Geser ke posisi normal */
        pointer-events: auto; /* Aktifkan klik saat terlihat */
    }

    .hamburger {
        position: absolute; /* Tetapkan posisi tombol */
        top: 45px;
        right: 10px; /* Selalu di kanan atas */
        z-index: 1100; /* Pastikan tombol di atas menu */
        cursor: pointer;

    }

    .right-nav {
        flex-direction: column;
        gap: 10px;
        align-items: flex-end;
    }
}


/* Membership Page Styling */
.membership-page {
    position: relative;
    min-height: 100vh;
    width: 100%;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #000; /* Warna hitam sebagai cadangan */
}

.background-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../foto/membershipbg.png') no-repeat center center/cover; /* Gambar background */
    z-index: 1; /* Di belakang semua elemen */
}

.membership-overlay {
    position: absolute;
    top: 65%; /* Untuk memposisikan secara vertikal */
    left: 50%; /* Untuk memposisikan secara horizontal */
    transform: translate(-50%, -50%); /* Menempatkan gambar di tengah */
    width: 80%; /* Sesuaikan ukuran lebar (persentase atau piksel) */
    height: auto; /* Otomatis menjaga proporsi tinggi */
    object-fit: contain; /* Menjaga proporsi tanpa memotong gambar */
    z-index: 2; /* Tetap di atas background */
    opacity: 0.9; /* Transparansi opsional */
    transition: transform 0.3s ease, opacity 0.3s ease; /* Tambahkan animasi transisi */
}

.membership-overlay:hover {
    transform: translate(-50%, -50%) scale(1.1); /* Membesar saat dihover */
    opacity: 1; /* Mengurangi transparansi */
}

.membership-title {
    position: absolute; /* Ubah menjadi absolute untuk mengatur posisi relatif ke container */
    top: 70px; /* Jarak dari atas */
    left: 130px; /* Jarak dari kiri */
    z-index: 3; /* Tetap di atas overlay */
    color: #f39c12; /* Warna oranye */
    font-size: 3rem; /* Ukuran font */
    font-weight: bold; /* Teks tebal */
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.7); /* Bayangan teks */
}

/* Untuk layar kecil (ponsel) */
@media (max-width: 768px) {
    .membership-page {
        padding: 20px; /* Tambahkan padding untuk menjaga konten tidak terlalu dekat dengan tepi */
    }

    .membership-title {
        font-size: 3rem; /* Ukuran font lebih kecil untuk layar ponsel */
        top: 70px; /* Jarak dari atas */
        left: 40px; /* Jarak dari kiri */
        text-align: center; /* Teks di tengah */
    }

    .membership-overlay {
        width: 90%; /* Lebar hampir penuh untuk layar kecil */
        top: 50%; /* Posisi tengah vertikal */
        left: 50%; /* Posisi tengah horizontal */
        transform: translate(-50%, -50%); /* Pastikan tetap di tengah */
    }
}

/* Untuk layar tablet */
@media (min-width: 769px) and (max-width: 1024px) {
    .membership-title {
        font-size: 3rem; /* Ukuran font medium */
        top: 70px; /* Jarak dari atas */
        left: 100px; /* Jarak dari kiri */
    }

    .membership-overlay {
        width: 85%; /* Lebar sedikit lebih kecil dibanding ponsel */
        top: 55%; /* Penyesuaian vertikal */
        left: 50%; /* Tetap di tengah */
        transform: translate(-50%, -50%);
    }
}

/* Untuk layar besar (desktop) */
@media (min-width: 1025px) {
    .membership-title {
        font-size: 3rem; /* Ukuran font besar */
        top: 70px; /* Jarak lebih besar dari atas */
        left: 130px; /* Jarak lebih besar dari kiri */
    }

    .membership-overlay {
        width: 80%; /* Lebar optimal untuk desktop */
        top: 65%; /* Posisi vertikal seperti desain awal */
        left: 50%; /* Tetap di tengah */
        transform: translate(-50%, -50%);
    }
}


/* Footer Styling */
.footer {
    background-color: #333; /* Background hitam */
    color: #fff; /* Teks putih */
    padding: 30px 0; /* Spasi atas-bawah */
    font-family: Arial, sans-serif;
    border-top: 1px solid #ff9900; /* Garis oranye di atas */
}

.footer-container {
    max-width: 1200px;
    margin: auto;
    padding: 0 15px;
    margin-top: 20px;
}

.footer-logo {
    max-width: 100px; /* Atur lebar maksimal logo */
    margin-bottom: 20px; /* Jarak bawah */
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    gap: 15px;
}

.footer-links li {
    display: inline-block;
}

.footer-links a {
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #ffb900; /* Warna hover hijau */
}

.social-icons {
    margin: 20px 0;
}

.social-icons a {
    margin: 0 10px;
    color: #ffb900; /* Warna ikon hijau */
    font-size: 20px;
    transition: transform 0.3s ease, color 0.3s ease;
}

.social-icons a:hover {
    transform: scale(1.2);
    color: #fff; /* Warna hover putih */
}

.footer-copyright {
    font-size: 12px;
    color: #aaa; /* Warna abu-abu */
    margin-top: 20px;
}

@media (max-width: 768px) {
    .footer-links {
        flex-direction: wrap; /* Susun secara vertikal */
        gap: 10px;
    }
    

    .social-icons {
        flex-wrap: wrap; /* Agar ikon menyesuaikan */
        gap: 10px;
    }
}
