/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background: #ffffff;
    overflow-x: hidden;
}

/* MAIN SECTION - FIXED SCROLLING */
.howitworks-section {
    padding-top: 0px !important;
    text-align: center;
    background: #fff;
    position: relative;
    margin-bottom: 20px;
}

/* HEADER */
.howitworks-header h2 {
    font-size: 38px;
    font-weight: 700;
    font-family: 'Playfair Display', serif;
    color: #4a235a;
    margin-bottom: 10px;
    margin-top: 0px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.bulb-inline img {
    width: 80px;
    height: auto;
    vertical-align: middle;
    filter: drop-shadow(0 3px 6px rgba(255, 193, 7, 0.6));
}

.howitworks-header p {
    font-size: 15px;
    color: #6a1b9a;
    margin-bottom: 25px;
    margin-top: 0px;
}
.steps-container {
    max-width: 1350px;
    margin: auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 30px;
    flex-wrap: wrap;
    position: relative;
    padding-top: 10px;
    padding-bottom: 40px;
}

/* STEP LINE - HIDDEN ON DESKTOP FOR PURE WAVE LINES */
.step-line {
    width: 2px;
    height: 80px;
    background: linear-gradient(to bottom, #ff4f87, #3b82f6, #8b5cf6);
    margin: 20px 0;
    flex-shrink: 0;
    border-radius: 2px;
    position: relative;
    /* HIDDEN ON DESKTOP - ONLY WAVES VISIBLE */
    display: none;
}

/* WAVE LINE BACKGROUND - PRIMARY WAVE */
.steps-container::before {
    content: "";
    position: absolute;
    top: 0px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 1250px;
    height: 100px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1250' height='100' viewBox='0 0 1250 100'%3E%3Cpath d='M60 50 C180 5 300 95 420 50 C540 5 660 95 780 50 C900 5 1020 95 1140 50 C1200 25 1230 35 1245 45' fill='none' stroke='%23ff4f87' stroke-width='4' stroke-linecap='round'/%3E%3Cpath d='M420 50 C540 5 660 95 780 50' fill='none' stroke='%233b82f6' stroke-width='4' stroke-linecap='round'/%3E%3Cpath d='M780 50 C900 5 1020 95 1140 50' fill='none' stroke='%238b5cf6' stroke-width='4' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    opacity: 0.95;
    z-index: 1;
    pointer-events: none;
}

/* WAVE LINE BACKGROUND - SECONDARY WAVE */
.steps-container::after {
    content: "";
    position: absolute;
    top: 14px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 1250px;
    height: 100px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1250' height='100' viewBox='0 0 1250 100'%3E%3Cpath d='M60 50 C180 95 300 5 420 50 C540 95 660 5 780 50 C900 95 1020 5 1140 50 C1200 75 1230 60 1245 55' fill='none' stroke='%23ffb3d0' stroke-width='3' stroke-linecap='round' opacity='0.9'/%3E%3Cpath d='M420 50 C540 95 660 5 780 50' fill='none' stroke='%239ac2ff' stroke-width='3' stroke-linecap='round' opacity='0.9'/%3E%3Cpath d='M780 50 C900 95 1020 5 1140 50' fill='none' stroke='%23c4b5fd' stroke-width='3' stroke-linecap='round' opacity='0.9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    opacity: 0.9;
    z-index: 0;
    pointer-events: none;
}

/* STEP ITEM */
.step-item {
    width: 270px;
    text-align: center;
    position: relative;
    z-index: 2;
    cursor: pointer;
}

/* STEP CIRCLE */
.step-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 19px;
    font-weight: bold;
    color: white;
    margin: auto;
    margin-bottom: 16px;
    box-shadow: 0px 8px 18px rgba(0, 0, 0, 0.15);
    position: relative;
    z-index: 20;
}

/* STEP COLORS */
.step-circle.pink { background: #ff4f87; }
.step-circle.orange { background: #ff9b33; }
.step-circle.blue { background: #3b82f6; }
.step-circle.purple { background: #8b5cf6; }

/* STEP TEXT */
.step-item h3 {
    font-family: 'Playfair Display', serif;
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #4a235a;
}

.step-item p {
    font-size: 14px;
    line-height: 1.6;
    color: #6a1b9a;
    max-width: 240px;
    margin: auto;
}

/* TESTIMONIAL WRAPPER */
.testimonial-wrapper {
    margin-top: 55px;
    max-width: 1300px;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 25px;
    position: relative;
    padding: 0 20px 80px;
}

.testimonial-container {
    display: flex;
    gap: 20px;
}

.arrow-btn {
    width: 45px;
    height: 45px;
    aspect-ratio: 1 / 1;
    padding: 0 !important;
    border-radius: 50%;
    border: none;
    background: #ffffff;
    cursor: pointer;
    font-size: 18px;
    color: #555;
    box-shadow: 0px 10px 20px rgba(0,0,0,0.15);
    transition: 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
}

.arrow-btn:hover {
    background: #f2f2f2;
    transform: scale(1.08);
    box-shadow: 0px 14px 25px rgba(0,0,0,0.22);
}

/* TESTIMONIAL CARD */
.testimonial-card {
    width: 520px;
    height: 380px;
    padding: 38px 32px 55px;
    border-radius: 20px;
    margin: 0 12px;
    transform: scale(0.95);
    transition: 0.4s ease;
    background: linear-gradient(135deg, #dde7f3, #f1d8d8, rgba(124, 58, 237, 0.12), #ddc5ec);
    box-shadow: 0px 12px 28px rgba(0, 0, 0, 0.10);
    position: relative;
    text-align: center;
    opacity: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    flex-shrink: 0;
}

.testimonial-card:hover {
    transform: translateY(-6px);
    box-shadow: 0px 16px 35px rgba(0, 0, 0, 0.14);
}

.profile-img {
    width: 85px;
    height: 85px;
    border-radius: 50%;
    overflow: hidden;
    margin: auto;
    margin-bottom: 16px;
    border: 4px solid rgba(255, 255, 255, 0.95);
    box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.18);
    flex-shrink: 0;
}

.profile-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.testimonial-card h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 12px;
    color: #4a235a;
    font-family: 'Playfair Display', serif;
}

.testimonial-card p {
    font-size: 14px;
    color: #6a1b9a;
    line-height: 1.75;
    flex-grow: 1;
    margin-bottom: 12px;
    margin-top: 10px;
}

.testimonial-card.active-card {
    transform: scale(1.02);
    z-index: 5;
    opacity: 1;
}

.testimonial-card .dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 999;
}

.testimonial-card .dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: rgba(120, 120, 120, 0.35);
    transition: 0.3s;
    cursor: pointer;
    pointer-events: auto;
}

.testimonial-card .active-dot {
    background: #7c3aed;
    box-shadow: 0px 0px 10px rgba(124, 58, 237, 0.6);
    transform: scale(1.15);
}

/* RESPONSIVE */
@media (max-width: 992px) {
    .steps-container {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        gap: 35px;
    }

    .step-item {
        width: 100%;
        max-width: 320px;
        margin: 0 auto;
    }

    .step-line {
        display: none;
    }

    .steps-container::before,
    .steps-container::after {
        display: none;
    }

    .testimonial-wrapper {
        flex-direction: column;
        align-items: center;
        gap: 50px;
    }

    .testimonial-container {
        flex-direction: row;
        width: 100%;
        justify-content: center;
    }

    .testimonial-card {
        width: 380px;
        margin: 0 8px;
    }
}
@media (max-width: 768px) {

    .testimonial-container {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .testimonial-card {
        width: 92%;
        max-width: 400px;
        height: auto;
        margin-bottom: 35px;   /* 🔥 space between cards */
    }

    .testimonial-card:last-child {
        margin-bottom: 0;   /* last card extra gap avoid */
    }

    .arrow-btn {
        margin: 0 10px;
    }
}
