/* Services Slider Section - Compact & Clean Redesign */
.services-slider-section {
    background: linear-gradient(135deg, #001a33 0%, #003d66 100%);
    padding: 60px 0;
    position: relative;
    overflow: hidden;
}

.services-slider-wrapper {
    position: relative;
    max-width: 1000px;
    /* Reduced max-width to keep things tight */
    margin: 0 auto;
    padding: 0 40px;
}

.services-slider {
    position: relative;
    width: 100%;
    min-height: 550px;
    /* Reduced height significantly */
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 1000px;
}

.service-slide {
    position: absolute;
    width: 320px;
    /* Much smaller card width */
    transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    opacity: 0;
    z-index: 0;
    pointer-events: none;
}

/* --- Active Card (Center) --- */
.service-slide.active {
    opacity: 1;
    transform: translateX(0) scale(1);
    z-index: 10;
    pointer-events: auto;
}

/* --- Inactive Cards (Side) --- */
/* Push them further apart so they don't overlap weirdly */
.service-slide.prev {
    opacity: 0.4;
    transform: translateX(-380px) scale(0.85) rotateY(15deg);
    /* Added clean gap */
    z-index: 5;
    display: block;
}

.service-slide.next {
    opacity: 0.4;
    transform: translateX(380px) scale(0.85) rotateY(-15deg);
    /* Added clean gap */
    z-index: 5;
    display: block;
}

/* --- Card Styling --- */
.service-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 25px;
    /* Reduced padding */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    text-align: left;
    position: relative;
    overflow: hidden;
    border-top: 4px solid var(--primary-color);
}

.service-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
    padding-bottom: 12px;
    border-bottom: 1px solid #eee;
}

.service-icon-badge {

    color: var(--primary-color);
    width: 45px;
    height: 45px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    background: #f0f7ff;
    flex-shrink: 0;
}

.service-card h3 {
    color: var(--text-color);
    font-size: 1.25rem;
    /* Smaller font */
    margin: 0;
    font-weight: 700;
    line-height: 1.2;
}

.service-features {
    list-style: none;
    padding: 0;
    margin: 12px 0;
}

.service-features li {
    color: #555;
    margin-bottom: 8px;
    font-size: 0.85rem;
    /* Smaller text */
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}

.service-features li i {
    color: var(--primary-color);
    font-size: 14px;
    flex-shrink: 0;
}

.service-visual {
    margin: 15px 0;
    border-radius: 12px;
    overflow: hidden;
    height: 140px;
    /* Fixed small height for images */
    background: #eee;
}

.service-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.service-btn {
    display: block;
    width: 100%;
    padding: 10px;
    background: var(--primary-color);
    color: white;
    text-align: center;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
    margin-top: 15px;
    cursor: pointer;
}

.service-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* --- Arrows --- */
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    border: none;
    z-index: 20;
    transition: all 0.3s;
    color: var(--primary-color);
}

.slider-arrow:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-50%) scale(1.1);
}

.slider-arrow.prev {
    left: 0;
}

.slider-arrow.next {
    right: 0;
}

.slider-arrow i {
    font-size: 18px;
}

/* --- Dots --- */
.slider-dots {
    text-align: center;
    margin-top: 20px;
}

.dot {
    height: 8px;
    width: 8px;
    margin: 0 5px;
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    display: inline-block;
    transition: all 0.3s;
    cursor: pointer;
}

.dot.active {
    background-color: white;
    width: 25px;
    border-radius: 4px;
}

/* --- Responsive --- */
@media (max-width: 992px) {
    .services-slider-wrapper {
        padding: 0 20px;
    }

    .services-slider {
        min-height: 500px;
    }

    .service-slide.prev,
    .service-slide.next {
        opacity: 0;
        /* Hide side cards on tablet/mobile to avoid clutter */
        pointer-events: none;
    }

    .slider-arrow.prev {
        left: 10px;
    }

    .slider-arrow.next {
        right: 10px;
    }
}

@media (max-width: 576px) {
    .service-slide {
        width: 100%;
        /* Full width on mobile */
        max-width: 340px;
    }

    .services-slider-section {
        padding: 40px 0;
    }
}