/* ========== COURSES SECTION ========== */
.courses-section {
    padding: 80px 0;
    background-color: var(--bg-secondary);
}

.courses-container {
    padding: 43px 79px;
    background-color: var(--bg-white);
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.course-card {
    background-color: var(--bg-secondary);
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    gap: 20px;
    padding: 20px;
    transition: var(--transition);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border: #E2EDFB solid 1px;
}

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

.course-image {
    flex-shrink: 0;
    width: 180px;
    height: 240px;
    border-radius: 12px;
    overflow: hidden;
}

.course-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.course-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 10px 0;
}

.courses-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 40px;
}

.courses-dots .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #D9D9D9;
    cursor: pointer;
    transition: var(--transition);
}

.courses-dots .dot.active {
    width: 10px;
    border-radius: 5px;
    background-color: #8F8686;
}

.courses-dots .dot:hover {
    background-color: #8F8686;
    opacity: 0.7;
}

/* Responsive design for courses section */
@media (max-width: 1024px) {
    .courses-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .section-title {
        font-size: 36px;
    }
}

@media (max-width: 768px) {
    .courses-container {
    padding: 43px 10px;
    background-color: var(--bg-white);
    }

    .courses-section {
        padding: 60px 0;
    }
    
    .section-header {
        margin-bottom: 40px;
    }
    
    .section-title {
        font-size: 28px;
        padding: 0 20px;
    }
    
    .course-card {
        flex-direction: column;
        padding: 16px;
    }
    .course-image {
        width: 100%;
        height: 300px;
        border-radius: 12px;
        overflow: hidden;
    }

    .course-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
}
    
    .course-title {
        font-size: 20px;
    }
    
    .course-description {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .section-badge {
        font-size: 14px;
        padding: 6px 20px;
    }
    
    .section-title {
        font-size: 24px;
    }
    
    .course-card {
        padding: 12px;
    }
    
    .course-image {
        height: 240px;
    }
    
    .course-title {
        font-size: 18px;
    }

    section.material-section .secondary-btn, section.courses-section .secondary-btn{
        width: 100%;
    }

    section.material-section .material-image{
        width: 100%;
    }
    
}