/* Courses Carousel Styles */
.courses-section {
    padding: 6rem 2rem;
    background-color: #f8fafc;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    color: #0f172a;
    margin-bottom: 1rem;
    font-weight: 800;
}

.section-header p {
    color: #64748b;
    font-size: 1.125rem;
}

/* Swiper Container */
.courses-swiper {
    padding: 2rem 0 4rem;
}

/* Course Card Design */
.course-card {
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0, 0, 0, 0.05);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.course-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.1);
    border-color: rgba(37, 99, 235, 0.2);
}

.course-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
}

.course-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.course-card:hover .course-image img {
    transform: scale(1.1);
}

.course-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--secondary-color, #2563eb);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    z-index: 2;
}

.course-content {
    padding: 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.course-content h3 {
    font-size: 1.25rem;
    color: #0f172a;
    margin-bottom: 0.75rem;
    font-weight: 700;
}

.course-content p {
    color: #64748b;
    font-size: 0.9375rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.course-footer {
    padding-top: 1.5rem;
    border-top: 1px solid #f1f5f9;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.course-duration {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #94a3b8;
    font-size: 0.8125rem;
    font-weight: 600;
}

.btn-enroll {
    color: #2563eb;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.875rem;
    transition: color 0.3s ease;
}

.btn-enroll:hover {
    color: #1d4ed8;
}

/* Swiper Controls Custom Styling */
.swiper-button-next,
.swiper-button-prev {
    width: 50px;
    height: 50px;
    background: #ffffff;
    border-radius: 50%;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    color: #2563eb !important;
}

.swiper-button-next:after,
.swiper-button-prev:after {
    font-size: 1.25rem !important;
    font-weight: 800;
}

.swiper-pagination-bullet-active {
    background: #2563eb !important;
}

/* Responsive */
@media (max-width: 768px) {
    .courses-section {
        padding: 4rem 1.25rem;
    }

    .section-header h2 {
        font-size: 2rem;
    }
}