/* ── Content - Text Steps ─────────────────────────────────────────────────── */

.cts-block {
    padding: 96px 0;
    background: var(--wp--preset--color--white, #fff);
}

.cts-inner {
    display: flex;
    align-items: stretch;
    gap: 80px;
}

.cts-media {
    position: relative;
    flex: 1 1 0;
    min-width: 0;
    border-radius: 16px;
    overflow: hidden;
}

.cts-media-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cts-media-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
}

.cts-content {
    display: flex;
    flex-direction: column;
    gap: 40px;
    flex: 1 1 0;
    min-width: 0;
}

.cts-intro {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 640px;
}

.cts-label-row {
    display: flex;
    align-items: center;
    gap: 16px;
}

.cts-label-bar {
    width: 4px;
    height: 24px;
    flex-shrink: 0;
    background: var(--wp--preset--color--pink-500, #DF006E);
}

.cts-label {
    margin: 0;
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
    color: var(--wp--preset--color--pink-500, #DF006E);
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.cts-title {
    margin: 0;
    font-size: 32px;
    font-weight: 400;
    line-height: 1.25;
    color: var(--wp--preset--color--black, #1A1A25);
}

.cts-desc,
.cts-desc p {
    margin: 0;
    font-size: 16px;
    font-weight: 300;
    line-height: 24px;
    color: var(--wp--preset--color--dark, #2E2E39);
}

.cts-desc p + p {
    margin-top: 16px;
}

/* ── Steps ────────────────────────────────────────────────────────────────── */

.cts-steps {
    display: flex;
    flex-direction: column;
    gap: 32px;
    width: 100%;
}

.cts-step {
    display: flex;
    gap: 16px;
    align-items: stretch;
    width: 100%;
}

.cts-step-marker {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    flex-shrink: 0;
}

.cts-step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 999px;
    background: rgba(139, 92, 246, 0.1);
    color: var(--wp--preset--color--purple-500, #430B8E);
    font-size: 18px;
    font-weight: 400;
    line-height: 24px;
}

.cts-step-connector {
    flex: 1 1 0;
    min-height: 24px;
    width: 12px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='42' viewBox='0 0 12 42' fill='none'%3E%3Cpath d='M6.27344 0.75C6.27344 0.335786 5.93765 1.81059e-08 5.52344 0C5.10922 -1.81059e-08 4.77344 0.335786 4.77344 0.75L5.52344 0.75L6.27344 0.75ZM4.99311 41.2803C5.286 41.5732 5.76087 41.5732 6.05377 41.2803L10.8267 36.5074C11.1196 36.2145 11.1196 35.7396 10.8267 35.4467C10.5338 35.1538 10.059 35.1538 9.76608 35.4467L5.52344 39.6893L1.2808 35.4467C0.987902 35.1538 0.513029 35.1538 0.220135 35.4467C-0.0727583 35.7396 -0.0727583 36.2145 0.220135 36.5074L4.99311 41.2803ZM5.52344 0.75L4.77344 0.75L4.77344 40.75L5.52344 40.75L6.27344 40.75L6.27344 0.75L5.52344 0.75Z' fill='%237E33E2'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 100% 100%;
}

.cts-step-body {
    display: flex;
    flex-direction: column;
    gap: 16px;
    flex: 1 1 0;
    min-width: 0;
    padding-bottom: 32px;
}

.cts-step:last-child .cts-step-body {
    padding-bottom: 0;
}

.cts-step-title {
    margin: 0;
    font-size: 20px;
    font-weight: 400;
    line-height: 28px;
    color: var(--wp--preset--color--dark, #2E2E39);
}

.cts-step-desc {
    margin: 0;
    font-size: 14px;
    font-weight: 300;
    line-height: 20px;
    color: var(--wp--preset--color--neutral-300, #747481);
}

/* ── Responsive ───────────────────────────────────────────────────────────── */

@media (max-width: 991px) {
    .cts-block {
        padding: 64px 0;
    }

    .cts-inner {
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .cts-block {
        padding: 40px 0;
    }

    .cts-inner {
        flex-direction: column;
        align-items: stretch;
        gap: 40px;
    }

    .cts-media {
        flex: none;
        width: 100%;
        aspect-ratio: 16 / 9;
    }

    .cts-intro {
        max-width: 100%;
    }
}

/* ── Dark mode ────────────────────────────────────────────────────────────── */

html[data-theme="dark"] .cts-block {
    background: var(--wp--preset--color--black, #1A1A25);
}

html[data-theme="dark"] .cts-title,
html[data-theme="dark"] .cts-step-title {
    color: var(--wp--preset--color--white);
}

html[data-theme="dark"] .cts-desc,
html[data-theme="dark"] .cts-desc p {
    color: rgba(255, 255, 255, 0.7);
}

html[data-theme="dark"] .cts-step-desc {
    color: rgba(255, 255, 255, 0.6);
}

html[data-theme="dark"] .cts-step-number {
    background: rgba(126, 51, 226, 0.16);
    color: #b98bff;
}

html[data-theme="dark"] .cts-step-connector {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='42' viewBox='0 0 12 42' fill='none'%3E%3Cpath d='M6.27344 0.75C6.27344 0.335786 5.93765 1.81059e-08 5.52344 0C5.10922 -1.81059e-08 4.77344 0.335786 4.77344 0.75L5.52344 0.75L6.27344 0.75ZM4.99311 41.2803C5.286 41.5732 5.76087 41.5732 6.05377 41.2803L10.8267 36.5074C11.1196 36.2145 11.1196 35.7396 10.8267 35.4467C10.5338 35.1538 10.059 35.1538 9.76608 35.4467L5.52344 39.6893L1.2808 35.4467C0.987902 35.1538 0.513029 35.1538 0.220135 35.4467C-0.0727583 35.7396 -0.0727583 36.2145 0.220135 36.5074L4.99311 41.2803ZM5.52344 0.75L4.77344 0.75L4.77344 40.75L5.52344 40.75L6.27344 40.75L6.27344 0.75L5.52344 0.75Z' fill='%23b98bff'/%3E%3C/svg%3E");
}
