/* =============================================================================
   blog-list.css — professional blog listing grid (used by blogs.php).
   Card markup: .post-card > a.post-card__img (img + .post-card__cat)
                          + .post-card__body (meta, title, excerpt, link)
   ============================================================================= */

.blog-grid { margin-top: 4px; }

.post-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #fff;
    border: 1px solid var(--th-border-color2);
    border-radius: 20px;
    overflow: hidden;
    transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
}
.post-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 22px 44px rgba(58, 45, 34, .12);
    border-color: transparent;
}

/* Image — fixed aspect ratio so every card lines up regardless of source size */
.post-card__img {
    position: relative;
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--smoke-color);
}
.post-card__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .6s cubic-bezier(.2, .6, .2, 1);
}
.post-card:hover .post-card__img img { transform: scale(1.07); }

/* Category badge */
.post-card__cat {
    position: absolute;
    top: 16px;
    left: 16px;
    background: var(--theme-color);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .3px;
    text-transform: uppercase;
    padding: 6px 14px;
    border-radius: 30px;
}

/* Body */
.post-card__body {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    padding: 22px 24px 26px;
}
.post-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 18px;
    margin-bottom: 12px;
    font-size: 14px;
    color: var(--body-color);
}
.post-card__meta span { display: inline-flex; align-items: center; }
.post-card__meta i { color: var(--theme-color); margin-right: 7px; }

.post-card__title {
    font-size: 20px;
    line-height: 1.4;
    font-weight: 700;
    margin: 0 0 12px;
    /* clamp to 2 lines */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.post-card__title a { color: var(--title-color); transition: color .25s ease; }
.post-card__title a:hover { color: var(--theme-color); }

.post-card__excerpt {
    font-size: 15px;
    line-height: 1.7;
    color: var(--body-color);
    margin: 0 0 20px;
    /* clamp to 3 lines */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Read more — sits at the bottom of every card */
.post-card__link {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 15px;
    color: var(--title-color);
    transition: color .25s ease, gap .25s ease;
}
.post-card__link i { color: var(--theme-color); transition: transform .25s ease; }
.post-card__link:hover { color: var(--theme-color); gap: 12px; }
.post-card__link:hover i { transform: translateX(3px); }

@media (max-width: 575px) {
    .post-card__body { padding: 20px 20px 24px; }
    .post-card__title { font-size: 18px; }
}
