/* =========================================
   SERVICES CAROUSEL SECTION
========================================= */
.services-section {
    background-color: #F3F4F6;
    padding: 80px 0;
}

.services-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.services-title {
    font-size: 40px;
    font-weight: 800;
    color: var(--color-text);
    margin: 0;
}

/* Match button to Kudos Style */
.services-header .btn--primary {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
    color: white;
}

.services-header .btn--primary:hover {
    background-color: var(--color-primary-dark);
    border-color: var(--color-primary-dark);
}

.services-intro {
    font-size: 15px;
    line-height: 1.7;
    color: var(--color-text);
    margin-bottom: 48px;
    max-width: 100%;
}

/* Carousel Container */
.services-carousel {
    position: relative;
    padding: 0 60px;
    /* Space for arrows */
}

.carousel-track {
    display: flex;
    gap: 24px;
    overflow-x: hidden;
    scroll-behavior: smooth;
    padding: 4px 0;
    /* For shadow */
}

/* Service Cards in Carousel */
.service-card-carousel {
    min-width: 31%;
    max-width: 31%;
    flex-shrink: 0;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #E5E7EB;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
    text-decoration: none;
    color: inherit;
    display: block;
    /* Ensure it behaves as block in older browsers if fallback */
}

.service-card-carousel:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.service-card-image {
    width: 100%;
    height: 160px;
    overflow: hidden;
}

.service-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.service-card-carousel:hover .service-card-image img {
    transform: scale(1.05);
}

.service-card-content {
    padding: 16px;
}

.service-card-content h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #111827;
}

.service-card-content p {
    font-size: 13px;
    line-height: 1.5;
    color: #4B5563;
}

/* Carousel Arrows */
.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 4px;
    background: var(--color-primary);
    /* KUDOS BROWN */
    border: none;
    font-size: 24px;
    color: white;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.2s;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-arrow:hover {
    background: var(--color-primary-dark);
    /* KUDOS DARK BROWN */
    transform: translateY(-50%) scale(1.05);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}



.prev-arrow {
    left: 0;
}

.next-arrow {
    right: 0;
}

/* Responsive */
@media (max-width: 1200px) {
    .service-card-carousel {
        min-width: calc(33.333% - 16px);
        /* 3 cards */
    }
}

@media (max-width: 900px) {
    .service-card-carousel {
        min-width: calc(50% - 12px);
        /* 2 cards */
    }
}

@media (max-width: 600px) {
    .services-carousel {
        padding: 0 50px;
    }

    .service-card-carousel {
        min-width: calc(100% - 0px);
        /* 1 card */
    }

    .carousel-arrow {
        width: 40px;
        height: 40px;
        font-size: 22px;
    }
}