/* untuk format page utama seperti scrollable atau tidak, dll! */

/* ------- Style default untuk semua halaman (scrollable) ------- */
html,
body {
    height: 100%;
    margin: 0;
    font-family: Arial, sans-serif;
    display: flex;
    flex-direction: column;
    overflow: auto; /* Defaultnya bisa di-scroll */
}

body.disable-scroll {
    /* Membuat halaman non-scrollable */
    overflow: hidden; /* Mencegah scroll */
}

*:not(body).disable-scroll {
    /* Mencegah penggunaan class disable-scroll di elemen lain */
    overflow: auto !important; /* Jika digunakan di elemen lain, tidak akan mempengaruhi scroll */
}

.bg-image {
    /* Gambar latar belakang */
    position: fixed; /* Tetap di belakang dan tidak bergerak */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url(../images/background.png); /* Ganti dengan gambar Anda */
    background-size: cover;
    background-position: center;
    z-index: -1; /* Membawa elemen ini ke belakang */
}

/* ------- Layout default (header, main-content, dan footer) ------- */
.header {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 10px;
    color: #fff;
    position: relative;
    z-index: 1;
}

.main-content {
    flex: 1 0 auto;
    /* display: flex; */
    z-index: 0;
    transition: margin-top 1s ease; /* Animasi margin */
}

.footer {
    flex: 0 0 auto;
    text-align: center;
    padding: 10px 20px;
    color: #fff;
    z-index: 1;
}

/* ------- Style default untuk komponen dalam header ------- */
.menu {
    display: flex;
    gap: 15px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.menu li {
    cursor: pointer;
}

/* Mobile Menu */
.mobile-menu {
    display: none;
    position: absolute;
    top: 90px;
    left: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
    padding: 10px 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.mobile-menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mobile-menu li {
    text-align: center;
    padding: 10px 0;
}

.mobile-menu li a {
    text-decoration: none;
    color: #fff;
}

.nav-link.active {
    /* Menu aktif dengan warna dan gaya khusus */
    color: orange !important; /* Warna teks untuk menu aktif */
    font-weight: bold; /* Teks sedikit lebih tebal */
}

.nav-link:hover {
    /* Hover pada menu */
    color: #ffc107 !important; /* Warna saat hover */
}

/* ------- Style default untuk login button ------- */
.cs-sq_btns a {
    background: #000;
    position: relative;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    border-radius: 7px;
    padding: 10px;
    color: #fff;
}

.cs-sq_btns a i,
.cs-sq_btns a span {
    position: relative;
    z-index: 1;
}

.cs-sq_btns a::after {
    content: "";
    position: absolute;
    height: 100%;
    width: 100%;
    border-radius: inherit;
    left: 0;
    top: 0;
    background: orange;
    opacity: 0;
    -webkit-transition: all 0.3s ease;
    transition: all 0.3s ease;
}

.cs-sq_btns a:hover {
    background-color: transparent;
    color: #fff;
}

.cs-sq_btns a:hover::after {
    opacity: 0.5;
}

.cs-sq-border {
    border: 1px solid #8447f5;
}

/* disini masukkan search bar */
.cs-search_input {
    background-color: transparent;
    border: 1px solid #fff;
    color: #fff;
    outline: none;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 16px;
}

.cs-search_input::placeholder {
    color: #fff;
    opacity: 1;
}

.cs-search_input:focus {
    border-color: orange;
    box-shadow: 0 0 4px rgba(255, 165, 0, 0.5);
}

.singkat {
    /* kalau tidak kompatibel ganti ke method lain */
    display: -webkit-box;
    -webkit-line-clamp: 3; /* Batasi pada 3 baris */
    -webkit-box-orient: vertical;
    overflow: hidden; /* Sembunyikan teks yang melampaui batas */
    text-overflow: ellipsis; /* Tambahkan "..." */
}

/* ------- Style layout default untuk konten detail ------- */
/* Hide all content sections initially */
.content-container {
    display: flex;
    justify-content: center;
}

.content {
    display: none;
    /* width: 300px;
    padding: 20px; */
    /* background-color: #f4f4f4; */
    /* border-radius: 5px; */
    text-align: center;
}

/* Style for active content */
.active-content {
    display: block;
}

/* ------- Style layout default untuk GMaps ------- */
.mapswrapper {
    background: #fff;
    position: relative;
}
.mapswrapper iframe {
    border: 0;
    position: relative;
    z-index: 2;
}
.mapswrapper a {
    color: rgba(0, 0, 0, 0);
    position: absolute;
    left: 0;
    top: 0;
    z-index: 0;
}

/* ------- Style layout default untuk responsivitas berdasarkan ukuran layar ------- */
@media (max-width: 768px) {
    .menu {
        display: none;
    }

    .menu-button {
        display: block;
    }
    .mobile-menu {
        display: none;
    }
    .btn-pc-hidden {
        display: none;
    }
}
@media (min-width: 769px) {
    .menu {
        display: flex;
    }

    .menu-mobile {
        display: none;
    }

    .login-button {
        display: inline-block;
        margin-left: 15px;
    }
}
