/* === WIDGET CONTAINER === */
#bp-sidebar-widget {
  max-width: 100%;
  box-sizing: border-box;
  /* border-top: ; */
}

/* === TOMBOL FILTER === */
.bp-sidebar-filter-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.bp-sidebar-filter-buttons button {
  font-family: var(--wp--preset--font-family--heading);
  padding: 6px 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #4A5568;
  color: rgb(255,255,255);
  font-size: 11px;
  font-weight: 600;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.bp-sidebar-filter-buttons button:hover,
.bp-sidebar-filter-buttons button.active {
  background: #253A7C;
  color: #fff;
}

/* === LIST WRAPPER === */
ul.bp-sidebar-post-list {
  list-style: none;
  padding: 0 !important;
  margin: 0 !important;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* === ITEM ARTIKEL (LAYOUT ROW) === */
li.bp-sidebar-post-item {
  display: flex;
  flex-direction: row-reverse; /* Paksa Kiri-Kanan */
  align-items: flex-start !important;
  gap: 14px;
  padding: 0 !important;
  margin: 0 !important;
  width: 100%;
  position: relative;
}

/* === GAMBAR (KIRI - FIXED SIZE) === */
.bp-sidebar-img-link {
  display: block;
  flex: 0 0 80px !important; /* Kunci ukuran mati */
  width: 80px !important;
  height: 80px !important;
  border-radius: 4px;
  overflow: hidden;
  margin: 0 !important;
  background: rgba(0,0,0,0);
}

.bp-sidebar-img-link img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  display: block;
  margin: 0 !important;
}

/* === TEKS (KANAN - FLEX AUTO) === */
.bp-sidebar-post-text {
  flex: 1 1 auto !important; /* Ambil sisa ruang */
  min-width: 0 !important;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  min-height: 50px; /* Sejajar vertikal dengan gambar */
}

/* Judul (Max 3 Baris) */
.bp-sidebar-post-text h2 {
    margin: 0 0 0 0 !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    line-height: 1.4 !important;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.bp-sidebar-post-text h2 a {
  color: #111;
  text-decoration: none !important;
  font-family: var(--wp--preset--font-family--body) !important;
}
.bp-sidebar-post-text h2 a:hover {
  color: #1D4F91;
  text-decoration: none !important;
}

.bp-sidebar-post-text small {
  color: #1D4F91;
  font-size: 11px;
  font-weight: 600;
  display: block;
}

/* === SKELETON LOADING === */
.skeleton-item {
  display: flex !important;
  gap: 12px;
}
.skeleton-img {
  width: 50px; height: 50px; flex: 0 0 50px;
  border-radius: 4px; background: #e0e0e0;
  animation: pulse 1.5s infinite;
}
.skeleton-text { flex: 1; display: flex; flex-direction: column; gap: 6px; justify-content: center; }
.skeleton-title { width: 85%; height: 12px; background: #e0e0e0; border-radius: 4px; animation: pulse 1.5s infinite; }
.skeleton-author { width: 40%; height: 10px; background: #e0e0e0; border-radius: 4px; animation: pulse 1.5s infinite; }

@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }