/* ==========================================================================
   Blog Listing — card redesign
   Hero now handled by shared page-hero.css (<x-frontend.page-hero>).
   Scoped to .blog-card* only. No global overrides.
   ========================================================================== */

/* ---------- Card grid ---------- */
.blog-card {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #fff;
    border: 1px solid #ecedf2;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.blog-card:hover {
    box-shadow: 0 10px 28px rgba(13, 32, 56, 0.1);
    border-color: #e2e4ec;
}

/* thumb */
.blog-card__thumb {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
}

.blog-card__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* category pill (demo navy) */
.blog-card__cat {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 2;
    display: inline-block;
    padding: 6px 14px;
    border-radius: 50px;
    background: #143458;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: 0.2px;
    transition: background 0.25s ease;
}

.blog-card__cat:hover {
    background: #0d2038;
    color: #fff;
}

/* body */
.blog-card__body {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    padding: 22px 22px 24px;
}

.blog-card__title {
    margin: 0 0 10px;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.35;
}

.blog-card__title a {
    color: #143458;
    transition: color 0.25s ease;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card__title a:hover {
    color: var(--tg-theme-primary, #1a8f5c);
}

.blog-card__excerpt {
    margin: 0 0 18px;
    color: #6b7280;
    font-size: 15px;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* footer pinned to bottom for equal heights */
.blog-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid #f0f1f5;
}

.blog-card__date {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #8a919e;
    font-size: 14px;
}

.blog-card__date i {
    color: var(--tg-theme-primary, #1a8f5c);
}

.blog-card__more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--tg-theme-primary, #1a8f5c);
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    transition: gap 0.25s ease, color 0.25s ease;
}

.blog-card__more:hover {
    color: #143458;
    gap: 10px;
}

.blog-card__more i {
    transition: transform 0.25s ease;
}

.blog-card__more:hover i {
    transform: translateX(3px);
}

/* focus states (a11y) */
.blog-card__thumb:focus-visible,
.blog-card__cat:focus-visible,
.blog-card__title a:focus-visible,
.blog-card__more:focus-visible,
.blog-hero__chip:focus-visible {
    outline: 2px solid var(--tg-theme-primary, #1a8f5c);
    outline-offset: 3px;
    border-radius: 6px;
}

/* row spacing so cards breathe */
.blog-card-col {
    margin-bottom: 26px;
}
