.ksse-home-courses {
    padding: 24px 28px 36px;
    background: transparent;
}

.ksse-home-courses-panel {
    max-width: 1360px;
    margin: 0 auto;
    padding: 6px 0 12px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.ksse-home-courses-head {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 24px;
}

.ksse-home-courses-head span {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 0 16px;
    border-radius: 999px;
    background: #e8f1ff;
    color: #1d4ed8;
    font-size: 16px;
    font-weight: 950;
}

.ksse-home-courses-head h2 {
    margin: 0;
    color: #08284d;
    font-size: 36px;
    line-height: 1.18;
    font-weight: 950;
    letter-spacing: 0;
}

.ksse-course-controls {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ksse-course-controls button {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border: 1px solid #d7e1f2;
    border-radius: 999px;
    background: #fff;
    color: #1f2937;
    font-size: 14px;
    cursor: pointer;
    box-shadow: 0 7px 16px rgba(20, 35, 60, .07);
    transition: transform .18s ease, border-color .18s ease, color .18s ease;
}

.ksse-course-controls button:hover {
    color: #1d4ed8;
    border-color: #9db9ff;
    transform: translateY(-2px);
}

.ksse-home-courses-viewport {
    --course-gap: 24px;
    --course-visible: 5;
    overflow: hidden;
    padding: 4px 0 16px;
}

.ksse-home-courses-track {
    display: flex;
    gap: var(--course-gap);
    transform: translate3d(0, 0, 0);
    transition: transform .55s ease;
    will-change: transform;
}

.ksse-home-course-card {
    --course-image: linear-gradient(135deg, #3b82f6, #111827);
    position: relative;
    flex: 0 0 calc((100% - (var(--course-gap) * (var(--course-visible) - 1))) / var(--course-visible));
    min-height: 218px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    padding: 23px 20px;
    border-radius: 14px;
    color: #fff;
    text-align: left;
    background: #111827;
    box-shadow: 0 14px 26px rgba(20, 35, 60, .13);
    text-decoration: none;
    isolation: isolate;
    transition: transform .18s ease, box-shadow .18s ease, outline-color .18s ease;
}

.ksse-home-course-card::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -2;
    background: var(--course-image);
    background-size: cover;
    background-position: center;
}

.ksse-home-course-card::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(180deg, rgba(3, 7, 18, .06), rgba(3, 7, 18, .68)),
        repeating-linear-gradient(135deg, rgba(255, 255, 255, .07) 0 1px, transparent 1px 24px);
}

.ksse-home-course-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 22px 42px rgba(20, 35, 60, .18);
}

.ksse-home-course-card.is-highlight {
    outline: 4px solid #3b95ff;
    outline-offset: 0;
}

.ksse-home-course-card strong {
    position: relative;
    z-index: 1;
    display: block;
    min-height: 58px;
    font-size: 24px;
    line-height: 1.18;
    font-weight: 950;
    text-shadow: 0 3px 10px rgba(0, 0, 0, .42);
    word-break: keep-all;
}

.ksse-home-course-card small {
    position: relative;
    z-index: 1;
    display: block;
    margin-top: 12px;
    color: rgba(255, 255, 255, .92);
    font-size: 14px;
    line-height: 1.45;
    font-weight: 800;
    text-shadow: 0 2px 8px rgba(0, 0, 0, .38);
    word-break: keep-all;
}

.ksse-home-course-card > i {
    position: absolute;
    left: 18px;
    top: 18px;
    z-index: 1;
    color: #fff;
    font-size: 16px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, .45);
}

.ksse-home-course-card em {
    position: absolute;
    right: 14px;
    top: 12px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    padding: 0 12px;
    border-radius: 999px;
    background: #3b95ff;
    color: #fff;
    font-size: 12px;
    line-height: 1;
    font-weight: 950;
    font-style: normal;
    text-align: center;
    box-shadow: 0 12px 24px rgba(59, 149, 255, .26);
}

.ksse-course-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 14px;
}

.ksse-course-dots button {
    width: 8px;
    height: 8px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: #d1d5db;
    cursor: pointer;
    transition: width .2s ease, background .2s ease;
}

.ksse-course-dots button.is-active {
    width: 28px;
    background: #2563eb;
}

.course-worker { --course-image: linear-gradient(135deg, #0f766e, #14213d); }
.course-supervisor { --course-image: linear-gradient(135deg, #166534, #102a28); }
.course-risk { --course-image: linear-gradient(135deg, #b45309, #5f2412); }
.course-online { --course-image: linear-gradient(135deg, #1d4ed8, #14213d); }
.course-zoom { --course-image: linear-gradient(135deg, #475569, #1f2937); }
.course-special { --course-image: linear-gradient(135deg, #64748b, #2f3a4a); }
.course-office { --course-image: linear-gradient(135deg, #15803d, #123a2a); }
.course-group { --course-image: linear-gradient(135deg, #0369a1, #14324a); }

@media (max-width: 1040px) {
    .ksse-home-courses-panel {
        padding: 14px 0 20px;
    }

    .ksse-home-courses-head {
        flex-wrap: wrap;
    }

    .ksse-home-courses-head h2 {
        font-size: 32px;
    }

    .ksse-course-controls {
        margin-left: auto;
    }

    .ksse-home-courses-viewport {
        --course-gap: 18px;
        --course-visible: 3;
    }

    .ksse-home-course-card {
        min-height: 200px;
    }
}

@media (max-width: 640px) {
    .ksse-home-courses {
        padding: 28px 16px 36px;
    }

    .ksse-home-courses-panel {
        padding: 10px 0 18px;
        border-width: 0;
        border-radius: 0;
    }

    .ksse-home-courses-head {
        gap: 12px;
        margin-bottom: 18px;
    }

    .ksse-home-courses-head span {
        min-height: 32px;
        font-size: 14px;
    }

    .ksse-home-courses-head h2 {
        width: 100%;
        order: 2;
        font-size: 26px;
    }

    .ksse-course-controls {
        order: 1;
    }

    .ksse-home-courses-viewport {
        --course-gap: 12px;
        --course-visible: 1;
    }

    .ksse-home-course-card {
        min-height: 172px;
        padding: 20px 18px;
    }

    .ksse-home-course-card strong {
        min-height: 0;
        font-size: 23px;
    }

    .ksse-home-course-card small {
        font-size: 13px;
    }
}
