.servicii-banner {
    width: 100%;
    max-width: 2000px;
    display: flex;
    height: 100vh;
    align-items: center;
    background-color: #3d8e33;
    flex-wrap: nowrap;
}

.bg-servicii-banner {
    width: 50%;
    overflow: hidden;
    height: 100vh;
}

.bg-servicii-img {
    width: 100%;
    object-fit: cover;
    height: max-content;
    height: 100%;
}

.text-bg-servicii {
    width: 50%;
    text-align: left;
    color: white;
    overflow: hidden;
    margin-left: 40px;
}

.text-bg-servicii>h1 {
    font-size: 50px;
    margin-bottom: 10px;
    font-family: "Merienda", serif;
    font-optical-sizing: auto;
    font-weight: 400;
    width: 80%;
    opacity: 0;
}

.text-bg-servicii>h4 {
    font-size: 25px;
    padding: 0;
    margin: 0;
    font-weight: 200;
    width: 80%;
    opacity: 0;
}

.nav-bar::before {
    background: rgba(255, 255, 255, 0.9);
}

.double_arrow {
    left: calc(50% - 20px);
    transform: translateX(-50%);
}

.double_arrow:hover {
    border: 1px solid white;
}

.srv {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    height: 100%;
    align-items: center;
    padding-top: 130px;
    padding-bottom: 100px;
    padding-left: 20px;
    padding-right: 20px;
    flex-direction: row;
}

.last-title {
    background-color: #e6f1de;
    width: 100%;
    text-align: center;
}

.last-title>h1 {
    font-size: 40px;
    font-weight: 400;
    font-family: Merienda, serif;
    font-optical-sizing: auto;
    color: #266025;
    margin: 0;
    margin: auto;
    width: 80%;
    text-align: center;
    padding: 150px 20px 150px 20px;
    opacity: 0;
}

.txt-servicii-container {
    padding: 20px;
    flex: 1 1 50%;  /* Each takes 50% height */
    display: flex;
    flex-direction: column;
    max-width: 50%;
    margin-top: -200px;
}

.content-servicii {
    display: flex;
    align-items: center;
    opacity: 0;
}

.txt-servicii-container>h1 {
    margin-left: 50px;
} 

.txt-space {
    margin-top: 40px;
}

.content-servicii>p {
    margin-left: 20px;
}

.image-c {
    flex: 1 1 50%; /* Takes the remaining 50% */
    display: flex;
    width: 50%;
    max-width: 500px;
    margin: auto;
    padding: 20px;
    border: 2px solid #266025;
    border-top-right-radius: 20px;
    border-bottom-left-radius: 20px;
    opacity: 0;
}

.image-c>.splide {
    width: 100%;
    height: 100%;
}

.serv-1 {
    order:1;
}

.serv-2 {
    order: 3;
}

.serv-3 {
    order:2;
}

.img-swp-serv {
    width: 100%;
    margin: auto;
}

.splide__pagination {
    bottom: -18px;
}

@media (max-width: 768px) {
    .servicii-banner {
        flex-wrap: wrap;
    }

    .bg-servicii-banner {
        width: 100%;
        height: 30%;
    }

    .text-bg-servicii {
        width: 100%;
        height: 70%;
    }

    .double_arrow {
        left: 50%;
    }

    .text-bg-servicii>h1 {
        font-size: 30px;
    }

    .text-bg-servicii>h4 {
        font-size: 20px;
    }

    .srv {
        padding: 100px 0 60px 0;
        height: 100%;

    }

    .last-title>h1 {
        font-size: 30px;
        width: 90%;
        padding-top: 100px;
        padding-bottom: 100px;
    }

    .srv {
        flex-direction: column; /* Stack in a column */
    }

    .txt-servicii-container {
        flex: 1 1 100%;
        max-width: 100%;
        margin-top: -50px;
    }

    .txt-servicii-container>h1 {
        margin-left: 20px;
    }

    .image-c {
        flex: 1 1 100%;
        width: 90%;
        margin-bottom: 20px;
    }
}