/* Additional styles for the service cards with carousels */
.services-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.service-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.service-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.service-image .carousel,
.service-image .carousel-inner,
.service-image .carousel-item {
    height: 100%;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-card:hover .service-image img {
    transform: scale(1.05);
}

.service-icon {
    position: absolute;
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #3498db, #2c3e50);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
    z-index: 10;
    border: 3px solid white;
}

.card-body {
    padding-top: 35px !important;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-body h4 {
    color: #2c3e50;
    font-weight: 600;
    margin-bottom: 15px;
}

.card-body p {
    color: #6c757d;
    line-height: 1.6;
    flex: 1;
}

.badge {
    padding: 8px 15px;
    border-radius: 20px;
    font-weight: 500;
    font-size: 0.85rem;
}

/* Carousel controls customization */
.carousel-control-prev,
.carousel-control-next {
    width: 40px;
    height: 40px;
    background: rgba(0,0,0,0.5);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.service-card:hover .carousel-control-prev,
.service-card:hover .carousel-control-next {
    opacity: 1;
}

.carousel-control-prev {
    left: 10px;
}

.carousel-control-next {
    right: 10px;
}

.carousel-indicators {
    margin-bottom: 5px;
}

.carousel-indicators button {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin: 0 4px;
    background-color: white;
    opacity: 0.7;
}

.carousel-indicators button.active {
    opacity: 1;
    background-color: #3498db;
    transform: scale(1.2);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .service-image {
        height: 200px;
    }
    
    .carousel-control-prev,
    .carousel-control-next {
        opacity: 0.5;
    }
    
    .badge {
        font-size: 0.75rem;
        padding: 5px 10px;
    }
}