:root {
    --bg-color: #f7f9fa;
    --text-color: #2c3e50;
    --text-light: #7f8c8d;
    --primary-color: #2980b9;
    --border-color: #e0e6ed;
    --font-main: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body { 
    font-family: var(--font-main); 
    background-color: var(--bg-color); 
    color: var(--text-color); 
    line-height: 1.6; 
    font-size: 18px; 
}

a { color: var(--primary-color); text-decoration: none; transition: 0.2s; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; border-radius: 4px; }

/* Layout Base */
.container { 
    max-width: 1100px; 
    margin: 0 auto; 
    padding: 0 20px; 
    display: flex; 
    flex-wrap: wrap; 
    gap: 30px; 
}

header { 
    background: #fff; 
    padding: 20px 0; 
    border-bottom: 1px solid var(--border-color); 
    margin-bottom: 40px; 
    width: 100%; 
}

header .container { align-items: center; justify-content: space-between; }
header h1 a { color: var(--text-color); font-size: 1.8rem; font-weight: bold; text-decoration: none; }
header p { color: var(--text-light); font-size: 0.95rem; }

main { flex: 1 1 65%; min-width: 300px; }
aside { flex: 1 1 30%; min-width: 250px; }

/* Posts */
.post-card { 
    background: #fff; 
    padding: 25px; 
    border-radius: 8px; 
    margin-bottom: 25px; 
    border: 1px solid var(--border-color); 
}
.post-card h2 { font-size: 1.6rem; margin-bottom: 10px; line-height: 1.3; }
.post-card .meta { font-size: 0.9rem; color: var(--text-light); margin-bottom: 15px; }

/* Single Post */
.single-post h1 { font-size: 2.2rem; margin-bottom: 15px; line-height: 1.2; }
.single-post .content { font-size: 1.125rem; line-height: 1.8; margin-top: 25px; }
.single-post .content p { margin-bottom: 20px; }
.single-post .content h2, .single-post .content h3 { margin: 30px 0 15px; }

/* Sidebar & Widgets */
.widget { 
    background: #fff; 
    padding: 20px; 
    border-radius: 8px; 
    margin-bottom: 25px; 
    border: 1px solid var(--border-color); 
}
.widget h3 { margin-bottom: 15px; font-size: 1.2rem; border-bottom: 2px solid var(--primary-color); display: inline-block; padding-bottom: 5px; }

/* Forms & UI */
input[type="text"], input[type="password"], textarea { 
    width: 100%; 
    padding: 12px; 
    margin-bottom: 15px; 
    border: 1px solid var(--border-color); 
    border-radius: 4px; 
    font-family: inherit; 
    font-size: 1rem;
}
button { 
    background: var(--primary-color); 
    color: #fff; 
    border: none; 
    padding: 12px 24px; 
    cursor: pointer; 
    border-radius: 4px; 
    font-size: 1rem; 
    font-weight: bold;
}
button:hover { background: #1a5276; }

/* AdSense Placeholders */
.ads-box { 
    background: #f0f0f0; 
    text-align: center; 
    padding: 20px; 
    border: 1px dashed #ccc; 
    margin: 20px 0; 
    font-size: 0.9rem; 
    color: var(--text-light); 
    overflow: hidden;
}

footer { 
    width: 100%; 
    text-align: center; 
    padding: 25px 0; 
    margin-top: 50px; 
    border-top: 1px solid var(--border-color); 
    background: #fff; 
    color: var(--text-light); 
}