/* FXDark 2026 UI layer — loaded after the original theme to preserve features. */
:root {
    --fxd-red: #e71b1b;
    --fxd-red-dark: #bd1212;
    --fxd-ink: #172033;
    --fxd-muted: #667085;
    --fxd-bg: #f5f7fb;
    --fxd-surface: #ffffff;
    --fxd-border: #e6eaf0;
    --fxd-soft: #f0f3f8;
    --fxd-radius-sm: 10px;
    --fxd-radius: 16px;
    --fxd-radius-lg: 22px;
    --fxd-shadow: 0 12px 34px rgba(23, 32, 51, .08);
    --fxd-shadow-header: 0 8px 28px rgba(23, 32, 51, .12);
    --fxd-container: 1180px;
}

html { scroll-behavior: smooth; }
body.fxd-site {
    overflow-x: hidden;
    background: var(--fxd-bg);
    color: var(--fxd-ink);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
body.fxd-site a { transition: color .18s ease, background-color .18s ease, border-color .18s ease, opacity .18s ease, transform .18s ease; }
body.fxd-site img { max-width: 100%; }
body.fxd-site .container { width: min(100% - 30px, var(--fxd-container)); }
body.fxd-site #main-content { min-height: 54vh; outline: 0; }

.fxd-skip-link {
    position: fixed;
    left: 16px;
    top: -80px;
    z-index: 100000;
    padding: 11px 16px;
    border-radius: 0 0 8px 8px;
    background: #fff;
    color: var(--fxd-ink);
    box-shadow: var(--fxd-shadow);
    font-weight: 700;
}
.fxd-skip-link:focus { top: 0; color: var(--fxd-red); }

/* Header */
.fxd-site-header { position: relative; z-index: 1000; }
.top-bar { min-height: 34px; background: #101828 !important; border: 0; }
.top-bar .top-menu > li > a,
.top-bar .top-menu > li > span { color: rgba(255, 255, 255, .78); font-size: 12px; line-height: 34px; }
.top-bar .top-menu > li > a:hover { color: #fff; }
.top-bar .btn-switch-mode { color: #fff; }

.fxd-smart-header {
    position: relative;
    width: 100%;
    background: rgba(255, 255, 255, .98);
    border-bottom: 1px solid var(--fxd-border);
    transform: translateY(0);
    transition: transform .28s cubic-bezier(.22, 1, .36, 1), box-shadow .2s ease, background-color .2s ease;
    will-change: transform;
}
.fxd-smart-header.is-fixed { position: fixed; top: 0; left: 0; right: 0; z-index: 9990; box-shadow: var(--fxd-shadow-header); }
.fxd-smart-header.is-hidden { transform: translateY(calc(-100% - 8px)); }
.fxd-smart-header.is-visible { transform: translateY(0); }
.fxd-smart-header-spacer { height: 0; }

.main-menu { min-height: 74px; margin: 0; border: 0; border-radius: 0; background: transparent; }
.main-menu .container { position: relative; }
.fxd-nav-shell { min-height: 74px; display: flex; align-items: center; gap: 22px; }
.fxd-nav-brand { flex: 0 0 166px; display: inline-flex; align-items: center; min-width: 0; }
.fxd-nav-brand img { display: block; width: auto; max-width: 166px; height: 48px; object-fit: contain; }
.fxd-nav-collapse { flex: 1 1 auto; min-width: 0; padding: 0; }
.fxd-nav-content { display: flex; align-items: center; justify-content: space-between; min-height: 74px; margin: 0; }
.fxd-nav-links { display: flex; align-items: center; min-width: 0; }
.navbar-default .fxd-nav-links > li > a {
    display: flex;
    align-items: center;
    min-height: 74px;
    padding: 0 11px;
    color: #344054;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .01em;
}
.navbar-default .fxd-nav-links > li > a:hover,
.navbar-default .fxd-nav-links > .active > a,
.navbar-default .fxd-nav-links > .active > a:hover { color: var(--fxd-red); background: transparent; }
.navbar-default .fxd-nav-links > .active > a::after,
.navbar-default .fxd-nav-links > li > a:hover::after { height: 3px; border-radius: 3px 3px 0 0; }

.fxd-nav-actions { display: flex; align-items: center; gap: 5px; margin: 0; }
.fxd-nav-actions > li { display: flex; align-items: center; }
.fxd-nav-actions form { margin: 0; }
.fxd-icon-button,
.fxd-nav-actions .fxd-icon-button {
    display: inline-grid !important;
    place-items: center;
    width: 40px;
    height: 40px !important;
    min-height: 40px !important;
    padding: 0 !important;
    border: 1px solid var(--fxd-border) !important;
    border-radius: 50% !important;
    background: var(--fxd-surface) !important;
    color: #344054 !important;
    line-height: 1 !important;
    cursor: pointer;
}
.fxd-icon-button:hover,
.fxd-icon-button:focus { border-color: #f2b7b7 !important; background: #fff5f5 !important; color: var(--fxd-red) !important; }
.fxd-nav-actions .li-search { position: relative; }
.fxd-nav-actions .li-search .search-form { top: 55px; right: 0; width: min(390px, 80vw); border-radius: 12px; box-shadow: var(--fxd-shadow); overflow: hidden; }
.fxd-account-button {
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    min-height: 40px !important;
    padding: 5px 11px !important;
    border: 1px solid var(--fxd-border);
    border-radius: 999px;
    color: #344054 !important;
    font-size: 13px;
    font-weight: 700;
}
.fxd-account-button img { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; }
.fxd-account-button:hover { border-color: #f2b7b7; background: #fff5f5 !important; color: var(--fxd-red) !important; }
.fxd-register-cta > a {
    min-height: 40px !important;
    padding: 11px 16px !important;
    border-radius: 999px;
    background: var(--fxd-red) !important;
    color: #fff !important;
    font-size: 13px;
    font-weight: 800;
}
.fxd-register-cta > a:hover { background: var(--fxd-red-dark) !important; transform: translateY(-1px); }
.fxd-nav-theme button { appearance: none; }

.mobile-nav-container { display: none; }
.fxd-header-ad { padding-top: 0; }
.fxd-header-ad > .bn-lg,
.fxd-header-ad > .bn-md,
.fxd-header-ad > .bn-sm { margin-top: 18px; margin-bottom: 0; }

/* Global layout and surfaces */
#wrapper { padding-top: 28px; padding-bottom: 42px; }
.index-wrapper { padding-top: 22px !important; }
.title-index {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    clip: rect(0 0 0 0) !important;
    white-space: nowrap !important;
}
.page-breadcrumb { margin-bottom: 18px; }
.breadcrumb { padding: 0; background: transparent; color: var(--fxd-muted); font-size: 13px; }
.breadcrumb > li + li::before { color: #98a2b3; }
.breadcrumb a { color: #475467; }

.news-ticker-cnt { margin: 4px 0 24px; overflow: hidden; border: 1px solid var(--fxd-border); border-radius: var(--fxd-radius-sm); background: var(--fxd-surface); box-shadow: 0 5px 16px rgba(23, 32, 51, .04); }
.news-ticker-title { border-radius: var(--fxd-radius-sm) 0 0 var(--fxd-radius-sm); background: var(--fxd-red) !important; }

.section,
.sidebar-widget,
.post-content,
.page-content,
.profile-page-top,
.auth-box,
.contact-form,
.reactions,
.comment-section {
    border: 1px solid var(--fxd-border);
    border-radius: var(--fxd-radius);
    background: var(--fxd-surface);
    box-shadow: 0 7px 24px rgba(23, 32, 51, .055);
}
.section { margin-bottom: 26px; padding: 20px; }
.section .section-head { display: flex; align-items: center; justify-content: space-between; min-height: 42px; margin-bottom: 18px; border-bottom: 1px solid var(--fxd-border) !important; }
.section .section-head .title { position: relative; margin: 0; padding: 0 0 13px; background: transparent !important; color: var(--fxd-ink); font-size: 18px; font-weight: 800; }
.section .section-head .title::after { position: absolute; left: 0; bottom: -1px; width: 46px; height: 3px; border-radius: 4px; background: var(--fxd-red); content: ""; }
.section .section-head .title a { color: inherit; }
.a-view-all { color: var(--fxd-red); font-size: 12px; font-weight: 800; }

.sidebar-widget { margin-bottom: 24px; padding: 18px; }
.sidebar-widget .widget-head { margin: -18px -18px 16px; padding: 16px 18px 12px; border-bottom: 1px solid var(--fxd-border); border-radius: var(--fxd-radius) var(--fxd-radius) 0 0; background: transparent !important; }
.sidebar-widget .widget-head .title { color: var(--fxd-ink); font-size: 17px; font-weight: 800; }
#sidebar .widget-body { padding: 0; }

.post-item,
.post-item-mid,
.post-item-horizontal { transition: transform .22s ease, box-shadow .22s ease; }
.post-item:hover,
.post-item-mid:hover { transform: translateY(-3px); }
.post-item-image { overflow: hidden; border-radius: 12px; background: var(--fxd-soft); }
.post-item-image img { width: 100%; transition: transform .35s ease; }
.post-item:hover .post-item-image img,
.post-item-mid:hover .post-item-image img,
.post-item-horizontal:hover .post-item-image img { transform: scale(1.025); }
.post-item .title,
.post-item-mid .title,
.post-item-horizontal .title { line-height: 1.38; }
.post-item .title a,
.post-item-mid .title a,
.post-item-horizontal .title a { color: var(--fxd-ink); font-weight: 800; }
.post-item .description,
.post-item-horizontal .description,
.post-meta,
.small-post-meta { color: var(--fxd-muted); }
.post-item-horizontal { display: flex; margin: 0 0 20px; padding: 14px; border: 1px solid var(--fxd-border); border-radius: 14px; background: #fff; }
.post-item-horizontal .item-content { padding-top: 5px; }
.category-label { padding: 6px 10px; border-radius: 999px; font-size: 10px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }

/* Hero */
.section-featured { margin-top: 24px; }
#featured { overflow: hidden; border-radius: var(--fxd-radius-lg); background: #111827; box-shadow: var(--fxd-shadow); }
#featured .featured-slider-item,
#featured .featured-box .box-inner { overflow: hidden; }
#featured img { transition: transform .45s ease; }
#featured .featured-slider-item:hover img,
#featured .featured-box:hover img { transform: scale(1.025); }
#featured .overlay { background: linear-gradient(180deg, transparent 25%, rgba(9, 14, 27, .84) 100%); }
#featured .caption .title { color: #fff; line-height: 1.24; text-shadow: 0 2px 16px rgba(0, 0, 0, .32); }

/* Article */
.post-content { padding: clamp(22px, 4vw, 42px); }
.post-content > .title { margin: 14px 0 16px; color: var(--fxd-ink); font-size: clamp(30px, 4.2vw, 46px); line-height: 1.16; letter-spacing: -.025em; font-weight: 850; }
.post-content .post-summary h2 { margin: 0 0 20px; color: #475467; font-size: clamp(18px, 2vw, 21px); line-height: 1.55; font-weight: 500; }
.post-content .post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin: 18px 0; padding: 14px 0; border-top: 1px solid var(--fxd-border); border-bottom: 1px solid var(--fxd-border); }
.post-content .post-author-meta img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; }
.post-content .post-text { color: #273142; font-size: clamp(16.5px, 1.4vw, 18px); line-height: 1.86; overflow-wrap: anywhere; }
.post-content .post-text p { margin: 0 0 1.35em; }
.post-content .post-text h2 { margin: 1.8em 0 .65em; color: var(--fxd-ink); font-size: clamp(25px, 3vw, 34px); line-height: 1.25; font-weight: 850; }
.post-content .post-text h3 { margin: 1.55em 0 .55em; color: var(--fxd-ink); font-size: clamp(21px, 2.3vw, 27px); line-height: 1.3; font-weight: 800; }
.post-content .post-text h4 { margin: 1.4em 0 .5em; font-size: 20px; font-weight: 800; }
.post-content .post-text img { height: auto !important; margin: 12px auto 24px; border-radius: 14px; }
.post-content .post-text iframe { width: 100%; border: 0; border-radius: 14px; aspect-ratio: 16 / 9; }
.post-content .post-text blockquote { margin: 28px 0; padding: 20px 24px; border: 0; border-left: 4px solid var(--fxd-red); border-radius: 0 12px 12px 0; background: #fff5f5; color: #344054; }
.post-content .post-text ul,
.post-content .post-text ol { margin-bottom: 1.4em; padding-left: 1.35em; }
.post-content .post-text li { margin-bottom: .55em; }
.post-content .post-text table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; }
.post-content .post-text th,
.post-content .post-text td { padding: 10px 12px; border: 1px solid var(--fxd-border); }
.post-share { margin: 16px 0 24px; }
.post-tags .tag-list li a,
.sidebar-widget .tag-list li a { border-radius: 999px; background: var(--fxd-soft); color: #475467; }
.post-next-prev { margin: 24px 0; padding: 20px; border: 1px solid var(--fxd-border); border-radius: var(--fxd-radius); background: var(--fxd-surface); }
.post-next-prev .title a { color: var(--fxd-ink); }

.btn-custom,
.btn-load-more,
.newsletter-button { border-radius: 999px !important; font-weight: 800; box-shadow: none !important; }
.btn-load-more { min-height: 44px; border-color: var(--fxd-border); background: #fff; color: var(--fxd-ink); }
.btn-load-more:hover { border-color: var(--fxd-red); background: var(--fxd-red); color: #fff !important; }
.form-control,
.form-input,
.auth-form-input,
.form-textarea { border-color: #d8dee8; border-radius: 10px; box-shadow: none; }
.form-control:focus,
.form-input:focus { border-color: var(--fxd-red); box-shadow: 0 0 0 3px rgba(231, 27, 27, .1); }

/* Footer */
#footer { margin-top: 28px; padding-top: 58px; background: #101828; color: #c6cfdd; }
#footer .footer-widgets { padding-bottom: 40px; }
#footer .footer-widget .title { color: #fff; font-size: 17px; font-weight: 800; }
#footer .footer-logo img { max-width: 190px; height: auto; }
#footer a { color: #d7deea; }
#footer a:hover { color: #fff; }
#footer .footer-bottom { border-color: rgba(255, 255, 255, .1); }
#footer .widget-newsletter { padding: 18px; border: 1px solid rgba(255, 255, 255, .12); border-radius: 14px; background: rgba(255, 255, 255, .04); }
#footer .newsletter-input { border-radius: 999px 0 0 999px; }
#footer .newsletter-button { border-radius: 0 999px 999px 0 !important; }

.scrollup { right: 22px; bottom: 22px; width: 44px; height: 44px; border-radius: 50%; background: var(--fxd-red); box-shadow: 0 10px 26px rgba(231, 27, 27, .3); }
.cookies-warning { left: 16px; right: 16px; bottom: 16px; max-width: 760px; margin: 0 auto; border-radius: 14px; box-shadow: var(--fxd-shadow); }

/* Dark mode additions */
    body.fxd-dark {
        --fxd-ink: #f3f4f6;
        --fxd-muted: #a6b0c1;
        --fxd-bg: #0f141f;
        --fxd-surface: #171e2b;
        --fxd-border: #2b3545;
        --fxd-soft: #222b39;
        background: var(--fxd-bg);
        color: var(--fxd-ink);
    }
    .fxd-dark .fxd-smart-header,
    .fxd-dark .main-menu,
    .fxd-dark .post-item-horizontal,
    .fxd-dark .fxd-icon-button { background: rgba(23, 30, 43, .98) !important; }
    .fxd-dark .navbar-default .fxd-nav-links > li > a,
    .fxd-dark .fxd-account-button,
    .fxd-dark .post-content .post-text,
    .fxd-dark .post-item .title a,
    .fxd-dark .post-item-mid .title a,
    .fxd-dark .post-item-horizontal .title a { color: #e7ebf2 !important; }
    .fxd-dark .post-content .post-summary h2 { color: #b5bfce; }
    .fxd-dark .post-content .post-text blockquote { background: #281c23; color: #d9dee8; }
    .fxd-dark .news-ticker-cnt { background: var(--fxd-surface); }
    .fxd-dark .form-control,
    .fxd-dark .form-input { background: #111827; border-color: var(--fxd-border); color: #f3f4f6; }
    
    @media (min-width: 992px) {
        #sidebar { padding-left: 26px; }
        #sidebar > .row,
        #sidebar .sidebar-widget { max-width: 100%; }
        #sidebar .sidebar-widget:first-of-type { position: relative; }
    }
    
    @media (max-width: 1199px) {
        .fxd-nav-shell { gap: 12px; }
        .fxd-nav-brand { flex-basis: 140px; }
        .fxd-nav-brand img { max-width: 140px; }
        .navbar-default .fxd-nav-links > li > a { padding: 0 8px; font-size: 12px; }
        .fxd-account-button span { display: none; }
        .fxd-register-cta { display: none !important; }
    }
    
    @media (max-width: 991px) {
        body.fxd-site .container { width: min(100% - 24px, var(--fxd-container)); }
        .top-bar,
        #desktopMainNav { display: none !important; }
        .mobile-nav-container { display: block !important; }
        .fxd-smart-header { min-height: 64px; }
        .nav-mobile-header { min-height: 64px; border: 0; background: var(--fxd-surface); }
        .nav-mobile-header-container { display: grid; grid-template-columns: 48px 1fr 48px; align-items: center; min-height: 64px; padding: 0 12px; }
        .nav-mobile-header-container .menu-icon,
        .nav-mobile-header-container .mobile-search { position: static; width: 48px; }
        .nav-mobile-header-container .mobile-search { justify-self: end; }
        .mobile-logo { position: static; display: flex; justify-content: center; transform: none; }
        .mobile-logo img { display: block; width: auto; max-width: 138px; height: 44px; object-fit: contain; }
        .mobile-nav-search { position: fixed; top: 64px; z-index: 9989; border-radius: 0 0 14px 14px; box-shadow: var(--fxd-shadow); }
        .nav-mobile { z-index: 9995; }
        #wrapper { padding-top: 20px; }
        .section-featured { margin-top: 14px; }
        #featured { border-radius: 16px; }
        #content,
        #sidebar { width: 100%; padding-left: 15px; padding-right: 15px; }
        #sidebar { margin-top: 22px; }
        .post-content { border-radius: 14px; }
    }
    
    @media (max-width: 767px) {
        body.fxd-site .container { width: min(100% - 20px, var(--fxd-container)); }
        .section { padding: 15px; border-radius: 14px; }
        .post-item-horizontal { display: block; padding: 12px; }
        .post-item-horizontal .item-image,
        .post-item-horizontal .item-content { width: 100%; padding-left: 0; padding-right: 0; }
        .post-item-horizontal .item-content { padding-top: 14px; }
        .post-content { padding: 20px 16px; }
        .post-content > .title { font-size: 30px; }
        .post-content .post-meta { align-items: flex-start; }
        .post-content .post-comment-pageviews { width: 100%; }
        .post-next-prev .left,
        .post-next-prev .right { text-align: left !important; }
        #footer { padding-top: 40px; }
        #footer .footer-widget { margin-bottom: 28px; }
        .fxd-header-ad > .bn-lg,
        .fxd-header-ad > .bn-md,
        .fxd-header-ad > .bn-sm { margin-top: 12px; }
    }
    
    @media (prefers-reduced-motion: reduce) {
        html { scroll-behavior: auto; }
        *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
    }



/* Perkecil tombol Login dan Register khusus desktop */
    @media (min-width: 1200px) {
        .navbar-default .fxd-nav-actions .fxd-account-button,
        .navbar-default .fxd-nav-actions .fxd-register-cta > a {
            display: inline-flex !important;
            align-items: center;
            justify-content: center;
            height: 40px !important;
            min-height: 40px !important;
            line-height: 18px !important;
            box-sizing: border-box;
        }
    
        .navbar-default .fxd-nav-actions .fxd-account-button {
            padding: 0 13px !important;
        }
    
        .navbar-default .fxd-nav-actions .fxd-register-cta > a {
            padding: 0 16px !important;
        }
    }



/* Rapikan Ad Space Sidebar */
    #sidebar .bn-lg-sidebar {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        min-height: 0 !important;
        margin: 0 0 24px !important;
        padding: 0 !important;
        float: none !important;
        overflow: hidden;
    }
    
    #sidebar .bn-lg-sidebar > .row {
        display: flex;
        width: 100%;
        margin: 0 !important;
        justify-content: center;
    }
    
    #sidebar .bn-lg-sidebar a {
        display: block;
        width: 100%;
        line-height: 0;
    }
    
    #sidebar .bn-lg-sidebar img {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        margin: 0 auto !important;
        border-radius: 14px;
        object-fit: contain;
    }




/* Perluas area konten pada mobile */
    @media (max-width: 767px) {
        body.fxd-site #wrapper > .container {
            width: calc(100% - 8px) !important;
        }
    
        body.fxd-site #content,
        body.fxd-site #sidebar {
            padding-left: 8px !important;
            padding-right: 8px !important;
        }
    
        body.fxd-site .section {
            padding: 10px !important;
        }
    }



/* Rapikan label kategori */
    .category-label {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        height: 25px !important;
        min-height: 25px !important;
        max-width: calc(100% - 20px);
        padding: 0 11px !important;
        line-height: 1 !important;
        box-sizing: border-box !important;
        border-radius: 999px !important;
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
        vertical-align: middle;
        font-size: 10px !important;
        font-weight: 800 !important;
        letter-spacing: 0.04em;
    }
    
    @media (max-width: 767px) {
        #featured .category-label {
            height: 24px !important;
            min-height: 24px !important;
            padding: 0 10px !important;
            font-size: 10px !important;
        }
    }


/* Bidang gelap transparan di belakang judul featured */
#featured .featured-slider-item .caption,
#featured .featured-box .caption {
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    padding: 14px 20px 15px !important;
    box-sizing: border-box;
    background: rgba(0, 0, 0, 0.52);
}

/* Hilangkan background yang hanya mengikuti tulisan */
    #featured .featured-slider-item .caption .title,
    #featured .featured-box .caption .title {
        display: block !important;
        margin-top: 0 !important;
        padding: 0 !important;
        border-radius: 0 !important;
        background: transparent !important;
        color: #fff !important;
        line-height: 1.3 !important;
        text-shadow: 0 2px 5px rgba(0, 0, 0, 0.8);
    }
    
    #featured .featured-slider-item .caption .post-meta,
    #featured .featured-box .caption .post-meta {
        margin-top: 7px !important;
        margin-bottom: 0 !important;
        text-shadow: 0 1px 4px rgba(0, 0, 0, 0.9);
    }
    
    /* Penyesuaian kotak featured kecil */
    #featured .featured-box .caption {
        padding: 11px 14px 12px !important;
    }
    
    @media (max-width: 767px) {
        #featured .featured-slider-item .caption,
        #featured .featured-box .caption {
            padding: 10px 12px !important;
        }
    }
    





