.kd-hcc {
    --kd-hcc-transition: 420ms cubic-bezier(.2,.75,.2,1);
    width: 100%;
}

.kd-hcc .kd-hcc-swiper {
    overflow: hidden;
}

.kd-hcc .swiper-wrapper {
    display: flex;
    align-items: stretch;
}

.kd-hcc .swiper-slide {
    flex-shrink: 0;
    height: auto;
    box-sizing: border-box;
}

.kd-hcc-card {
    position: relative;
    height: 100%;
    overflow: hidden;
    isolation: isolate;
    background: #1d1d1d;
}

.kd-hcc-image,
.kd-hcc-overlay {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

/* More specific than Elementor's global `.elementor img { height: auto; }`.
 * This keeps the image covering the full card without changing slide sizing. */
.kd-hcc .kd-hcc-image {
    z-index: 0;
    display: block;
    width: 100%;
    max-width: none;
    height: 100%;
    object-fit: cover;
    transition: transform 700ms cubic-bezier(.2,.75,.2,1);
}

.kd-hcc-overlay {
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(0,0,0,.05) 20%, rgba(0,0,0,.72) 100%);
    transition: opacity var(--kd-hcc-transition);
}

.kd-hcc-content {
    position: relative;
    z-index: 2;
    min-height: inherit;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    box-sizing: border-box;
}

.kd-hcc-copy {
    transform: translateY(0);
    transition: transform var(--kd-hcc-transition);
    will-change: transform;
}

.kd-hcc-title,
.kd-hcc-description,
.kd-hcc-description p {
    margin-top: 0;
}

.kd-hcc-description,
.kd-hcc-description p:last-child {
    margin-bottom: 0;
}

.kd-hcc-description {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 220ms ease, transform var(--kd-hcc-transition);
}

.kd-hcc-button {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    line-height: 1;
    opacity: 0;
    transform: translateY(18px);
    pointer-events: none;
    transition: opacity 260ms ease 90ms, transform var(--kd-hcc-transition), background-color 200ms ease, color 200ms ease;
}

.kd-hcc-card:hover .kd-hcc-description,
.kd-hcc-card:focus-within .kd-hcc-description {
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
}

.kd-hcc-card:hover .kd-hcc-button,
.kd-hcc-card:focus-within .kd-hcc-button {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.kd-hcc-navigation {
    display: flex;
    align-items: center;
    justify-content: center;
}

.kd-hcc-nav {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 999px;
    padding: 0;
    cursor: pointer;
    font: inherit;
    font-size: 28px;
    line-height: 1;
    transition: opacity 180ms ease, transform 180ms ease, background-color 180ms ease, color 180ms ease;
}

.kd-hcc-nav:hover,
.kd-hcc-nav:focus-visible {
    transform: translateY(-1px);
}

.kd-hcc-nav.swiper-button-disabled {
    opacity: .3;
    cursor: default;
    transform: none;
}

.kd-hcc-nav span {
    display: block;
    transform: translateY(-1px);
}

@media (prefers-reduced-motion: reduce) {
    .kd-hcc *,
    .kd-hcc *::before,
    .kd-hcc *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.001ms !important;
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
    }
}
