/* ==========================================================================
   COMPONENT: CARD POST (Thẻ bài viết Blog chuẩn BEM)
   Sử dụng toàn bộ Design Tokens từ global.css
   ========================================================================== */

.card-post {
    display: flex;
    flex-direction: column;
    width: 100%;
    position: relative;
    box-sizing: border-box;
    font-family: var(--font-lexend), sans-serif;
    transition: transform 0.3s ease;
}

/* 1. THUMBNAIL */
.card-post__thumb {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10.5;
    overflow: hidden;
    background-color: #F1F5F9;
    border-radius: 0 !important;
}

.card-post__thumb-link {
    display: block;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 0 !important;
}

.card-post__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 0 !important;
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.card-post:hover .card-post__img {
    transform: scale(1.05);
}

.card-post__placeholder {
    width: 100%;
    height: 100%;
    border-radius: 0 !important;
    background: linear-gradient(135deg, #F1F5F9 0%, #E2E8F0 100%);
}

/* 2. NỘI DUNG */
.card-post__content {
    display: flex;
    flex-direction: column;
    padding-top: 12px;
    flex-grow: 1;
}

.card-post__date {
    font-size: var(--fs-caption, 12px);
    font-weight: 300;
    color: var(--text-grey, #7B8A99);
    margin-bottom: 6px;
    line-height: 1.4;
    letter-spacing: 0.2px;
}

.card-post__title {
    font-size: 15px;
    font-weight: 500;
    line-height: 1.45;
    margin: 0 0 10px 0;
    color: var(--text-dark, #000000);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: calc(1.45em * 2);
}

.card-post__title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.card-post__title a:hover {
    color: var(--color-accent, #0084C7);
}

/* 3. LINK / CTA */
.card-post__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: var(--fs-btn-m, 13.5px);
    font-weight: 400;
    color: var(--text-dark, #000000);
    text-decoration: none;
    margin-top: auto;
    transition: color 0.2s ease, gap 0.2s ease;
    width: fit-content;
}

.card-post__arrow {
    display: inline-block;
    font-size: 15px;
    line-height: 1;
    transition: transform 0.2s ease;
}

.card-post__link:hover {
    color: var(--color-accent, #0084C7);
    gap: 8px;
}

.card-post__link:hover .card-post__arrow {
    transform: translateX(2px);
}
