.tutor-courses-main { margin: 20px 0; direction: rtl; }
.tcf-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 15px;
    flex-direction: row-reverse;
}
.tutor-courses-top-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.tutor-courses-top-filter a {
    cursor: pointer;
    text-decoration: none;
    font-size: 0.9rem;
}
.tutor-courses-top-filter a.active {
    font-weight: bold;
    color: #0073aa;
}
.tcf-heading-text {
    font-size: 1.2rem;
    font-weight: bold;
    background: linear-gradient(270deg, #640093 0.03%, #B72878 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
#tutor-courses-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}
@media (min-width: 1024px) {
    #tutor-courses-list {
        grid-template-columns: repeat(4, 1fr);
    }
}
.course-item {
    border: 1px solid #eee;
    padding: 10px;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 0 6px rgba(0,0,0,0.05);
}
.course-item img {
    width: 100%;
    height: auto;
    border-radius: 6px;
}
.course-item .course-category {
    font-size: 0.75rem;
    color: #999;
    margin-top: 6px;
}
.course-item h3 {
    font-size: 1rem;
    margin: 8px 0 4px;
}
.course-item .course-price {
    font-weight: bold;
    color: #0073aa;
}



.tcf-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.tcf-pagination .tcf-page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: 1px solid #ddd;
    border-radius: 12px;
    color: #B72878;
    font-weight: bold;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    background-color: #fff;
}

.tcf-pagination .tcf-page-link:hover,
.tcf-pagination .tcf-page-link.active {
    background-color: #fef1f6;
    border-color: #B72878;
    color: #B72878;
}

.tcf-pagination .tcf-page-link.disabled {
    opacity: 0.4;
    pointer-events: none;
}



/* Override pagination position and layout */
.tcf-pagination {
    width: 100%;
    margin-top: 40px;
    padding-top: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}



/* Ensure pagination spans full grid width and sits below cards */
.tcf-pagination {
    grid-column: 1 / -1; /* span all columns */
    width: 100%;
    margin-top: 40px;
}
