/* General Styling */
body {
    margin: 0;
    font-family: Arial, sans-serif;
    background-color: #f9f9f9;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navbar Styling */
.navbar {
    background-color: #0b1b36;
    padding: 10px 0;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar .container {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.navbar-brand {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #ffb700;
    font-size: 28px;
    font-weight: bold;
    margin-right: auto;
}
.navbar-brand img {
    height: 50px;
    margin-right: 15px;
    border-radius: 5px;
}

.navbar-brand .brand-text {
    font-size: 0.7em;
    margin-left: 5px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1.2;
}

.navbar-nav {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

.navbar-nav li {
    margin-left: 35px;
}

.navbar-nav a {
    text-decoration: none;
    color: #ffb700;
    font-weight: 500;
    padding: 10px 0;
    font-size: 18px;
    position: relative;
    transition: color 0.3s ease;
}

/* Efek hover untuk perangkat non-sentuh (desktop) */
@media (hover: hover) {
    .navbar-nav a::after {
        content: '';
        position: absolute;
        width: 0;
        height: 3px;
        background-color: #ffb700;
        left: 0;
        bottom: -7px;
        transition: width 0.3s ease;
    }

    .navbar-nav a:hover {
        color: #ffd700;
    }

    .navbar-nav a:hover::after {
        width: 100%;
    }
}

.navbar-nav a.active::after {
    width: 100%;
}


.navbar-toggle {
    color: #ffb700;
    font-size: 32px;
    cursor: pointer;
    display: none;
}

/* Dropdown styles (desktop default) */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none; /* Default: disembunyikan */
    position: absolute;
    background-color:#0b1b36;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
    border-radius: 5px;
    top: 150%;
    left: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
}

.dropdown-content a {
    color: rgb(255, 187, 0);
    text-decoration: none;
    display: block;
    text-align: left;
    padding: 10px 10px;
    transition: background-color 0.2s ease;
    border-radius: 5px;
}

.dropdown-content a:hover {
    background-color: rgba(255, 187, 0, 0.1);
}

/* Efek hover untuk dropdown di perangkat non-sentuh (desktop) */

    .dropdown:hover .dropdown-content {
        display: block; /* Tampilkan saat hover di desktop */
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }


.dropdown .dropbtn {
    padding: 14px 16px;
    text-decoration: none;
    color: #ffb700;
    font-weight: 500;
    transition: color 0.3s ease;
    cursor: pointer;
}

/* Efek hover untuk dropbtn di desktop */



/* --- Responsive Styles (Mobile) --- */
@media (max-width: 768px) {
    .navbar {
        padding: 15px 0;
    }

    .navbar-brand {
        font-size: 24px;
    }

    .navbar-brand img {
        height: 40px;
        margin-right: 10px;
    }

    .navbar-brand .brand-text {
        font-size: 0.7em;
        flex-direction: column;
        line-height: 1.1;
        text-align: left;
    }

    .navbar-nav {
        flex-direction: column;
        width: 100%;
        background-color: #2c2c2c;
        position: absolute;
        top: 70px;
        left: 0;
        transform: translateY(-100%);
        transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.4);
        opacity: 0;
        pointer-events: none;
        z-index: 999;
    }

    .navbar-nav.active {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }

    .navbar-nav li {
        margin: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .navbar-nav li:last-child {
        border-bottom: none;
    }

    .navbar-nav a {
        display: block;
        padding: 15px 20px;
        text-align: center;
        font-size: 16px;
        color: #ffb700;
    }

    .navbar-toggle {
        font-size: 28px;
        display: block;
    }

    /* Dropdown adjustments for mobile */
    .navbar-nav .dropdown {
        width: 100%;
    }
    
    .navbar-nav .dropdown .dropbtn {
        display: block;
        width: 100%;
        text-align: center;
        padding: 15px 0;
        color: #ffb700;
        /* Tambahkan !important jika ada properti display lain yang menimpa */
        display: block !important; 
    }

    .navbar-nav .dropdown-content {
        position: static;
        background-color: transparent;
        box-shadow: none;
        min-width: unset;
        width: 100%;
        padding-left: 20px;
        border-top: 1px solid rgba(255, 255, 255, 0.05);
        display: none; /* Sembunyikan secara default */
        opacity: 1; /* Pastikan opacity 1 di mobile saat ditampilkan */
        visibility: visible;
        transform: translateY(0);
    }

    .navbar-nav .dropdown-content a {
        padding: 10px 0;
        text-align: left;
        color: #ffb700;
        font-size: 0.95em;
        background-color: rgba(0, 0, 0, 0.2);
        margin-bottom: 1px;
    }

    /* Di mobile, dropdown tidak akan terbuka saat hover */


    /* CSS untuk mengaktifkan/menonaktifkan dropdown saat di-klik/tap di mobile */
    .navbar-nav .dropdown.active-dropdown .dropdown-content {
        display: block; /* Tampilkan dropdown saat elemen .dropdown memiliki kelas 'active-dropdown' */
    }

    /* Hapus efek hover pada .dropbtn di mobile */
    .navbar-nav .dropdown .dropbtn:hover {
        color: #ffb700;
        background-color: transparent;
    }
}

/* Footer Styles (tidak ada perubahan) */
.footer {
    background-color: #0b1b36;
    color: white;
    padding: 20px 0;
    margin-top: auto;
    text-align: center;
    width: 100%;
}

.footer-bottom .container {
    max-width: 600px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.footer-bottom p {
    margin: 0;
    font-size: 0.9em;
    opacity: 0.8;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    color: #f0f0f0;
    font-size: 1.5em;
    transition: color 0.3s ease, transform 0.3s ease;
}

.social-links a:hover {
    color: #ffb700;
    transform: translateY(-3px);
}

@media (max-width: 768px) {
    .footer .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .footer-section {
        max-width: 400px;
        width: 100%;
        margin-bottom: 40px;
    }
    .footer-section h4::after {
        left: 50%;
        transform: translateX(-50%);
    }
    .footer-section.about .footer-brand {
        justify-content: center;
    }
    .social-links {
        justify-content: center;
    }
    .footer-section.links ul {
        width: fit-content;
        margin: 0 auto;
    }
    .footer-section.contact p {
        justify-content: center;
    }
    .footer-section.contact p i {
        margin-right: 10px;
    }
}
