.post-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 26px;
}

.post-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 30px 28px;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.post-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
    border-color: rgba(21, 101, 192, 0.35);
}

.post-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.category-badge {
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: var(--primary-dark);
    background: var(--primary-light);
    border-radius: 999px;
    padding: 4px 12px;
}

.post-date {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.post-card h3 {
    font-size: 1.2rem;
    line-height: 1.35;
    margin-bottom: 12px;
}

.post-card h3 a {
    color: var(--primary-dark);
    text-decoration: none;
    transition: color 0.2s ease;
}

.post-card h3 a:hover {
    color: var(--accent);
}

.post-card > p {
    color: var(--text-muted);
    font-size: 0.96rem;
    flex-grow: 1;
}

.post-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 22px;
}

.read-more {
    color: var(--primary);
    font-weight: 700;
    text-decoration: none;
    font-size: 0.94rem;
}

.read-more:hover {
    text-decoration: underline;
}

.read-time {
    font-size: 0.84rem;
    color: var(--text-muted);
}

.article-container {
    max-width: 760px;
}

.article-container p {
    color: var(--text-muted);
    font-size: 1.05rem;
    margin-bottom: 22px;
    line-height: 1.8;
}

.article-container p:first-of-type {
    color: var(--text);
    font-size: 1.12rem;
    font-weight: 500;
}

.article-actions {
    margin-top: 34px;
}

.post-image {
    display: block;
    margin: -4px -4px 16px;
    border-radius: calc(var(--radius) - 4px);
    overflow: hidden;
}

.post-image img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    display: block;
}

.post-hero {
    margin-bottom: 28px;
    border-radius: var(--radius);
    overflow: hidden;
}

.post-hero img {
    width: 100%;
    max-height: 380px;
    object-fit: cover;
    display: block;
}
