/* Central theme for the blog. Colors match consultant/index.html. */

:root {
    --primary: #1a5276;
    --secondary: #2980b9;
    --accent: #3498db;
    --light: #f8f9fa;
    --dark: #2c3e50;
    --text: #333333;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    color: var(--text);
    line-height: 1.6;
    background-color: var(--light);
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

a {
    color: var(--secondary);
    font-weight: 600;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.container {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */

header {
    background-color: var(--primary);
    color: white;
    min-height: 120px;
    display: flex;
    align-items: center;
    width: 100%;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    width: 100%;
}

.header-content a {
    color: white;
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-content a:hover {
    text-decoration: none;
}

.logo {
    height: 100px;
    width: auto;
}

header h1 {
    font-size: 2.5rem;
}

/* Main */

main {
    flex: 1;
    padding: 60px 0;
    background-color: white;
}

main h2 {
    color: var(--primary);
    font-size: 2rem;
    margin-bottom: 30px;
}

/* Index page */

.post-list {
    list-style: none;
}

.post-list li {
    border-bottom: 1px solid #e5e5e5;
}

.post-list a {
    display: block;
    padding: 15px 0;
    font-size: 1.2rem;
}

.post-list .empty {
    padding: 15px 0;
    color: var(--dark);
}

/* Post page */

.back-link {
    display: inline-block;
    margin-bottom: 30px;
}

.post-body h1 {
    color: var(--primary);
    font-size: 2.2rem;
    line-height: 1.3;
    margin-bottom: 30px;
}

.post-body h2,
.post-body h3,
.post-body h4 {
    color: var(--primary);
    line-height: 1.3;
    margin: 35px 0 15px;
}

.post-body p,
.post-body ul,
.post-body ol,
.post-body blockquote,
.post-body pre,
.post-body table {
    margin-bottom: 20px;
    font-size: 1.05rem;
    line-height: 1.7;
}

.post-body ul,
.post-body ol {
    padding-left: 25px;
}

.post-body li {
    margin-bottom: 5px;
}

.post-body blockquote {
    padding: 10px 20px;
    border-left: 4px solid var(--accent);
    background-color: var(--light);
    color: var(--dark);
}

.post-body code {
    font-family: Menlo, Consolas, monospace;
    font-size: 0.9em;
    padding: 2px 5px;
    background-color: var(--light);
    border-radius: 4px;
}

.post-body pre {
    padding: 15px;
    overflow-x: auto;
    background-color: var(--light);
    border-radius: 8px;
}

.post-body pre code {
    padding: 0;
}

.post-body img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.post-body table {
    border-collapse: collapse;
    display: block;
    overflow-x: auto;
}

.post-body th,
.post-body td {
    padding: 8px 12px;
    border: 1px solid #e5e5e5;
    text-align: left;
}

/* Footer */

footer {
    background-color: var(--dark);
    color: white;
    padding: 30px 0;
    text-align: center;
    width: 100%;
}

@media (max-width: 768px) {
    header h1 {
        font-size: 2rem;
    }

    .logo {
        height: 70px;
    }

    .post-body h1 {
        font-size: 1.8rem;
    }
}
