/*
Theme Name: Sokuja Modern Engine
Author: Sokuja Team
Description: Modern, Clean, and Super Fast SEO Theme.
Version: 2.0
*/

:root {
    --primary-color: #e63946;
    --dark-color: #1d3557;
    --light-bg: #f8f9fa;
    --text-main: #2b2d42;
}

body { font-family: 'Inter', -apple-system, sans-serif; line-height: 1.6; color: var(--text-main); background: var(--light-bg); margin: 0; }
.container { max-width: 1200px; margin: auto; padding: 0 20px; }

/* Header Modern */
header { background: #fff; box-shadow: 0 2px 10px rgba(0,0,0,0.05); padding: 15px 0; position: sticky; top: 0; z-index: 100; }
header .container { display: flex; justify-content: space-between; align-items: center; }
header a.logo { font-size: 28px; font-weight: 800; color: var(--primary-color); text-decoration: none; letter-spacing: -1px; }

/* Grid Blog Modern */
.main-content { display: grid; grid-template-columns: 2fr 1fr; gap: 40px; margin-top: 40px; }
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 25px; }

/* Card Style */
.card { background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 4px 6px rgba(0,0,0,0.02); transition: transform 0.3s; }
.card:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0,0,0,0.05); }
.card img { width: 100%; height: 200px; object-fit: cover; }
.card-body { padding: 20px; }
.card-body h2 { font-size: 1.25rem; margin: 0 0 10px; line-height: 1.4; }
.card-body a { text-decoration: none; color: var(--dark-color); }

/* Sidebar & Content */
.sokuja-toc { background: #fff; border-radius: 12px; padding: 20px; border-left: 4px solid var(--primary-color); }
.entry-content img { border-radius: 12px; margin: 20px 0; }

@media (max-width: 768px) {
    .main-content { grid-template-columns: 1fr; }
}

/* Sidebar Styling */
.widget { background: #fff; padding: 25px; border-radius: 12px; margin-bottom: 25px; box-shadow: 0 4px 6px rgba(0,0,0,0.02); }
.widget-title { font-size: 1.1rem; border-bottom: 2px solid var(--primary-color); display: inline-block; margin-bottom: 15px; padding-bottom: 5px; }
.widget ul { list-style: none; padding: 0; }
.widget li { padding: 8px 0; border-bottom: 1px solid #f0f0f0; }
.widget li:last-child { border: none; }

/* Footer Styling */
.site-footer { background: #fff; border-top: 1px solid #eee; margin-top: 60px; }
.footer-links ul { list-style: none; padding: 0; }
.footer-links a { text-decoration: none; color: #666; }
.footer-links a:hover { color: var(--primary-color); }

/* Sidebar Tetap Mengikuti Scroll */
@media (min-width: 992px) {
    .sidebar {
        position: -webkit-sticky;
        position: sticky;
        top: 90px; /* Jarak dari header sticky */
        align-self: start;
    }
}

/* Pagination Styling */
.pagination {
    grid-column: 1 / -1;
    display: flex;
    justify-content: center;
    margin-top: 40px;
}
.page-numbers {
    padding: 10px 18px;
    margin: 0 5px;
    background: #fff;
    border-radius: 8px;
    text-decoration: none;
    color: var(--dark-color);
    font-weight: bold;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}
.page-numbers.current {
    background: var(--primary-color);
    color: #fff;
}