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

.service-areas-carousel {
    width: 100%;
    max-width: 752px;
    margin: 0 auto;
    overflow: hidden;
    position: relative;
    height: 230px;
}

.service-areas-carousel-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.service-areas-carousel-image {
    width: 100%;
    height: 230px;
    object-fit: cover;
    border-radius: 10px;
    opacity: 0;
    position: absolute;
    top: 0;
    left: 0;
    animation: fade 80s infinite;
    aspect-ratio: 752 / 230;
}

@keyframes fade {
    0% {
        opacity: 0;
    }

    6.25% {
        opacity: 1;
    }

    25% {
        opacity: 1;
    }

    31.25% {
        opacity: 0;
    }

    100% {
        opacity: 0;
    }
}

.service-areas-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
    padding: 0;
    position: relative;
    z-index: 1;
}

.service-areas-list li {
    background-color: rgba(244, 244, 244, 0.8);
    padding: 10px;
    border-radius: 10px;
    transition: background-color 0.3s ease;
    pointer-events: auto;
}

.service-areas-list li:hover {
    background-color: rgba(220, 220, 220, 1);
}

.service-areas-list a {
    text-decoration: none;
    color: #2980b9;
    font-weight: bold;
    transition: color 0.3s ease;
    display: block;
    pointer-events: auto;
}

.service-areas-list a:hover {
    color: #1a3c5e;
}

.service-areas .button-group {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.service-areas .button-group .schedule-btn {
    margin: 0;
    display: inline-block;
    width: 220px;
    text-align: center;
    padding: 12px 20px;
    line-height: 1.5;
    box-sizing: border-box;
    font-size: 16px;
}

@media (max-width: 768px) {
    .service-areas {
        padding: 20px;
        margin: 30px auto;
    }

    .service-areas-carousel {
        margin: 0 auto;
        height: 230px;
    }

    .service-areas-carousel-image {
        width: 100%;
        height: 230px;
        object-fit: cover;
        aspect-ratio: 752 / 230;
    }

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

    .service-areas .button-group {
        flex-direction: column;
        gap: 10px;
    }

    .service-areas .button-group .schedule-btn {
        display: block;
        margin: 0 auto;
        width: 100%;
        max-width: 250px;
    }
}