/* Breadcrumb */
.section-breadcrumb {
    background-color: var(--fs-color-primary);
}

/* About */
.section.section-news-about::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 60%;
    top: 0;
    left: 0;
    right: 0;
    bottom: auto;
    background-color: var(--fs-color-primary);
}

.custom-news-section {
    padding-bottom: 120px;
}

/* Listing */
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 42px 48px;
    padding-bottom: 70px;
    margin-bottom: 2rem !important;
    position: relative;
}

.news-grid::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 1px;
    bottom: 0;
    background-color: #ccc;
}

.tag-button {
    padding: .25rem .625rem;
    border-radius: 999px;
    background: #f7f7f7;
    margin: 0 .5rem 3rem;
    display: inline-block;
}

.tag-button:hover {
    background: var(--fs-color-primary);
    color: #ffffff !important;
}

.tag-button.active {
    background: var(--fs-color-primary);
    color: #ffffff !important;
}

.main-post-wrapper {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.main-post-wrapper img {
    width: 100%;
    height: auto;
    aspect-ratio: 475/357;
    object-fit: cover;
}

.main-post-wrapper img {
    border-radius: 1rem;
}

.news__tag {
    padding: .25rem .625rem;
    margin-right: .75rem;
    color: var(--fs-color-primary);
    border: 1px solid var(--fs-color-primary);
    border-radius: 1rem / 50%;
    transition: all .3s ease;
}

.news__title {
    line-height: 1.5em;
    max-height: 4.5rem;
    height: 4.5rem;
}

.news__title,
.news__content {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.main-post-wrapper .post-inner {
    margin: 1rem 0;
    padding-bottom: 1rem;
}

.post-inner::before {
    content: "";
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 1px;
    background-color: rgba(0, 0, 0, 0.1);
}

.post-inner::after {
    content: "";
    position: absolute;
    bottom: 0;
    width: 0%;
    height: 1px;
    background-color: var(--fs-color-primary);
    transition: all .3s ease;
}

.main-post__image-wrapper {
    overflow: hidden;
    border-radius: 1rem;
}

.main-post-wrapper img {
    transition: transform 0.5s ease;
}

.main-post-wrapper:hover {
    cursor: pointer;
}

.main-post-wrapper:hover img {
    transform: scale(1.1);
}

.main-post-wrapper:hover .news__tag {
    color: #ffffff;
    background: var(--fs-color-primary);
}

.main-post-wrapper:hover .news__title {
    color: var(--fs-color-primary) !important;
}

.main-post-wrapper:hover .post-inner::after {
    width: 100%;
}

.main-post-wrapper:hover .post-inner::before {
    height: 0;
}

/* Pagination */
.arrow-left {
    transform: scaleX(-1);
}

.pagination {
    color: #242424;
}

.page-numbers {
    display: inline-block;
    width: 36px !important;
    height: 36px;
    padding: .25rem .625rem;
    border-radius: 50%;
}

.page-numbers:hover:not(.dots),
.page-numbers.current {
    background: var(--fs-color-primary);
    color: #ffffff;
}

.page-numbers {
    margin: 0 .75rem;
}

.prev.page-numbers {
    margin-right: .5rem;
}

.next.page-numbers {
    margin-left: .5rem;
}

/**
* MEDIA 
*/
/* Desktop lớn (Widescreen) */
@media screen and (max-width: 1921px) {
    /* CSS cho màn hình <= 1920px */
}

/* Desktop thường / Laptop lớn */
@media screen and (max-width: 1441px) {
    /* CSS cho màn hình <= 1440px */
}

/* Laptop nhỏ / Tablet landscape lớn */
@media screen and (max-width: 1201px) {
    /* CSS cho màn hình <= 1200px */
}

/* Nest hub */
@media screen and (max-width: 1025px) {

    /* CSS cho màn hình <= 1025px */

}

/* Tablet landscape / Laptop nhỏ */
@media screen and (max-width: 993px) {
    /* CSS cho màn hình <= 992px */
}

/* Ipad Air */
@media screen and (max-width: 821px) {

    /* CSS cho màn hình <= 821px */
    .program-courses-grid {
        grid-template-columns: repeat(3, 1fr) !important;
    }

    .page-numbers {
        margin: 0 .5rem;
    }

    .prev.page-numbers {
        margin-right: .125rem;
    }

    .next.page-numbers {
        margin-left: .125rem;
    }
}

/* Tablet portrait lớn / Mobile landscape */
@media screen and (max-width: 769px) {

    /* CSS cho màn hình <= 768px */

}

/* Mobile landscape / Phablet */
@media screen and (max-width: 577px) {

    /* CSS cho màn hình <= 576px */

}

/* Mobile IP 14Pro Max */
@media screen and (max-width: 431px) {

    /* CSS cho màn hình <= 431px */
    .news-grid {
        grid-template-columns: repeat(1, 1fr) !important;
    }

    .section.section-news-about::before {
        height: 75%;
    }

    .about-news__content br {
        display: none;
    }
}

/* Mobile portrait lớn (iPhone 6/7/8 Plus) */
@media screen and (max-width: 415px) {

    /* CSS cho màn hình <= 414px */

}

/* Mobile portrait trung bình (iPhone X/11 Pro) */
@media screen and (max-width: 391px) {

    /* CSS cho màn hình <= 390px */
}

/* Mobile portrait nhỏ (iPhone SE, Android nhỏ) */
@media screen and (max-width: 376px) {
    /* CSS cho màn hình <= 375px */
}