﻿/*@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}
*/
/* CARD */
.news-card {
    height: 100%;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.7s ease, box-shadow 0.7s ease;
    /*        border-color .2s ease,
        box-shadow .2s ease,
        transform .2s ease;*/
    /*    cursor: pointer;*/
/*    opacity: 0;
    transform: translateY(24px);*/


    pointer-events: auto !important;
}
    .news-card:hover {
        border-color: #fb923c;
        outline: 1px solid rgba(251, 146, 60, 0.35);
        outline-offset: -1px;
        /*        box-shadow: none;*/
        box-shadow: 0 4px 12px rgba(251, 146, 60, 0.08);
        transform: translateY(-4px);
    }

/*    .news-card.is-visible {
        animation: fadeUp 0.6s ease-out forwards;
    }*/


/* TITLE */
.news-title {
    /*    font-size: 16px;*/
    font-size: 15.5px;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 8px;
    color: #111827;
    transition: color 0.7s ease-in-out;
    /* clamp 2 dòng */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
 
    text-align: justify;
    text-justify: inter-word;
    hyphens: auto;
    word-break: break-word;
}

/* TITLE CAM KHI HOVER */
.news-card:hover .news-title {
    color: #f97316; /* orange-500 */
}



/* IMAGE WRAPPER */
.news-header {
    width: 100%;
    height: 120px;
    overflow: hidden;
    border-radius: 12px 12px 0 0;
    background: #f3f4f6;
}

    /* ẢNH */
    .news-header > img {
        width: 100% !important;
        height: 100% !important;
/*        object-fit: contain;*/
        display: block;
    }

/* BODY */
.news-body {
    padding: 16px;
    padding: 14px;
    flex: 1;
}


.news-desc {
    font-size: 14px;
    color: #6b7280;
    line-height: 1.5;

    text-indent: 9px;
    text-align: justify;
    text-justify: inter-word;
    hyphens: auto;
    word-break: break-word;

    /* clamp 3 dòng */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* FOOTER */
.news-footer {
    padding: 12px 16px;
    padding: 10px 14px;
    border-top: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
}

.news-date {
    color: #9ca3af;
}

.news-link {
    color: #2563eb;
    font-weight: 500;
    text-decoration: none;
}

    .news-link:hover {
        text-decoration: underline;
    }

@media (min-width: 1400px) {
    .news-header {
        height: 130px;
    }
}
