/* ==========================================================================
   Header situs + mega menu bergaya Pennyu (semua halaman publik)
   ========================================================================== */
:root {
    --bp-blue: #0050a3;
    --bp-blue-dark: #003a78;
    --bp-blue-soft: #e6eef8;
    --bp-coral: #f07057;
    --bp-coral-dark: #e2553a;
    --bp-ink: #002022;
    --bp-text: #555b66;
    --bp-muted: #8e8e8e;
    --bp-line: #e4e8ee;
    --bp-font-head: "Poppins", system-ui, sans-serif;
    --bp-font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* ---------- Navbar ---------- */
.navbar-landing .bp-navbar-inner { position: relative; }
.navbar-landing .bp-menu { gap: 2px; }
.navbar-landing .bp-menu__link {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    font-family: var(--bp-font);
    font-size: 15px;
    font-weight: 500;
    color: var(--bp-blue) !important;
    padding: 10px 12px !important;
    white-space: nowrap;
}
.bp-menu__chev { font-size: 18px; line-height: 1; transition: transform .2s ease; }
.navbar-landing .navbar-nav .bp-menu__item > .nav-link.bp-menu__link:hover,
.navbar-landing .navbar-nav .bp-menu__item > .nav-link.bp-menu__link:focus-visible,
.navbar-landing .navbar-nav .bp-menu__item.is-open > .nav-link.bp-menu__link { color: var(--bp-coral) !important; }
.navbar-landing .navbar-nav .bp-menu__item:not(.is-open) > .nav-link.bp-menu__link:focus:not(:focus-visible):not(:hover) { color: var(--bp-blue) !important; }
.bp-menu__item.is-open .bp-menu__chev { transform: translateX(2px); }
/* Navbar beranda menyatu dengan panel saat mega menu terbuka */
.bp-home-page .bp-navbar-inner:has(.bp-menu__item.is-open) { border-radius: 0; }

/* Tombol CTA tampil di semua halaman (desktop) */
.bp-nav-cta .bp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 8px 22px;
    border-radius: 999px;
    border: 1.5px solid var(--bp-coral);
    font-family: var(--bp-font);
    font-size: 15px;
    font-weight: 600;
    white-space: nowrap;
    text-decoration: none;
    transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.bp-nav-cta .bp-btn--outline-coral { background: #fff; color: var(--bp-coral); }
.bp-nav-cta .bp-btn--coral { background: var(--bp-coral); color: #fff; box-shadow: 0 8px 18px rgba(240, 112, 87, .3); }
.bp-nav-cta .bp-btn:hover { background: var(--bp-coral-dark); border-color: var(--bp-coral-dark); color: #fff; }

@media (min-width: 992px) {
    .navbar-landing .bp-nav-cta { display: flex; gap: 10px; margin-left: 18px; }
    .navbar-landing .bp-menu__item.has-mega { position: static; }
}

/* ---------- Mega menu ---------- */
.bp-mega { display: none; }

@media (min-width: 992px) {
    .bp-mega {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        border-top: 1px solid var(--bp-line);
        z-index: 1040;
        display: grid;
        grid-template-columns: minmax(260px, 34%) 1fr;
        min-height: 360px;
        background: #fff;
        border-radius: 0 0 28px 28px;
        box-shadow: 0 24px 60px rgba(0, 40, 90, .16);
        overflow: hidden;
        font-family: var(--bp-font);
        text-align: left;
        opacity: 0;
        visibility: hidden;
        transform: translateY(10px);
        transition: opacity .2s ease, transform .2s ease, visibility 0s linear .2s;
    }
    /* Jembatan tak terlihat agar kursor tidak "jatuh" saat turun dari menu ke panel */
    .bp-mega::before { content: ""; position: absolute; left: 0; right: 0; top: -30px; height: 30px; }
    .bp-menu__item.is-open > .bp-mega {
        opacity: 1;
        visibility: visible;
        transform: none;
        transition-delay: 0s;
    }
}

.bp-mega__aside {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 34px 30px 30px;
    background: #f3f4f6;
}
.bp-mega__title {
    margin: 0;
    font-family: var(--bp-font-head);
    font-size: clamp(24px, 2.3vw, 34px);
    font-weight: 700;
    line-height: 1.15;
    color: var(--bp-blue);
}
.bp-mega__media {
    flex: 1;
    display: grid;
    place-items: center;
    min-height: 170px;
    max-height: 260px;
}
.bp-mega__media img {
    max-width: 100%;
    max-height: 240px;
    object-fit: contain;
    filter: drop-shadow(0 14px 20px rgba(0, 0, 0, .12));
    animation: bpMegaFade .25s ease;
}
.bp-mega__media.is-empty img { opacity: .35; filter: grayscale(1); max-height: 120px; }
.bp-mega__desc {
    margin: 0;
    color: var(--bp-text);
    font-size: 15px;
    line-height: 1.75;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.bp-mega__all {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    width: fit-content;
    color: var(--bp-coral);
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
}
.bp-mega__all:hover { color: var(--bp-coral-dark); gap: 10px; }

.bp-mega__grid {
    list-style: none;
    margin: 0;
    padding: 40px 36px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-content: start;
    gap: 14px 28px;
}
.bp-mega__item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 12px 14px;
    border-radius: 14px;
    text-decoration: none;
    transition: background-color .2s ease;
}
.bp-mega__item:hover, .bp-mega__item:focus-visible { background: var(--bp-blue-soft); outline: none; }
.bp-mega__icon {
    flex: none;
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    color: var(--bp-blue);
    font-size: 30px;
    line-height: 1;
}
.bp-mega__icon img { width: 48px; height: 48px; object-fit: contain; border-radius: 10px; }
.bp-mega__text { display: grid; gap: 2px; min-width: 0; }
.bp-mega__text strong { color: var(--bp-blue); font-size: 16px; font-weight: 700; line-height: 1.35; }
.bp-mega__text small { color: var(--bp-muted); font-size: 14.5px; line-height: 1.45; }
.bp-mega__item:hover strong { color: var(--bp-coral); }
.bp-mega__sub { list-style: none; margin: 2px 0 0 76px; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 14px; }
.bp-mega__sub a { color: var(--bp-text); font-size: 13.5px; text-decoration: none; }
.bp-mega__sub a:hover { color: var(--bp-coral); text-decoration: underline; }

@keyframes bpMegaFade { from { opacity: .3; } to { opacity: 1; } }

@media (min-width: 992px) and (max-width: 1199.98px) {
    .navbar-landing .bp-menu__link { font-size: 14px; padding: 10px 8px !important; }
    .navbar-landing .bp-nav-cta .bp-btn--outline-coral { display: none; }
    .bp-mega__grid { grid-template-columns: 1fr; padding: 30px 24px; }
}

@media (prefers-reduced-motion: reduce) {
    .bp-mega, .bp-mega__media img, .bp-menu__chev { transition: none; animation: none; }
}

/* ---------- Menu mobile ---------- */
.mobile-parent-item, .mobile-child-item, .mobile-grandchild-item { font-family: var(--bp-font); }
.mobile-parent-item { font-weight: 600; color: var(--bp-blue); }
.mobile-child-item--all { color: var(--bp-coral) !important; font-weight: 600; }
