/*
Theme Name: AssignmentAholic Editorial
Theme URI: https://assignmentaholic.com
Description: Lightweight, fast, SEO-optimized and AdSense-ready academic editorial theme.
Version: 1.0.0
Text Domain: assignmentaholic-theme
*/

:root {
    --bg: #f8fafc;
    --surface: #ffffff;
    --text: #1e293b;
    --muted: #64748b;
    --border: #e2e8f0;
    --primary: #0f4c81;
    --primary-dark: #0a355c;
    --accent: #e0f2fe;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-size: 17px;
    line-height: 1.72;
    color: var(--text);
    background: var(--bg);
}

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.site-header {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 50;
}
.header-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}
.site-brand .site-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin: 0;
    line-height: 1.2;
}
.site-brand .site-tagline {
    font-size: 0.82rem;
    color: var(--muted);
    margin: 2px 0 0;
}
.main-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    font-size: 0.95rem;
    font-weight: 500;
}
.main-nav a { color: var(--text); padding: 4px 2px; }
.main-nav a:hover { color: var(--primary); text-decoration: none; }

/* Main Layout */
.site-main { padding: 32px 0 48px; }
.layout-grid {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 32px;
    align-items: start;
}
@media (max-width: 860px) {
    .layout-grid { grid-template-columns: 1fr; }
}

.card, .article-shell {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 32px;
}
@media (max-width: 600px) {
    .card, .article-shell { padding: 20px; }
}

.breadcrumbs {
    font-size: 0.85rem;
    color: var(--muted);
    margin-bottom: 14px;
}
.breadcrumbs a { color: var(--muted); }

h1 {
    font-size: 1.95rem;
    line-height: 1.25;
    margin: 0 0 14px;
    color: #0f172a;
}
h2 {
    font-size: 1.4rem;
    margin: 28px 0 12px;
    color: #0f172a;
    border-bottom: 1px solid var(--border);
    padding-bottom: 6px;
}
h3 {
    font-size: 1.12rem;
    margin: 20px 0 8px;
    color: #1e293b;
}

.post-meta {
    font-size: 0.88rem;
    color: var(--muted);
    margin-bottom: 22px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}
.badge {
    display: inline-block;
    background: var(--accent);
    color: var(--primary-dark);
    padding: 2px 10px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* Post Cards Grid */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    gap: 20px;
    margin-top: 20px;
}
.post-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 22px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.post-card h3 {
    margin: 10px 0 8px;
    font-size: 1.05rem;
    line-height: 1.35;
}
.post-card p {
    font-size: 0.92rem;
    color: var(--muted);
    margin: 0 0 14px;
}
.read-more {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary);
}

/* Sidebar */
.sidebar .widget {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
}
.sidebar h3 {
    margin: 0 0 12px;
    font-size: 1.05rem;
    border-bottom: 1px solid var(--border);
    padding-bottom: 8px;
}
.sidebar ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
.sidebar li {
    padding: 6px 0;
    border-bottom: 1px dashed var(--border);
    font-size: 0.92rem;
}
.sidebar li:last-child { border-bottom: none; }

/* Pagination */
.pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 28px;
}
.pagination .page-numbers {
    display: inline-block;
    padding: 6px 12px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 0.9rem;
}
.pagination .current {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

/* Footer */
.site-footer {
    background: #0f172a;
    color: #cbd5e1;
    padding: 32px 0;
    font-size: 0.9rem;
}
.footer-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}
.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}
.footer-links a { color: #e2e8f0; }
.footer-links a:hover { color: #ffffff; }
