* {
    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;
    }
}

/* Section Styling */
.event-section {
    position: relative;
    background: url('../foto/eventsbg.png') no-repeat center center/cover;
    min-height: 100vh;
    padding: 90px 15px;
}

.p-4 {
    padding: 3rem !important;
}

.g-3, .gy-3 {
    --bs-gutter-y: 2.3rem;
}

.g-3, .gx-3 {
    --bs-gutter-x: 2rem;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6); /* Dark overlay */
    z-index: 1;
}

.text-warning {
    --bs-text-opacity: 1;
    color: #ff9900 !important;
    margin-top: 11px;
}

.mb-4 {
    margin-bottom: 1.2rem !important;
}

.container {
    position: relative;
    z-index: 2;
}

/* Event Box Styling */
.event-box {
    background: rgba(255, 255, 255, 0.4);
    border-radius: 15px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    padding: 15px;
    max-height: 620px; /* Tinggi maksimum kotak */
    overflow-y: auto; /* Tambahkan scrollbar jika konten lebih banyak */
    scrollbar-width: thin; /* Scrollbar tipis (untuk Firefox) */
    scrollbar-color: #ff9900 transparent; /* Warna scrollbar */
}

/* Untuk scrollbar di Webkit-based browsers (Chrome, Safari) */
.event-box::-webkit-scrollbar {
    width: 8px;
}

.event-box::-webkit-scrollbar-thumb {
    background: #ff9900; /* Warna scrollbar */
    border-radius: 10px;
}

.event-box::-webkit-scrollbar-track {
    background: transparent; /* Latar belakang scrollbar */
}

.event-card {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    height: 250px;
    gap: 200px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* Animasi untuk transformasi dan bayangan */
}

.event-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.event-card:hover {
    transform: scale(1.05); /* Membesarkan kotak 5% */
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3); /* Menambah bayangan */
}

.event-info {
    position: absolute;
    bottom: 0; /* Posisi di bagian bawah */
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7); /* Overlay hanya di bawah */
    color: white;
    padding: 10px; /* Padding untuk teks */
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.event-card:hover .event-info {
    opacity: 1;
}

.event-date {
    font-size: 12px;
    color: #f39c12; /* Warna oranye untuk tanggal */
    margin-bottom: 5px;
    text-align: right;
}

.event-title {
    font-size: 16px;
    font-weight: bold;
    color: #ff9900; /* Warna oranye untuk judul */
    margin-bottom: 5px;
    margin-top: 130px;
}

.event-desc {
    font-size: 14px;
    line-height: 1.6;
    color: white;
}

/* Title Styling */
h2 {
    font-size: 36px;
    font-weight: bold;
    text-shadow: 0px 2px 4px rgba(0, 0, 0, 0.5);
}

.title-underline {
    width: 300px; /* Panjang garis */
    height: 2px; /* Ketebalan garis */
    background-color: white; /* Warna garis */
    border: none;
    margin-top: -10px; /* Jarak dari title */
    margin-bottom: 30px; /* Jarak ke bawah */
}

.btn-see-docs {
    background-color: #f39c12;
    color: white;
    font-size: 16px;
    font-weight: bold;
    border: none;
    padding: 10px 20px;
    border-radius: 100px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease; /* Animasi saat hover */
}

.btn-see-docs:hover {
    background-color: #ff9900;
    color: #333;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

/* 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;
    }
}

/* Untuk layar kecil (ponsel) */
@media (max-width: 768px) {
    .event-section {
        padding: 60px 15px; /* Kurangi padding */
    }

    .event-card {
        height: 310px; /* Kurangi tinggi kotak */
    }

    .event-title {
        font-size: 14px; /* Ukuran font lebih kecil */
        margin-top: 100px;
    }

    .event-desc {
        font-size: 12px; /* Ukuran deskripsi lebih kecil */
        line-height: 1.4;
    }

    .event-box {
        max-height: 500px; /* Tinggi maksimal lebih rendah */
        padding: 10px;
    }

    h2 {
        font-size: 28px; /* Ukuran font title lebih kecil */
    }

    .title-underline {
        width: 200px; /* Lebar garis title lebih kecil */
    }

    .btn-see-docs {
        font-size: 14px; /* Ukuran font tombol lebih kecil */
        padding: 8px 16px; /* Padding lebih kecil */
    }
}

/* Untuk layar medium (tablet) */
@media (min-width: 769px) and (max-width: 1024px) {
    .event-section {
        padding: 75px 20px; /* Padding medium */
    }

    .event-card {
        height: 220px; /* Tinggi kotak medium */
    }

    .event-title {
        font-size: 15px; /* Ukuran font title medium */
        margin-top: 110px;
    }

    .event-desc {
        font-size: 13px; /* Ukuran deskripsi medium */
        line-height: 1.5;
    }

    .event-box {
        max-height: 550px; /* Tinggi maksimal medium */
        padding: 15px;
    }

    h2 {
        font-size: 32px; /* Ukuran font title medium */
    }

    .title-underline {
        width: 250px; /* Lebar garis title medium */
    }

    .btn-see-docs {
        font-size: 15px; /* Ukuran font tombol medium */
        padding: 9px 18px;
    }
}

/* Untuk layar besar (desktop) */
@media (min-width: 1025px) {
    .event-section {
        padding: 90px 30px; /* Padding untuk desktop */
    }

    .event-card {
        height: 250px; /* Tinggi kotak desktop */
    }

    .event-title {
        font-size: 16px; /* Ukuran font title desktop */
        margin-top: 130px;
    }

    .event-desc {
        font-size: 14px; /* Ukuran deskripsi desktop */
    }

    .event-box {
        max-height: 620px; /* Tinggi maksimal desktop */
        padding: 20px;
    }

    h2 {
        font-size: 36px; /* Ukuran font title desktop */
    }

    .title-underline {
        width: 300px; /* Lebar garis title desktop */
    }

    .btn-see-docs {
        font-size: 16px; /* Ukuran font tombol desktop */
        padding: 10px 20px;
    }
}
