:root {
    --font-main: 'Inter', 'Segoe UI', Arial, sans-serif;
    --color-bg: #ffffff;
    --color-card-bg: #ffffff;
    --color-primary: #074165;
    --color-secondary: #4ba3f7;
    --color-meta: #444444;
    --color-desc: #444444;
    --color-title: #37423b;
    --color-shadow: rgba(60,80,180,0.06);
    --color-shadow-hover: rgba(60,80,180,0.13);
    --color-img-bg: #e5e7eb;
    --color-noimg: #bbb;
    --radius-card: 14px;
    --radius-modal: 12px;
    --shadow-card: 0 2px 12px var(--color-shadow);
    --shadow-card-hover: 0 8px 32px var(--color-shadow-hover);
    --shadow-modal: 0 4px 32px rgba(0,0,0,0.25);
}
.blog-header {
    margin: 48px 0 32px 0;
}
.blog-header h1 {
    font-size: 2.7em;
    font-weight: 800;
    margin: 0 0 12px 0;
    color: var(--color-title);
    letter-spacing: -1px;
}
.blog-header p {
    color: #555;
    font-size: 1.2em;
    margin: 0;
}
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 18px;
}
.post-card {
    background: var(--color-card-bg);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.2s, transform 0.2s;
    cursor: pointer;
    min-height: 480px;
}
.post-card:hover {
    box-shadow: var(--shadow-card-hover);
    transform: translateY(-4px) scale(1.01);
}
.post-img-area {
    width: 100%;
    height: 260px;
    background: var(--color-img-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.post-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    background: var(--color-img-bg);
    transition: transform 0.2s;
}
.post-card:hover .post-img {
    transform: scale(1.04);
}
.post-content {
    flex: 1;
    padding: 28px 24px 18px 24px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}
.post-title {
    font-size: 1.35em;
    font-weight: 700;
    margin: 0 0 10px;
    color: var(--color-primary);
    letter-spacing: -0.5px;
}
.post-meta {
    font-size: 0.98em;
    color: var(--color-meta);
    margin-bottom: 10px;
}
.post-desc {
    margin: 0 0 12px;
    color: var(--color-desc);
    line-height: 1.7;
    font-size: 1.08em;
}
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.85);
    align-items: center;
    justify-content: center;
}
.modal.active {
    display: flex;
}
.modal-img {
    max-width: 90vw;
    max-height: 90vh;
    border-radius: var(--radius-modal);
    box-shadow: var(--shadow-modal);
}
.modal-close {
    position: absolute;
    top: 32px;
    right: 48px;
    font-size: 2.5em;
    color: #fff;
    cursor: pointer;
    font-weight: 700;
    z-index: 1001;
    background: none;
    border: none;
}
@media (max-width: 900px) {
    .container { padding: 0 2vw 24px 2vw; }
    .blog-header { margin: 24px 0 12px 0; }
    .posts-grid { gap: 10px; }
    .post-content { padding: 14px 8px 8px 8px; }
    .post-card { min-height: 220px; }
}
@media (max-width: 600px) {
    .container { padding: 0 1vw 12px 1vw; }
    .blog-header h1 { font-size: 1.2em; }
    .post-content { padding: 8px 2px 6px 2px; }
    .post-card { min-height: 120px; }
    .posts-grid { grid-template-columns: 1fr; }
}
