.articles {
    padding-top: 165px;
}
.articles__showmore {
    margin-top: 30px;
}
.articles__showmore-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 40px;
    background-color: rgba(0, 0, 0, 0);
    border: 1px solid #dfe4f3;
    border-radius: 5px;
    color: #021549;
    text-decoration: underline;
    cursor: pointer;
}
.articles__showmore-button:hover {
    background-color: #f9faff;
}
.articles .pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    color: #021549;
    font-size: 20px;
    margin-top: 30px;
}
.articles .pagination__num {
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    transition: all 0.3s ease;
    border-radius: 50%;
}
.articles .pagination__num:hover {
    color: #fff;
    background-color: #850003;
}
.articles .pagination__num.current {
    color: #fff;
    background-color: #850003;
}
.articles .pagination .arrow {
    width: 9px;
    height: 9px;
    border-left: 1px solid #021549;
    border-bottom: 1px solid #021549;
}
.articles .pagination .arrow:hover {
    border-left: 1px solid #021549;
    border-bottom: 1px solid #021549;
    cursor: pointer;
}
.articles .pagination .arrow-left {
    transform: rotate(45deg);
}
.articles .pagination .arrow-right {
    transform: rotate(-135deg);
}
.articles__tabs {
    margin-top: 40px;
    display: flex;
    gap: 15px;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 15px;
    scrollbar-width: thin;
    scrollbar-color: #850003 #eff3ff;
}

.articles__tabs::-webkit-scrollbar {
    height: 6px;
}

.articles__tabs::-webkit-scrollbar-track {
    background: #eff3ff;
    border-radius: 3px;
}

.articles__tabs::-webkit-scrollbar-thumb {
    background: #850003;
    border-radius: 3px;
}

.articles__tabs::-webkit-scrollbar-thumb:hover {
    background: #a80f12;
}

.articles__tabs-item {
    padding: 9px 20px;
    border-radius: 25px;
    background-color: #eff3ff;
    color: #021549;
    border: none;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-block;
}

.articles__tabs-item:hover {
    background-color: #dfe4f3;
    transform: translateY(-1px);
}

.articles__tabs-item.active {
    background-color: #021549;
    color: #fff;
}

.articles__wrapper {
    margin-top: 30px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    column-gap: 16px;
    row-gap: 40px;
}

.articles_main {
    margin-top: 140px;
}

.articles_main__wrapper {
    display: flex;
    flex-wrap: nowrap;
    gap: 16px;
    justify-content: space-between;
    margin-top: 40px;
}
.articles_main__card {
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.1s ease-in;
    max-width: 456px;
    width: 100%;
}
.articles_main__card-image {
    position: relative;
    padding: 20px;
    width: 100%;
    height: 368px;
    transition: all 0.1s ease-in;
}
.articles_main__card-image::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: #850003;
    opacity: 0;
    z-index: 5;
}
.articles_main__card-image img {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
}
.articles_main__card-tag {
    display: block;
    position: relative;
    z-index: 2;
    background-color: #021549;
    border-radius: 25px;
    padding: 9px 12px;
    color: #fff;
    max-width: fit-content;
}
.articles_main__card-title {
    margin-top: 20px;
    padding: 5px 10px;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    overflow: hidden;
    z-index: 4;
}
.articles_main__card-title a {
    text-overflow: ellipsis;
}
.articles_main__card:hover {
    box-shadow: 0 0 6px 2px rgba(14, 14, 15, 0.25);
}
.articles_main__card:hover .articles_main__card-image::after {
    opacity: 1;
}

@media screen and (max-width: 992px) {
    .articles__wrapper {
        grid-template-columns: repeat(2, 1fr);
    }
    .articles__wrapper .articles_main__card-image {
        max-height: 300px;
    }
    .articles_main__wrapper {
        overflow-x: auto;
        padding-bottom: 30px;
    }
    .articles_main__wrapper::-webkit-scrollbar {
        height: 3px;
    }
    .articles_main__wrapper::-webkit-scrollbar-track {
        background: #eff3ff;
        margin-top: 30px;
    }
    .articles_main__wrapper::-webkit-scrollbar-thumb {
        background-color: #850003;
        border-radius: 999px;
    }
    .articles_main__wrapper {
        scrollbar-width: thin;
        scrollbar-color: #850003 #eff3ff;
    }
    .articles_main__card {
        max-width: 355px;
        flex-shrink: 0;
    }
    
    .articles__tabs {
        gap: 12px;
    }
    
    .articles__tabs-item {
        padding: 8px 16px;
        font-size: 13px;
    }
}

@media screen and (max-width: 576px) {
    .articles__wrapper {
        grid-template-columns: 100%;
    }
    .articles_main__card {
        max-width: 100%;
        height: auto;
    }
    
    .articles__tabs {
        gap: 10px;
        margin-top: 30px;
    }
    
    .articles__tabs-item {
        padding: 7px 14px;
        font-size: 12px;
    }
    
    .articles__tabs::-webkit-scrollbar {
        height: 4px;
    }
}