.service-carousel {
    overflow: hidden;
    width: 100%;
    margin: 0 auto;
    padding: 2rem 0 3rem 0;
    position: relative;
}

.service-items.carousel {
    display: flex;
    gap: 1.5rem;
    width: max-content;
    align-items: stretch;
    padding: 1rem 0;
    animation: scroll-services 30s linear infinite;
}

.service-items.carousel:hover {
    animation-play-state: paused;
}

.service-item.carousel-card {
    min-width: 220px;
    max-width: 220px;
    flex: 0 0 220px;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    padding: 1.2rem 1rem;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s, border 0.3s;
    border: 2px solid transparent;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    cursor: pointer;
}

.service-item.carousel-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    border: 2px solid #f59e0b;
}

.service-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(45deg, #1e3a8a, #f59e0b);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem auto;
    transition: transform 0.3s;
}

.service-icon i {
    font-size: 1.5rem !important;
    color: #ffffff !important;
    margin-bottom: 0 !important;
}

.service-item.carousel-card:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
}

.service-item.carousel-card h3 {
    font-size: 1rem;
    margin-bottom: 0.7rem;
    color: #1e3a8a;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.service-item.carousel-card p {
    color: #64748b;
    font-size: 0.9rem;
    line-height: 1.5;
}

@media (max-width: 768px) {
    .service-item.carousel-card {
        min-width: 180px;
        max-width: 180px;
        flex: 0 0 180px;
        padding: 1rem 0.5rem;
    }
    
    .service-item.carousel-card h3 {
        font-size: 0.85rem !important;
        margin-bottom: 0.5rem;
        line-height: 1.3;
        padding: 0 2px;
    }
    
    .service-item.carousel-card p {
        font-size: 0.8rem;
        line-height: 1.4;
        padding: 0 2px;
    }
}

@media (max-width: 480px) {
    .service-item.carousel-card {
        min-width: 160px;
        max-width: 160px;
        flex: 0 0 160px;
        padding: 0.8rem 0.4rem;
    }
    
    .service-item.carousel-card h3 {
        font-size: 0.8rem !important;
        margin-bottom: 0.4rem;
    }
    
    .service-item.carousel-card p {
        font-size: 0.75rem;
        line-height: 1.3;
    }
}

@keyframes scroll-services {
    0% { transform: translateX(0); }
    100% { transform: translateX(-1450px); }
}

@media (max-width: 768px) {
    @keyframes scroll-services {
        0% { transform: translateX(0); }
        100% { transform: translateX(-1180px); }
    }
}