/* ================= COURSES SECTION ================= */
.courses-section {
   padding: 60px 6% 20px 6%;
    background: #fff;
    text-align: center;
    width: 100%;
    margin-top: -70px;
}

/* Title */
.courses-title {
    font-family: 'Playfair Display', serif;
    font-size: 30px;
    font-weight: 700;
    color: #4a235a;
   margin-bottom: 8px;
}

/* ================= Tabs ================= */
.course-tabs {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    background: #f3e8ff;
    padding: 7px 12px;
    border-radius: 30px;
    margin: 0 auto 8px auto;
}

.tab-btn {
    border: none;
    background: transparent;
    padding: 7px 16px;
    border-radius: 20px;
    font-size: 13px;
    cursor: pointer;
    color: #6a1b9a;
    transition: 0.3s ease;
}

.tab-btn:hover {
    background: #e5cfff;
}

.tab-btn.active {
    background: #d7b9ff;
    font-weight: 600;
}


.courses-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    max-width: 1700px;
    margin: 0 auto;
    padding: 0 20px;
}

.course-card { 
    flex: 0 0 calc(33.333% - 20px); /* 3 per row */
    max-width: 650px;
    box-sizing: border-box;
}



/* ================= CARD ================= */
.course-card {
    background: #fdf7ff;
    border-radius: 20px;
    padding: 12px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    transition: 0.3s ease;

}

.course-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12);
}

/* Image */
.course-img {
    width: 100%;
    height: 250px;
    overflow: hidden;
    border-radius: 16px;
    margin-bottom: 10px;
}

.course-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Content */
.course-card h3 {
    font-family: 'Playfair Display', serif;
    color: #4a235a;
    font-size: 18px;
    margin-bottom: 6px;
}

.course-card p {
    font-size: 13px;
    color: #6a1b9a;
    line-height: 1.4;
    margin-bottom: 10px;
}

/* Button */
.enroll-btn {
    align-self: center;
    padding: 7px 20px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    color: #fff;
    margin-top: auto;
    display: inline-block;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.14);
    transition: 0.3s ease;
}

.enroll-btn:hover {
    transform: translateY(-2px) scale(1.05);
    opacity: 0.95;
}

.enroll-btn.orange {
    background: linear-gradient(90deg, #ff512f, #f09819);
}

.enroll-btn.purple {
    background: linear-gradient(90deg, #ec417d, #8448a0);
}

/* Highlight */
.course-card.highlight {
    background: linear-gradient(135deg, #f6ebff, #ffffff);
}
@media (max-width: 768px) {
    .courses-section {
        margin-top: -10px !important;
        padding-top: 0px !important;
        padding-bottom: 20px !important;
    }

    .courses-grid {
        gap: 20px;
        padding: 0 10px;
        max-width: 380px;
    }
    
    .course-card { 
        flex: 0 0 100%; /* 1 per row */
        max-width: none;
    }
    
    .tab-btn {
        padding: 7px 14px;
        font-size: 12px;
    }
    
    /* Mobile card adjustments */
    .course-img {
        height: 200px;
    }
    
    .course-card h3 {
        font-size: 16px;
    }
    
    .course-card p {
        font-size: 12px;
    }
}