/* =============================== */
/* BPR NBP 11 - Global Styles      */
/* =============================== */

body {
    font-family: 'Poppins', system-ui, -apple-system, "Segoe UI", Roboto, Arial;
    background: #fff;
    color: #222;
    padding-top: 106px; /* topbar + navbar */
}

/* =============================== */
/* TOP BAR (PMB BSI STYLE)         */
/* =============================== */
.topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 36px;
    background: #0b2c4d;
    color: #fff;
    font-size: 13px;
    line-height: 36px;
    z-index: 1052;
}

.topbar a {
    color: #ffc107;
    margin-left: 10px;
    text-decoration: none;
}
.topbar a:hover {
    color: #fff;
}

/* =============================== */
/* NAVBAR (PMB BSI STYLE)          */
/* =============================== */
.navbar {
    position: fixed;
    top: 36px;
    left: 0;
    right: 0;
    background: #ffffff !important;
    transition: all 0.3s ease;
    z-index: 1051;
}

.navbar.scrolled {
    box-shadow: 0 4px 18px rgba(0,0,0,0.12);
}

.navbar-brand {
    color: #0b2c4d !important;
    font-weight: 700;
}

.navbar .nav-link {
    position: relative;
    color: #0b2c4d !important;
    font-weight: 600;
    font-size: 14px;
    padding: 8px 14px;
}

.navbar .nav-link::after {
    content: "";
    position: absolute;
    left: 14px;
    bottom: 2px;
    width: 0;
    height: 2px;
    background: #0d6efd;
    transition: width 0.3s ease;
}
.navbar .nav-link:hover::after,
.navbar .nav-link.active::after {
    width: calc(100% - 28px);
}

/* =============================== */
/* DROPDOWN                        */
/* =============================== */
.dropdown-menu {
    border: none;
    border-radius: 6px;
    padding: 6px 0;
    background: #fff;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.dropdown-item {
    font-size: 14px;
    font-weight: 500;
    padding: 8px 18px;
    color: #0b2c4d;
}
.dropdown-item:hover {
    background: #f1f5f9;
    color: #0d6efd;
}

@media (min-width: 992px) {
    .navbar .dropdown:hover .dropdown-menu {
        display: block;
        margin-top: 6px;
    }
}

/* =============================== */
/* DROPDOWN ARROW                  */
/* =============================== */
.dropdown-arrow {
    font-size: 11px;
    margin-left: 4px;
    transition: transform 0.25s ease;
}

@media (min-width: 992px) {
    .nav-item.dropdown:hover .dropdown-arrow {
        transform: rotate(180deg);
    }
}

.nav-item.dropdown.show .dropdown-arrow {
    transform: rotate(180deg);
}

/* =============================== */
/* CTA BUTTON                      */
/* =============================== */
.navbar .btn-warning {
    background-color: #ffc107;
    border-color: #ffc107;
    font-size: 14px;
    padding: 8px 22px;
    border-radius: 50px;
    font-weight: 600;
    box-shadow: 0 4px 10px rgba(255,193,7,0.35);
}
.navbar .btn-warning:hover {
    background-color: #e0ac06;
    border-color: #e0ac06;
}

/* =============================== */
/* HERO SLIDER (FINAL FIXED)       */
/* =============================== */

/* tarik hero ke atas nutup padding body */
#heroCarousel {
    margin-top: -106px;
}

.hero-slide {
    position: relative;
    height: 420px;
    min-height: 340px;
    overflow: hidden;
}

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

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0.55); /* overlay putih transparan */
    z-index: 1;
}

/* =============================== */
/* MOBILE HERO                     */
/* =============================== */
@media (max-width: 768px) {
    body {
        padding-top: 96px;
    }

    #heroCarousel {
        margin-top: -96px;
    }

    .hero-slide {
        height: 300px;
        min-height: 260px;
    }
}

/* =============================== */
/* FOOTER                          */
/* =============================== */
footer {
    background-color: #0a2342;
    color: #fff;
}
footer a {
    color: #fff;
}
footer a:hover {
    color: #ffc107;
}

/* =============================== */
/* WHATSAPP FLOATING               */
/* =============================== */
.wa-floating {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background: #25D366;
    color: #fff;
    font-size: 26px;
    padding: 14px 18px;
    border-radius: 50px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    z-index: 9999;
    transition: 0.3s;
}
.wa-floating:hover {
    background: #1ebe5d;
    transform: scale(1.08);
}
/* =============================== */
/* TOPBAR MOBILE FIX               */
/* =============================== */
@media (max-width: 576px) {

    .topbar {
        height: auto;
        line-height: normal;
        padding: 6px 0;
    }

    .topbar .container {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .topbar-left,
    .topbar-right {
        width: 100%;
        font-size: 12px;
        line-height: 1.4;
    }

    .topbar-left span {
        display: none; /* sembunyikan tanda | */
    }

    .topbar-right {
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .topbar-right a {
        margin-left: 0;
        font-size: 14px;
    }
}

