:root {
    --primary-color: #007cba;
    --text-color: #333;
    --bg-color: #f4f6f8;
    --white: #ffffff;
    --border-color: #e2e8f0;
    --nav-active: #005a87;
    --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

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

body {
    font-family: var(--font-family);
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

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

a:hover {
    text-decoration: underline;
}

/* Header */
.site-header {
    background-color: var(--white);
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    font-weight: bold;
    font-size: 1.5rem;
    color: var(--text-color);
    text-decoration: none;
}
.logo:hover {
    text-decoration: none;
}

.logo img {
    height: 40px;
    width: auto;
    margin-right: 15px;
    border-radius: 5px;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-color);
}

/* Layout */
.layout-wrapper {
    display: flex;
    flex: 1;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    gap: 30px;
}

/* Sidebar */
.sidebar {
    flex: 0 0 280px;
}

.nav-title {
    font-weight: bold;
    margin-bottom: 15px;
    font-size: 1.1rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.main-nav ul {
    list-style: none;
}

.main-nav li {
    margin-bottom: 6px;
}

.main-nav a {
    display: block;
    padding: 8px 12px;
    color: var(--text-color);
    border-radius: 6px;
    transition: background-color 0.2s, color 0.2s;
    font-size: 0.95rem;
}

.main-nav li.active a,
.main-nav a:hover {
    background-color: #e0f2fe;
    color: #0369a1;
    text-decoration: none;
    font-weight: 500;
}

/* Content */
.content {
    flex: 1;
    background-color: var(--white);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    overflow: hidden;
}

.content h1, .content h2, .content h3 {
    margin-top: 1.5em;
    margin-bottom: 0.5em;
    line-height: 1.3;
    color: #1e293b;
}
.content h1:first-child, .content h2:first-child {
    margin-top: 0;
}

.content p {
    margin-bottom: 1.2em;
    font-size: 1rem;
}

.content ul, .content ol {
    margin-bottom: 1.2em;
    padding-left: 2em;
}

.content img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 2em auto;
    border-radius: 8px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.content figure {
    margin: 2em 0;
    text-align: center;
}

.content figure figcaption {
    font-size: 0.85rem;
    color: #64748b;
    margin-top: 0.5em;
}

/* Pagination Links */
.post-nav-links {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    text-align: center;
    font-size: 1.1rem;
}

.post-nav-links a.post-page-numbers,
.post-nav-links span.post-page-numbers {
    display: inline-block;
    padding: 6px 12px;
    margin: 0 4px;
    border-radius: 6px;
    text-decoration: none;
    background-color: var(--bg-color);
    color: var(--primary-color);
    transition: background-color 0.2s, color 0.2s;
}

.post-nav-links a.post-page-numbers:hover {
    background-color: #e0f2fe;
    color: #0369a1;
}

.post-nav-links span.current {
    background-color: var(--primary-color);
    color: var(--white);
    font-weight: bold;
}

/* Footer */
.site-footer {
    background-color: var(--white);
    border-top: 1px solid var(--border-color);
    padding: 20px 0;
    margin-top: auto;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.footer-links {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-links a {
    color: #64748b;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    
    .layout-wrapper {
        flex-direction: column;
        padding: 15px;
        gap: 15px;
    }
    
    .sidebar {
        display: none;
        flex: none;
        width: 100%;
        background-color: var(--white);
        padding: 20px;
        border-radius: 12px;
        box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    }
    
    .sidebar.active {
        display: block;
    }
    
    .content {
        padding: 20px;
    }

    .post-nav-links a.post-page-numbers,
    .post-nav-links span.post-page-numbers {
        margin-bottom: 8px;
    }
    
    .footer-container {
        flex-direction: column;
        text-align: center;
    }
    .footer-links {
        justify-content: center;
    }
}
