#services {
    background-color: #F4F4F4;
    padding: 3vw 3vw;
    height: 90vh;
}

#services .headerContainer {
    margin-bottom: 5vh;
}

.servicesContainer {
    display: flex;
    justify-content: space-between;
}

.servicesItem {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 17vw;
    height: 50vh;
    border-radius: 2vw;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    color: white;
    padding: 2vw 1vw;
}

.servicesItem:nth-of-type(1) {
    background-image: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.65)), url(../img/img9.jpg);
}

.servicesItem:nth-of-type(2) {
    background-image: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.65)), url(../img/img7.jpg);
}

.servicesItem:nth-of-type(3) {
    background-image: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.65)), url(../img/img10.jpg);
}

.servicesItem:nth-of-type(4) {
    background-image: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.65)), url(../img/img8.jpg);
}

.servicesItem:nth-of-type(5) {
    background-image: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.65)), url(../img/img12.jpg);
}

.servicesItem h4 {
    text-align: center;
    margin-bottom: 1vw;
    font-weight: bolder;
    color: #FF8C00;
    font-size: 1.6vw;
}

.servicesItem ul li {
    font-size: 1.2vw;
}

.servicesItem a p {
    cursor: pointer;
    margin-bottom: 0;
    font-size: 1.1vw;
    font-weight: bolder;
    color: white;
}

.servicesItem a p:hover span {
    margin-left: 1.5vw; /* Change the left margin on hover */
    color: #FF8C00; /* Change the text color on hover */
    /* You can adjust the margin and color values as needed */
    /* Transition for smooth animation */
    transition: margin-left 0.3s ease, color 0.3s ease;
}

@media (max-width: 767px) {
    #services {
        height: fit-content;
        padding: 5vw;
    }
    
    #services .headerContainer {
        margin-bottom: 3vh;
        padding: 0 5vw;
        height: fit-content;
    }

    .servicesContainer {
        flex-direction: column;
    }

    .servicesItem {
        width: 100%;
        height: fit-content;
        margin-bottom: 3vh;
        padding: 6vw 5vw;
    }

    .servicesItem h4 {
        font-size: 5vw;
        margin-bottom: 2vh;
    }

    .servicesItem ul li {
        font-size: 5vw;
    }

    .servicesItem a {
        text-decoration: none;
        color: white;
    }

    .servicesItem a p {
        text-align: center;
        font-size: 3.5vw;
    }

    .servicesItem a p span {
        color: orange;
    }
}