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

/* Slider */
/* Image Slider */
.image-slider {
    position: relative;
    width: 100%;
    height: 630px; /* Sesuaikan tinggi slider */
    overflow: hidden;
}

.slider-wrapper {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.5s ease-in-out;
}

.slider-item {
    flex: 0 0 100%;
    height: 100%; /* Sesuaikan dengan slider */
    position: relative; /* Untuk gradient */
    display: flex;
    justify-content: center;
    align-items: center;
}

.slider-item::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
rgba(0, 0, 0, 0.6), /* Gradient abu-abu hitam di atas */
rgba(0, 0, 0, 0.3)
    );
    z-index: 1; /* Pastikan gradient berada di atas gambar */
}

.slider-item img {
    width: 100%;
    height: 120%;
    object-fit: fill; 
    position: relative;
    z-index: 0; /* Gambar berada di bawah gradient */
}

.slider-item video {
    width: 100%; /* Pastikan lebar sesuai dengan slider */
    height: 100%; /* Pastikan tinggi sesuai dengan slider */
    object-fit: cover; /* Buat video stretch tanpa distorsi */
    position: absolute; /* Agar video menempati seluruh area slide */
    top: 0; /* Tetapkan posisi atas */
    left: 0; /* Tetapkan posisi kiri */
}

/* Slider Text */
.slider-item {
    position: relative;
    overflow: hidden;
}

.slider-text {
    position: absolute;
    bottom: 40px; /* Jarak dari bawah */
    left: 40px; /* Jarak dari kiri */
    color: #fff;
    text-shadow: 0px 4px 10px rgba(0, 0, 0, 0.6);
    z-index: 2;
}

.slider-text h2 {
    font-size: 2rem; /* Ukuran heading */
    margin: 0;
    color: rgb(212, 179, 30);
}

.slider-text p {
    font-size: 1.2rem; /* Ukuran paragraf */
    margin: 5px 0 0;
}

/* Slider Dots */
.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 20px; /* Jarak antar titik */
    z-index: 3;
}

.slider-dots .dot {
    width: 13px;
    height: 13px;
    background-color: rgba(255, 255, 255, 0.2); /* Warna putih transparan */
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s ease;
    border: 1px solid white; /* Tambahkan ini */
}

.slider-dots .dot.active {
    background-color: #ffffff; /* Warna putih solid untuk dot aktif */
}


/* Content */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f5efef;
}

.container {
    max-width: 1070px;
    margin: 0 auto;
    padding: 20px;
    background-color: #f5efef;
}

.mb-5 {
    margin-top: 5rem;
    margin-bottom: 10rem!important;
}

h3, h4, h5 {
    color: #ff9900;
}

.text-center {
    text-align: center;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin: -10px;
}

.col-md-6, .col-md-4, .col-md-8, .col-md-12 {
    padding: 10px;
}

/* Welcome Section */
h2 {
    color: #ff9900;
    font-weight: bold;
}

.welcome-section {
    display: flex;
    align-items: center;
    margin-bottom: 40px;
    gap: 20px; /* Mengatur jarak antara teks dan gambar */
}

.welcome-text {
    flex: 1;
    padding-right: 20px;
    text-align: left; /* Align text to the left */
}

.welcome-text h2 {
    margin-bottom: 10px;
}

.welcome-text p {
    color: #333;
    line-height: 1.6;
    text-align: justify;
}

.welcome-image {
    flex: 1;
    text-align: center;
}

.welcome-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}


/* Events Section */
.section {
    margin: 0px auto;
    max-width: 600px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    height: 350px; /* Fixed height for consistent layout */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.section-content {
    position: relative;
    flex-grow: 1;
    overflow: hidden;
}

.section-image {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures the image fits the container */
    display: block;
    cursor: pointer; /* Makes the image clickable */

}

.section-description {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    padding: 10px;
    box-sizing: border-box;
}

.desc-events a {
    color: #00bcd4;
    text-decoration: none;
    font-size: 14px;
}

.desc-events p {
    text-align: justify;
    line-height: 1.6;
}

.section-description p {
    margin: 0;
}

.section-description .date {
    text-align: right;
    font-size: 12px;
    color: #ccc;
}

.section-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
}

.section-footer a {
    color: #007bff;
    text-decoration: none;
    font-size: 14px;
}

.section-footer .navigation {
    display: flex;
    gap: 10px;
}

.section-footer .navigation button {
    background-color: #ccc;
    border: none;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
}

.section-footer .navigation button:hover {
    background-color: #bbb;
}

.desc-events {
    text-align: left;
}

.see-more-btn {
    background-color: #ff9900;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.see-more-btn:hover {
    background-color: #a16c1c; /* Warna lebih gelap saat di-hover */
}

.see-more-btn:focus {
    outline: none;
    box-shadow: 0 0 4px #000000; /* Tambahkan efek fokus */
}

.section-footer{
    justify-content: center;
}

.col-md-6 {
    flex: 0 0 50%;
    max-width: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Latest News Section */
.news-item {
    background-color: #fff;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    text-align: center;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%; /* Pastikan kotak tetap fleksibel */
}

.news-item img {
    width: 100%;
    height: 250px; /* Atur tinggi tetap untuk gambar */
    object-fit: cover; /* Gambar tetap proporsional */
    border-radius: 2px;
    border-color: #000000;
}

.news-item h5 {
    margin-top: 10px;
    margin-bottom: 10px;
    color: #ff9900;
}

.news-item p {
    color: #666;
    text-align: justify;
    line-height: 1.6;
    flex-grow: 1; /* Isi konten secara proporsional */
}

.news-item a:hover {
    text-decoration: underline;
}

.news-item a {
    color: #002fff;
    text-decoration: none;
    font-size: 14px;
}

.see-more {
    margin-top: 20px;
}

.see-more-btn {
    background-color: #ff9900;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.see-more-btn:hover {
    background-color: #a16c1c; /* Warna lebih gelap saat di-hover */
}

.see-more-btn:focus {
    outline: none;
    box-shadow: 0 0 4px #000000; /* Tambahkan efek fokus */
}

/* Publications Section */
.col-md-6 {
    flex: 0 0 48%;
    box-sizing: border-box;
}

.desc-publications {
    text-align: right;
}

.desc-publications h3 {
    color: #ff9900;
    margin-bottom: 15px;
}

.desc-publications p {
    line-height: 1.6;
    color: #333;
    margin-bottom: 10px;
}

.desc-publications a {
    color: #00bcd4;
    text-decoration: none;
    font-size: 14px;
}

.desc-publications a:hover {
    text-decoration: underline;
}

.publications-section {
    border: 1px solid #ddd;
    padding: 0; /* Removed padding for better alignment */
    background-color: #fff;
    width: 100%;
    height: auto; /* Dynamic height based on content */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden; /* To ensure image and caption are clipped properly */
    display: flex;
    flex-direction: column;
    position: relative;
}

.section-title {
    font-size: 18px;
    font-weight: bold;
    text-align: left;
    border-bottom: 2px solid #000;
    margin: 15px;
    padding-bottom: 5px;
}

.publications-content {
    flex: 1;
    position: relative;
    overflow: hidden;
}

.publications-image {
    position: relative;
    width: 100%;
    height: 200px; /* Fixed height for the image */
    background-color: #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px 8px 0 0; /* Rounded top corners */
    overflow: hidden;
}

.publications-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures the image covers the entire area */
}

.image-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7); /* Semi-transparent black background */
    color: #fff;
    padding: 10px;
    font-size: 14px;
    text-align: left;
}

.image-caption h4 {
    margin: 0;
    font-size: 16px;
    font-weight: bold;
}

.image-caption p {
    margin: 5px 0 0;
    font-size: 14px;
}

.image-caption .date {
    display: block;
    margin-top: 5px;
    font-size: 12px;
    color: #ccc;
}

.navigation-buttons {
    display: flex;
    justify-content: center;
    margin-top: 10px;
    gap: 10px;
}

.navigation-buttons button {
    padding: 5px 15px;
    border: none;
    background-color: #ff9900;
    color: #fff;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.navigation-buttons button:hover {
    background-color: #e68a00;
}


/* Galleries Section */
.galleries-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.galleries-header h3 {
    color: #ff9900;
    margin: 0;
}

.galleries-header .see-more {
    color: #00bcd4;
    text-decoration: none;
    font-size: 14px;
}

.galleries-header .see-more:hover {
    text-decoration: underline;
}

.galleries-slider {
    position: relative;
}

.galleries-container {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 15px;
    scroll-behavior: smooth;
    padding: 10px;
    border-radius: 8px;
}

.gallery-item {
    flex: 0 0 auto;
    width: 300px;
    height: 200px;
    overflow: hidden;
    border-radius: 8px;
    scroll-snap-align: start;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.see-more-galleries {
    text-align: center;
    margin-top: 20px;
}

/* Partners Section */
.partners-section {
    margin-top: 50px;
    text-align: center;
}

.partners-title {
    color: #ff9900;
    margin-bottom: 20px;
}

.partners-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.partners-logos img {
    max-width: 120px;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
}

@keyframes scroll-logos {
    0% {
        transform: translateX(100%);
    }
    100% {
        transform: translateX(-100%);
    }
}


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

@media (max-width: 480px) {
    .footer-logo {
        max-width: 80px; /* Perkecil logo untuk layar kecil */
    }

    .footer-links a {
        font-size: 12px; /* Kecilkan font link */
    }

    .social-icons a {
        font-size: 18px; /* Perkecil ikon */
    }

    .footer-copyright {
        font-size: 10px; /* Kecilkan font copyright */
    }
}

@media (max-width: 768px) {
    /* Slider */
    .image-slider {
        height: 300px;
    }

    .slider-text {
        bottom: 20px;
        left: 20px;
    }

    .slider-text h2 {
        font-size: 1.5rem;
    }

    .slider-text p {
        font-size: 1rem;
    }

    /* Container */
    .container {
        padding: 15px;
    }

    .welcome-section {
        flex-direction: column;
    }

    .welcome-text {
        padding-right: 0;
        text-align: center;
    }

    .welcome-image {
        text-align: center;
        margin-top: 20px;
    }

    .welcome-image img {
        max-width: 90%;
    }

    /* Events Section */
    .section {
        max-width: 100%;
        margin: 10px 0;
        height: auto;
    }

    .section-image {
        height: 150px;
    }

    .section-footer {
        flex-direction: column;
        gap: 10px;
    }

    .see-more-btn {
        width: 100%;
    }

    /* Latest News */
    .news-item img {
        height: 150px;
    }

    .news-item h5 {
        font-size: 1rem;
    }

    .news-item p {
        font-size: 0.9rem;
    }

    .see-more-btn {
        width: 100%;
    }

    /* Publications Section */
    .publications-image {
        height: 150px;
    }

    .navigation-buttons {
        flex-direction: column;
        gap: 5px;
    }

    .navigation-buttons button {
        width: 100%;
    }

    /* Galleries Section */
    .galleries-header {
        flex-direction: column;
        gap: 10px;
    }

    .galleries-header h3 {
        text-align: center;
    }
}

@media (max-width: 768px) {
    .slider-dots {
        gap: 6px; /* Kurangi jarak antar titik */
    }

    .slider-dots .dot {
        width: 5px; /* Ukuran lebih kecil */
        height: 5px;
    }
}

@media (max-width: 480px) {
    .slider-dots {
        gap: 6px; /* Jarak antar titik lebih kecil */
    }

    .slider-dots .dot {
        width: 5px; /* Ukuran lebih kecil */
        height: 5px;
    }
}

