/* --- Services Section --- */
.services {
    padding: 2rem 0;
    /* background-image: var(--grad-blue-black); */
    /* Assuming a slight distinction */
}

/* Services Slider Styles */
.services-slider {
    position: relative;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 60px;
    /* Space for arrows */
}

.services-track-container {
    overflow: hidden;
    width: 100%;
}

.services-track {
    display: flex;
    transition: transform 0.4s ease-in-out;
    gap: 30px;
    width: 100%;
}

.service-card {
    /* 3 items visible, subtract gap */
    /* width = (100% - (2 * gap)) / 3 */
    flex: 0 0 calc((100% - 60px) / 3);
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}

.service-card__image {
    width: 100%;
    /* Handle both img and div */
    display: block;
    aspect-ratio: 4/3;
    object-fit: cover;
    background-color: var(--ui-bg-placeholder);
    border-radius: 1.75rem;
    margin-bottom: 1.5rem;

    /* Fallback/Legacy for div background-image method if needed */
    background-size: cover;
    background-position: center;
    position: relative;
    padding-top: 0;
    /* Removing the padding hack in favor of aspect-ratio */
}

/* Fallback for browsers not supporting aspect-ratio or if strictly using div with padding hack */
@supports not (aspect-ratio: 4/3) {
    div.service-card__image {
        padding-top: 75%;
        height: 0;
    }
}

.service-card__title {
    font-size: 1.5rem;
    /* 24px */
    line-height: 1.2;
    color: var(--brand-stripes-black);
    margin-bottom: 1rem;
    font-weight: 500;
}

.service-text {
    font-size: 1rem;
    color: var(--brand-stripes-black);
    line-height: 1.6;
}

/* Navigation Controls */
.slider-arrow {
    position: absolute;
    top: 35%;
    /* Align roughly with image usage or center */
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--ui-border-light);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 16px;
    color: var(--clr-text-main);
    z-index: 10;
    transition: all 0.3s ease;
}

.slider-arrow:hover {
    background: var(--clr-primary);
    border-color: var(--clr-primary);
    color: white;
}

.slider-arrow--prev {
    left: 0;
}

.slider-arrow--next {
    right: 0;
}

.slider-arrow:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    background: transparent;
    border-color: var(--ui-border-light);
}

/* Pagination */
.slider-pagination {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 40px;
}

.slider-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--ui-border-light);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: background-color 0.3s ease;
}

.slider-dot.active {
    background-color: var(--clr-primary);
    transform: scale(1.2);
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .service-card {
        /* 2 items on tablet */
        flex: 0 0 calc((100% - 30px) / 2);
    }
}

@media (max-width: 768px) {
    .service-card {
        /* 1 item on mobile */
        flex: 0 0 100%;
    }

    .services-slider {
        padding: 0;
    }

    .slider-arrow {
        display: none;
        /* Often arrows are hidden on mobile in favor of swipe, or keep if requested */
    }

    .services-track-container {
        /* Enable touch scrolling merely as fallback if JS fails, but JS expects transform */
    }
}