.main {
    max-width: 1170px;
    margin: 40px auto 0 auto;
}

.main-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 200;
    font-size: 36px;
}

.course-card {
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 26px 36px;
    border: 1px solid #CECECE;
    margin-top: 20px;
    transition: 0.3s ease;
    box-shadow: 0 4px 4px #866cf833;
}

.course-details {
    display: flex;
    align-items: center;
}

.course-text {
    margin-left: 44px;
}

.course-title {
    font-family: 'Questrial', sans-serif;
    font-size: 36px;
    transition: 0.33s ease;
}

.course-lessons {
    color: #CECECE;
    font-size: 20px;
    margin-top: 12px;
    transition: 0.33s ease;
}

.course-skills {
    margin-top: 12px;
    color: #9D9CA2;
}

.course-skills span {
    color: #856CF8;
    background: #FAEBE1;
    padding: 6px 10px;
    border-radius: 20px;
    margin-left: 10px;
}

.course-buy {
    display: flex;
    flex-direction: column;
    align-items: end;
}

.course-price {
    display: flex;
    align-items: start;
}

.course-price span:first-child {
    font-family: 'Questrial', sans-serif;
    font-size: 36px;
    color: #09090B;
}

.course-price span:last-child {
    font-family: 'Questrial', sans-serif;
    font-size: 20px;
    color: #CECECE;
    text-decoration: line-through;
    margin-left: 10px;
}

.course-button img {
    padding: 20px;
    background: #856CF8;
    margin-top: 18px;
    border-radius: 12px;
    transition: 0.33s ease;
}

.course-button img:hover {
    background: #6F5CE6;
}

@media (max-width: 1320px) {
    .main {
        max-width: 80%;
    }
}

@media screen and (max-width: 768px) {
    .main {
        width: 90%;
        margin: 20px auto;
    }
    .main-title {
        font-size: 28px;
    }
    .course-card {
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
        padding: 20px;
        margin-bottom: 100px;
    }
    .course-details {
        flex-direction: column;
        align-items: flex-start;
    }
    .course-text {
        margin-left: 0;
        margin-top: 16px;
    }
    .course-title {
        font-size: 28px;
    }
    .course-lessons {
        font-size: 18px;
    }
    .course-skills {
        font-size: 16px;
    }
    .course-buy {
        width: 100%;
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        margin-top: 20px;
    }
    .course-price span:first-child {
        font-size: 28px;
    }
    .course-price span:last-child {
        font-size: 16px;
    }
    .course-button img {
        width: 100%;
        padding: 15px;
    }
}

@media screen and (max-width: 485px) {
    .course-buy {
        flex-direction: column;
        align-items: stretch;
    }
    .course-button {
        width: 100%;
    }
    .course-button img {
        width: auto; /* Prevent image from stretching */
        max-width: 60px; /* Limit maximum width */
    }
    .course-button {
        text-align: right;
    }
}

@media screen and (max-width: 360px) {
    .course-card {
        padding: 16px;
        box-shadow: 0 2px 8px rgba(133, 108, 248, 0.15);
        transition: transform 0.2s ease;
    }
    .course-card:hover {
        transform: translateY(-2px);
    }
    .course-title {
        font-size: 24px;
        color: #2D2D2D;
        letter-spacing: -0.5px;
    }
    .course-lessons {
        font-size: 16px;
        font-weight: 300;
        letter-spacing: 0.2px;
    }
    .course-text {
        margin-left: 0;
        margin-top: 12px;
        line-height: 1.4;
    }
    .course-buy {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
}