/* PAGINATION */

.pagination {
    display: flex;
    align-items: center;
    gap: 2px;
    padding: 40px 0;
    margin-top: 40px;
    border-top: 1px solid #D5D7DA;
}

.pagination.pagination--gray {
    background: #F5F5F5;
}

.pagination.pagination--gray .page-btn.active {
    background: #FFFFFF;
}

.page-status {
    display: none;
}

.page-btn {
    padding: 10px;
    margin: 0;
    height: 40px;
    width: 40px;
    border-radius: 8px;
    background: transparent;
    border: none;
    color: #717680;
    cursor: pointer;
    font-family: Instrument Sans;
    font-weight: 500;
    font-size: 14px;
    line-height: 20px;
    letter-spacing: 0%;
    text-align: center;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.page-btn.next {
    margin-left: auto;
    height: unset;
    width: unset;
    color: #06215A;
    font-family: Instrument Sans;
    font-weight: 600;
    font-size: 14px;
    line-height: 20px;
    letter-spacing: 0%;
    cursor: pointer;
}

.page-btn.prev {
    margin-right: auto;
    padding: 0;
    height: unset;
    width: unset; 
    color: #06215A;
    font-family: Instrument Sans;
    font-weight: 600;
    font-size: 14px;
    line-height: 20px;
    letter-spacing: 0%;
    cursor: pointer;
    display: flex;
    align-items: center;
}

.page-btn.prev:before {
    content: "";
    display: inline-block;
    width: 14px;
    height: 14px;
    margin-right: 6px;
    background: url("data:image/svg+xml,%3Csvg width='14' height='14' viewBox='0 0 14 14' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12.4997 6.66732H0.833008M0.833008 6.66732L6.66634 12.5007M0.833008 6.66732L6.66634 0.833984' stroke='%23A4A7AE' stroke-width='1.66667' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center;
    background-size: contain;
    display: flex;
    align-items: center;
}

.page-btn:hover.prev:before {
    background: url("data:image/svg+xml,%3Csvg width='14' height='14' viewBox='0 0 14 14' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12.4997 6.66732H0.833008M0.833008 6.66732L6.66634 12.5007M0.833008 6.66732L6.66634 0.833984' stroke='%2306215A' stroke-width='1.66667' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center;
}

.page-btn.active {
    background: #F5F5F5;
    color: #414651;
    font-weight: 600;
}

.page-btn:not(.prev):not(.next):not(.active):hover {
    background: #F5F5F5;
    color: #414651;
    font-weight: 600;
}

.pagination.pagination--gray .page-btn:not(.prev):not(.next):not(.active):hover {
    background: #FFFFFF;
    color: #414651;
    font-weight: 600;
}

@media (max-width: 767px) {
    .pagination {
        justify-content: space-between;
        gap: 16px;
        padding: 16px 0 0 0;
    }

    .pagination .page-btn:not(.prev):not(.next) {
        display: none;
    }

    .page-status {
        display: block;
        order: 2;
        font-family: Instrument Sans;
        font-weight: 500;
        font-size: 14px;
        line-height: 56px;
        color: #414651;
        text-align: center;
        flex: 1;
    }

    .page-btn.prev,
    .page-btn.next {
        width: 36px;
        height: 36px;
        min-width: 36px;
        min-height: 36px;
        margin: 0;
        padding: 0;
        font-size: 0;
        line-height: 0;
        border: 1px solid #06215A;
        border-radius: 8px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        background: transparent;
    }

    .page-btn.prev {
        order: 1;
    }

    .page-btn.next {
        order: 3;
    }

    .page-btn.prev:before,
    .page-btn.next:before {
        content: "";
        width: 24px;
        height: 24px;
        margin: 0;
        display: block;
        background-repeat: no-repeat;
        background-position: center;
        background-size: contain;
    }

    .page-btn.prev:before {
        background: url("data:image/svg+xml,%3Csvg width='14' height='14' viewBox='0 0 14 14' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12.4997 6.66732H0.833008M0.833008 6.66732L6.66634 12.5007M0.833008 6.66732L6.66634 0.833984' stroke='%23A4A7AE' stroke-width='1.66667' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center;
    }

    .page-btn.next:before {
        background: url("data:image/svg+xml,%3Csvg width='14' height='14' viewBox='0 0 14 14' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1.5003 6.66732H13.167M13.167 6.66732L7.33366 12.5007M13.167 6.66732L7.33366 0.833984' stroke='%23A4A7AE' stroke-width='1.66667' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center;
    }
}