.how-it-works-section {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    /* padding: 120px 0; */
    /* current */
    /* margin-top:200px; */
    padding: 120px 0 120px 0;
    z-index: 3;
    background: #f5f5f5;
}

.how-it-works-section .how-to-work-bg {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    z-index: 1;
    width: 100%;
    height: 100%;

    @media (max-width: 768px) {
        display: none;
    }
}

.how-it-works-section .how-to-work-kelaket {
    position: absolute;
    left: 0;
    bottom: -225px;
    z-index: 2;
    width: clamp(300px, 23vw, 360px);
}

@media (max-width: 1024px) {
    .how-it-works-section .how-to-work-bg {
        object-fit: cover;
    }
    .how-it-works-section .how-to-work-kelaket {
        display: none;
    }
}

@media (max-width: 768px) {
    .how-it-works-section .how-to-work-kelaket {
        bottom: -100px;
        width: clamp(150px, 15vw, 200px);
    }
}

@media (max-width: 576px) {
    .how-it-works-section .how-to-work-kelaket {
        bottom: -75px;
        width: clamp(120px, 12vw, 160px);
    }
}

@media (max-width: 992px) {
    .how-it-works-section {
        padding: 80px 0;
    }
}

.how-it-works-section .how-it-works-container {
    width: 63%;

    margin: 0 auto;
    padding: 0 15px;
    position: relative;
    z-index: 2;
}

@media (max-width: 1400px) {
    .how-it-works-section .how-it-works-container {
        max-width: 1200px;
    }
}

@media (max-width: 1200px) {
    .how-it-works-section .how-it-works-container {
        max-width: 960px;
    }
}

@media (max-width: 992px) {
    .how-it-works-section .how-it-works-container {
        max-width: 720px;
    }
}

@media (max-width: 768px) {
    .how-it-works-section .how-it-works-container {
        max-width: 540px;
    }
}

@media (max-width: 576px) {
    .how-it-works-section .how-it-works-container {
        max-width: 100%;
        padding: 0 20px;
    }
}

.how-it-works-section .how-it-works-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.how-it-works-section .how-it-works-label {
    font-size: clamp(24px, 3vw, 32px);
    font-weight: 500;
    color: #f8992c;
    margin-bottom: 10px;
}

@media (max-width: 768px) {
    .how-it-works-section .how-it-works-label {
        font-size: 28px;
    }
}

@media (max-width: 576px) {
    .how-it-works-section .how-it-works-label {
        font-size: 24px;
    }
}

.how-it-works-section .how-it-works-title {
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 700;
    color: #000;
    margin-bottom: 15px;
    line-height: 1.2;
}

@media (max-width: 768px) {
    .how-it-works-section .how-it-works-title {
        font-size: 36px;
        margin-bottom: 12px;
    }
}

@media (max-width: 576px) {
    .how-it-works-section .how-it-works-title {
        font-size: 30px;
    }
}

.how-it-works-section .steps-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

@media (max-width: 768px) {
    .how-it-works-section .steps-container {
        gap: 60px;
    }
}

/* Steps Row */
.how-it-works-section .steps-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: auto auto;
    align-items: center;
    column-gap: 24px;
    row-gap: 80px;
    position: relative;
}

@media (max-width: 992px) {
    .how-it-works-section .steps-row {
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .how-it-works-section .steps-row {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .how-it-works-section .step-image,
    .how-it-works-section .step-content-box {
        grid-column: unset !important;
        grid-row: unset !important;
    }
}

/* Step Image */
.how-it-works-section .step-image {
    width: 106%;
    max-width: 312px;
    height: 200px;
    background: #ffffff;
    box-shadow: 0px 0px 40px 8px rgba(0, 0, 0, 0.1019607843);
    padding: 10px;
    border-radius: 10px;
    transition: all 0.3s ease;
    justify-self: center;
}

.how-it-works-section .step-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 5px;
    transition: transform 0.3s ease;
}

.how-it-works-section .step-image:hover {
    box-shadow: 0px 0px 50px 12px rgba(0, 0, 0, 0.1647058824);
    transform: translateY(-10px);
}

.how-it-works-section .step-image:hover img {
    transform: scale(1.02);
}

@media (max-width: 992px) {
    .how-it-works-section .step-image {
        max-width: 280px;
        height: 220px;
    }
}

@media (max-width: 768px) {
    .how-it-works-section .step-image {
        max-width: 100%;
        height: 245px;
    }
}

@media (max-width: 576px) {
    .how-it-works-section .step-image {
        height: 200px;
    }
}

/* Step Content Box */
.how-it-works-section .step-content-box {
    position: relative;
    justify-self: center;
    width: 100%;
    max-width: 312px;
}

@media (max-width: 992px) {
    .how-it-works-section .step-content-box {
        max-width: 280px;
    }
}

@media (max-width: 768px) {
    .how-it-works-section .step-content-box {
        max-width: 100%;
    }
}

/* Step Content */
.how-it-works-section .step-content {
    display: flex;
    flex-direction: column;
    gap: 0px;
    text-align: left;
}

.how-it-works-section .step-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
    gap: 22px;
    max-width: 205px;
}

.how-it-works-section .step-text {
    color: #647082;
    font-weight: 500;
    font-size: 18px;
}

@media (max-width: 576px) {
    .how-it-works-section .step-text {
        font-size: 16px;
    }
}

.how-it-works-section .step-number {
    width: 24px;
    height: 24px;
    border-radius: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 14px;
}

.how-it-works-section .step-number.step-1 {
    background: #f8992c;
}

.how-it-works-section .step-number.step-2 {
    background: #44bda4;
}

.how-it-works-section .step-number.step-3 {
    background: #8379b8;
}

.how-it-works-section .step-number.step-4 {
    background: #fe2c55;
}

.how-it-works-section .step-title {
    color: #333333;
    font-size: clamp(22px, 2.5vw, 26px);
    font-weight: 700;
    margin-bottom: 8px;
}

@media (max-width: 576px) {
    .how-it-works-section .step-title {
        font-size: 20px;
    }
}

.how-it-works-section .step-description {
    min-height: 141px;
}

.how-it-works-section .step-description p span {
    font-size: clamp(13px, 1.5vw, 15px) !important;
    color: #647082;
    font-weight: 500;
    line-height: 1.5;
    background: none !important;
    margin-top: 0 !important;
    min-height: 118px;
}

@media (max-width: 576px) {
    .how-it-works-section .step-description {
        font-size: 14px;
    }
}

.step-description span {
    background: none !important;
}

.steps-row {
    padding-bottom: 50px;
}

.steps-row:last-child {
    padding-bottom: 0;
}

/* Horizontal dashed line */
.steps-row::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 54.5%;
    transform: translate(-50%, -50%);
    width: 72%;
    height: 2px;
    background-image: repeating-linear-gradient(
        to right,
        #f8992c 0,
        #f8992c 9px,
        transparent 0px,
        transparent 15px
    );
    z-index: 1;
}

html[dir="rtl"] .steps-row::after {
    left: 53.5% !important;
    width: 82% !important;
}

html[dir="rtl"] .step-content-box.item-above::after {
    left: 56% !important;
}

html[dir="rtl"] .step-content-box.item-below::after {
    left: 72.5% !important;
}

/* RTL Support */
[dir="rtl"] .how-it-works-section .step-header {
    justify-content: right;
}

[dir="rtl"] .how-it-works-section .step-content {
    text-align: right;
}

/* إخفاء الأسهم على الموبايل */
@media (max-width: 768px) {
    .steps-row::before,
    .steps-row::after,
    .step-content-box::before,
    .step-content-box::after {
        display: none;
    }

    .steps-row {
        padding-bottom: 0;
    }
}

.step-content-box.item-above::after {
    content: "";
    position: absolute;
    bottom: -31px;
    left: 55%;
    transform: translateX(-50%);
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 10px solid #f8992c;
}

.step-content-box.item-below::after {
    content: "";
    position: absolute;
    top: -29px;
    left: 79.5%;
    transform: translateX(-50%);
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 10px solid #f8992c;
}

@media (max-width: 768px) {
    .how-it-works-section {
        padding: 60px 0;
    }
    .how-it-works-section .how-it-works-container {
        width: 80%;
    }
}
