/* =========================================================
   CARDS — Post cards, grids, section headings
   ========================================================= */

/* --- Section Headings --- */
.section-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 22px;
    border-bottom: 2px solid var(--border);
    padding-bottom: 10px;
}
.section-heading h2 {
    font-size: 1.35rem;
    margin: 0;
    position: relative;
    padding-left: 14px;
}
.section-heading h2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 22px;
    background: var(--primary);
    border-radius: 2px;
}
.section-heading a { font-size: 13px; color: var(--primary); font-weight: 600; }

/* --- Category Block --- */
.category-block { padding: 30px 0; }

/* --- Post Grid --- */
.post-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

/* --- Post Card --- */
.post-card {
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform .3s ease, box-shadow .3s ease;
}
.post-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}
.post-card-thumb {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    background: var(--light-gray);
}
.post-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
}
.post-card:hover .post-card-thumb img { transform: scale(1.06); }
.post-card-cat {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--primary);
    color: #fff;
    padding: 3px 10px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 3px;
}
.post-card-cat:hover { color: #fff; }
.post-card-body { padding: 16px 4px; }
.post-card-body h3 {
    font-size: 1.1rem;
    line-height: 1.4;
    margin-bottom: 10px;
}
.post-card-body h3 a:hover { color: var(--primary); }
.post-card-meta {
    font-size: 12px;
    color: var(--gray);
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
.post-card-meta span { display: flex; align-items: center; gap: 5px; }
.post-card-excerpt {
    font-size: 14px;
    color: var(--gray);
    margin-top: 10px;
    line-height: 1.6;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .post-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .post-grid { grid-template-columns: 1fr; }
}