/* Layout Grid (Main + Sidebar) */
.site-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 40px;
    padding: 1.5rem 15px;
    /* Pindahkan padding main ke wrapper */
    min-height: 60vh;
    align-items: start;
}

/* Reset Main padding inside grid */
.site-layout main {
    padding: 0;
    min-height: auto;
}

/* Sidebar Styles */
.sidebar-widget {
    background: #fff;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 2rem;
    border: 1px solid #eee;
}

.widget-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1.2rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-orange);
    display: inline-block;
    color: var(--primary-blue);
    font-family: var(--font-heading);
}

.popular-post-item {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 2rem;
    align-items: flex-start;
}

.popular-post-item:last-child {
    margin-bottom: 0;
}

.popular-post-thumb {
    width: 100%;
    height: 160px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
}

.popular-post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.popular-post-item:hover .popular-post-thumb img {
    transform: scale(1.05);
}

.popular-post-info {
    width: 100%;
}

.popular-post-title {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 8px;
    display: block;
    color: var(--text-dark);
    text-decoration: none;
    transition: color 0.2s;
    font-family: var(--font-heading);
}

.popular-post-title:hover {
    color: var(--primary-orange);
}

.popular-post-views {
    font-size: 0.8rem;
    color: #999;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Responsive Sidebar */
@media (max-width: 992px) {
    .site-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .sidebar-widget {
        padding: 1.5rem;
    }
}