.kurs17-section {
    background-color: #f2f4fa;
    padding: 3.2rem 1.6rem;
    font-family: 'Poppins', sans-serif;
}

.kurs17-wrapper {
    max-width: 128rem;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 2.4rem;
    align-items: flex-start;
    width: 100%;
}

/* Nagłówek */
.kurs17-header {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    max-width: 62.4rem;
}

.kurs17-eyebrow {
    font-size: clamp(1.6rem, 1.47rem + 0.42vw, 2rem) !important;
    font-weight: 600;
    line-height: 1.2;
    color: #626573;
    margin: 0;
}

.kurs17-section .kurs17-title {
    font-size: clamp(2.8rem, 2.4rem + 1.25vw, 4rem) !important;
    font-weight: 600 !important;
    line-height: 1.2 !important;
    letter-spacing: -0.056rem !important;
    color: #1f1f1f !important;
    margin: 0 !important;
}

.kurs17-desc {
    font-size: 1.6rem;
    font-weight: 400;
    line-height: 1.5;
    color: #374151;
    margin: 0;
}

/* Wyrównanie nagłówka */
.kurs-align-center .kurs17-header {
    align-items: center;
    text-align: center;
    max-width: 100%;
}

/* Filter group — pill z filtrami zawodowymi */
.kurs17-filter-group {
    display: flex;
    align-items: center;
    border: 0.1rem solid #969899;
    border-radius: 2.4rem;
    height: 5rem;
    padding: 0.3rem 0.4rem;
    overflow: hidden;
    width: fit-content;
}

.kurs17-filter-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 4.4rem;
    padding: 0 1.6rem;
    border: none;
    border-radius: 2rem;
    background: transparent;
    color: #374151;
    font-family: 'Poppins', sans-serif;
    font-size: 1.3rem;
    font-weight: 400;
    line-height: 1.5;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.15s ease, color 0.15s ease;
    flex-shrink: 0;
}

.kurs17-filter-btn--active {
    background: #050709 !important;
    color: #ffffff !important;
}

.kurs17-section .kurs17-filter-btn:hover,
.kurs17-section .kurs17-filter-btn:focus {
    background: transparent;
    color: #374151;
}

.kurs17-section .kurs17-filter-btn--active:hover,
.kurs17-section .kurs17-filter-btn--active:focus {
    background: #050709 !important;
    color: #ffffff !important;
}

.kurs17-filter-rest {
    display: flex;
    align-items: center;
    flex: 1;
    overflow: hidden;
}

@keyframes kurs17-fadein {
    from { opacity: 0; transform: translateY(0.8rem); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Wrapper z kartami + strzałki slidera */
.kurs17-slider-wrap {
    display: flex;
    align-items: center;
    width: 100%;
}

.kurs17-slider-wrap[hidden] {
    display: none;
}

.kurs17-arrow {
    flex-shrink: 0;
    background: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
    display: none; /* JS nadpisuje na flex dla mobile */
    align-items: center;
    justify-content: center;
}

.kurs17-arrow--prev {
    margin-right: 1.6rem;
}

.kurs17-arrow--next {
    margin-left: 1.6rem;
}

.kurs17-section .kurs17-arrow,
.kurs17-section .kurs17-arrow:hover,
.kurs17-section .kurs17-arrow:focus,
.kurs17-section .kurs17-arrow:active {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
}

.kurs17-cards {
    flex: 1;
    min-width: 0;
    width: 100%;
}

.kurs17-cards .splide__track {
    width: 100%;
}

.kurs17-cards .splide__list {
    align-items: stretch;
}

.kurs17-card {
    height: 100%;
}

.kurs17-cards--enter {
    animation: kurs17-fadein 0.25s ease forwards;
}

.kurs17-card {
    min-width: 0;
    background: #ffffff;
    border-radius: 0.4rem;
    padding: 1.6rem;
    display: flex;
    gap: 0.8rem;
    align-items: stretch;
    box-sizing: border-box;
}

.kurs17-card-num {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: #f2f4fa;
    color: #374151;
    font-size: 1.2rem;
    font-weight: 500;
    line-height: 1;
    margin-top: 0.2rem;
    align-self: flex-start;
}

.kurs17-card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.kurs17-card-titles {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin-bottom: auto;
}

.kurs17-section .kurs17-card-title {
    font-size: 1.6rem !important;
    font-weight: 500 !important;
    line-height: 1.5 !important;
    color: #050709 !important;
    margin: 0 !important;
}

.kurs17-card-desc {
    font-size: 1.3rem;
    font-weight: 400;
    line-height: 1.5;
    color: #374151;
    margin: 0;
}

.kurs17-card-link {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    font-size: 1.3rem;
    font-weight: 500;
    line-height: 1.2;
    color: #374151 !important;
    text-decoration: none;
    white-space: nowrap;
    margin-top: 2rem;
    margin-bottom: 1.5rem;
}

.kurs17-card-link:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 900px) {
    .kurs17-wrapper {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .kurs17-filter-group {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .kurs17-filter-group::-webkit-scrollbar {
        display: none;
    }

    /* Splide override — karty mobilnie */
    .kurs17-cards .splide__track {
        overflow: hidden !important;
    }

    .kurs17-section {
        overflow: hidden;
    }

    .kurs17-slider-wrap {
        overflow: visible;
    }

    .kurs17-card {
        width: 100%;
        flex: 0 0 100%;
    }
}

