/* =========================================
   MODIFIKASI WIDGET CUSTOM HTML
   ========================================= */

.widget_custom_html {
    background-color: #f0f0f1;
    min-height: 250px;
    margin-bottom: 24px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
}

.widget_custom_html .ad-label {
    color: #9ca3af;
    font-family: 'Manrope', sans-serif;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin: 0;
}

.widget_custom_html ul {
    list-style: none;
    margin: 0;
    padding: 0;
    width: 100%;
}

.widget_custom_html ul li {
    margin: 0;
    padding: 0;
}

.widget_media_image {
    margin-bottom: 20px;
}


/* ============================================
   WIDGET POPULER - STYLING (Prefix diubah dari terpopuler ke widget)
   ============================================ */

.widget-populer {
    background: #ffffff;
    border-radius: 6px;
    margin-bottom: 24px;
    box-sizing: border-box;
}
/* ============================================
   WIDGET HEADER - SIMPLE & CLEAN STYLE
   ============================================ */

.widget-header {
    margin-bottom: 12px;
  
    
}

.widget-title {
    font-family: 'Manrope', sans-serif;
    font-size: 18px; /* Ukuran proporsional untuk teks normal */
    font-weight: 800;
    color: #1a1a1a;
    margin: 0;
    line-height: 1.3;
    /* Tidak ada text-transform: uppercase */
    /* Tidak ada font-style: italic */
}

.widget-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.widget-item {
    display: flex;
    gap: 12px;
    text-decoration: none;
    color: inherit;
    padding-bottom: 16px;
    position: relative;
    transition: all 0.2s ease;
    align-items: center;
}

.widget-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    border-bottom: 1px dashed #ccc;
}

.widget-item:last-child {
    padding-bottom: 0;
}

.widget-item:last-child::after {
    display: none;
}

.widget-item:hover {
    transform: translateX(4px);
}

.widget-thumb {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border-radius: 6px;
    overflow: hidden;
    background: #f5f5f5;
}

.widget-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.widget-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.widget-title-post {
    font-family: 'Manrope', sans-serif;
    font-size: 14px;
    font-weight: 700;
    line-height: 20px;
    letter-spacing: -0.2px;
    color: #1a1a1a;
    margin: 0 !important;
    padding: 0 !important;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.widget-item:hover .widget-title-post {
    color: #0066cc;
}

.widget-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    margin-top: 12px;
}

.widget-category {
    background: #ddd;
    color: #000;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 600;
}

.widget-date {
    color: #999;
    font-weight: 500;
}

/* ============================================
   WIDGET TRENDING / POPULER - KHUSUS (Tidak bentrok dengan widget lain)
   ============================================ */

.widget-trending {
    background: #ffffff;
    margin-bottom: 24px;
    box-sizing: border-box;
   
}

.widget-trending-header {
    margin-bottom: 16px;
    padding-bottom: 12px;
  
}

.widget-trending-title {
    font-family: 'Manrope', sans-serif;
    font-size: 18px;
    font-weight: 800;
    color: #1a1a1a;
    margin: 0;
    line-height: 1.3;
}

.widget-trending-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.widget-trending-item {
    display: flex;
    gap: 6px;
    text-decoration: none;
    color: inherit;
    padding: 10px 0;
    transition: all 0.2s ease;
    align-items: flex-start;
}

.widget-trending-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.widget-trending-item:first-child {
    padding-top: 0;
}

.widget-trending-item:hover {
    transform: translateX(2px);
}

/* Nomor urut: #1, #2, #3, dst */
.widget-trending-number {
    font-family: 'Manrope', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #ababab;
    line-height: 1;
    flex-shrink: 0;
    min-width: 32px;
    padding-top: 2px;
}

.widget-trending-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.widget-trending-title-post {
    font-family: 'Manrope', sans-serif;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
    color: #1a1a1a;
    margin: 0 !important;
    padding: 0 !important;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s ease;
}

.widget-trending-item:hover .widget-trending-title-post {
    color: #0066cc;
}

.widget-trending-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #888;
    font-weight: 400;
    margin-top: 2px;
}

.widget-trending-source {
    color: #555;
    font-weight: 500;
}

.widget-trending-separator {
    color: #ccc;
}

.widget-trending-date {
    color: #999;
    font-weight: 400;
}

/* Tombol Lihat Selengkapnya */
.widget-trending-button-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 16px;
}

.widget-trending-button {
    display: inline-flex;   align-items: center;   justify-content: center;   gap: 6px;   background: #f5f5f5;   color: #e55225;   text-decoration: none;   padding: 8px 20px;   border-radius: 6px;   font-family: 'Manrope', sans-serif;   font-size: 12px;   font-weight: 700;   transition: all 0.2s ease;   box-sizing: border-box;
}

.widget-trending-button svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    transition: transform 0.2s ease;
}

.widget-trending-button:hover {
    background: #e55225;
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(229, 82, 37, 0.25);
}

.widget-trending-button:hover svg {
    transform: translateX(3px);
}

/* Responsive */
@media (max-width: 480px) {
    .widget-trending {
        padding: 12px;
    }

    .widget-trending-number {
        font-size: 18px;
        min-width: 26px;
    }

    .widget-trending-title-post {
        font-size: 14px;
    }

    .widget-trending-button {
        padding: 8px 16px;
        font-size: 13px;
        width: 100%;
    }
}
/* ============================================
   WIDGET BUTTON - COMPACT & MODERN STYLE
   ============================================ */
 

.widget-button-wrapper {
    display: flex;
    justify-content: center; /* Default: center */
    margin-top: 16px;
}

.widget-button-wrapper.left {
    justify-content: flex-start;
}

.widget-button-wrapper.right {
    justify-content: flex-end;
}

.widget-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: #f5f5f5;
    color: #e55225;
    text-decoration: none;
    padding: 8px 20px;
    border-radius: 6px;
    font-family: 'Manrope', sans-serif;
    font-size: 12px;
    font-weight: 700;
    transition: all 0.2s ease;
    box-sizing: border-box;
    /* Dihapus: text-transform: uppercase */
    /* Dihapus: width: 100% */
}

.widget-button svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    transition: transform 0.2s ease;
}

.widget-button:hover {
    background: #e55225;
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(229, 82, 37, 0.25);
}

.widget-button:hover svg {
    transform: translateX(3px);
}

 
.widget-item.featured {
    flex-direction: column;
    padding-bottom: 20px;
    margin-bottom: 4px;
}

.widget-item.featured .widget-thumb {
    width: 100%;
    height: 180px;
}

.widget-item.featured .widget-title-post {
    font-size: 15px;
    margin-top: 10px;
    -webkit-line-clamp: 3;
}

.widget-item.featured .widget-meta {
    margin-top: 6px;
}

@media (max-width: 480px) {
    .widget-populer {
        border-radius: 10px;
        margin-bottom: 4px;
    }

    .widget-title {
        font-size: 18px;
    }

    .widget-accent {
        height: 28px;
    }

    .widget-item {
        gap: 10px;
    }

    .widget-thumb {
        width: 80px;
        height: 80px;
    }

    .widget-title-post {
        font-size: 16px;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

   
     .widget-button-wrapper {
        justify-content: center; /* Mobile tetap center */
    }
    
    .widget-button {
        padding: 8px 16px;
        font-size: 13px;
        width: 100%;
    }
 

    .widget-item.featured .widget-thumb {
        height: 150px;
    }

    .widget-item.featured .widget-title-post {
        font-size: 15px;
    }
}

@media (max-width: 360px) {
    .widget-populer {
        padding: 14px;
    }

    .widget-title {
        font-size: 16px;
    }

    .widget-thumb {
        width: 70px;
        height: 70px;
    }

    .widget-title-post {
        font-size: 12px;
        -webkit-line-clamp: 3;
    }
}


/* ============================================
   STICKY WIDGET - SUPPORT CSS (MINIMAL)
   ============================================ */

@media (min-width: 993px) {
    .sidebar {
        position: relative !important;
        width: 300px !important;
        max-width: 300px !important;
        flex-shrink: 0 !important;
        overflow: visible !important;
    }

    .widget_batui_populer_widget {
        width: 100% !important;
        max-width: 300px !important;
        box-sizing: border-box !important;
    }

    .widget_batui_populer_widget .sticky-wrapper {
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .widget_batui_populer_widget .widget-populer {
        width: 100% !important;
        box-sizing: border-box !important;
        padding: 16px !important;
        background: #ffffff;
        border-radius: 6px;
    }
}

@media (max-width: 992px) {
    .sidebar {
        width: 100% !important;
        max-width: 100% !important;
    }
    
    .widget_batui_populer_widget .sticky-wrapper {
        position: static !important;
    }
}


/* ============================================
   WIDGET TAG POPULER (ISU TERKINI) - SIMPLE STYLE
   ============================================ */

.tag-populer-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.tag-populer-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 0;
    text-decoration: none;
    color: #1a1a1a;
    font-family: 'Manrope', sans-serif;
    font-size: 15px;
    font-weight: 800;
    transition: all 0.2s ease;
    
}

.tag-populer-item:last-child {
    border-bottom: none;
}

.tag-populer-item:hover {
    color: #0066cc;
    padding-left: 4px;
}

.tag-populer-item::before {
    content: '#';
    color: #ababab;
    font-weight: 700;
    font-size: 16px;
    flex-shrink: 0;
}

.tag-name {
    flex: 1;
    min-width: 0;
}

/* Responsive Tag Populer */
@media (max-width: 480px) {
    .tag-populer-list {
        gap: 6px;
    }
    
    .tag-populer-item {
        font-size: 13px;
        padding: 4px 0;
    }
    
    .tag-populer-item::before {
        font-size: 14px;
    }
}

@media (max-width: 360px) {
    .tag-populer-item {
        font-size: 12px;
    }
}


/* ============================================
   STICKY WIDGET - JAVASCRIPT SUPPORT
   ============================================ */

@media (min-width: 993px) {
    .sidebar {
        position: relative !important;
        width: 300px !important;
        max-width: 300px !important;
        flex-shrink: 0 !important;
        overflow: visible !important;
    }

    .widget_batui_populer_widget {
        width: 100% !important;
        max-width: 300px !important;
        box-sizing: border-box !important;
    }

    .widget_batui_populer_widget .sticky-wrapper {
        width: 100% !important;
        max-width: 300px !important;
        box-sizing: border-box !important;
    }

    .widget_batui_populer_widget .widget-populer {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        padding: 16px !important;
        background: #ffffff;
        border-radius: 6px;
    }
}

@media (max-width: 992px) {
    .sidebar {
        width: 100% !important;
        max-width: 100% !important;
    }
    
    .widget_batui_populer_widget .sticky-wrapper {
        position: static !important;
    }
}