.courses {
    padding: 96px 56px;
    background: var(--light-bg);
}

.courses-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 40px;
}

.courses-header-left .section-title {
    text-align: left;
    margin-bottom: 0;
}

.courses-header-left .section-label {
    justify-content: flex-start;
}

.courses-header-left .section-label::before {
    display: none;
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.course-card {
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    perspective: 1000px;
    /* For potential 3D effects */
}

.course-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-8px);
}

.course-thumb {
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--dark);
}

.course-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.course-card:hover .course-thumb img {
    transform: scale(1.1) rotate(1deg);
}

.course-thumb-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(88, 45, 129, 0.4) 100%);
    opacity: 0.6;
    transition: opacity 0.5s ease;
    z-index: 1;
}

.course-card:hover .course-thumb-overlay {
    opacity: 0.8;
}

.course-body {
    padding: 24px 28px;
    position: relative;
    z-index: 2;
    background: white;
    transition: transform 0.4s ease;
}

.course-card:hover .course-body {
    transform: translateY(-4px);
}

.course-category {
    display: inline-block;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--primary);
    background: rgba(247, 148, 29, 0.08);
    padding: 4px 12px;
    border-radius: 50px;
    margin-bottom: 12px;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(247, 148, 29, 0.1);
}

.course-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--dark);
    line-height: 1.45;
    transition: color var(--transition);
}

.course-card:hover .course-title {
    color: var(--primary);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 52px;
}

.page-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1.5px solid #E2E8F0;
    background: white;
    color: var(--mid);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
    font-family: inherit;
}

.page-btn:hover:not(:disabled) {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
}

.page-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
    box-shadow: 0 4px 16px rgba(200, 82, 26, 0.28);
}

.page-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}