.home-courses-section {
    padding: 90px 0 80px;
    background: #f7f7fb;
}

.home-courses-head {
    text-align: center;
    margin: 0 auto 42px;
    max-width: 760px;
}

.home-courses-title {
    margin: 0 0 12px;
    font-size: 42px;
    line-height: 1.6;
    font-weight: 800;
    color: #1f2333;
}

.home-courses-desc {
    margin: 0;
    font-size: 18px;
    line-height: 2;
    color: #555b6d;
}

.home-courses-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(380px, 1fr));
    gap: 28px;
    align-items: stretch;
    justify-content: center;
}

.home-course-card {
    background: #fff;
    border: 1px solid #ececf4;
    border-radius: 26px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(35, 39, 60, 0.06);
    display: flex;
    flex-direction: column;
    height: 100%;
    padding-bottom: 18px;
    max-width: 440px;
    width: 100%;
    margin: 0 auto;
}

.home-course-image {
    padding: 8px 8px 0;
    margin: 0;
    background: transparent;
}

.home-course-image img {
    width: 100%;
    height: 240px;
    object-fit: contain;
    object-position: center;
    border-radius: 20px;
    display: block;
    background: #fff;
    margin: 0;
    padding: 0;
}

.home-course-content {
    padding: 16px 20px 0;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.home-course-title {
    margin: 0 0 10px;
    font-size: 22px;
    line-height: 1.8;
    font-weight: 800;
    color: #1d2233;
    text-align: center;
}

.home-course-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 12px;
    font-size: 15px;
    color: #5d6478;
    font-weight: 500;
}

.home-course-meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.home-course-text {
    margin: 0 0 16px;
    font-size: 15px;
    line-height: 2;
    color: #4d5466;
    text-align: center;
    min-height: 72px;
}

.home-course-bottom {
    margin-top: auto;
}

.home-course-price {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.home-course-price .old-price {
    font-size: 15px;
    color: #8f96a8;
    text-decoration: line-through;
    white-space: nowrap;
}

.home-course-price .new-price {
    font-size: 20px;
    font-weight: 800;
    color: #1e2437;
    white-space: nowrap;
}

.home-course-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 46px;
    border: 1px solid #d7dced;
    border-radius: 16px;
    background: transparent;
    color: #5b5ee7;
    font-size: 18px;
    font-weight: 700;
    text-decoration: none;
    transition: all .25s ease;
}

.home-course-btn:hover {
    background: #f3f4ff;
    color: #4c4fd6;
    border-color: #c8cff8;
}

.home-courses-footer {
    text-align: center;
    margin-top: 36px;
}

.home-courses-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #5b5ee7;
    color: #fff;
    padding: 14px 28px;
    border-radius: 16px;
    font-size: 18px;
    font-weight: 700;
    text-decoration: none;
    transition: all .25s ease;
}

.home-courses-more:hover {
    background: #4c4fd6;
    color: #fff;
}

@media (max-width: 1399px) {
    .home-courses-grid {
        grid-template-columns: repeat(3, minmax(340px, 1fr));
        gap: 24px;
    }

    .home-course-card {
        max-width: 410px;
    }

    .home-course-image img {
        height: 225px;
    }
}

@media (max-width: 1199px) {
    .home-courses-grid {
        grid-template-columns: repeat(2, minmax(320px, 1fr));
    }

    .home-courses-title {
        font-size: 36px;
    }

    .home-course-image img {
        height: 230px;
    }
}

@media (max-width: 992px) {
    .home-courses-grid {
        grid-template-columns: repeat(2, minmax(280px, 1fr));
        gap: 22px;
    }

    .home-course-image img {
        height: 210px;
    }

    .home-course-title {
        font-size: 21px;
    }
}

@media (max-width: 767px) {
    .home-courses-section {
        padding: 70px 0;
    }

    .home-courses-grid {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .home-courses-title {
        font-size: 28px;
    }

    .home-courses-desc {
        font-size: 16px;
    }

    .home-course-card {
        max-width: 100%;
    }

    .home-course-image {
        padding: 8px 8px 0;
    }

    .home-course-image img {
        height: 220px;
    }

    .home-course-title {
        font-size: 20px;
    }

    .home-course-text {
        min-height: auto;
    }

    .home-course-price {
        flex-direction: column;
        align-items: flex-start;
    }
}
