/* =========================
        SIDEBAR UNTUK SEMUA
        ========================= */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    width: 100%;
}

/* Topik Populer dengan boks */
.sidebar-box.tags {
    background: #fff;
    border: 1px solid #eee;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

/* Elemen sidebar lainnya tanpa border/background */
.sidebar-box:not(.tags) {
    background: transparent;
    border: none;
    padding: 0;
}

.sidebar-title {
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
    border-left: 4px solid #e63946;
    padding-left: 0.5rem;
    color: #222;
    text-transform: uppercase;
}

/* Tag list */
.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    list-style: none;
    padding: 0;
    margin: 0;
}
        
.tag-list li a {
    background: #f5f5f5;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.9rem;
    color: #0073aa;
    display: block;
    transition: all 0.2s;
}
        
.tag-list li a:hover {
    background: #0073aa;
    color: #fff;
}

/* ===== POPULAR POSTS ===== */
.sidebar-section.popular-posts {
    margin-bottom: 2rem;
}

.sidebar-section.popular-posts h2 {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
    border-left: 4px solid #0073aa;
    padding-left: 0.5rem;
}

.popular-posts .popular-item.first {
    margin-bottom: 0.75rem;
}

.popular-posts .thumb-wrap {
    position: relative;
}

.popular-posts .thumb-wrap img {
    width: 100%;
    height: 200px;
    border-radius: 6px;
    display: block;
}

.popular-posts .rank-label {
    position: absolute;
    top: 0;
    left: 0;
    background: #e63946;
    color: white;
    font-weight: bold;
    padding: 4px 8px;
    border-radius: 0 0 6px 0;
    font-size: 0.9rem;
}

.popular-posts .first .rank-label {
    font-size: 1.8rem;
    padding: 8px 12px;
}

.popular-posts .meta .category {
    font-size: 0.75rem;
    color: #e63946;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    display: block;
    margin-top: 8px;
    margin-bottom: 0;
}

.popular-posts .first h3 {
    font-size: 1.05rem;
    margin: 0.4rem 0 0 0;
    font-weight: 600;
    line-height: 1.3;
}

.popular-posts .first h3 a {
    color: #222;
    text-decoration: none;
}

.popular-posts .first h3 a:hover {
    color: #e63946;
}

.popular-posts .small {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.popular-posts .small:last-child {
    margin-bottom: 0;
}

.popular-posts .small .thumb-wrap {
    flex-shrink: 0;
    width: 70px;
    position: relative;
}

.popular-posts .small .thumb-wrap img {
    width: 70px;
    height: 60px;
    object-fit: cover;
}

.popular-posts .small .rank-label {
    font-size: 0.8rem;
    padding: 2px 6px;
}

.popular-posts .small h4 {
    font-size: 0.95rem;
    margin: 0;
    font-weight: 500;
    line-height: 1.3;
    flex: 1;
}

.popular-posts .small h4 a {
    color: #222;
    text-decoration: none;
}

.popular-posts .small h4 a:hover {
    color: #e63946;
}

/* ===== BERITA TERBARU ===== */
.sidebar-section.recent-posts {
    margin-bottom: 2rem;
}

.recent-posts .recent-post-item.first {
    margin-bottom: 0.75rem;
}

.recent-posts .thumb-wrap {
    position: relative;
}

.recent-posts .thumb-wrap img {
    width: 100%;
    height: auto;
    border-radius: 6px;
    display: block;
}

.recent-posts .meta .category {
    font-size: 0.75rem;
    color: #e63946;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    display: block;
    margin-top: 8px;
    margin-bottom: 0;
}

.recent-posts .first h3 {
    font-size: 1.05rem;
    margin: 0.4rem 0 0 0;
    font-weight: 600;
    line-height: 1.3;
}

.recent-posts .first h3 a {
    color: #222;
    text-decoration: none;
}

.recent-posts .first h3 a:hover {
    color: #e63946;
}

.recent-posts .small {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.recent-posts .small:last-child {
    margin-bottom: 0;
}

.recent-posts .small .thumb-wrap {
    flex-shrink: 0;
    width: 70px;
}

.recent-posts .small .thumb-wrap img {
    width: 70px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
}

.recent-posts .small h4 {
    font-size: 0.95rem;
    margin: 0;
    font-weight: 500;
    line-height: 1.3;
    flex: 1;
}

.recent-posts .small h4 a {
    color: #222;
    text-decoration: none;
}

.recent-posts .small h4 a:hover {
    color: #e63946;
}

.recent-posts .small-post {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
}
        
/* ===== AD BANNER ===== */
.banner-ad {
    width: 100%;
    height: auto;
    text-align: justify;
    border-radius: 4px;
    margin: 0;
}

/* ===== SOSOK TERBARU ===== */
.sosok-latest {
    background: #ffffff;
    padding: 0;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border: 1px solid #e0e0e0;
    position: relative;
}

/* THUMBNAIL AREA - BAGIAN ATAS */
.sosok-latest .thumb-large {
    display: block;
    position: relative;
    margin: 0;
    padding: 0;
    width: 100%;
}

.sosok-latest .thumb-large img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

/* LABEL "SOSOK" DI SUDUT KIRI ATAS THUMBNAIL */
.sosok-label {
    position: absolute;
    top: 0;
    left: 0;
    background: #e63946;
    color: white;
    padding: 0.4rem 0.8rem;
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    z-index: 2;
}

/* CONTENT AREA - BAGIAN BAWAH */
.sosok-latest .main-post {
    padding: 1rem;
    margin: 0;
}

/* JUDUL POST */
.sosok-latest .main-post .post-title {
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 0.5rem 0;
    color: #222;
}

.sosok-latest .main-post .post-title a {
    color: #222;
    text-decoration: none;
    transition: color 0.3s ease;
}

.sosok-latest .main-post .post-title a:hover {
    color: #e63946;
}

/* EXCERPT */
.sosok-latest .main-post .post-excerpt {
    color: #666;
    font-size: 0.85rem;
    line-height: 1.4;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .sosok-latest .thumb-large img {
        height: 150px;
    }
    
    .sosok-latest .main-post {
        padding: 0.8rem;
    }
    
    .sosok-latest .main-post .post-title {
        font-size: 0.95rem;
    }
    
    .sosok-latest .main-post .post-excerpt {
        font-size: 0.8rem;
    }
    
    .sosok-label {
        font-size: 0.7rem;
        padding: 0.3rem 0.6rem;
    }
}

/* ===== OPINI TERBARU ===== */
.opini-latest {
    background: #ffffff;
    padding: 0;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    position: relative;
}

/* LABEL OPINI - BACKGROUND HITAM PANJANG */
.opini-label {
    background: #000000;
    color: #ffffff;
    padding: 0.8rem 1.5rem;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
}

/* CONTENT AREA */
.opini-content {
    padding: 1.5rem;
}

/* JUDUL BESAR */
.opini-title {
    font-size: 1.3rem;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 1rem 0;
    color: #222;
}

.opini-title a {
    color: #222;
    text-decoration: none;
    transition: color 0.3s ease;
}

.opini-title a:hover {
    color: #e63946;
}

/* EXCERPT */
.opini-excerpt {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0 0 1.5rem 0;
}

/* GARIS PEMBATAS HALUS */
.opini-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, #e0e0e0 50%, transparent 100%);
    margin: 0 0 1.5rem 0;
}

/* PENULIS */
.opini-author {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.author-avatar {
    flex-shrink: 0;
}

.author-avatar img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #f0f0f0;
}

.author-info {
    display: flex;
    flex-direction: column;
}

.author-by {
    font-size: 0.75rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.2rem;
}

.author-name {
    font-size: 1rem;
    font-weight: 600;
    color: #222;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .opini-content {
        padding: 1.2rem;
    }
    
    .opini-label {
        padding: 0.6rem 1rem;
        font-size: 0.8rem;
    }
    
    .opini-title {
        font-size: 1.1rem;
        margin-bottom: 0.8rem;
    }
    
    .opini-excerpt {
        font-size: 0.85rem;
        margin-bottom: 1.2rem;
    }
    
    .opini-divider {
        margin-bottom: 1.2rem;
    }
    
    .author-avatar img {
        width: 45px;
        height: 45px;
    }
    
    .author-name {
        font-size: 0.9rem;
    }
}

/* ANIMATION */
.opini-latest {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.opini-latest:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}