main {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.6rem;
}

.service-title {
    width: 100%;
    height: 75vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    background-color: #25272d;
    background-image: url('../img/rims.jpg');
    background-position: center;
    background-repeat: no-repeat;
    background-size: 100%;
    isolation: isolate;
    position: relative;
    z-index: 1;
    background-size: cover;
}

.service-title::after {
    position: absolute;
    inset: 0;
    content: '';
    z-index: -1;
    box-shadow: inset 0 0 100vw black;
    /* backdrop-filter: blur(5px); */
}

.service-title h1 {
    font-size: 5rem;
    font-weight: 500;
    color: white;
    z-index: 10;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* .service-title h1::after {
    content: '';
    position: absolute;
    top: 6.4rem;
    left: .4rem;
    width: 6rem;
    height: .2rem;
    background-color: #d50000;
} */

.rims-tires-services-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    padding: 4rem 0;
}

.service {
    width: 86%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    overflow: hidden;
    border-radius: 20px;
    background-color: #54788039;
}

.service:hover {
    background: #547880cf;
    box-shadow: 0 8px 20px 0px rgba(0, 0, 0, 0.2);
    -webkit-transition: all .5s ease 0;
    transition: all .5s ease 0;
    transition: all 0.5s ease 0s;
    color: #fff;
}

.service img {
    width: 100%;
    height: 100%;
}

.service .service-info h3 {
    font-size: 2rem;
    font-weight: 500;
    color: #4d5256;
}

.service .service-info {
    padding: 20px;
}

.service .service-info ul>li {
    color: #596168;
    font-weight: 500;
    margin-left: 2rem;
    margin-top: .8rem;
}

.input-container button {
    width: 100%;
    margin: 2rem;
    padding: .5rem 1rem;
    border-radius: 4px;
    border: none;
    color: white;
    box-shadow: 0 0 16px 8px rgba(213, 0, 0, 0.2);
    background: linear-gradient(to right, #d50000, #710000);
    cursor: pointer;
}


@media screen and (max-width: 768px) {
    .service-title h1::after {
        left: 7rem;
    }

    .service {
        grid-template-columns: 1fr;
    }

    .service:nth-child(2n) img {
        order: 1;
    }

    .service:nth-child(2n) .service-info {
        order: 2;
    }

    .service .service-info {
        padding-bottom: 1rem;
    }

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

.slider img {
    width: 200px;
    height: 125px;
    animation: scroll 16s linear infinite;
}

.slide-track {
    width: 100%;
    display: flex;
    gap: 3em;
    overflow: hidden;
}

.slider {
    background-color: whitesmoke;
    padding: 2rem 0;
    width: 98vw;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translatex(-1000%)
    }
}

.service-info p {

    margin: 24px 0px;

}

.service-info ul {
    list-style: disc !important;
}