
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #fafafa;
    color: #333;
}

header {
    background-color: #ff8ec7; 
    color: white;
    padding: 20px;
    text-align: center;
}

header h1 {
    margin: 0;
    font-size: 2.5rem;
}

/* Filter Section */
#filter {
    padding: 20px;
    background-color: #f3a1c7;
    text-align: center;
}

#filter h2 {
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.filter-options {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
}

.filter-options label {
    font-size: 1.2rem;
}

.filter-options select {
    padding: 8px;
    font-size: 1rem;
    border-radius: 5px;
    border: 1px solid #ccc;
}


#lessons {
    padding: 20px;
    text-align: center;
}

#lessons h2 {
    font-size: 2rem;
    margin-bottom: 40px;
    color: #f3a1c7;
    border-bottom: 2px solid #f7b6d2;
}

.lesson-container {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    padding: 0 20px;
}


.lesson-card {
    background-color: #fff;
    border-radius: 10px;
    width: 30%;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.lesson-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.lesson-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.lesson-info {
    padding: 15px;
    text-align: left;
}

.lesson-info h3 {
    font-size: 1.5rem;
    margin: 0 0 10px;
}

.lesson-info p {
    font-size: 1rem;
    color: #555;
    margin: 0 0 15px;
}

.cta-btn {
    background-color: #ff8ec7; 
    color: white;
    padding: 10px 20px;
    font-size: 1rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.cta-btn:hover {
    background-color: #f7b6d2; 
}


footer {
    background-color: #f3a1c7;
    color: white;
    text-align: center;
    padding: 10px;
    position: relative;
    bottom: 0;
    width: 100%;
}


@media screen and (max-width: 768px) {
    .lesson-container {
        justify-content: center;
        gap: 10px;
    }

    .lesson-card {
        width: 45%;
    }

    .filter-options {
        flex-direction: column;
        align-items: center;
    }

    .filter-options select {
        margin-top: 10px;
    }
}

@media screen and (max-width: 480px) {
    .lesson-card {
        width: 90%;
    }
}
