/* =========================
   LOAD FONT AVO
========================= */

@font-face {
    font-family: 'avo';
    src: url('../fonts/UTM/UTMAvo.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'avo';
    src: url('../fonts/UTM/UTMAvoBold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}


/* =========================
   CONTAINER
========================= */

.container {
	max-width: 1200px;
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
    margin-right: auto;
    margin-left: auto;
}

/* responsive container */
@media (min-width: 576px) {
    .container {
        max-width: 540px;
    }
}

@media (min-width: 768px) {
    .container {
        max-width: 720px;
    }
}

@media (min-width: 992px) {
    .container {
        max-width: 960px;
    }
}

@media (min-width: 1200px) {
    .container {
        max-width: 1200px;
    }
}


/* =========================
   GRID
========================= */

.news-row {
	margin: 0 -60px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px 0;
}


/* mobile: 1 column */
@media (max-width: 575px) {

    .news-row {
        grid-template-columns: 1fr;
    }

}


/* =========================
   CARD
========================= */

.news-card {

    padding-left: 30px;
    padding-right: 30px;

}

/* remove shadow hover */
.news-card:hover {
    transform: none;
    box-shadow: none;
}


/* remove link hover effect */
.news-card__link {

    display: flex;
    flex-direction: column;

    color: inherit;
    text-decoration: none;

}

.news-card__link:hover {
    color: inherit;
    text-decoration: none;
}


/* =========================
   IMAGE
========================= */

.news-card__thumb {
    overflow: hidden;
    margin-bottom: 10px;
}

.news-card__thumb img {

    width: 100%;
    height: 278px;
    object-fit: cover;

    transition: .6s all !important;

}

.news-card__thumb:hover img {

    transform: scale(1.06);

}


/* tablet */
@media (max-width: 1023px) and (min-width: 767px) {

    .news-card__thumb img {

        height: 195px;

    }

}

/* small tablet */
@media (max-width: 767px) and (min-width: 576px) {

    .news-card__thumb img {

        height: 135px;

    }

}


/* mobile flex row */
@media (max-width: 575px) {
	.news-row {
        grid-template-columns: 1fr;

        margin-left: -15px;
        margin-right: -15px;
    }

    .news-card {
        padding-left: 15px;
        padding-right: 15px;
    }

    .news-card__link {
        flex-direction: row;
        gap: 8px;
    }

    .news-card__thumb,
    .news-card__content {
        width: 50%;
    }

    .news-card__thumb img {
        height: 135px;
    }
}


/* =========================
   CONTENT
========================= */

.news-card__content {

    display: flex;
    flex-direction: column;

}


/* =========================
   META ROW
========================= */

.news-card__meta {

    display: flex;
    align-items: center;
    gap: 10px;

}


/* TIME BOX */

.news-card__time-box {

    display: flex;
    align-items: center;
    gap: 4px;

    background: #3b3e47;
    padding: 2px 6px;

    color: #fff;

    font-size: 14px;

}


/* DATE TEXT */

.news-card__date-text {

    font-size: 16px;
    font-weight: 400;
    color: rgb(60, 62, 69);
    font-family: avo;

}


/* =========================
   TITLE
========================= */

.news-card__title {

    font-size: 20px;
    font-weight: 700;
    color: #3c3e45;
    font-family: avo;

    margin-top: 8px;
    margin-bottom: 8px;

}


/* =========================
   EXCERPT
========================= */

.news-card__excerpt {

    font-size: 16px;
    font-weight: 400;
    font-family: avo;
    color: rgb(60, 62, 69);

}


/* remove clamp */
.news-card__excerpt {

    display: block;
    overflow: visible;

}


/* =========================
   TITLE AREA
========================= */

.news-title {

    text-align: center;
    margin-bottom: 32px;

}

.news-title h2 {

    font-family: avo;
    font-size: 40px;
    font-weight: bold;
    color: #0165b3;

}


/* =========================
   PAGINATION
========================= */
.news-pagination {
    margin-top: 40px;
    margin-bottom: 30px;
    display: flex;
    justify-content: center;
}


/* LIST */
.pagination-list {
    display: flex;
    gap: 4px;
    align-items: center;
}


/* ITEM */
.page-item {
    display: flex;
    height: 35px;
    align-items: center;
    justify-content: center;

    background: #0165b3;
    color: #fff;

    padding: 0 14px 2px;

    font-size: 16px;
    font-family: avo;

    text-decoration: none;

    transition: background 0.2s ease;

    cursor: pointer;
}


/* đảm bảo link luôn trắng */
.page-item:link,
.page-item:visited {
    color: #fff;
    text-decoration: none;
}


/* HOVER */
.page-item:hover {
    background: #49b545;
    color: #fff;
    text-decoration: none;
}


/* ACTIVE */
.page-item.active {
    background: #49b545;
    color: #fff;
}


/* DOTS */
.page-dots {
    display: flex;
    align-items: center;
    padding: 0 6px;

    font-size: 16px;
    font-family: avo;

    color: #0165b3;
}


/* PREV NEXT */
.page-item.prev,
.page-item.next {
    font-weight: bold;
}


/* ALL LINKS RESET */
.news-pagination a.page-item,
.news-pagination a.page-item:link,
.news-pagination a.page-item:visited,
.news-pagination a.page-item:hover,
.news-pagination a.page-item:focus,
.news-pagination a.page-item:active {
    text-decoration: none !important;
    color: #fff !important;
}


/* riêng prev next để chắc chắn */
.page-item.prev:hover,
.page-item.next:hover {
    text-decoration: none !important;
    color: #fff !important;
    background: #49b545;
}