* {
    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 */
.news-section {
    background: rgba(0, 0, 0, 0.8) url('../foto/newsbg1.png') no-repeat center center/cover;
    padding: 60px 15px;
    min-height: 100vh;
    color: #fff;
    position: relative;
    overflow: hidden;
}

/* Add Dark Overlay */
.news-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7); /* Adjust darkness here */
    z-index: 1;
}

/* Ensure Content Stays Above Overlay */
.news-section .container {
    position: relative;
    z-index: 2;
}


/* Title Styling */
.text-warning {
    --bs-text-opacity: 1;
    color: #ff9900 !important;
    font-weight: bold;
    font-size: 2.2rem;
    text-align: center;
}


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

.news-section .title-underline {
    width: 300px;
    height: 2px;
    background: #ffffff;
    margin: 0 auto 20px auto;
    margin-bottom: 30px;
}

/* Card Styling */
/* Styling Cards */
#newsContainer .card {
    max-height: 500px; /* Tinggi minimum yang sama untuk semua kartu */
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Pastikan konten tersusun rapi */
    background: rgba(255, 255, 255, 0.7);
    color: #212529;
    border-color: #ffffff;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.card p{
    text-align: justify;
}

.btn-warning {
    --bs-btn-color: #2c2c2c;
    --bs-btn-bg: #ff9900fd;
    font-size: 14px;
    border-color: #333333;
}

.card-body {
    flex-grow: 1; /* Membuat isi kartu fleksibel */
}

.card:hover {
    transform: scale(1.05);
    box-shadow: 0px 8px 20px rgba(0, 0, 0, 0.2);
}

.card-img-top {
    max-height: 260px;
    object-fit: cover;
}

/* Load More Button */
.btn-load-more {
    background-color: #ff9900;
    color: rgb(235, 233, 233);
    border: none;
    border-color: #1f1e1d;
    padding: 10px 20px;
    font-weight: bold;
    font-size: 16px;
    border-radius: 25px;
    transition: background-color 0.3s ease;
}

.btn-load-more:hover {
    background-color: #cc7a00;
}

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