/* Pagination Styles */

/* Pagination Container */
.tm-paging-col {
    gap: 10px;
}

/* Pagination Button Styles */
.tm-btn-prev,
.tm-btn-next {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px !important;
    height: 50px;
    padding: 0 !important;
    font-size: 1.2rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
}

.tm-btn-prev:hover,
.tm-btn-next:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(232, 141, 176, 0.3);
}

.tm-btn-prev.disabled,
.tm-btn-next.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.tm-btn-prev i,
.tm-btn-next i {
    transition: transform 0.3s ease;
}

.tm-btn-prev:hover i {
    transform: translateX(-3px);
}

.tm-btn-next:hover i {
    transform: translateX(3px);
}

/* Page Number Links */
.tm-paging {
    transform: translateY(-2px);
    flex-direction: row;
    gap: 10px;
}

.tm-paging-link {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 50px;
    height: 50px;
    font-size: 1.1rem;
    color: #000000;
    background-color: #FFFFFF;
    margin: 0;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.tm-paging-link:hover,
.tm-paging-link.active {
    background: linear-gradient(132.21deg, #EE3E27 11.37%, #A62525 88.44%);
    color: #fff; 
}

.tm-paging .tm-paging-link:first-child {
    margin-left: 0;
}

/* Bootstrap Pagination Override */
.pagination .page-link {
    color: #000000;
    background-color: #FFFFFF;
    border: 1px solid #dee2e6;
    border-radius: 8px !important;
    padding: 0.5rem 0.75rem;
    transition: all 0.3s ease;
    margin: 0 5px;
}

.pagination .page-link:hover {
    color: #fff;
    background: linear-gradient(132.21deg, #EE3E27 11.37%, #A62525 88.44%);
    border-color: #EE3E27;
}

.pagination .page-item.active .page-link {
    color: #fff;
    background: linear-gradient(132.21deg, #EE3E27 11.37%, #A62525 88.44%);
    border-color: #EE3E27;
    z-index: 3;
}

.pagination .page-item.disabled .page-link {
    color: #999;
    background-color: #f8f9fa;
    border-color: #dee2e6;
}

/* Remove Bootstrap's default first/last child radius override */
.pagination .page-item:first-child .page-link,
.pagination .page-item:last-child .page-link {
    border-radius: 8px !important;
}
