/* ── HOW IT WORKS PAGE STYLES (ORIGINAL DESIGN) ── */

.how-it-works-main {
    --background: #ffffff;
    --foreground: #0b2540;
    --border-hw: #00000014;
    --input-hw: #f5f8fa;
    --primary-hw: #0a78b6;
    --primary-foreground: #ffffff;
    --secondary-hw: #c81d5b;
    --secondary-foreground: #ffffff;
    --muted-hw: #f2f4f6;
    --muted-foreground: #8a8f98;
    --success: #28a745;
    --success-foreground: #ffffff;
    --accent: #ffb546;
    --accent-foreground: #0b2540;
    --destructive: #e63946;
    --destructive-foreground: #ffffff;
    --warning: #ffd166;
    --warning-foreground: #0b2540;
    --card: #ffffff;
    --card-foreground: #0b2540;
    --radius-sm: 4px;
    --radius-md: 6px;
    --radius-lg: 8px;
    --radius-xl: 12px;
    --font-family-body: 'Inter', sans-serif;
}

/* ─── SEARCH SECTION ─── */
#search-section {
    background-color: var(--primary-hw);
    padding: 36px 24px;
}

.search-wrapper {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    display: flex;
    width: 100%;
}

.search-input {
    width: 100%;
    padding: 16px 24px;
    padding-right: 64px;
    border-radius: var(--radius-md);
    border: none;
    font-size: 16px;
    background-color: var(--background);
    color: var(--foreground);
    outline: none;
    font-family: var(--font-family-body);
}

.search-input::placeholder {
    color: var(--muted-foreground);
}

.search-btn {
    position: absolute;
    right: 4px;
    top: 4px;
    bottom: 4px;
    width: 48px;
    border-radius: var(--radius-md);
    background-color: var(--destructive);
    color: var(--destructive-foreground);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s;
}

.search-btn:hover {
    opacity: 0.9;
}

/* ─── HOW IT WORKS HERO ─── */
#how-it-works-hero {
    padding: 4px 24px;
    background-color: var(--background);
}

#how-it-works-hero .section-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--foreground);
}

.breadcrumbs {
    font-size: 14px;
    color: var(--muted-foreground);
    margin-bottom: 36px;
}

.video-container {
    max-width: 960px;
    margin: 0 auto;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background-color: var(--muted-hw);
    position: relative;
}

.video-container img.hiw-video-thumb {
    width: 100%;
    height: 540px;
    object-fit: cover;
    display: block;
}

.video-container.no-preview {
    background: #000;
}

.video-iframe-wrapper {
    position: relative;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
}

.video-iframe-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Play button overlay */
.video-container::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.18);
    display: flex;
    align-items: center;
    justify-content: center;
}

.play-btn-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    width: 72px;
    height: 72px;
    background: rgba(255, 255, 255, 0.92);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.18);
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
}

.play-btn-overlay:hover {
    transform: translate(-50%, -50%) scale(1.08);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.22);
}

/* ─── STEPS SECTION ─── */
#steps-section {
    background-color: var(--muted-hw);
    padding: 72px 24px;
}

.steps-header {
    text-align: center;
    margin-bottom: 48px;
}

.steps-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--foreground);
}

.steps-subtitle {
    font-size: 16px;
    color: var(--muted-foreground);
}

#steps-section .steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    max-width: 1100px;
    margin: 0 auto;
}

.step-card {
    background-color: var(--destructive);
    color: var(--destructive-foreground);
    padding: 48px 32px;
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 0.25s, box-shadow 0.25s;
}

.step-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(230, 57, 70, 0.18);
}

.step-icon-circle {
    width: 84px;
    height: 84px;
    border: 2px solid rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 28px;
    background: rgba(255, 255, 255, 0.08);
}

.step-number {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    opacity: 0.7;
    margin-bottom: 10px;
}

.step-desc {
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 28px;
    opacity: 0.95;
}

#steps-section .read-more {
    font-weight: 600;
    font-size: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
    padding-bottom: 2px;
    letter-spacing: 0.02em;
    transition: opacity 0.2s;
    color: #fff;
}

#steps-section .read-more:hover {
    opacity: 0.8;
}

.sell-now-wrapper {
    text-align: center;
    margin-top: 52px;
}

.btn-primary-custom {
    background-color: var(--primary-hw);
    color: var(--primary-foreground);
    padding: 16px 56px;
    border-radius: var(--radius-xl);
    font-size: 15px;
    font-weight: 700;
    display: inline-block;
    letter-spacing: 0.05em;
    transition: background-color 0.2s, transform 0.2s;
    text-decoration: none;
}

.btn-primary-custom:hover {
    background-color: #0869a0;
    transform: translateY(-2px);
    color: #fff;
}

/* Responsive tweaks */
@media (max-width: 768px) {
    #how-it-works-hero .section-title {
        font-size: 24px;
    }

    .steps-title {
        font-size: 22px;
    }
}

/* ── SUPPORT FOR SELL STEPS GRID & EXISTING BLOCKS ── */
.how-it-works-main .sell-steps__grid,
.how-it-works-main .steps-grid>.wp-block-group__inner-container {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 20px !important;
    margin-top: 30px;
}

.how-it-works-main .sell-step-card,
.how-it-works-main .step-card {
    background: #bc1c5c !important;
    color: #fff !important;
    border-radius: 12px !important;
    padding: 22px !important;
    text-align: center !important;
    box-shadow: 0 0 0.4rem rgba(0, 0, 0, 0.1) !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    transition: transform 0.25s, box-shadow 0.25s;
}

.how-it-works-main .sell-step-card img,
.how-it-works-main .step-card .step-icon-circle {
    width: 130px !important;
    height: 130px !important;
    margin: 0 auto 20px !important;
    border-radius: 50% !important;
    background: rgba(255, 255, 255, 0.1) !important;
    border: 2px solid rgba(255, 255, 255, 0.3) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: background 0.3s, transform 0.3s;
}

.how-it-works-main .step-card:hover .step-icon-circle {
    background: rgba(255, 255, 255, 0.2) !important;
    transform: scale(1.05);
}

.how-it-works-main .step-card .step-number {
    display: none !important;
}

.how-it-works-main .sell-step-card p,
.how-it-works-main .step-card .step-desc {
    font-size: 14px !important;
    line-height: 1.6 !important;
    margin: 0 !important;
    color: #fff !important;
    opacity: 1 !important;
}

/* Responsive adjustments */
@media (max-width: 992px) {

    .how-it-works-main .sell-steps__grid,
    .how-it-works-main .steps-grid>.wp-block-group__inner-container {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 640px) {

    .how-it-works-main .sell-steps__grid,
    .how-it-works-main .steps-grid>.wp-block-group__inner-container {
        grid-template-columns: 1fr !important;
    }
}