/* 
---------------------------------------------
                    PR 01
--------------------------------------------- 
*/
@import url("../components/pagination.css");
@import url("../components/serch.css");

/* cont1 */
.news-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 40px;
}

.cont-lead .lead {
    margin-top: 10px;
    color: var(--black-800);
    font-size: var(--font-lg);
}

.news-grid {
    margin-top: 90px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 120px 40px;
}

.news-card a {
    display: block;
    transition: transform .22s ease, box-shadow .22s ease;
}

.news-card a:hover {
    transform: translateY(-2px);
}

.news-card .thumb {
    width: 100%;
    height: 270px;
    border: 1px solid var(--black-500);
    border-radius: 20px;
    overflow: hidden;
    transition: transform .25s ease;
}

.news-card .thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .8s ease;
}

.news-card a:hover .thumb img {
    transform: scale(1.14)
}

.news-card .meta {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.news-card .title {
    font-size: var(--font-2xl);
    font-weight: 600;
    line-height: 36px;
    white-space: normal;
    word-break: keep-all;
    overflow-wrap: anywhere;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    word-wrap: break-word;
    transition: color .2s ease;
}

.news-card a:hover .title {
    color: var(--primary);
}

.news-card .excerpt {
    display: -webkit-box;
    color: var(--black-800);
    font-size: var(--fontbase);
    font-weight: 500;
    line-height: 25.6px;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;
}

.news-card .date {
    color: var(--black-600);
    font-size: var(--font-base);
    font-weight: 500;
    line-height: 25.6px;
}

@media (max-width: 1440px) {
    .news-head {
        gap: 32px;
    }

    .news-grid {
        margin-top: 80px;
        grid-template-columns: repeat(3, 1fr);
        gap: 100px 32px;
    }

    .news-card .thumb {
        height: 250px;
    }

    .news-card .title {
        font-size: var(--font-xl);
        line-height: 1.5;
    }
}

@media (max-width: 1280px) {
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 80px 28px;
    }

    .news-card .thumb {
        height: 240px;
    }

    .news-card .title {
        font-size: var(--font-lg);
    }
}

@media (max-width: 1024px) {
    .news-head {
        flex-direction: column;
        align-items: stretch;
        gap: 24px;
    }

    .cont-lead .lead {
        font-size: var(--font-md);
    }

    .news-grid {
        margin-top: 60px;
        grid-template-columns: repeat(2, 1fr);
        gap: 60px 24px;
    }

    .news-card .thumb {
        height: 220px;
    }

    .news-card .meta {
        gap: 12px;
    }

    .news-card .title {
        font-size: var(--font-md);
        line-height: 1.45;
    }

    .news-card .date {
        font-size: var(--font-base);
    }
}

@media (max-width: 768px) {
    .news-grid {
        margin-top: 44px;
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .news-card .thumb {
        height: 210px;
    }

    .news-card .title {
        font-size: var(--font-lg);
        line-height: 1.45;
    }

    .news-card .excerpt {
        line-height: 1.5;
    }

    .pager .pager-list {
        gap: 6px;
    }
}

@media (max-width: 480px) {
    .news-head {
        gap: 18px;
    }

    .cont-lead .lead {
        margin-top: 5px;
        font-size: var(--font-base);
        white-space: normal;
    }

    .news-grid {
        margin-top: 36px;
        gap: 28px;
    }

    .news-card .thumb {
        height: 190px;
        border-radius: 16px;
    }

    .news-card .meta {
        margin-top: 16px;
        gap: 10px;
    }

    .news-card .title {
        font-size: var(--font-md);
        line-height: 1.4;
    }

    .news-card .excerpt {
        font-size: var(--font-sm);
        line-height: 1.45;
    }

    .news-card .date {
        font-size: var(--font-sm);
    }

    .pager .pager-list {
        gap: 4px;
    }
}