/* ==========================================================================
   Frontend Responsive — perbaikan global agar ramah di semua ukuran layar
   ========================================================================== */
html { -webkit-text-size-adjust: 100%; }
body { overflow-x: hidden; }
img, video, iframe { max-width: 100%; }
img { height: auto; }

/* Tabel & konten editor (artikel/halaman) tidak memecah layout */
.table-responsive, table { max-width: 100%; }
.content-body table, .post-content table, .page-content table { display: block; overflow-x: auto; }

/* ---------- Navbar ---------- */
.navbar-landing .navbar-brand img { max-height: 48px; width: auto; }
.navbar-landing .navbar-toggler {
    min-width: 44px;
    min-height: 44px;
    border: 0;
    box-shadow: none;
    font-size: 26px !important;
}
.mobile-menu { max-width: 340px; height: 100dvh; }
.mobile-parent-item, .mobile-child-item, .mobile-grandchild-item {
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.close-mobile-btn { width: 44px !important; height: 44px !important; }

@media (max-width: 991.98px) {
    .navbar-landing { background: #fff; box-shadow: 0 2px 12px rgba(5, 23, 95, .08); padding: 8px 0; }
    .navbar-landing .navbar-brand img { max-height: 40px; }
    .navbar-landing .navbar-collapse { display: none !important; }
}

/* ---------- Footer ---------- */
.custom-footer { padding-bottom: 32px; }
.custom-footer p { line-height: 1.8; word-break: break-word; }
.custom-footer .card-logo { max-width: 180px; height: auto; }
.footer-social-link { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; padding: 0; }
.footer-social-link .list-inline-item { margin: 0; }
.footer-social-link .avatar-xs { width: 40px; height: 40px; }

@media (max-width: 767.98px) {
    .custom-footer { text-align: left; }
    .custom-footer h5 { font-size: 15px; }
    .footer-list li a { padding: 6px 0; }
    .footer-social-link { justify-content: flex-start; }
}

/* ---------- Bar WhatsApp mobile ---------- */
.bp-mobile-cta {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1030;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, .08);
    backdrop-filter: blur(6px);
}
.bp-mobile-cta .btn {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    font-size: 16px;
    border-radius: 10px;
}
@media (max-width: 767.98px) {
    body.has-mobile-cta { padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
    body.has-mobile-cta #back-to-top.landing-back-top { bottom: calc(86px + env(safe-area-inset-bottom)); right: 16px; }
}

/* ---------- Umum ---------- */
@media (max-width: 575.98px) {
    .container, .container-fluid { padding-left: 16px; padding-right: 16px; }
    h1 { font-size: clamp(26px, 7vw, 34px); }
    h2 { font-size: clamp(22px, 6vw, 28px); }
}

/* Elemen header khusus beranda (ditampilkan oleh home-corporate.css) */
.bp-topbar, .bp-nav-cta { display: none; }
