body {
    scroll-behavior: smooth;
}

html, body {
  max-width: 100%;
  overflow-x: hidden;
}


/* FONT SIZING DARI CK-EDITOR CMS */
.text-tiny {
    font-size: 0.6rem !important;
}

.text-small {
    font-size: 0.8rem !important;
}

.text-default {
    font-size: 1rem !important;
}

.text-big {
    font-size: 1.25rem !important;
}

.text-huge {
    font-size: 1.5rem !important;
}

/* INI ADALAH START DARI HEADER*/

.header-home {
    z-index: 9999;
    position: fixed;
    width: 100%;
    transition: top 0.3s;
}

.navbar-brand img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border: none;
}

#logo-sbn {
    border: none !important;
    width: 60px;
    height: 60px;
}

.navbar-brand span {
    object-fit: cover;
    font-family: "Futura Std", sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
}

.navbar .nav-link {
    font-size: 1rem !important;
    transition: color 0.3s ease;
    height: 70px !important;
    padding-top: 32px !important;
    padding-bottom: 20px !important;
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
    color: white !important;
    font-weight: 700;
}

.nav-item {
    align-items: center;
    justify-content: center;
}

.navbar-flag {
    /* background-image: "{{asset('img/flag-navbar.png')}}"; */
    background-image: url("/img/flag-navbar.png");

    background-position: top center;
    background-size: cover;
    background-repeat: no-repeat;
    height: 86px; /* pastikan sesuai tinggi navbar */
    z-index: 9999;
    
    margin: 0 !important;
    padding: 0 !important;
}

/* --- Dropdown Style --- */
.dropdown-custom {
    position: relative;
}

.dropdown-toggle-custom {
    cursor: pointer;
    user-select: none;
}

.dropdown-icon {
    transition: transform 0.3s ease;
}

/* Rotate icon if dropdown shown */
.dropdown-menu-custom.show ~ .dropdown-toggle-custom .dropdown-icon,
.dropdown-custom.open .dropdown-icon {
    transform: rotate(180deg);
}

.dropdown-menu-custom {
    background-image: url("/img/flag-navbar.png"); /* sama seperti navbar */
    background-position: top center;
    background-size: cover;
    background-repeat: no-repeat;

    border-radius: 0.5rem;
    padding: 0.5rem 0;
    list-style: none;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 160px;
    z-index: 999;
    max-height: 300px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #ccc transparent;
}

/* Untuk Webkit (Chrome, Safari) */
.dropdown-menu-custom::-webkit-scrollbar {
    width: 6px;
}
.dropdown-menu-custom::-webkit-scrollbar-thumb {
    background-color: #ccc;
    border-radius: 3px;
}

.dropdown-menu-custom.show {
    display: block;
    opacity: 1;
}

.dropdown-item-custom {
    padding: 10px 20px;
    color: white;
    text-decoration: none;
    display: block;
    transition: background-color 0.2s;
}

.dropdown-item-custom:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* --- MOBILE: tampil sebagai dropdown menyatu di bawah item --- */
@media (max-width: 1200px) {
    /* Tadinya 991px*/
    .navbar-collapse {
        background-image: url("/img/flag-navbar.png");
        backdrop-filter: blur(6px);
        border-radius: 0 0 12px 12px;
        padding: 1.5rem;
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
        max-height: 85vh;
        overflow-y: auto;
        padding-bottom: 1rem;
    }

    .navbar-collapse .nav-link {
        color: #fff !important;
        padding: 0.75rem 1rem;
        font-size: 1.2rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        transition: all 0.2s ease-in-out;
    }

    .navbar-collapse .nav-link:hover {
        background-color: rgba(255, 255, 255, 0.1);
        border-radius: 6px;
    }

    .dropdown-menu-custom {
        position: static;
        margin-left: 1rem;
        background-color: transparent;
        padding-left: 1.5rem;
    }

    .dropdown-item-custom {
        padding-left: 1rem;
        border-left: 2px solid rgba(255, 255, 255, 0.3);
    }

    .dropdown-custom {
        display: block !important;
    }

    .navbar-nav {
        flex-wrap: wrap !important;
    }

    .nav-item {
        display: block !important;
        flex: 0 0 100%;
    }
}


/* INI ADALAH END DARI HEADER */

/* INI ADALAH START DARI FOOTER */

.footer-top-wrapper {
    background-image: url("/img/footer.png");
    background-position: top center;
    background-size: cover;
    background-repeat: no-repeat;
}

.footer-section {
    font-family: "Poppins", sans-serif;
    color: white;
    margin-top: 40px;
}

.footer-top {
    padding: 40px 20px;
}

.footer-photo {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 50%;
    border: 6px solid white;
    background-color: #c2e0ee;
}

.footer-info h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
}

.tagline {
    color: #f28b8b;
    font-style: italic;
    font-weight: 500;
    margin: 5px 0 15px;
}

.social-icons {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.social-icons a {
    color: white;
    background-color: #777;
    padding: 10px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    text-decoration: none;
}

.footer-bottom {
    background-color: #d4af38;
    color: white;
    font-size: 1.1rem;
}

/* INI ADALAH END DARI FOOTER */
