body {
    font-family: 'Inter', sans-serif;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.rounded-xl { border-radius: 0.4rem !important }
.bg-red-inilah { background-color: #B32120; }
.text-red-inilah { color: #B32120; }
.border-red-inilah { border-color: #B32120; }

.container { max-width: 960px !important; }

.scrollbar-hide::-webkit-scrollbar { display: none; }
.scrollbar-hide { -ms-overflow-style: none; scrollbar-width: none; }

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@media (min-width: 1024px) {
    .lg\:text-4xl { font-size: 1.25rem !important; line-height: 1.5rem !important; }
}

@media (max-width: 639px) {
    .top-header-mobile-hide { display: none !important; }
    .text-2xl { font-size: 0.8rem !important; line-height: 1rem !important; margin-bottom: 0.3rem !important; }
    .pb-1 { padding-bottom: 0rem !important; }
    .mb-3 { margin-bottom: 0.5rem!important; font-size: 13px!important; }
    .bottom-10 { bottom: 1.5rem !important; }
}

/* ============ NAV & DROPDOWN ============ */
.nav-scroll {
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.nav-scroll::-webkit-scrollbar { display: none; }
.nav-scroll ul { display: inline-flex; white-space: nowrap; }

@media (min-width: 1024px) {
    .nav-scroll { overflow: visible !important; }
    .dropdown-menu {
        transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
        opacity: 0;
        visibility: hidden;
        transform: translateY(10px);
    }
    .group:hover .dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
    #expandable-search { display: none !important; }
}

@media (max-width: 1023px) {
    .nav-scroll { overflow-x: auto !important; overflow-y: hidden !important; }
    .group .dropdown-menu {
        position: fixed !important;
        top: auto !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        border-radius: 20px 20px 0 0 !important;
        z-index: 999999 !important;
        box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.25) !important;
        padding-bottom: 20px;
        transform: translateY(120%) !important;
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s !important;
        opacity: 0;
        visibility: hidden;
        border: none !important;
    }
    .group .dropdown-menu::before {
        content: '';
        display: block;
        width: 40px;
        height: 5px;
        background-color: #d1d5db;
        border-radius: 10px;
        margin: 12px auto 8px auto;
    }
    .dark .group .dropdown-menu::before { background-color: #4b5563; }
    .group:hover .dropdown-menu {
        transform: translateY(0) !important;
        opacity: 1 !important;
        visibility: visible !important;
    }
}

/* ============ IKLAN SAMPING (KIRI & KANAN) ============ */
.ad-wrapper {
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 0;
    pointer-events: none;
    z-index: 900;
    display: none;
}
@media (min-width: 1280px) { .ad-wrapper { display: block; } }

.ad-side {
    position: absolute;
    top: 300px;               /* fallback sebelum JS hitung */
    opacity: 0;               /* disembunyikan dulu sampai JS hitung posisi */
    pointer-events: auto;
    transition: opacity .3s, transform .3s;
    will-change: top;
}
.ad-side.ad-ready {
    opacity: 1;
}
.ad-left  { left:  calc(50% - 480px - var(--ad-w, 90px) - 16px); }
.ad-right { right: calc(50% - 480px - var(--ad-w, 90px) - 16px); }

.ad-side a {
    display: block;
    width: 100%; height: 100%;
    border-radius: 0.4rem;
    overflow: hidden;
    transition: transform .2s;
}
.ad-side a:hover { transform: translateY(-2px); }

.ad-close {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 24px; height: 24px;
    background: #B32120;
    color: #fff;
    border-radius: 9999px;
    border: 2px solid #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0,0,0,.3);
    z-index: 10;
    transition: transform .15s, background .15s;
}
.ad-close:hover { background: #8a1817; transform: scale(1.1); }
.dark .ad-close { border-color: #1e1e1e; }

.ad-label {
    position: absolute;
    bottom: -18px; left: 0; right: 0;
    text-align: center;
    font-size: 9px;
    letter-spacing: 1px;
    color: #9ca3af;
    text-transform: uppercase;
    font-weight: 700;
}

/* ============ IKLAN POPUP BAWAH ============ */
.ad-bottom-wrapper {
    position: fixed;
    left: 0; right: 0;
    bottom: 0;
    z-index: 99998;
    pointer-events: none;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.ad-bottom-wrapper.show {
    transform: translateY(0);
    pointer-events: auto;
}
.ad-bottom-inner {
    position: relative;
    width: 100%;
    background: #fff;
    box-shadow: 0 -8px 30px rgba(0,0,0,.25);
}
.dark .ad-bottom-inner { background: #1e1e1e; }
.ad-bottom-inner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.ad-bottom-close {
    position: absolute;
    top: -32px;
    right: 12px;
    width: 40px; height: 32px;
    background: #B32120;
    color: #fff;
    border: none;
    border-radius: 8px 8px 0 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    cursor: pointer;
    box-shadow: 0 -2px 8px rgba(0,0,0,.2);
    transition: background .15s;
}
.ad-bottom-close:hover { background: #8a1817; }

.ad-bottom-label {
    position: absolute;
    top: 6px;
    left: 8px;
    background: rgba(0,0,0,.5);
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1px;
    padding: 2px 6px;
    border-radius: 3px;
    text-transform: uppercase;
}

body.has-bottom-ad {
    padding-bottom: var(--ad-bottom-h, 200px);
}

/* ============ SUBMENU "LAINNYA" ============ */
.group\/sub .group-hover\/sub\:block a {
    border-left: 2px solid transparent;
    transition: all 0.2s;
}
.group\/sub .group-hover\/sub\:block a:hover {
    border-left-color: #B32120;
    padding-left: 2.25rem;
}
 