/* =========================================================
   BIMTEKHUB FOOTER CSS - FINAL CLEAN
   Untuk prefooter, footer widgets, footer bottom, social links
========================================================= */

/* ==============================
   PREFOOTER CATEGORY SECTION
============================== */

.bh-prefooter-categories {
    padding: 26px 0 18px;
    border-top: 1px solid #eef2f6;
    background: #ffffff;
}

.bh-prefooter-container {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
    width: min(1160px, calc(100% - 48px));
    margin: 0 auto;
}

.bh-category-col h3 {
    margin: 0 0 14px;
    padding-bottom: 11px;
    border-bottom: 1px solid #dfe6ee;
    color: #0b3768;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.35;
    letter-spacing: 0.3px;
}

.bh-category-col ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.bh-category-col li {
    margin: 0;
    padding: 0;
}

.bh-category-col a {
    display: block;
    padding: 7px 0;
    color: #334155;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.45;
    text-decoration: none;
    transition: color 0.2s ease, padding-left 0.2s ease;
}

.bh-category-col a:hover {
    padding-left: 4px;
    color: #0b3768;
    text-decoration: none;
}

/* ==============================
   BEFORE FOOTER ARTICLE SECTION
============================== */

.before-footer-article {
    padding: 42px 0 38px;
    border-top: 1px solid #e5e7eb;
    background: #f8fafc;
}

.before-footer-article-header {
    max-width: 760px;
    margin: 0 auto 28px;
    text-align: center;
}

.before-footer-article h2,
.before-footer-article p {
    text-align: center;
}

/* ==============================
   SITE FOOTER
============================== */

.site-footer {
    position: relative;
    overflow: hidden;
    margin-top: 48px;
    border-top: 1px solid #e5e7eb;
    background:
        radial-gradient(circle at 8% 18%, rgba(11, 55, 104, 0.10), transparent 22%),
        radial-gradient(circle at 92% 10%, rgba(245, 158, 11, 0.14), transparent 24%),
        linear-gradient(180deg, #f8fafc 0%, #eef4f9 52%, #f8fafc 100%);
    color: #334155;
}

.site-footer::before {
    content: "";
    position: absolute;
    left: -90px;
    bottom: 90px;
    width: 230px;
    height: 230px;
    border-radius: 50%;
    background: rgba(11, 55, 104, 0.08);
    z-index: 0;
    pointer-events: none;
}

.site-footer::after {
    content: "";
    position: absolute;
    right: -80px;
    top: -90px;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background: rgba(245, 158, 11, 0.16);
    z-index: 0;
    pointer-events: none;
}

/* ==============================
   FOOTER GRID
============================== */

.site-footer .footer-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1.25fr repeat(3, 1fr);
    gap: 28px;
    align-items: start;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 42px 0 34px;
}

.site-footer .footer-grid > section {
    position: relative;
    overflow: hidden;
    min-width: 0;
    padding: 28px 22px 22px;
    border: 1px solid transparent;
    border-radius: 16px;
    background:
        linear-gradient(#ffffff, #ffffff) padding-box,
        linear-gradient(135deg, #0b3768, #f59e0b) border-box;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}

.site-footer .footer-grid > section::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 7px;
    z-index: 2;
    background: linear-gradient(90deg, #0b3768 0%, #2563eb 42%, #f59e0b 100%);
}

.site-footer .footer-grid > section::after {
    content: "";
    position: absolute;
    top: 7px;
    left: 0;
    right: 0;
    height: 56px;
    z-index: 1;
    border-bottom: 1px solid rgba(226, 232, 240, 0.9);
    background: linear-gradient(135deg, rgba(11, 55, 104, 0.07), rgba(245, 158, 11, 0.09));
}

.site-footer .footer-grid > section > * {
    position: relative;
    z-index: 3;
}

/* Widget di dalam section jangan menjadi card kedua */
.site-footer .footer-grid > section .widget,
.site-footer .footer-grid > section .footer-about {
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    overflow: visible !important;
}

.site-footer .footer-grid > section .widget::before,
.site-footer .footer-grid > section .widget::after,
.site-footer .footer-grid > section .footer-about::before,
.site-footer .footer-grid > section .footer-about::after {
    content: none !important;
    display: none !important;
}

/* ==============================
   FOOTER TITLE
============================== */

.footer-about-title,
.site-footer .widget-title,
.site-footer h2,
.site-footer h3 {
    margin: 0 0 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e5e7eb;
    color: #0b3768 !important;
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.35;
}

.footer-about-title::after,
.site-footer .widget-title::after {
    content: "";
    display: block;
    width: 42px;
    height: 3px;
    margin-top: 8px;
    border-radius: 999px;
    background: #f59e0b;
}

/* ==============================
   FOOTER TEXT, LINK, LIST
============================== */

.site-footer p,
.site-footer li,
.site-footer span,
.site-footer div {
    color: #475569;
    font-size: 0.95rem;
    line-height: 1.7;
}

.footer-about p,
.site-footer .widget p {
    margin: 0 0 12px;
}

.site-footer a,
.site-footer a:visited,
.site-footer .widget a,
.site-footer .footer-about a {
    color: #0b3768 !important;
    font-weight: 700;
    text-decoration: none !important;
}

.site-footer a:hover,
.site-footer .widget a:hover,
.site-footer .footer-about a:hover {
    color: #f59e0b !important;
    text-decoration: none !important;
}

.site-footer ul,
.site-footer .widget ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-footer li,
.site-footer .widget li {
    margin: 0 0 9px;
    padding: 0;
    color: #334155;
    font-size: 0.95rem;
    line-height: 1.55;
}

.site-footer li:last-child,
.site-footer .widget li:last-child {
    margin-bottom: 0;
}

/* ==============================
   FOOTER ABOUT + LOGO
============================== */

.site-footer .footer-about {
    display: flex;
    flex-direction: column;
    /* align-items: center; */
    text-align: center;
}

.site-footer .footer-about-title,
.site-footer .footer-about p {
    text-align: center;
}

.site-footer .footer-about img {
    display: block;
    width: 120px;
    max-width: 120px;
    height: auto;
    margin: 18px auto;
    object-fit: contain;
}

/* ==============================
   FOOTER MENU
============================== */

.footer-menu {
    margin: 0;
    text-align: center;
}

.footer-menu-list {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px 16px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-menu-list li {
    margin: 0;
    padding: 0;
}

.footer-menu-list a {
    color: #0b3768 !important;
    font-size: 0.88rem;
    font-weight: 700;
    text-decoration: none !important;
}

.footer-menu-list a:hover {
    color: #f59e0b !important;
}

/* ==============================
   SOCIAL LINKS
============================== */

.social-links,
.site-footer .social-links,
.footer-social,
.bhub-footer-social {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0;
}

.social-links a,
.site-footer .social-links a,
.footer-social a,
.bhub-footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 6px 14px;
    border: 1px solid #e5e7eb;
    border-radius: 999px;
    background: #ffffff;
    color: #0b3768 !important;
    font-size: 0.88rem;
    font-weight: 700;
    line-height: 1;
    text-decoration: none !important;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.06);
}

.social-links a:hover,
.site-footer .social-links a:hover,
.footer-social a:hover,
.bhub-footer-social a:hover {
    background: #0b3768;
    border-color: #0b3768;
    color: #ffffff !important;
}

/* ==============================
   RSS ICON HIDE
============================== */

.site-footer .rss-widget-icon,
.site-footer img.rss-widget-icon,
.site-footer .widget_rss .rss-widget-icon,
.site-footer .widget_rss img,
.site-footer .widget_rss .widget-title a.rsswidget:first-child,
.site-footer .widget_rss h2 a.rsswidget:first-child,
.site-footer .widget_rss h3 a.rsswidget:first-child {
    display: none !important;
}

.site-footer .widget_rss .widget-title a.rsswidget,
.site-footer .widget_rss h2 a.rsswidget,
.site-footer .widget_rss h3 a.rsswidget {
    color: #0b3768 !important;
    font-weight: 800;
    text-decoration: none !important;
}

/* ==============================
   FOOTER BOTTOM
============================== */

.footer-bottom,
.site-info {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 18px 0 24px;
    border-top: 1px solid rgba(203, 213, 225, 0.9);
    background: transparent;
    text-align: center;
}

.footer-credit,
.footer-credit p {
    margin: 0;
    color: #475569;
    font-size: 0.92rem;
    line-height: 1.5;
}

.footer-bottom a,
.site-info a {
    color: #0b3768 !important;
    font-weight: 800;
    text-decoration: none !important;
}

.footer-bottom a:hover,
.site-info a:hover {
    color: #f59e0b !important;
}

/* ==============================
   BACK TO TOP
============================== */

.back-to-top {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 999;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 999px;
    background: #0b3768;
    color: #ffffff;
    font-size: 1.2rem;
    font-weight: 800;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 12px 24px rgba(15, 59, 102, 0.22);
}

.back-to-top:hover {
    background: #f59e0b;
    color: #111827;
}

/* ==============================
   RESPONSIVE
============================== */

@media (max-width: 992px) {
    .bh-prefooter-container {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .site-footer .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 24px;
    }
}

@media (max-width: 600px) {
    .bh-prefooter-categories {
        padding: 24px 0 16px;
    }

    .bh-prefooter-container,
    .site-footer .footer-grid,
    .footer-bottom,
    .site-info {
        width: min(100% - 28px, 1180px);
    }

    .bh-prefooter-container,
    .site-footer .footer-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .site-footer {
        margin-top: 36px;
    }

    .site-footer .footer-grid {
        padding: 34px 0 28px;
    }

    .site-footer .footer-grid > section {
        padding: 28px 18px 20px;
        border-radius: 14px;
    }

    .footer-bottom,
    .site-info {
        padding: 16px 0 22px;
        gap: 10px;
    }

    .site-footer .footer-about img {
        width: 110px;
        max-width: 110px;
    }

    .footer-about-title,
    .site-footer .widget-title,
    .site-footer h2,
    .site-footer h3 {
        font-size: 0.98rem;
    }

    .footer-about p,
    .site-footer .widget p,
    .site-footer .widget li,
    .site-footer .widget a {
        font-size: 0.9rem;
    }

    .social-links {
        gap: 8px;
    }

    .social-links a {
        min-height: 32px;
        padding: 6px 12px;
        font-size: 0.84rem;
    }

    .footer-menu-list {
        gap: 7px 12px;
    }

    .footer-menu-list a {
        font-size: 0.84rem;
    }

    .back-to-top {
        right: 14px;
        bottom: 14px;
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }
}
