.kghcs,
.kghcs * {
    box-sizing: border-box;
}

.kghcs {
    --kghcs-gap: 24px;
    --kghcs-slides: 3;
    --kghcs-accent: #f31313;
    --kghcs-text: #172126;
    --kghcs-muted: #66747a;
    --kghcs-border: #e4eaec;
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 16px 52px 20px;
    position: relative;
    font-family: inherit;
    background: transparent;
}

.kghcs__shell {
    position: relative;
    width: 100%;
}

.kghcs__viewport {
    width: 100%;
    overflow: hidden;
    touch-action: pan-y;
    padding: 4px;
    margin: -4px;
}

.kghcs__track {
    display: flex;
    align-items: stretch;
    gap: var(--kghcs-gap);
    transition: transform 520ms cubic-bezier(.22,.61,.36,1);
    will-change: transform;
}

.kghcs__slide {
    flex: 0 0 calc((100% - (var(--kghcs-gap) * (var(--kghcs-slides) - 1))) / var(--kghcs-slides));
    min-width: 0;
    margin: 0;
    padding: 0;
}

.kghcs__course {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    padding: 16px 16px 15px;
    color: inherit;
    text-decoration: none !important;
    outline: none;
    background: #fff;
    border: 1px solid var(--kghcs-border);
    border-radius: 14px;
    transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.kghcs__course:hover,
.kghcs__course:focus-visible {
    transform: translateY(-4px);
    border-color: #cdd9dc;
    box-shadow: 0 12px 30px rgba(28, 55, 62, .10);
}

.kghcs__course:focus-visible {
    outline: 2px solid var(--kghcs-accent);
    outline-offset: 3px;
}

.kghcs__image-wrap {
    width: 100%;
    height: 210px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #f8fafb;
    border-radius: 10px;
}

.kghcs__image {
    display: block;
    width: 100%;
    height: 100%;
    padding: 10px;
    object-fit: contain;
    object-position: center;
    transition: transform 260ms ease;
}

.kghcs__placeholder {
    width: 132px;
    height: 132px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid var(--kghcs-accent);
    color: var(--kghcs-accent);
    font-size: 32px;
    font-weight: 800;
}

.kghcs__course:hover .kghcs__image,
.kghcs__course:focus-visible .kghcs__image {
    transform: scale(1.045);
}

.kghcs__course-title {
    display: block;
    margin-top: 16px;
    font-family: inherit;
    font-size: clamp(18px, 1.4vw, 22px);
    line-height: 1.35;
    font-weight: 700;
    color: var(--kghcs-text);
    text-align: left;
    overflow-wrap: anywhere;
}

.kghcs__view-course {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    width: fit-content;
    margin-top: auto;
    padding-top: 13px;
    font-size: 13px;
    line-height: 1.2;
    font-weight: 600;
    letter-spacing: .02em;
    color: var(--kghcs-accent);
}

.kghcs__view-course span {
    transition: transform 180ms ease;
}

.kghcs__course:hover .kghcs__view-course span,
.kghcs__course:focus-visible .kghcs__view-course span {
    transform: translateX(3px);
}

.kghcs__arrow {
    position: absolute;
    z-index: 5;
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
    height: 54px;
    margin: 0;
    padding: 0;
    border: 0 !important;
    border-radius: 0;
    background: transparent !important;
    color: #f31313 !important;
    box-shadow: none !important;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: Arial, sans-serif;
    font-size: 54px;
    line-height: 1;
    font-weight: 400;
    transition: opacity 160ms ease, transform 160ms ease;
}

.kghcs__arrow span {
    display: block;
    transform: translateY(-1px);
}

.kghcs__arrow:hover {
    opacity: .72;
}

.kghcs__arrow:focus-visible {
    outline: 2px solid #f31313;
    outline-offset: 2px;
}

.kghcs__arrow--prev {
    left: -48px;
}

.kghcs__arrow--next {
    right: -48px;
}

.kghcs__arrow:disabled {
    opacity: .24;
    cursor: default;
}

.kghcs__dots {
    min-height: 18px;
    margin-top: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.kghcs__dot {
    width: 8px;
    height: 8px;
    min-width: 8px;
    min-height: 8px;
    margin: 0;
    padding: 0;
    border: 0 !important;
    border-radius: 50%;
    background: #f31313 !important;
    opacity: .28;
    box-shadow: none !important;
    cursor: pointer;
    transition: opacity 180ms ease, transform 180ms ease;
}

.kghcs__dot.is-active {
    background: #f31313 !important;
    opacity: 1;
    transform: scale(1.18);
}

.kghcs__dot:hover {
    opacity: .65;
}

.kghcs__dot.is-active:hover {
    opacity: 1;
}

.kghcs__dot:focus-visible {
    outline: 2px solid #f31313;
    outline-offset: 3px;
}

.kghcs-admin-message {
    padding: 12px 14px;
    border: 1px solid #dcdcde;
    background: #fff;
}

@media (max-width: 980px) {
    .kghcs {
        --kghcs-slides: 2;
        --kghcs-gap: 20px;
        padding-left: 44px;
        padding-right: 44px;
    }

    .kghcs__arrow--prev {
        left: -38px;
    }

    .kghcs__arrow--next {
        right: -38px;
    }

    .kghcs__image-wrap {
        height: 220px;
    }
}

@media (max-width: 620px) {
    .kghcs {
        --kghcs-slides: 1;
        --kghcs-gap: 16px;
        padding: 10px 34px 16px;
    }

    .kghcs__course {
        padding: 13px;
        border-radius: 12px;
    }

    .kghcs__image-wrap {
        height: 210px;
    }

    .kghcs__course-title {
        margin-top: 13px;
        font-size: 19px;
    }

    .kghcs__arrow {
        width: 34px;
        height: 48px;
        font-size: 48px;
    }

    .kghcs__arrow--prev {
        left: -32px;
    }

    .kghcs__arrow--next {
        right: -32px;
    }

    .kghcs__dots {
        margin-top: 14px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .kghcs__track,
    .kghcs__course,
    .kghcs__image,
    .kghcs__view-course span,
    .kghcs__dot {
        transition: none;
    }
}
