/* Courses Carousel Styles */
.courses-section {
    padding: 6rem 1.5rem;
    background-color: #f8fafc;
}

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem;
}

.section-header h2 {
    font-size: clamp(2rem, 5vw, 2.75rem);
    color: #0f172a;
    margin-bottom: 1rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.section-header p {
    color: #64748b;
    font-size: 1.125rem;
    line-height: 1.6;
}

/* Swiper Container */
.courses-swiper {
    padding: 1rem 0 4rem;
}

/* Course Card Design */
.course-card {
    background: #ffffff;
    border-radius: 24px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0, 0, 0, 0.04);
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.course-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.12);
    border-color: rgba(37, 99, 235, 0.15);
}

.course-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
    position: relative;
    background: #f1f5f9;
}

.course-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.course-card:hover .course-image img {
    transform: scale(1.1);
}

.course-overlay {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(4px);
    padding: 6px 14px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 700;
    color: #1e293b;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 6px;
}

.course-category-label {
    display: inline-block;
    background: #e8f0fe;
    color: #2563eb;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.course-content {
    padding: 1.75rem 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.course-content h3 {
    font-size: 1.35rem;
    color: #0f172a;
    margin-bottom: 1rem;
    font-weight: 700;
    line-height: 1.4;
    min-height: 3.8rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.course-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 1.5rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid #f1f5f9;
}

.meta-item {
    font-size: 13px;
    color: #64748b;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

.meta-item i {
    color: #2563eb;
    font-size: 14px;
}

.course-footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-top: auto;
}

.pricing-box {
    display: flex;
    flex-direction: column;
}

.sale-price {
    font-size: 1.6rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1;
}

.mrp-price {
    font-size: 14px;
    color: #94a3b8;
    text-decoration: line-through;
    margin-top: 4px;
    font-weight: 500;
}

.btn-enroll {
    background: #2563eb;
    color: white !important;
    padding: 12px 22px;
    border-radius: 14px;
    font-weight: 700;
    font-size: 14px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-enroll:hover {
    background: #1e40af;
    transform: translateX(5px);
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.25);
}

/* Swiper Pagination & Navigation Controls */
.swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: #cbd5e1;
    opacity: 1;
    transition: all 0.3s ease;
}

.swiper-pagination-bullet-active {
    background: #2563eb;
    width: 25px;
    border-radius: 5px;
}

.swiper-button-next,
.swiper-button-prev {
    width: 45px;
    height: 45px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    color: #2563eb !important;
    transition: all 0.3s ease;
}

.swiper-button-next:after,
.swiper-button-prev:after {
    font-size: 1rem !important;
    font-weight: 900;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    background: #0f172a;
    color: #ffffff !important;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .courses-section {
        padding: 4rem 1.25rem;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }

    .course-image {
        height: 200px;
    }
    
    .swiper-button-next,
    .swiper-button-prev {
        display: none;
    }
}