.cc-carousel-wrap {
    --cc-desktop: 3;
    --cc-tablet: 2;
    --cc-mobile: 1;
    --cc-gap: 24px;
    --cc-image-height: 240px;
    position: relative;
    width: 100%;
    box-sizing: border-box;
    padding: 0 52px 0px;
}

.cc-carousel-wrap * { box-sizing: border-box; }

.cc-carousel-viewport {
    overflow: hidden;
    width: 100%;
    touch-action: pan-y;
}

.cc-carousel-track {
    display: flex;
    gap: var(--cc-gap);
    transition: transform 500ms ease;
    will-change: transform;
}

.cc-slide {
    flex: 0 0 calc((100% - (var(--cc-gap) * (var(--cc-desktop) - 1))) / var(--cc-desktop));
    min-width: 0;
}

.cc-card {
    height: 100%;
    overflow: hidden;
    background: transparent;
    border: none;
    border-radius: 14px;
    box-shadow: none;
    display: flex;
    flex-direction: column;
    cursor:pointer;
}

.cc-image {
    position: relative;
    height: var(--cc-image-height);
    overflow: hidden;
    background: #f3f3f3;
}

.cc-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cc-badge,
.cc-badge-only {
    display: inline-block;
    background: #111;
    color: #fff;
    font-size: 12px;
    line-height: 1;
    font-weight: 700;
    letter-spacing: .03em;
    padding: 8px 11px;
    border-radius: 999px;
}

.cc-badge {
    position: absolute;
    left: 16px;
    bottom: 16px;
}

.cc-badge-only {
    margin: 18px 18px 0;
    align-self: flex-start;
}

.cc-body {
    padding: 22px;
    display: flex;
    flex: 1;
    flex-direction: column;
    text-align:center;
}

.cc-title {
    margin: 0 0 10px;
    font-size: 21px;
    line-height: 1.25;
    font-weight: 700;
}

.cc-content {
    color: #555;
    font-size: 15px;
    line-height: 1.65;
    margin-bottom: 18px;
}

.cc-content p:last-child { margin-bottom: 0; }

.cc-link {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    color: #111;
    text-decoration: none;
    font-weight: 700;
}

.cc-link:hover { text-decoration: underline; }

.cc-arrow {
    position: absolute;
    top: 42%;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    border: 1px solid #ddd;
    border-radius: 50%;
    background: #fff;
    color: #111;
    box-shadow: 0 4px 15px rgba(0,0,0,.1);
    cursor: pointer;
    z-index: 3;
    font-size: 30px;
    line-height: 34px;
}

.cc-arrow:hover { background: #f7f7f7; }
.cc-arrow:disabled { opacity: .4; cursor: not-allowed; }
.cc-prev { left: 0; }
.cc-next { right: 0; }

.cc-dots {
    position: absolute;
    left: 50%;
    bottom: 5px;
    transform: translateX(-50%);
    display: flex;
    gap: 7px;
    align-items: center;
}

.cc-dot {
    width: 8px;
    height: 8px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #ccc;
    cursor: pointer;
}

.cc-dot.is-active {
    width: 24px;
    border-radius: 999px;
    background: #111;
}

@media (max-width: 1024px) {
    .cc-carousel-wrap { padding-left: 46px; padding-right: 46px; }
    .cc-slide {
        flex-basis: calc((100% - (var(--cc-gap) * (var(--cc-tablet) - 1))) / var(--cc-tablet));
    }
}

@media (max-width: 767px) {
    .cc-carousel-wrap { padding-left: 0; padding-right: 0; }
    .cc-slide {
        flex-basis: calc((100% - (var(--cc-gap) * (var(--cc-mobile) - 1))) / var(--cc-mobile));
    }
    .cc-arrow { display: none; }
    .cc-body { padding: 18px; }
    .cc-title { font-size: 19px; }
}
