
/* ============================================================
   HOW IT WORKS - SECTION ONE
   Structure unchanged, fully responsive for desktop/tab/mobile
   ============================================================ */

.work-sec1{
    overflow: hidden;
}

/* Left text column */
.work-sec1-content{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

.work-download-btn{
    border-radius: 12px;
    padding: 10px 32px;
    font-size: clamp(1rem, 0.92rem + 0.4vw, 1.2rem);
    font-weight: 600;
    line-height: 1.5;
    width: auto;
    min-width: 180px;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.work-download-btn:hover{
    transform: translateY(-2px);
}

/* Right visual column = positioning context.
   max-width locks it to blob size so % positions stay stable. */
.work-sec1-right{
    position: relative;
    width: 100%;
    max-width: 460px;
    margin-inline: auto;
    min-height: 420px;
}

.work-blob{
    width: 100%;
    max-width: 460px;
    height: auto;
    display: block;
}

/* Back phone (tilted) - slightly smaller than front */
.work-mobile-img{
    position: absolute;
    bottom: 4%;
    left: 42%;
    width: 46%;
    max-width: 210px;
    height: auto;
    object-fit: contain;
    transform: rotate(12deg);
    transform-origin: bottom center;
    z-index: 5;
    pointer-events: none;
}

/* Front phone */
.work-mobile-img-2{
    position: absolute;
    bottom: 0;
    left: 6%;
    width: 52%;
    max-width: 240px;
    height: auto;
    object-fit: contain;
    z-index: 10;
    pointer-events: none;
    filter: drop-shadow(0 16px 24px rgba(0, 0, 0, 0.18));
}

/* ============================================================
   LARGE DESKTOP 1200px+
   ============================================================ */
@media (min-width: 1200px){
    .work-sec1-right{
        max-width: 500px;
        min-height: 470px;
    }
    .work-blob{
        max-width: 500px;
    }
    .work-mobile-img{
        max-width: 230px;
    }
    .work-mobile-img-2{
        max-width: 260px;
    }
}

/* ============================================================
   TABLET 768px - 991.98px (stacked, centered)
   ============================================================ */
@media (max-width: 991.98px){
    .work-sec1-content{
        text-align: center;
        align-items: center;
    }
    .work-sec1-right{
        max-width: 420px;
        min-height: 400px;
        margin-top: 0.5rem;
    }
    .work-blob{
        max-width: 420px;
    }
    .work-mobile-img{
        max-width: 190px;
    }
    .work-mobile-img-2{
        max-width: 220px;
    }
}

/* ============================================================
   MOBILE < 768px (stacked)
   ============================================================ */
@media (max-width: 767.98px){
    .work-sec1{
        padding-top: 2rem !important;
        padding-bottom: 2.5rem !important;
    }
    .work-sec1-content{
        text-align: center;
        align-items: center;
    }
    .work-download-btn{
        width: 100%;
        max-width: 320px;
        padding: 12px 20px;
    }
    .work-sec1-right{
        max-width: 340px;
        min-height: 330px;
    }
    .work-blob{
        max-width: 340px;
    }
    .work-mobile-img{
        width: 46%;
        max-width: 160px;
    }
    .work-mobile-img-2{
        width: 52%;
        max-width: 180px;
    }
}

/* ============================================================
   VERY SMALL MOBILE < 400px
   ============================================================ */
@media (max-width: 399.98px){
    .work-download-btn{
        max-width: 100%;
    }
    .work-sec1-right{
        max-width: 280px;
        min-height: 280px;
    }
    .work-blob{
        max-width: 280px;
    }
    .work-mobile-img{
        max-width: 130px;
    }
    .work-mobile-img-2{
        max-width: 150px;
    }
}


section two
.how-pendova-works{
    margin-top: 150px;
    display: flex;
    flex-direction: column;
}


.phone-blob{
    height: 30%;
    width: 30%;
    flex-shrink: 0;
}

.work-first-step{
    position: relative;
}

.work-first-step-img{
    height: 400px;
    position: absolute;
    top:-15%;
    left: 6%;
}

.work-step-number{
    height: 50px;
    width: 50px;
    border-radius: 50%;
    flex-shrink: 0;
}

.phone-blob-2{
    height: 400px;
    width: 400px;
    flex-shrink: 0;
}


.work-step-two-img{
    height: 400px;
    position: absolute;
    top: -10%;
    left: 25%;
}

.work-step-two-blob{
position: relative;
flex-shrink: 0;
}

.step-two-content{
    width: fit-content;
}
.curve-arrow-right {
    width: 400px;
    height: 160px;
    display: block;
}
.right-arrow{
    position: absolute;
    bottom: 0;
    left: 30%;
}

.curve-arrow-left{
    width: 400px;
    height: 160px;
    display: block;
}
.left-pointing-arrow{
    align-self: center;
    flex-shrink: 0;
}

.step-arrow-left {
    width: 400px;
    height: 160px;
    display: block;
}

/* ============================================================
   SECTION TWO - TABLET + MOBILE
   (desktop base above is untouched)
   ============================================================ */

/* ---------- Small desktop 992px - 1199.98px : scale down, no overlap ---------- */
/* @media (min-width: 992px) and (max-width: 1199.98px){
    .how-pendova-works{
        margin-top: 100px;
        gap: 70px;
    }
    .phone-blob{
        width: 300px;
        height: auto;
    }
    .phone-blob-2{
        height: 340px;
        width: 340px;
    }
    .work-first-step{
        align-items: center;
        gap: 1.5rem;
    }
    .work-first-step-img{
        height: 340px;
        top: -8%;
        left: 4%;
    }
    .work-step-two{
        align-items: center;
        gap: 1.5rem;
    }
    .work-step-two-img{
        height: 340px;
        top: -6%;
        left: 22%;
    } */
    /* text widths */
    /* .work-first-step .w-50{
        width: 65% !important;
    }
    .step-two-content .w-25{
        width: 38% !important;
    }
    .work-first-step .fs-3,
    .work-step-two .fs-3{
        font-size: 1.5rem !important;
        line-height: 1.3;
    }
    .work-first-step .secondary-text,
    .work-step-two .secondary-text{
        font-size: 0.98rem;
        line-height: 1.6;
    }
    .curve-arrow-right,
    .curve-arrow-left{
        width: 300px;
        height: 120px;
    }
    .right-arrow{
        left: 28%;
        bottom: -30px;
    }
    .left-pointing-arrow{
        width: 300px;
        margin-right: 0.5rem;
    }
} */

/* ---------- Tablet 768px - 991.98px : same zigzag, scaled down, no overlap ---------- */
/* @media (min-width: 768px) and (max-width: 991.98px){
    .how-pendova-works{
        margin-top: 60px;
        gap: 64px;
    }
    .phone-blob{
        width: 240px;
        height: auto;
    }
    .phone-blob-2{
        height: 270px;
        width: 270px;
    }
    .work-first-step{
        align-items: center;
        gap: 1.25rem;
    }
    .work-first-step-img{
        height: 270px;
        top: -6%;
        left: 4%;
    }
    .work-step-two{
        align-items: center;
        gap: 1.25rem;
    }
    .work-step-two-blob{
        display: flex;
        justify-content: center;
    }
    .work-step-two-img{
        height: 270px;
        top: -5%;
        left: 50%;
        transform: translateX(-50%);
    }
    .step-two-content{
        max-width: 46%;
    } */
    /* widen text that was w-50 / w-25 on desktop */
    /* .work-first-step .w-50{
        width: 100% !important;
        max-width: 340px;
    }
    .step-two-content .w-25{
        width: 100% !important;
        max-width: 320px;
    }
    .work-first-step .fs-3,
    .work-step-two .fs-3{
        font-size: 1.3rem !important;
        line-height: 1.3;
    }
    .work-first-step .secondary-text,
    .work-step-two .secondary-text{
        font-size: 0.92rem;
        line-height: 1.6;
    }
    .work-step-number{
        height: 46px;
        width: 46px;
        font-size: 1.25rem !important;
    }
    .curve-arrow-right,
    .curve-arrow-left{
        width: 220px;
        height: 95px;
    }
    .right-arrow{
        left: 26%;
        bottom: -24px;
    }
    .left-pointing-arrow{
        width: 220px;
        align-self: center;
    }
} */

/* ---------- Mobile < 768px : stacked, arrows hidden, clean gaps ---------- */
/* @media (max-width: 767.98px){
    .how-pendova-works{
        margin-top: 32px;
        gap: 52px;
    }
    .how-pendova-works > div{
        margin-bottom: 0 !important;
    } */

    /* stack steps + center everything */
    /* .work-first-step{
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 18px;
        padding-bottom: 0;
    }
    .how-pendova-works .d-flex.justify-content-end{
        justify-content: center !important;
    }
    .work-step-two{
        flex-direction: column-reverse;
        align-items: center;
        text-align: center;
        gap: 18px;
    }
    .step-two-content{
        align-items: center !important;
        max-width: 100%;
    }
    .work-step-two .text-start{
        text-align: center !important;
    } */

    /* HIDE arrows on mobile */
    /* .right-arrow,
    .left-pointing-arrow,
    .curve-arrow-right,
    .curve-arrow-left,
    .step-arrow-left{
        display: none !important;
    } */

    /* phone centered over its blob */
    /* .phone-blob{
        width: min(250px, 68vw);
        height: auto;
    }
    .phone-blob-2{
        width: min(250px, 68vw);
        height: auto;
    }
    .work-step-two-blob{
        display: flex;
        justify-content: center;
    }
    .work-first-step-img{
        height: 250px;
        top: 0;
        left: 50%;
        transform: translateX(-50%);
    }
    .work-step-two-img{
        height: 250px;
        top: 0;
        left: 50%;
        transform: translateX(-50%);
    } */

    /* text full-width, centered */
    /* .work-first-step .w-50{
        width: 100% !important;
        max-width: 430px;
        margin-inline: auto;
        font-size: 0.95rem;
        line-height: 1.65;
    }
    .step-two-content .w-25{
        width: 100% !important;
        max-width: 430px;
        margin-inline: auto;
        font-size: 0.95rem;
        line-height: 1.65;
    }
    .work-first-step .fs-3,
    .work-step-two .fs-3{
        font-size: 1.35rem !important;
        line-height: 1.35;
    }
    .work-step-number{
        height: 44px;
        width: 44px;
        font-size: 1.2rem !important;
        margin-inline: auto;
    }
} */

/* ---------- Very small mobile < 400px ---------- */
/* @media (max-width: 399.98px){
    .how-pendova-works{
        gap: 44px;
    }
    .phone-blob{
        width: min(215px, 72vw);
    }
    .phone-blob-2{
        width: min(215px, 72vw);
    }
    .work-first-step-img,
    .work-step-two-img{
        height: 220px;
    }
    .work-first-step .fs-3,
    .work-step-two .fs-3{
        font-size: 1.2rem !important;
    }
}



.step-two-wrapper{
    position: relative;
}

.left-pointing-arrow{
    position: absolute;
    bottom: 50px;
    right: 40%;
}

.step-two-content-wrapper{
    width: 100%;
    display: flex;
    justify-content: end;
} */



/* ============================================================
   SECTION TWO - HOW PENDOVA WORKS
   Fully responsive: Desktop / Tablet / Mobile
   HTML STRUCTURE UNCHANGED
   ============================================================ */

.how-pendova-works {
    margin-top: 150px;
    display: flex;
    flex-direction: column;
    gap: 90px;
}

/* ============================================================
   COMMON
   ============================================================ */

.work-first-step {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.phone-blob {
    width: 30%;
    height: auto;
    flex-shrink: 0;
}

.work-first-step-img {
    height: 400px;
    width: auto;
    position: absolute;
    top: -15%;
    left: 6%;
    z-index: 2;
}

/* Step number */
.work-step-number {
    height: 50px;
    width: 50px;
    border-radius: 50%;
    flex-shrink: 0;
}

/* ============================================================
   STEP 1 / STEP 3 TEXT
   ============================================================ */

.work-first-step > div:not(.right-arrow) {
    position: relative;
    z-index: 3;
}

.work-first-step .secondary-text {
    max-width: 500px;
}

/* ============================================================
   RIGHT ARROW
   ============================================================ */

.right-arrow {
    position: absolute;
    left: 30%;
    bottom: -30px;
    z-index: 4;
    pointer-events: none;
}

.curve-arrow-right {
    width: 400px;
    height: 160px;
    display: block;
}

/* ============================================================
   STEP 2 / STEP 4
   ============================================================ */

.step-two-wrapper {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: flex-end;
}

.step-two-content-wrapper {
    width: 100%;
    display: flex;
    justify-content: flex-end;
}

.work-step-two {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 30px;
}

.step-two-content {
    width: 420px;
    flex-shrink: 1;
}

.step-two-content .secondary-text {
    max-width: 420px;
}

.work-step-two-blob {
    position: relative;
    width: 400px;
    height: 400px;
    flex-shrink: 0;
}

.phone-blob-2 {
    width: 400px;
    height: 400px;
    display: block;
}

.work-step-two-img {
    height: 400px;
    width: auto;
    position: absolute;
    top: -10%;
    left: 25%;
    z-index: 2;
}

/* ============================================================
   LEFT ARROW
   ============================================================ */

.left-pointing-arrow {
    position: absolute;
    bottom: 30px;
    right: 38%;
    width: 400px;
    z-index: 4;
    pointer-events: none;
}

.curve-arrow-left {
    width: 400px;
    height: 160px;
    display: block;
}

.step-arrow-left {
    width: 400px;
    height: 160px;
    display: block;
}


/* ============================================================
   LARGE DESKTOP
   1200px+
   ============================================================ */

@media (min-width: 1200px) {

    .how-pendova-works {
        margin-top: 150px;
        gap: 90px;
    }

    .work-first-step {
        align-items: center;
    }

    .phone-blob {
        width: 30%;
        max-width: 500px;
    }

    .work-first-step-img {
        height: 400px;
        top: -15%;
        left: 6%;
    }

    .work-first-step > div:not(.right-arrow) {
        margin-left: 20px;
    }

    .right-arrow {
        left: 30%;
        bottom: -20%;
    }

    .curve-arrow-right {
        width: 400px;
        height: 160px;
    }

    /* ---------------- Step 2 / 4 ---------------- */

    .step-two-content-wrapper {
        width: 100%;
    }

    .work-step-two {
        width: 760px;
        gap: 30px;
    }

    .step-two-content {
        width: 330px;
        flex-shrink: 0;
    }

    .work-step-two-blob {
        width: 400px;
        height: 400px;
    }

    .phone-blob-2 {
        width: 400px;
        height: 400px;
    }

    .work-step-two-img {
        height: 400px;
        top: -10%;
        left: 25%;
    }

    .left-pointing-arrow {
        right: 42%;
        bottom: -3%;
        width: 400px;
    }

    .curve-arrow-left {
        width: 400px;
        height: 160px;
    }
}


/* ============================================================
   TABLET / SMALL DESKTOP
   992px - 1199.98px

   Main fix:
   - Controlled widths
   - Smaller blobs
   - Smaller phones
   - Text cannot collide with blob
   - Arrows positioned relative to their actual step
   ============================================================ */

@media (min-width: 992px) and (max-width: 1199.98px) {

    .how-pendova-works {
        margin-top: 100px;
        gap: 85px;
    }

    /* ========================================================
       STEP 1 / STEP 3
       ======================================================== */

    .work-first-step {
        align-items: center;
        min-height: 320px;
        padding-right: 20px;
    }

    .phone-blob {
        width: 300px;
        height: 300px;
        flex-shrink: 0;
    }

    .work-first-step-img {
        height: 330px;
        width: auto;
        top: -5%;
        left: 6%;
    }

    /*
       Reserve proper space for the text.
       This prevents text from moving into the blob area.
    */
    .work-first-step > div:not(.right-arrow) {
        width: 330px;
        max-width: 330px;
        margin-left: 25px;
        flex-shrink: 0;
    }

    .work-first-step .fs-3,
    .work-step-two .fs-3 {
        font-size: 1.45rem !important;
        line-height: 1.3;
    }

    .work-first-step .secondary-text,
    .work-step-two .secondary-text {
        width: 100% !important;
        max-width: 330px;
        font-size: 0.95rem;
        line-height: 1.6;
    }

    .work-step-number {
        width: 46px;
        height: 46px;
        font-size: 1.25rem !important;
    }

    /* Step 1 / Step 3 arrow */
    .right-arrow {
        left: 27%;
        bottom: -42px;
        width: 300px;
    }

    .curve-arrow-right {
        width: 300px;
        height: 120px;
    }


    /* ========================================================
       STEP 2 / STEP 4
       ======================================================== */

    .step-two-wrapper {
        width: 100%;
        min-height: 320px;
        padding-right: 0;
    }

    /*
       Do NOT allow this wrapper to occupy the entire
       visual width of the step.
    */
    .step-two-content-wrapper {
        width: 100%;
        display: flex;
        justify-content: flex-end;
    }

    /*
       Fixed controlled width:
       text + gap + blob
    */
    .work-step-two {
        width: 650px;
        max-width: 650px;
        display: flex;
        justify-content: flex-end;
        align-items: center;
        gap: 20px;
    }

    /*
       Step 2 text is intentionally on the RIGHT side
       of the available content area.
    */
    .step-two-content {
        width: 300px;
        max-width: 300px;
        flex-shrink: 0;
        text-align: left;
    }

    .step-two-content .secondary-text {
        width: 100% !important;
        max-width: 300px;
        font-size: 0.95rem;
        line-height: 1.6;
    }

    /*
       Smaller blob for tablet
    */
    .work-step-two-blob {
        width: 320px;
        height: 320px;
        flex-shrink: 0;
        position: relative;
    }

    .phone-blob-2 {
        width: 320px;
        height: 320px;
    }

    .work-step-two-img {
        height: 320px;
        width: auto;
        top: -5%;
        left: 24%;
    }

    /*
       LEFT ARROW

       Instead of positioning it from the whole page,
       position it around the Step 2 group.
    */
    .left-pointing-arrow {
        width: 280px;
        right: 50%;
        bottom: -5%;
    }

    .curve-arrow-left {
        width: 280px;
        height: 112px;
    }

    .step-arrow-left {
        width: 280px;
        height: 112px;
    }
}


/* ============================================================
   TABLET
   768px - 991.98px

   More compact layout so the complete zig-zag fits
   without overlap.
   ============================================================ */

@media (min-width: 768px) and (max-width: 991.98px) {

    .how-pendova-works {
        margin-top: 70px;
        gap: 75px;
    }

    /* ========================================================
       STEP 1 / STEP 3
       ======================================================== */

    .work-first-step {
        align-items: center;
        min-height: 280px;
        padding-right: 10px;
    }

    .phone-blob {
        width: 230px;
        height: 230px;
    }

    .work-first-step-img {
        height: 255px;
        width: auto;
        top: -4%;
        left: 5%;
    }

    .work-first-step > div:not(.right-arrow) {
        width: 285px;
        max-width: 285px;
        margin-left: 18px;
        flex-shrink: 0;
    }

    .work-first-step .fs-3,
    .work-step-two .fs-3 {
        font-size: 1.25rem !important;
        line-height: 1.3;
    }

    .work-first-step .secondary-text,
    .work-step-two .secondary-text {
        width: 100% !important;
        max-width: 285px;
        font-size: 0.88rem;
        line-height: 1.55;
    }

    .work-step-number {
        width: 44px;
        height: 44px;
        font-size: 1.15rem !important;
    }

    /* Right arrow */
    .right-arrow {
        left: 23%;
        bottom: -35px;
        width: 220px;
    }

    .curve-arrow-right {
        width: 220px;
        height: 90px;
    }


    /* ========================================================
       STEP 2 / STEP 4
       ======================================================== */

    .step-two-wrapper {
        width: 100%;
        min-height: 280px;
    }

    .step-two-content-wrapper {
        width: 100%;
        display: flex;
        justify-content: flex-end;
    }

    /*
       Total:
       270px text
       + 15px gap
       + 250px blob
       = 535px
    */
    .work-step-two {
        width: 535px;
        max-width: 535px;
        gap: 15px;
        align-items: center;
        justify-content: flex-end;
    }

    /*
       Keeps Step 2 text on the right side
       without pushing the blob out of the row.
    */
    .step-two-content {
        width: 270px;
        max-width: 270px;
        flex-shrink: 0;
        text-align: left;
    }

    .step-two-content .secondary-text {
        width: 100% !important;
        max-width: 270px;
        font-size: 0.88rem;
        line-height: 1.55;
    }

    .work-step-two-blob {
        width: 250px;
        height: 250px;
        flex-shrink: 0;
        position: relative;
    }

    .phone-blob-2 {
        width: 250px;
        height: 250px;
    }

    .work-step-two-img {
        height: 255px;
        width: auto;
        top: -4%;
        left: 23%;
    }

    /*
       Left arrow stays between the two steps
       and does not collide with the text.
    */
    .left-pointing-arrow {
        width: 220px;
        right: 40%;
        bottom: -6%;
    }

    .curve-arrow-left {
        width: 220px;
        height: 90px;
    }

    .step-arrow-left {
        width: 220px;
        height: 90px;
    }
}


/* ============================================================
   MOBILE
   < 768px

   Your existing mobile behavior is retained.
   Arrows hidden and steps stacked.
   ============================================================ */

@media (max-width: 767.98px) {

    .how-pendova-works {
        margin-top: 32px;
        gap: 52px;
    }

    .how-pendova-works > div {
        margin-bottom: 0 !important;
    }

    /* ========================================================
       STEP 1 / STEP 3
       ======================================================== */

    .work-first-step {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 18px;
        padding-bottom: 0;
    }

    /* ========================================================
       STEP 2 / STEP 4
       ======================================================== */

    .how-pendova-works .d-flex.justify-content-end {
        justify-content: center !important;
    }

    .work-step-two {
        flex-direction: column-reverse;
        align-items: center;
        text-align: center;
        gap: 18px;
        width: 100%;
        max-width: 100%;
    }

    .step-two-content-wrapper {
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .step-two-content {
        width: 100%;
        max-width: 100%;
        align-items: center !important;
        text-align: center;
    }

    .work-step-two .text-start {
        text-align: center !important;
    }

    /* ========================================================
       HIDE ARROWS
       ======================================================== */

    .right-arrow,
    .left-pointing-arrow,
    .curve-arrow-right,
    .curve-arrow-left,
    .step-arrow-left {
        display: none !important;
    }

    /* ========================================================
       BLOBS
       ======================================================== */

    .phone-blob {
        width: min(250px, 68vw);
        height: auto;
    }

    .phone-blob-2 {
        width: min(250px, 68vw);
        height: auto;
    }

    .work-step-two-blob {
        display: flex;
        justify-content: center;
        width: min(250px, 68vw);
        height: auto;
    }

    /* ========================================================
       PHONE IMAGES
       ======================================================== */

    .work-first-step-img {
        height: 250px;
        width: auto;
        top: 0;
        left: 50%;
        transform: translateX(-50%);
    }

    .work-step-two-img {
        height: 250px;
        width: auto;
        top: 0;
        left: 50%;
        transform: translateX(-50%);
    }

    /* ========================================================
       TEXT
       ======================================================== */

    .work-first-step .w-50,
    .step-two-content .w-25 {
        width: 100% !important;
        max-width: 430px;
        margin-inline: auto;
        font-size: 0.95rem;
        line-height: 1.65;
    }

    .work-first-step .fs-3,
    .work-step-two .fs-3 {
        font-size: 1.35rem !important;
        line-height: 1.35;
    }

    .work-step-number {
        height: 44px;
        width: 44px;
        font-size: 1.2rem !important;
        margin-inline: auto;
    }
}


/* ============================================================
   VERY SMALL MOBILE
   < 400px
   ============================================================ */

@media (max-width: 399.98px) {

    .how-pendova-works {
        gap: 44px;
    }

    .phone-blob,
    .phone-blob-2 {
        width: min(215px, 72vw);
    }

    .work-step-two-blob {
        width: min(215px, 72vw);
    }

    .work-first-step-img,
    .work-step-two-img {
        height: 220px;
    }

    .work-first-step .fs-3,
    .work-step-two .fs-3 {
        font-size: 1.2rem !important;
    }
}