.course-section {
    display: grid;
    grid-template-rows: 50px auto;
    grid-template-columns: calc(100% - 514px) 494px;
    justify-content: space-between;
    gap: 20px;
    padding: 30px;
    background-color: rgba(255, 255, 255, 1);
    border-radius: 30px;
    width: 100%;
    margin-top: 100px;
}

.course-section__title {
    font-family: "Montserrat", sans-serif;
    font-weight: 700;
    font-size: 36px;
    line-height: 1.3;
    letter-spacing: 0;
    color: #000;
    margin: 0;
    grid-column: 1 / 2;
}

.course-section__content {
    grid-column: 1 / 2;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.course-section__text {
    font-family: "Montserrat", sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.3;
    letter-spacing: 0;
    color: #000000;
    margin: 0;
}

.course-section__img {
    grid-column: 2 / 3;
    grid-row: 1 / 3;
    width: 494px;
    height: 416px;
    max-width: 100%;
    border-radius: 30px;
    object-fit: cover;
    justify-self: end;
    position: relative;
    left: 0.12px;
}

@media screen and (max-width: 1199px) {
    .course-section {
        grid-template-columns: minmax(0, 1fr) 337px;
        padding: 30px;
    }

    .course-section__img {
        grid-column: 2 / 3;
        grid-row: 1 / 3;
        width: 337px;
        height: 416px;
        max-width: 100%;
        left: 0;
        transform: none;
    }
}

@media screen and (max-width: 768px) {
    .course-section {
        grid-template-columns: 100%;
        padding: 20px;
    }

    .course-section__title {
        grid-column: 1 / 2;
        grid-row: 1 / 2;
    }

    .course-section__img {
        grid-column: 1 / 2;
        grid-row: 2 / 3;
        width: 100%;
        height: auto;
        justify-self: center;
        left: 0;
        transform: none;
    }

    .course-section__content {
        grid-column: 1 / 2;
        grid-row: 3 / 4;
        margin-top: 0;
        gap: 0;
    }
}