.courses-section {
    background-color: #f8f9fa;
    padding: 2rem;
    font-family: 'Montserrat', sans-serif;
}

.courses-container {
    max-width: 1200px;
    margin: 0 auto;
    color: #333;
}

.courses-container h1 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    color: #2c3e50;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
}

.courses-container h1::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background-color: #e74c3c;
}

/* Card Layout */
.card-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
}

.course-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 1.5rem;
    width: 100%;
    max-width: 350px;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.course-card:hover {
    transform: translateY(-5px);
}

.card-img {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.card-type {
    font-size: 0.8rem;
    font-weight: bold;
    color: #9b59b6;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

.course-card h2 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: #2c3e50;
}

.card-description {
    flex-grow: 1;
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 1.5rem;
}

.enroll-btn {
    background-color: #00cec9;
    color: white;
    text-align: center;
    padding: 0.75rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.3s;
}

.enroll-btn:hover {
    background-color: #00b894;
}