/* Blog Pagination Styles */
.tj-pagination-wrapper {
    margin-top: 3rem;
    margin-bottom: 2rem;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.page-item {
    margin: 0;
}

.page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 45px;
    height: 45px;
    padding: 0.5rem 0.75rem;
    font-size: 16px;
    font-weight: 500;
    color: #333;
    background-color: #fff;
    border: 2px solid #e5e5e5;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.page-link:hover {
    color: #fff;
    background-color: #007bff;
    border-color: #007bff;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
}

.page-item.active .page-link {
    color: #fff;
    background-color: #007bff;
    border-color: #007bff;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
}

.page-item.disabled .page-link {
    color: #999;
    background-color: #f8f9fa;
    border-color: #e5e5e5;
    cursor: not-allowed;
    pointer-events: none;
}

.page-link i {
    font-size: 14px;
}

/* Hover effect animation */
.page-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.page-link:hover::before {
    left: 100%;
}

/* Responsive design */
@media (max-width: 768px) {
    .pagination {
        gap: 0.25rem;
        flex-wrap: wrap;
    }
    
    .page-link {
        min-width: 40px;
        height: 40px;
        font-size: 14px;
        padding: 0.4rem 0.6rem;
    }
    
    .tj-pagination-wrapper {
        margin-top: 2rem;
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 480px) {
    .page-link {
        min-width: 35px;
        height: 35px;
        font-size: 13px;
        padding: 0.3rem 0.5rem;
    }
    
    /* Hide some page numbers on very small screens */
    .pagination .page-item:not(.active):not(:first-child):not(:last-child):not(:nth-child(2)):not(:nth-last-child(2)) {
        display: none;
    }
}

/* Blog Cards Uniform Height */
.tj-blog-area .row {
    display: flex;
    flex-wrap: wrap;
}

.tj-blog-area .col-xl-4,
.tj-blog-area .col-lg-6,
.tj-blog-area .col-md-6 {
    display: flex;
    margin-bottom: 30px;
}

.tj-blog-wrapper {
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
    animation: fadeInUp 0.6s ease-out;
}

.tj-blog-thumb {
    height: 250px;
    overflow: hidden;
    border-radius: 8px 8px 0 0;
}

.tj-blog-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.tj-blog-thumb:hover img {
    transform: scale(1.05);
}

.tj-blog-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 25px;
    background: #fff;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.tj-blog-title {
    flex-grow: 1;
    margin-bottom: 0px;
}

.tj-blog-paragraph {
    flex-grow: 1;
    margin-bottom: 0px;
}

.tj-blog-button {
    margin-top: auto;
}

.tj-blog-btn {
   
   
    transition: all 0.3s ease;
}

.tj-blog-btn:hover {
  
    transform: translateY(-2px);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Loading state (optional) */
.pagination-loading {
    opacity: 0.6;
    pointer-events: none;
}

.pagination-loading .page-link {
    cursor: wait;
}

/* Responsive adjustments for cards */
@media (max-width: 768px) {
    .tj-blog-thumb {
        height: 200px;
    }
    
    .tj-blog-content {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .tj-blog-thumb {
        height: 180px;
    }
    
    .tj-blog-content {
        padding: 15px;
    }
}