/* ============================================================================
   Premium Horizontal Steps Block
   
   Paginated step carousel: 3 per page (desktop), 1 per page (mobile),
   with chevrons + dots navigation.
   ============================================================================ */

.bobex-hsteps-wrapper {
    margin: 2.5rem 0;
}

.bobex-hsteps-container {
    padding: 1rem;
}

@media (min-width: 640px) {
    .bobex-hsteps-container {
        padding: 1.5rem;
    }
}

/* ─── Header ───────────────────────────────────────────────────────────────── */

.bobex-hsteps-header {
    margin-bottom: 1rem;
}

.bobex-hsteps-intro {
    margin-top: 0.375rem;
}

/* ─── Viewport & Track ─────────────────────────────────────────────────────── */

.bobex-hsteps-viewport {
    overflow: hidden;
    margin: 0 -0.375rem;
}

.bobex-hsteps-track {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    transition: transform 0.3s ease;
}

@media (prefers-reduced-motion: reduce) {
    .bobex-hsteps-track {
        transition: none;
    }
}

/* ─── Step Item ────────────────────────────────────────────────────────────── */

.bobex-hsteps-item {
    flex: none;
    padding: 0 0.375rem;
    display: flex;
}

.bobex-hsteps-card {
    width: 100%;
    background: var(--bobex-gradient-light);
    border-radius: var(--bobex-radius-sm);
    padding: 1rem;
}

@media (min-width: 640px) {
    .bobex-hsteps-card {
        padding: 1.25rem;
    }
}

/* ─── Number Circle ────────────────────────────────────────────────────────── */

.bobex-hsteps-number-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 0.75rem;
}

/* ─── Step Title & Description ─────────────────────────────────────────────── */

.bobex-hsteps-step-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 0.875rem;
    line-height: 1.3;
    color: var(--bobex-color-heading);
    margin: 0 0 0.375rem 0;
    text-align: center;
}

@media (min-width: 640px) {
    .bobex-hsteps-step-title {
        font-size: 0.9375rem;
    }
}

.bobex-hsteps-step-desc {
    font-family: 'Roboto', sans-serif;
    font-size: 0.875rem;
    line-height: 1.5;
    color: var(--bobex-color-body);
    margin: 0;
}

/* ─── Pagination ───────────────────────────────────────────────────────────── */

.bobex-hsteps-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
}

@media (min-width: 640px) {
    .bobex-hsteps-pagination {
        margin-top: 1.25rem;
    }
}

.bobex-hsteps-pagination.bobex-pagination-hidden {
    display: none;
}

/* ─── Navigation Buttons ───────────────────────────────────────────────────── */

.bobex-hsteps-nav-btn {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: var(--bobex-radius-full);
    border: 2px solid var(--bobex-color-primary);
    background: transparent;
    color: var(--bobex-color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    cursor: pointer;
    transition: all 0.2s ease;
}

.bobex-hsteps-nav-btn:hover:not([aria-disabled="true"]) {
    background: var(--bobex-color-primary);
    color: #fff;
}

.bobex-hsteps-nav-btn:focus-visible {
    outline: 2px solid var(--bobex-color-primary);
    outline-offset: 2px;
}

.bobex-hsteps-nav-btn[aria-disabled="true"] {
    opacity: 0.4;
    cursor: not-allowed;
}

@media (prefers-reduced-motion: reduce) {
    .bobex-hsteps-nav-btn {
        transition: none;
    }
}

/* ─── Dots ─────────────────────────────────────────────────────────────────── */

.bobex-hsteps-dots {
    display: flex;
    align-items: center;
    gap: 0.125rem;
}

.bobex-hsteps-dot-btn {
    min-width: 1.5rem;
    height: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
}

.bobex-hsteps-dot-btn:focus-visible {
    outline: 2px solid var(--bobex-color-primary);
    outline-offset: 2px;
    border-radius: var(--bobex-radius-full);
}

.bobex-hsteps-dot {
    display: block;
    height: 0.625rem;
    border-radius: var(--bobex-radius-full);
    background: rgba(40, 120, 200, 0.3);
    transition: all 0.2s ease;
    width: 0.625rem;
}

.bobex-hsteps-dot-btn:hover .bobex-hsteps-dot {
    background: rgba(40, 120, 200, 0.5);
}

.bobex-hsteps-dot-btn[aria-current="true"] .bobex-hsteps-dot {
    background: var(--bobex-color-primary);
    width: 1.5rem;
}

@media (prefers-reduced-motion: reduce) {
    .bobex-hsteps-dot {
        transition: none;
    }
}

/* ─── CTA ──────────────────────────────────────────────────────────────────── */

.bobex-hsteps-cta {
    margin-top: 1.25rem;
    text-align: center;
}

/* ─── Empty State ──────────────────────────────────────────────────────────── */

.bobex-horizontal-steps-empty {
    padding: 2rem;
    text-align: center;
    color: var(--bobex-color-body);
    font-family: 'Roboto', sans-serif;
    background: #f9f9f9;
    border-radius: var(--bobex-radius-md);
}
