/* ========================= */
/* Base Reset & Overrides    */
/* ========================= */

body {
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background-color: #fff;
    margin: 0;
    padding: 0;
    padding-top: 0 !important;
    color: #222;
}

section {
    padding: 30px 0 !important;
}

section.page {
    padding: 40px 0 60px !important;
}

/* Override Bootstrap col-lg-8 width constraint */
.page-column {
    max-width: 860px !important;
    flex: 0 0 100% !important;
}

.container {
    max-width: 1100px;
}

/* ========================= */
/* Navigation                */
/* ========================= */

.menu {
    padding: 10px;
    float: right;
    line-height: 35px;
}
.menu a {
    margin-left: 6px;
    color: #333;
    font-size: 16px;
    text-decoration: none;
}
.menu a:hover {
    text-decoration: underline;
}

/* ========================= */
/* Typography                */
/* ========================= */

h1, h1.title {
    color: #111;
    font-size: 46px;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -1px;
    text-align: left;
    margin-top: 48px;
    margin-bottom: 16px;
}

h2 {
    font-size: 24px;
    font-weight: 700;
    color: #222;
    line-height: 1.3;
}

h2.title {
    font-size: 2.3rem;
}

a {
    color: #007BFF;
    text-decoration: none;
}
a:hover {
    text-decoration: underline;
}

/* ========================= */
/* Images                    */
/* ========================= */

img {
    max-width: 100%;
    border-radius: 6px;
}

.page-content img {
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

/* ========================= */
/* Blog Post Page            */
/* ========================= */

.post-meta {
    margin: 4px 0 36px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e6e6e6;
    font-size: 15px;
    color: #757575;
}

.page-hero-image {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 40px;
    box-shadow: none;
}

.page-content {
    max-width: 100%;
    margin: 0 auto;
    font-size: 19px;
    padding: 0;
    line-height: 1.75;
    color: #333;
}

.page-content p {
    margin-bottom: 1.4em;
}

.page-content h2 {
    margin-top: 2em;
    margin-bottom: 0.6em;
}

.page-cover-image {
    background-size: cover;
    background-position: center;
    border-radius: 8px;
}

/* ========================= */
/* Blog Home - Overview      */
/* ========================= */

.blog-home {
    max-width: 780px;
    margin: 0 auto;
    padding: 48px 20px 20px;
}

.blog-home-title {
    font-size: 32px;
    font-weight: 800;
    color: #111;
    letter-spacing: -0.5px;
    margin: 0 0 8px;
}

.blog-home-subtitle {
    font-size: 16px;
    color: #888;
    margin: 0 0 36px;
    line-height: 1.5;
}

/* All post rows - uniform compact list */
.post-list {
    display: flex;
    flex-direction: column;
}

.post-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    padding: 22px 0;
    border-bottom: 1px solid #f0f0f0;
    text-decoration: none;
    color: inherit;
}
.post-item:first-child {
    padding-top: 0;
}
.post-item:hover {
    text-decoration: none;
    color: inherit;
}
.post-item:hover .post-item-title {
    color: #111;
    text-decoration: underline;
}

.post-item-image {
    width: 140px;
    min-width: 140px;
    height: 94px;
    object-fit: cover;
    border-radius: 6px;
    background-color: #f5f5f5;
    box-shadow: none;
    flex-shrink: 0;
}

.post-item-noimage {
    background: #f0f0f0;
}

.post-item-body {
    flex: 1;
    min-width: 0;
}

.post-item-title {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.35;
    color: #111;
    margin: 0 0 5px;
    letter-spacing: -0.2px;
    transition: color 0.15s;
    text-align: left;
}

.post-item-meta {
    font-size: 13px;
    color: #999;
    margin-bottom: 6px;
}

.post-item-desc {
    font-size: 14px;
    line-height: 1.5;
    color: #666;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ========================= */
/* Tables                    */
/* ========================= */

table {
    width: 100%;
    border-collapse: collapse;
    background-color: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    margin: 20px 0;
    border-radius: 6px;
    overflow: hidden;
}

table th, table td {
    padding: 14px 16px;
    text-align: left;
}

table thead {
    background-color: #007BFF;
    color: #fff;
}

table tbody tr:nth-child(even) {
    background-color: #fafafa;
}

table tbody tr:hover {
    background-color: #f5f5f5;
}

/* ========================= */
/* Misc                      */
/* ========================= */

pre, code {
    background: #f8f8f8;
    color: #333;
}

pre {
    border-left: 3px solid #ddd;
    padding: 14px;
    border-radius: 4px;
}

code {
    display: inline-block;
    padding: 0 0.5em;
    line-height: 1.4em;
    border-radius: 3px;
    font-size: 0.9em;
}

blockquote {
    padding: 12px 24px;
    margin: 1.5em 0;
    border-left: 4px solid #ddd;
    font-style: italic;
    color: #555;
    background: #fafafa;
    border-radius: 0 4px 4px 0;
}

.description {
    padding: 20px;
    margin-top: 20px;
}

.description p {
    max-width: 860px;
    margin: 0 auto;
    font-size: 18px;
    padding: 10px 0;
    line-height: 1.6;
}

.description h2 {
    max-width: 860px;
    margin: 0 auto;
}

.description a {
    color: #000;
}

.paginator {
    margin: 30px 0 60px;
}

/* ========================= */
/* Responsive                */
/* ========================= */

@media (max-width: 768px) {
    h1, h1.title {
        font-size: 32px;
        margin-top: 28px;
    }

    .page-content {
        font-size: 17px;
    }

    .blog-home {
        padding: 28px 14px 10px;
    }

    .blog-home-title {
        font-size: 26px;
    }

    .post-item {
        gap: 14px;
    }

    .post-item-image {
        width: 100px;
        min-width: 100px;
        height: 68px;
    }

    .post-item-title {
        font-size: 16px;
    }

    .post-item-desc {
        display: none;
    }
}
