/* Featured Video Thumbnails */
.tf-card-box.style-3 .card-media img {
    width: 456px;
    height: 605px;
    object-fit: cover;
    display: block;
}

@media (max-width: 991px) {
    .tf-card-box.style-3 .card-media img {
        width: 100%;
        height: auto;
        aspect-ratio: 456/605;
    }
}

.tf-card-box .card-media img {
    width: 100%;
    height: auto;
    aspect-ratio: 16/9;
    object-fit: cover;
}

/* Category Count Display */
.tf-category h6 .count {
    font-size: 14px;
    color: #808080;
    margin-left: 4px;
    font-weight: normal;
}

.tf-category h6 a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

/* Pagination Styles */
.widget-pagination {
    margin-top: 30px;
    margin-bottom: 30px;
}

.widget-pagination ul {
    display: flex;
    align-items: center;
    gap: 5px;
}

.widget-pagination ul.justify-center {
    justify-content: center;
}

.widget-pagination ul li {
    list-style: none;
}

.widget-pagination ul li a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background-color: var(--primary-color4);
    font-weight: 700;
    font-size: 16px;
    color: #fff;
    transition: all 0.3s;
}

.widget-pagination ul li.active a,
.widget-pagination ul li a:hover {
    background-color: var(--primary-color3);
    color: var(--primary-color4);
}

/* Optimize animations for better performance */
.wow {
    will-change: transform, opacity;
    backface-visibility: hidden;
    perspective: 1000px;
}

.fadeInUp {
    animation-duration: 0.6s !important;
    animation-timing-function: cubic-bezier(0.2, 0.6, 0.3, 1) !important;
}
