/*
Theme Name: iDesa
Theme URI: https://updesa.com/
Author: Mariyadi
Author URI: https://updesa.com/mariyadi
Description: Tema modern HTML5, ringan, SEO-friendly, mobile-responsive, dan sangat optimal untuk pendapatan Google AdSense.
Version: 3.0
Text Domain: idesa
*/

/* 1. Core Reset & Base */
* { box-sizing: border-box; -webkit-font-smoothing: antialiased; }
body { font-family: 'Roboto', sans-serif; line-height: 1.7; color: #333; margin: 0; background: #f0f2f5; }
a { color: #1a73e8; text-decoration: none; transition: 0.2s; }
a:hover { color: #0d47a1; }
h1, h2, h3, h4 { color: #1a1a1a; margin-top: 0; font-weight: 700; }
img { max-width: 100%; height: auto; border-radius: 8px; }

/* 2. Layout Structure */
.container { max-width: 1140px; margin: 0 auto; padding: 0 20px; }
.site-main { display: grid; grid-template-columns: 1fr; gap: 30px; padding: 30px 0; }
@media (min-width: 992px) { .site-main { grid-template-columns: 2fr 1fr; } }

/* 3. Header & Navigation (Fixed Menu & Submenu) */
.site-header { background: #fff; border-bottom: 1px solid #e1e8ed; position: sticky; top: 0; z-index: 9999; box-shadow: 0 2px 10px rgba(0,0,0,0.05); }
.header-flex { display: flex; justify-content: space-between; align-items: center; height: 70px; }
.logo h1 { font-size: 22px; margin: 0; text-transform: uppercase; }

.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; }
.main-nav li { position: relative; }
.main-nav a { display: block; padding: 0 15px; line-height: 70px; color: #4a5568; font-weight: 500; }
.main-nav a:hover, .main-nav li:hover > a { color: #1a73e8; background: rgba(26, 115, 232, 0.05); }

/* Dropdown Desktop */
.main-nav ul ul { 
    position: absolute; top: 100%; left: 0; width: 200px; background: #fff; 
    flex-direction: column; display: block; visibility: hidden; opacity: 0; 
    transform: translateY(10px); transition: 0.3s; box-shadow: 0 5px 15px rgba(0,0,0,0.1); 
    border-radius: 0 0 8px 8px; 
}
.main-nav ul ul ul { top: 0; left: 100%; border-radius: 8px; }
.main-nav li:hover > ul { visibility: visible; opacity: 1; transform: translateY(0); }
.main-nav ul ul a { line-height: 45px; border-bottom: 1px solid #f0f0f0; }

/* Mobile Menu */
.menu-toggle { display: none; background: none; border: none; cursor: pointer; padding: 10px; }
.menu-toggle span { display: block; width: 25px; height: 3px; background: #333; margin: 5px 0; transition: 0.3s; }

@media (max-width: 991px) {
    .menu-toggle { display: block; }
    .main-nav { 
        position: absolute; top: 70px; left: 0; width: 100%; background: #fff; 
        max-height: 0; overflow: hidden; transition: 0.4s ease-in-out; 
    }
    .main-nav.toggled { max-height: 100vh; overflow-y: auto; border-top: 1px solid #eee; }
    .main-nav ul { flex-direction: column; }
    .main-nav a { line-height: 55px; border-bottom: 1px solid #f7f7f7; }
    .main-nav ul ul { position: static; display: none; visibility: visible; opacity: 1; transform: none; width: 100%; background: #f8fafc; }
    .main-nav ul ul a { padding-left: 35px; }
    .menu-item-has-children > a::after { content: ' ▼'; font-size: 10px; float: right; }
}

/* 4. Breadcrumbs */
.breadcrumbs { 
    background: #fff; padding: 12px 20px; border-radius: 8px; margin-top: 20px; 
    font-size: 13px; color: #718096; border: 1px solid #edf2f7; box-shadow: 0 2px 5px rgba(0,0,0,0.02);
}
.breadcrumbs a { color: #1a73e8; font-weight: 500; }
.breadcrumbs .sep { margin: 0 8px; color: #cbd5e0; }

/* 5. Article & Content */
.content-single { background: #fff; padding: 35px; border-radius: 12px; border: 1px solid #edf2f7; box-shadow: 0 4px 15px rgba(0,0,0,0.05); }
.entry-meta { font-size: 12px; color: #1a73e8; font-weight: 700; margin-bottom: 10px; text-transform: uppercase; }
.entry-meta span { color: #718096; font-weight: 400; margin-left: 8px; }
.entry-header h1 { font-size: 32px; line-height: 1.2; margin-bottom: 20px; }
.entry-content { font-size: 18px; line-height: 1.8; color: #2d3748; }

/* 6. Sidebar & Widgets */
.widget { background: #fff; padding: 25px; border-radius: 12px; margin-bottom: 25px; border: 1px solid #edf2f7; box-shadow: 0 4px 15px rgba(0,0,0,0.05); }
.widget-title { font-size: 17px; margin-bottom: 20px; border-bottom: 2px solid #1a73e8; display: inline-block; padding-bottom: 5px; }
.widget ul { list-style: none; padding: 0; }
.widget li { padding: 10px 0; border-bottom: 1px solid #f7fafc; }

/* 7. Comments */
#comments { background: #fff; padding: 35px; border-radius: 12px; margin-top: 30px; border: 1px solid #edf2f7; box-shadow: 0 4px 15px rgba(0,0,0,0.05); }
.comment-list { list-style: none; padding: 0; }
.comment-body { display: flex; gap: 20px; padding: 20px 0; border-bottom: 1px solid #eee; }
.comment-author img { border-radius: 50%; }
.comment-form input, .comment-form textarea { width: 100%; padding: 12px; border: 1px solid #ddd; border-radius: 8px; margin-bottom: 15px; background: #f9f9f9; }
.submit { background: #1a73e8; color: #fff; border: none; padding: 12px 30px; border-radius: 8px; cursor: pointer; font-weight: 600; }

/* 8. Footer */
.site-footer { background: #1a202c; color: #e2e8f0; padding: 40px 0; text-align: center; margin-top: 50px; }