﻿.article-section {
    padding-top: 55px;
}

.article-header {
    background: linear-gradient(#ffffff, #F4FAFD);
}

    .article-header h2 {
        font-size: 25px;
        font-weight: bold;
        color: #0057A8;
        margin-bottom: 0
    }

.cards-articles {
    padding-top: 36px;
    padding-bottom: 75px;
    background-color: #F4FAFD;
}

.card-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(298px, 1fr));
    gap: 20px 10px;
}

    .card-wrapper.less-than-3 {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(298px, 298px));
        gap: 20px 10px;
    }

.card-article {
    border-radius: 16px;
    background-color: #F2F2F5;
}

    .card-article.less-than-3 {
        max-width: 298px;
    }

    .card-article img {
        width: 100%;
        height: auto;
        border-radius: 16px 16px 0 0;
        aspect-ratio: 1200 / 630;
        object-fit: cover;
    }

    .card-article .description {
        padding: 24px;
    }

        .card-article .description h3 {
            font-size: 17px;
            font-weight: 500;
            color: #0057A8;
            text-overflow: ellipsis;
            -webkit-line-clamp: 2;
            display: -webkit-box;
            overflow: hidden;
            -webkit-box-orient: vertical;
            min-height: 40px;
        }

        .card-article .description p {
            font-size: 14px;
            color: #242424;
            text-overflow: ellipsis;
            -webkit-line-clamp: 3;
            display: -webkit-box;
            overflow: hidden;
            -webkit-box-orient: vertical;
            min-height: 62px;
            margin-bottom: 0;
        }

.categories-wrapper {
    display: flex;
    justify-content: center;
}

.article-categories {
    margin-top: 25px;
    display: flex;
    justify-content: center;
    gap: 80px;
    max-width: fit-content;
    border-bottom: 1px solid #E3E5E5;
    transition: .3s;
}

    .article-categories .category {
        text-align: center;
        cursor: pointer;
        height: 100%;
        position: relative;
    }

        .article-categories .category p {
            font-size: 15px;
            font-weight: 500;
            color: #414141;
        }

            .article-categories .category p::before {
                content: "";
                position: absolute;
                width: 0;
                height: 3px;
                bottom: -2px;
                left: 50%;
                background-color: #00ADEE;
                transition: all 0.4s;
            }

        .article-categories .category.active p:before {
            width: 100%;
            left: 0;
        }

        .article-categories .category img {
            transition: .3s ease-in-out;
        }

        .article-categories .category:hover img {
            transform: scale(1.07);
        }

.interest-articles {
    display: flex;
    gap: 10px;
}

    .interest-articles .img-interest {
        width: 100%;
        max-width: 628px;
        max-height: 330px;
        min-height: 330px;
        border-radius: 16px;
        background-position: center;
        background-size: cover;
        background-repeat: no-repeat;
    }

        .interest-articles .img-interest img {
            width: 100%;
            opacity: 0;
            aspect-ratio: 16/9;
        }

    .interest-articles .box-content {
        padding: 40px 20px;
        border-radius: 16px;
        max-width: 440px;
        width: 100%;
        box-shadow: rgba(149, 157, 165, 0.2) 0px 8px 24px;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        background: #ffffff;
    }

        .interest-articles .box-content .tag {
            display: flex;
            align-items: baseline;
            gap: 5px;
        }

            .interest-articles .box-content .tag span {
                font-size: 15px;
                font-weight: 500;
                color: #414141;
                margin-bottom: 10px;
            }

        .interest-articles .box-content h3 {
            font-size: 24px;
            font-weight: bold;
            color: #0057A8;
            margin-bottom: 10px;
            line-height: 1.5;
            text-overflow: ellipsis;
            -webkit-line-clamp: 2;
            display: -webkit-box;
            overflow: hidden;
            -webkit-box-orient: vertical;
        }

        .interest-articles .box-content p {
            font-size: 14px;
            color: #5A5755;
            line-height: 1.5;
            text-overflow: ellipsis;
            -webkit-line-clamp: 3;
            display: -webkit-box;
            overflow: hidden;
            -webkit-box-orient: vertical;
        }

        .interest-articles .box-content a {
            cursor: pointer;
            font-size: 18px;
            font-weight: 500;
            color: #0057A8;
        }

.interest-swiper .swiper-pagination {
    position: absolute;
    text-align: center;
    transition: .3s opacity;
    transform: translate3d(0, 0, 0);
    z-index: 10;
}

.interest-swiper .swiper-pagination-bullet {
    width: 16px;
    height: 4px;
    display: inline-block;
    border-radius: 40px;
    background: #000;
    opacity: 0.2;
}

.interest-swiper .swiper-pagination-bullet-active {
    opacity: 1;
    background: #BED630;
}

.interest-swiper .swiper-wrapper {
    margin-bottom: 35px;
}

.page-link {
    border: 1px solid #CCCCCC;
    color: #5A5755;
    font-size: 14px;
    font-weight: 500;
    margin-inline: 8px;
    background-color: transparent;
    width: 34px;
    height: 34px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .page-link:focus {
        box-shadow: none;
    }

    .page-item.active .page-link {
        background-color: #c5d900;
        color: #ffffff;
        border: none;
    }

.page-link.active-link {
    background-color: #c5d900;
    color: #ffffff;
    border: none;
    border-radius: 20%;
}

.page-item .page-link:hover {
    background-color: #c5d900;
    color: #ffffff;
}

.page-item.disabled .page-link {
    border: none;
    color: #5A5755;
    background-color: transparent;
}

.pagination .page-link[aria-label="Previous"],
.pagination .page-link[aria-label="Next"] {
    background-color: transparent;
    border: none;
}

    .pagination .page-link[aria-label="Previous"]:hover,
    .pagination .page-link[aria-label="Next"]:hover {
        color: #5A5755;
    }


@media (max-width: 767px) {
    .article-header h2 {
        font-size: 18px;
    }

    .article-categories {
        gap: 40px;
    }

        .article-categories .category img {
            max-width: 60px;
        }

        .article-categories .category p {
            font-size: 12px;
        }

    .interest-articles {
        display: block;
    }

        .interest-articles .img-interest {
            max-width: 100%;
            height: 100%;
            border-radius: 16px 16px 0 0;
            min-height: unset;
        }

        .interest-articles .box-content {
            max-width: 100%;
            border-radius: 0 0 16px 16px;
            padding: 15px 20px;
        }

            .interest-articles .box-content h3 {
                font-size: 18px;
                min-height: 54px;
            }

            .interest-articles .box-content p {
                display: none;
            }
}

@media (max-width: 575px) {
    .article-categories {
        gap: 10px;
    }
}
