.courses-section {
    background: #fff;
    padding: 3.5rem 0;
    margin: 0 auto;
    display: flex;
    justify-content: center;
}

.courses-section__container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    width: 100%;
}

.courses-section__header {
    margin-bottom: 2.5rem;
    text-align: center;
}

.courses-section__title {
    font-size: 2rem;
    font-weight: 700;
    color: #23244a;
    letter-spacing: 0.01em;
    margin: 0;
}

.courses-section__track {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
}

.courses-section__slide {
    flex: 0 1 calc(20% - 1.2rem);
    min-width: 200px;
}

.home-course-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 1.25rem;
    overflow: hidden;
    text-decoration: none;
    height: 100%;
    border: 1px solid #e3e7f7;
    box-shadow: 0 2px 12px rgba(30,30,60,0.06);
    transition: all 0.3s ease;
    position: relative;
    cursor: pointer;
}

.home-course-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 20px rgba(30,30,60,0.12);
}

.home-course-card__link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.home-course-card__image {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    overflow: hidden;
}

.home-course-card__image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.home-course-card__content {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    flex: 1;
}

.home-course-card__title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #23244a;
    margin: 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.home-course-card__school {
    font-size: 0.875rem;
    color: #6c7bbd;
}

.home-course-card__price-block {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 1rem;
}

.home-course-card__price-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.home-course-card__old-price {
    font-size: 0.875rem;
    color: #999;
    text-decoration: line-through;
}

.home-course-card__price {
    font-size: 1.125rem;
    font-weight: 600;
    color: #23244a;
}

.home-course-card__duration {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.875rem;
    color: #666;
}

.home-course-card__duration svg {
    width: 1rem;
    height: 1rem;
}

.home-course-card__button {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #f0f0f0;
    position: relative;
    z-index: 2;
}

.course-discount-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.75rem 1rem;
    background: linear-gradient(135deg, #4942E4 0%, #6366f1 100%);
    color: white;
    text-decoration: none;
    border-radius: 0.75rem;
    font-weight: 600;
    font-size: 0.875rem;
    text-align: center;
    transition: all 0.3s ease;
    margin-bottom: 0.75rem;
    position: relative;
    z-index: 2;
}

.course-discount-button:hover {
    background: linear-gradient(135deg, #3730a3 0%, #4f46e5 100%);
    transform: translateY(-1px);
    color: white;
}

.course-discount-button svg {
    width: 14px;
    height: 14px;
    stroke: currentColor;
}

.course-details-link {
    display: block;
    text-align: center;
    color: #666;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
    z-index: 2;
}

.course-details-link:hover {
    color: #4942E4;
    text-decoration: underline;
}

@media (max-width: 1200px) {
    .courses-section__slide {
        flex: 0 1 calc(33.333% - 1rem);
    }
}

@media (max-width: 768px) {
    .courses-section__slide {
        flex: 0 1 calc(50% - 0.75rem);
    }
    
    .courses-section__title {
        font-size: 1.75rem;
    }
    
    .courses-section {
        padding: 2.5rem 0;
    }
    
    .course-discount-button {
        padding: 0.625rem 0.875rem;
        font-size: 0.8125rem;
        margin-bottom: 0.5rem;
    }

    .course-details-link {
        font-size: 0.8125rem;
    }
}

@media (max-width: 480px) {
    .courses-section__slide {
        flex: 0 1 100%;
    }
    
    .courses-section__container {
        padding: 0 1rem;
    }
    
    .courses-section__title {
        font-size: 1.5rem;
    }
} 