.courses-section {
    margin-top: 6rem;
    padding-bottom: 4rem;
    background: white;
}

.courses-section__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.courses-section__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.courses-section__title {
    color: #1a1a1a;
    font-size: 1.75rem;
    font-weight: 600;
    margin: 0;
}

.courses-section__more .home-button {
    padding: 0.875rem 1.5rem;
    background: rgba(73, 66, 228, 0.1);
    color: #4942E4;
    border-radius: 0.875rem;
    font-weight: 600;
    font-size: 0.9375rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.courses-section__more .home-button:hover {
    background: #4942E4;
    color: white;
}

.courses-section__slider {
    position: relative;
    margin: 0 -0.5rem;
    padding: 0 0.5rem;
}

.courses-section__track {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 0.5rem 0;
}

.courses-section__track::-webkit-scrollbar {
    display: none;
}

.courses-section__slide {
    flex: 0 0 230px;
    min-width: 230px;
    max-width: 230px;
}

.courses-section__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all 0.3s ease;
    z-index: 1;
}

.courses-section__arrow:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-50%) scale(1.1);
}

.courses-section__arrow--prev {
    left: 0;
}

.courses-section__arrow--next {
    right: 0;
}

@media (max-width: 1024px) {
    .courses-section__slide {
        flex: 0 0 230px;
        min-width: 230px;
        max-width: 230px;
    }
}

@media (max-width: 768px) {
    .courses-section {
        margin-top: 4rem;
        padding-bottom: 3rem;
    }

    .courses-section__header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .courses-section__title {
        font-size: 1.5rem;
    }

    .courses-section__slide {
        flex: 0 0 220px;
        min-width: 220px;
        max-width: 220px;
    }

    .courses-section__arrow {
        width: 40px;
        height: 40px;
    }
}

.home-course-card {
    background: white;
    border-radius: 1rem;
    overflow: hidden;
    text-decoration: none;
    color: var(--text-color);
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    border: 1px solid #e5e7eb;
    cursor: pointer;
}

.home-course-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    border-color: #4942E4;
}

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

.home-course-card__image {
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
    background: #f3f4f6;
}

.home-course-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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

.home-course-card__title {
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.35;
    margin: 0;
    color: #1a1a1a;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.4em;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.home-course-card__school {
    font-size: 0.75rem;
    color: #6b7280;
    margin: 0;
    font-weight: 400;
}

.home-course-card__price-block {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    padding-top: 0.625rem;
    border-top: 1px solid #e5e7eb;
}

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

.home-course-card__old-price {
    font-size: 0.6875rem;
    color: #9ca3af;
    text-decoration: line-through;
}

.home-course-card__price {
    font-size: 1rem;
    font-weight: 700;
    color: #4942E4;
}

.home-course-card__duration {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.75rem;
    color: #6b7280;
    white-space: nowrap;
}

.home-course-card__duration svg {
    width: 12px;
    height: 12px;
    stroke: #9ca3af;
}

.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.625rem 0.875rem;
    background: linear-gradient(135deg, #4942E4 0%, #6366f1 100%);
    color: white;
    text-decoration: none;
    border-radius: 0.75rem;
    font-weight: 600;
    font-size: 0.8125rem;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(73, 66, 228, 0.2);
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 2;
}

.course-discount-button:hover {
    background: linear-gradient(135deg, #3730a3 0%, #4f46e5 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(73, 66, 228, 0.3);
    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.8125rem;
    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: 768px) {
    .home-course-card__content {
        padding: 0.875rem;
        gap: 0.5rem;
    }

    .home-course-card__title {
        font-size: 0.8125rem;
    }

    .home-course-card__price {
        font-size: 0.9375rem;
    }

    .course-discount-button {
        padding: 0.5rem 0.75rem;
        font-size: 0.75rem;
        margin-bottom: 0.375rem;
    }

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