.Document {
    width: 100%;
    @include Flex;
    flex-direction: column;
 
    >h1 {
        color: var(--primary);
        font-size: var(--titleFsize);
        letter-spacing: 4px;
    }

    h2 {
        font-size: 40px;
        font-weight: bold;
        letter-spacing: 2px;
        padding-bottom: 70px;
    }

    .document-cards {
        display: flex;
        gap: 0px 20px;
        transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;

        &.changing {
            opacity: 0;
            transform: translateY(20px);
        }
    }

    .ant-pagination .ant-pagination-item,
    .ant-pagination-item-container
    .ant-pagination-item-ellipsis,
    .ant-pagination .ant-pagination-jump-prev .ant-pagination-item-container,.ant-pagination .ant-pagination-jump-next .ant-pagination-item-container,
    .ant-pagination .ant-pagination-jump-prev, .ant-pagination .ant-pagination-jump-next
    {
        display: none !important;
    }
    .ant-pagination {
        width: 80%;
        display: flex;
        justify-content: end;
        padding-bottom: 70px;

        .ant-pagination-item-link {
            background: var(--primary);
            color: var(--white);
            width: 50px;
            height: 50px;
            border-radius: 50%;
            font-size: 20px;

            &:hover {
                background: var(--primary);
                color: var(--white);
            }
        }
    }

    .ant-pagination .ant-pagination-disabled .ant-pagination-item-link,
    .ant-pagination .ant-pagination-disabled:hover .ant-pagination-item-link {
        background: #EFEFEF;
        color: #858585;
    }
}



.Document_page{
    width: 90%;
    display: flex;justify-content: space-between; flex-wrap: wrap;
    margin-inline: auto;
    gap: 20px;
    .Document_card{
        width: 380px;
        margin-block: 10px;
    }
    .header_link{
        width: 100% !important;
    }
}

@media screen and (max-width:900px) {
    .Document {
        >h1 {
            font-size: 14px;
        }
    
        h2 {
            font-size: 27px;
            padding-bottom: 20px;
        }
        .ant-pagination {
            padding-bottom: 20px;
            .ant-pagination-item-link {
                width: 30px;
                height: 30px;
                font-size: 12px;
            }
        }
    } 
    .Document_page{
        @include Flex;
    }   
}