.hero-section {
    background: linear-gradient(to top, #4d7cf2 0.624%, #1758fe 95.571%);
    height: 668px;
    position: relative;
    width: 100%;
    color: white;
}
.service-details-section {
    padding: 68px 28px;
    overflow: hidden;
}

.timeline-decoration {
    text-align: center;
    position: relative;
    z-index: 1;
    margin-bottom: 50px;
}
.timeline-decoration img {
   width: 100%;
}

.service-intro-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.service-intro-text {
    flex: 1;
    max-width: 480px;
    text-align: start;
}

.service-intro {
    text-align: start;
    max-width: 100%;
    margin: 0 auto 60px;
}

.service-intro .service-intro-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.service-intro .service-text {
    flex: 1;
    text-align: start;
}

.service-intro h2 {
    font-size: 50px;
    font-family: 'ibm-plex-sans-arabic', sans-serif;
    margin-bottom: 20px;
}

.service-intro p {
    font-size: 20px;
    line-height: 1.6;
}

.features-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
    flex: 1.5;
}

.feature-card-row {
    display: flex;
    gap: 16px;
    justify-content: center;
}

.features-timeline {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    padding: 100px 0;
}

.features-timeline::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 10%;
    right: 10%;
    height: 2px;
    background-color: #e9ecf4;
    transform: translateY(-50%);
}

.feature-card-group {
    display: flex;
    justify-content: space-around;
    width: 80%;
    gap: 30px;
}

.feature-card {
    background-color: #f3f5fb;
    border-radius: 10px;
    padding: 20px;
    width: 235px;
    height: 112px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: start;
    font-size: 16px;
    font-family: 'ibm-plex-sans-arabic', sans-serif;
    position: relative;
    margin: 0 15px;
    box-shadow: 0px 4px 10px rgba(0,0,0,0.05);
}

/* .feature-card::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 40px;
    background-color: #e9ecf4;
} */

.feature-card-group:first-child {
    margin-bottom: 80px;
}

.feature-card-group:first-child .feature-card {
    margin-top: -60px;
}

.feature-card-group:first-child .feature-card::before {
    top: 100%;
}

.feature-card-group:last-child .feature-card {
    margin-bottom: -60px;
}

.feature-card-group:last-child .feature-card::before {
    bottom: 100%;
}


.dark-bg {
    background-color: #f3f5fb;
}

.service-content-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 100%;
    margin: 0 auto;
    gap: 60px;
    padding-right: 68px;
}

[dir="ltr"] .service-content-wrapper {
    padding-right: 0;
    padding-left: 68px;
}

.service-text {
    flex: 1;
}

.service-details-section h2 {
    font-size: 50px;
    font-family: 'ibm-plex-sans-arabic', sans-serif;
    margin-bottom: 20px;
    text-align: start;
}

.service-details-section  p {
    font-size: 20px;
    line-height: 1.6;
    margin-bottom: 30px;
}

.features-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.feature-item {
    background-color: white;
    border-radius: 10px;
    padding: 15px 20px;
    font-size: 18px;
    font-family: 'ibm-plex-sans-arabic', sans-serif;
}

.feature-item p {
    margin: 0;
    display: list-item;
    list-style-type: disc;
    list-style-position: inside;
}

.service-image {
    flex: 1;
}

.service-image img {
    width: 100%;
    border-radius: 20px;
}
.features-section {
    background-color: #1e2d53;
    position: relative;
    z-index: 2;
    padding-bottom: 67px;
}
.features-content {
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

.features-text {
    color: white;
    max-width: 757px;
    padding: 50px;
}

.features-text h2 {
    font-size: 50px;
    font-weight: 600;
    margin-bottom: 18px;
}

.features-text ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.features-text ul li {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 20px 25px;
    margin-bottom: 12px;
    font-size: 18px;
    position: relative;
    padding-right: 45px;
}

[dir="ltr"] .features-text ul li {
    padding-right: 25px;
    padding-left: 45px;
}

.features-text ul li::before {
    content: '•';
    color: white;
    font-weight: bold;
    display: inline-block; 
    position: absolute;
    right: 25px;
    font-size: 24px;
}

[dir="ltr"] .features-text ul li::before {
    right: auto;
    left: 25px;
}


.features-image img {
    max-width: 100%;
    height: 820px;
}

.show-training-btn {
    background-color: #ffffff05;
    color: #fff;
    border: 1px solid #fff;
    border-radius: 99px;
    padding: 8px 22px;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
}
.training-text {
    flex: 0.5;
    z-index: 1;
    padding-top: 40px;
    padding-bottom: 80px;
    padding-right: 38px;
}

[dir="ltr"] .training-text {
    padding-right: 0;
    padding-left: 38px;
}

.why-hemmtk-image {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    left: 0;
    height:762px;
}

[dir="ltr"] .why-hemmtk-image {
    left: auto;
    right: 0;
}

.rtl-flip {
    transform: scaleX(-1);
}

body.dark-mode .service-details-section {
    background-color: #051640;
}

body.dark-mode .service-details-section h2,
body.dark-mode .service-details-section p,
body.dark-mode .feature-card p {
    color: #fff;
}

body.dark-mode .feature-card {
    background-color: #1E2D53;
}

body.dark-mode .dark-bg {
    background-color: #051640;
}

body.dark-mode .feature-item {
    background-color: #1E2D53;
    color: #fff;
}

@media (max-width: 1130px) {
    .service-details-section {
        padding: 60px 20px;
    }

    .service-intro-container {
        flex-direction: column;
        align-items: center;
        gap: 40px;
    }

    .service-intro-text {
        text-align: center;
    }

    .feature-card-row {
        flex-wrap: wrap;
    }

    .service-content-wrapper {
        flex-direction: column;
        gap: 40px;
        padding: 0 20px;
    }
    
    .features-section, .why-hemmtk-section {
        padding: 60px 20px;
    }

    .features-content, .why-hemmtk-content {
        flex-direction: column;
        gap: 40px;
    }

    .features-text, .training-text {
        max-width: 100%;
        text-align: center;
        padding: 0;
    }

    .features-image, .why-hemmtk-image {
        position: static;
        height: auto;
    }

    .features-image img, .why-hemmtk-image img {
        height: auto;
    }
    .service-details-section h2 {
        font-size: 30px;
        text-align: center;
    }
    .features-text h2 {
        font-size: 30px;
    }
}