/* =====================================
   FINAL CLEAN CSS (NO CONFLICT + FIX ALL)
===================================== */

/* Hilangkan sp-bottom kosong */
#sp-bottom:empty,
#sp-bottom .sp-column:empty {
    display: none !important;
}

#sp-bottom {
    padding: 0 !important;
    margin: 0 !important;
    min-height: 0 !important;
}

/* Hide edit (guest only) */
body:not(.logged-in) a[href*="edit"],
body:not(.logged-in) .jmodedit,
body:not(.logged-in) .sppb-page-edit {
    display: none !important;
}

/* Reset global */
body {
    margin: 0 !important;
}


/* =========================
   ATAS: NEMPEL KE HEADER
========================= */
#sp-header {
    margin-bottom: 0 !important;
}

#sp-main-body {
    padding-top: 0 !important;
}

.sp-page-builder-page-content,
.sp-page-builder-page-content > section:first-child,
.sp-page-builder-page-content > section:first-child .sppb-row,
.sp-page-builder-page-content > section:first-child .sppb-column {
    margin-top: 0 !important;
    padding-top: 0 !important;
}


/* =========================
   ANGKAT FOTO ARTIKEL (NEWS)
========================= */
.item-page .article-intro-image,
.item-page .article-full-image,
.item-page img {
    display: block;
    margin-top: -25px !important;
}


/* =========================
   BAWAH: JARAK KE FOOTER FIX
========================= */
.sp-page-builder-page-content > section:last-child,
.item-page,
.cupping-box {
    margin-bottom: 20px !important;
}

#sp-footer {
    margin-top: 0 !important;
    padding-top: 20px !important;
}


/* =========================
   RESPONSIVE (HP)
========================= */
@media (max-width: 991px) {

    .item-page .article-intro-image,
    .item-page .article-full-image,
    .item-page img {
        margin-top: -15px !important;
    }

    .sp-page-builder-page-content > section:last-child,
    .item-page,
    .cupping-box {
        margin-bottom: 20px !important;
    }

    #sp-footer {
        padding-top: 20px !important;
    }
}

/* =====================================
   CLEAN FINAL CSS (NO CONFLICT)
===================================== */

/* Hilangkan sp-bottom kosong */
#sp-bottom:empty,
#sp-bottom .sp-column:empty {
    display: none !important;
}

#sp-bottom {
    padding: 0 !important;
    margin: 0 !important;
    min-height: 0 !important;
}

/* Hide edit (guest only) */
body:not(.logged-in) a[href*="edit"],
body:not(.logged-in) .jmodedit,
body:not(.logged-in) .sppb-page-edit {
    display: none !important;
}

/* Reset global */
body {
    margin: 0 !important;
}


/* =========================
   ATAS: Slider nempel header
   ========================= */
#sp-header {
    margin-bottom: 0 !important;
}

.sp-page-builder-page-content > section:first-child {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

.sp-page-builder-page-content > section:first-child .sppb-row,
.sp-page-builder-page-content > section:first-child .sppb-column {
    margin-top: 0 !important;
    padding-top: 0 !important;
}


/* =========================
   BAWAH: Hubungi Kami ke footer
   ========================= */
.sp-page-builder-page-content > section:last-child {
    margin-bottom: 24px !important;
}

#sp-footer {
    margin-top: 0 !important;
}


/* =========================
   RESPONSIVE
   ========================= */
@media (max-width: 991px) {

    .sp-page-builder-page-content > section:last-child {
        margin-bottom: 20px !important;
    }

}