/* ==========================================================================
   WIDGET ADSENSE (Fixed Height 600px & Scrollbox Sticky)
   ========================================================================== */

/* Wrapper Utama Widget */
.widget_news_portal_adsense_widget {
    background-color: #F8F8F8;
    padding: 1px;
    margin-bottom: 20px;
    box-sizing: border-box;
    height: 600px; 
    display: flex;
    flex-direction: column;
    
    /* PENTING: Ubah dari 'hidden' menjadi 'visible' agar sticky bisa bekerja */
    overflow: visible; 
}

/* Judul Widget */
.widget_news_portal_adsense_widget .widget-title {
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 12px 0;
    padding-bottom: 8px;
    border-bottom: 2px solid #e5e5e5;
    flex-shrink: 0;
}

/* Kotak Scroll Iklan (Sticky di dalam widget) */
.adsense-scroll-box {
    /* --- FITUR STICKY --- */
    position: sticky;
    top: 0; /* Menempel di bagian atas widget */
    align-self: flex-start; /* Memastikan menempel di atas, bukan di tengah */
    
    /* --- DIMENSI --- */
    min-height: 250px; 
    max-height: 100%;  
    width: 100%;
    
    /* --- SCROLL & TAMPILAN --- */
    overflow-y: auto; 
    overflow-x: hidden;
    padding: 1px;
    background: #ffffff;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Kustomisasi Scrollbar */
.adsense-scroll-box::-webkit-scrollbar {
    width: 6px;
}

.adsense-scroll-box::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.adsense-scroll-box::-webkit-scrollbar-thumb {
    background: #cccccc;
    border-radius: 3px;
}

.adsense-scroll-box::-webkit-scrollbar-thumb:hover {
    background: #999999;
}

/* Memastikan iframe/script adsense tidak melebar keluar */
.adsense-scroll-box iframe,
.adsense-scroll-box ins {
    max-width: 100%;
    display: block;
    margin: 0 auto;
}