*,
*:before,
*:after {
    box-sizing: border-box;
}

html {
    font-family: 'Tajawal', 'IBM Plex Sans Arabic', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 100%;
    line-height: 1.5;
}

body {
    font-size: inherit;
    line-height: inherit;
}

.container3 {
    box-sizing: content-box;
    padding: 0 12px;
    max-width: 1200px;
    margin: 20px auto;
}

.step-list {
    margin: 0;
    padding: 0;
    list-style-type: none;
}

.step-list__item {
    counter-increment: step-counter;
    position: relative;
}



.step-list__item h2 {
    font-size: 31px;
    line-height: 34px;
    font-weight: 500;
    color: #d8b885;
}


.step-list__item .icon {
    border-radius: 50%;
    display: block;
    flex: 0 0 auto;
}

.step-list__item .icon img {
    width: 100%;
    height: 100%;

}

.step-list__item .body {
    font-size: 12px;
    line-height: 21px;
    font-weight: 300;

}

.step-list__item .content {
    display: flex;
    flex-direction: row;

}

.step-list__item:first-child .icon {
    background: #f4f6d5;
}

.step-list__item:nth-child(2) .icon {
    background: #e8f4f3;
}

.step-list__item:nth-child(3) .icon {
    background: #ededed;
}

.step-list__item:nth-child(4) .icon {
    background: #edf6ef;
}

.step-list__item:nth-child(5) .icon {
    background: #fef3f3;
}

.step-list__item:nth-child(odd) .content {
    justify-content: center;
    gap: 20px;
}

.step-list__item:nth-child(even) .content {
    justify-content: center;
    gap: 20px;
}

.step-list__item:first-child>.step-list__item__inner:before {
    content: none;
}

.step-list__item:last-child>.step-list__item__inner:after {
    content: none;
}

.step-list__item+li {
    margin-top: 84px;
}

.step-list__item+li>div {
    margin-top: -1px;
}


/* ---- Responsive big ---- */
@media screen and (min-width: 601px) {

    .step-list__item .icon {
        width: 174px;
        height: 174px;
        padding: 48px;
    }

    .step-list__item .body {
        flex: 0 1 50.3333%;
        margin-top: 33px;
    }



    .step-list__item>.step-list__item__inner {
        position: relative;
    }

    .step-list__item>.step-list__item__inner:before,
    .step-list__item>.step-list__item__inner:after {
        border-width: 0px;
        border-style: solid;
        border-color: #d8d8d8;
        display: block;
        content: '';
        position: absolute;
        height: 42px;
        width: calc(50.3333% - 42px);
    }

    .step-list__item:nth-child(odd)>.step-list__item__inner {
        text-align: right;
    }

    .step-list__item:nth-child(odd)>.step-list__item__inner:before,
    .step-list__item:nth-child(odd)>.step-list__item__inner:after {
        border-left-width: 1px;
        left: calc(25.3333% - 21px);
    }

    .step-list__item:nth-child(odd)>.step-list__item__inner:before {
        border-top-width: 1px;
        border-top-left-radius: 42px;
        margin-top: -42px;
    }

    .step-list__item:nth-child(odd)>.step-list__item__inner:after {
        border-bottom-width: 1px;
        border-bottom-left-radius: 42px;
        margin-bottom: -42px;
    }

    .step-list__item:nth-child(odd):before {
        left: 0;
        margin-left: 50.3333%;
        transform: translateX(-100%);
    }


    .step-list__item:nth-child(even)>.step-list__item__inner:before,
    .step-list__item:nth-child(even)>.step-list__item__inner:after {
        border-right-width: 1px;
        right: calc(25.3333% - 21px);
    }

    .step-list__item:nth-child(even)>.step-list__item__inner:before {
        border-top-width: 1px;
        border-top-right-radius: 42px;
        margin-top: -42px;
    }

    .step-list__item:nth-child(even)>.step-list__item__inner:after {
        border-bottom-width: 1px;
        border-bottom-right-radius: 42px;
        margin-bottom: -42px;
    }



    .step-list__item:nth-child(even) .body {
        order: 1;
    }
}


/* أيقونات Font Awesome جوة الدائرة */
.step-list__item .icon {
    border-radius: 50%;
    display: flex;
    /* علشان الايقونة تبقى في النص */
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    color: #333;
    /* لون الأيقونة */
    font-size: 32px;
    /* حجم الأيقونة في الموبايل */
    transition: all 0.3s ease;
    /* حركة ناعمة */
}

.step-list__item .icon i {
    font-size: inherit;
    /* تخلي الايقونة تاخد الحجم من الاب */
    line-height: 1;
    color: var(--default-color);
}

.content p {
    color: white;
    font-size: 20px;
    text-align: justify;
}

.content span {
    margin-right: 10px;
}

/* ألوان مختلفة لكل خطوة */
.step-list__item:first-child .icon {
    background: white;
    color: white;
}

/* تدريب مكثف */
.step-list__item:nth-child(2) .icon {
    background: white;
    color: white;
}

/* شهادات */
.step-list__item:nth-child(3) .icon {
    background: white;
    color: white;
}

/* ملفات */



/* ---- Responsive Big ---- */
@media screen and (min-width: 601px) {
    .step-list__item .icon {
        width: 174px;
        height: 174px;
        font-size: 64px;
        /* أيقونة كبيرة للـ Desktop */
    }
}




/* ---- Responsive small ---- */
@media screen and (max-width: 600px) {
    .step-list__item {
        display: flex;
    }

    .step-list__item .icon {
        order: 0;
        width: 36px;
        height: 36px;
        padding: 9px;
        position: absolute;
        left: -9px;
        top: 42px;
    }

    .step-list__item .body {
        order: 1;
        margin-top: 8px;

    }

    .step-list__item .content {
        align-items: flex-start;
    }

    .step-list__item .content:before {
        content: '';
        position: absolute;
        height: 100%;
        right: 26px;
        bottom: 0;
        display: block;
        width: 1px;
        background: #d8d8d8;
        top: 33px;
    }

    .step-list__item:last-child .content:before {
        content: none;
    }
}
/* ----- Mobile only (max-width: 600px) ----- */
@media screen and (max-width: 600px) {
  .container3 { padding: 20px; }

  .step-list__item {
    display: block;
    padding: 12px 0 20px;
    position: relative;
  }

  /* Circular icon (touch friendly) */
  .step-list__item .icon {
    position: absolute;
    right: 10px;
    top: -10px;
    width: 48px;
    height: 48px;
    padding: 8px;
    font-size: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
  }

  .step-list__item .icon i { font-size: 18px; line-height: 1; }

  /* Content stacked to the right of the icon */
  .step-list__item .content {
    display: block;
    margin-left: 10px; /* reserve space for icon */
    margin-right: 10px;
    position: relative;
    padding: 0;
  }

  
  /* hide connector for last item */
  .step-list__item:last-child .content:before { content: none; }

  /* Readable body text on mobile */
  .step-list__item .body {
    font-size: 15px;
    line-height: 1.6;
    font-weight: 300;
    margin-top: 0;
    color: #fff; /* keep original white text */
    padding-right: 57px;
  }

  .step-list__item .body h2 {
    font-size: 20px;
    line-height: 24px;
    margin: 0 0 6px;
  }

  .step-list__item .body p {
    margin: 0;
    white-space: normal;
  }

  /* reduce space between items on mobile */
  .step-list__item + li { margin-top: 18px; }
}

/* ---- Responsive Small ---- */
@media screen and (max-width: 600px) {
    .step-list__item .icon {
        width: 36px;
        height: 36px;
        font-size: 16px;
        /* أصغر على الموبايل */
   }
   .content p{
    font-size: 1.1rem;
    text-align: right;
   }
   
}