/* Services Slider Styles */
.services-section {
    padding: 5rem 2rem;
    background-color: var(--white);
    overflow: hidden;
    position: relative;
}

.services-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--dark-green);
    font-family: 'Playfair Display', serif;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.services-section h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--sage-green);
    margin: 15px auto 0;
    border-radius: 2px;
}

.slider-wrapper {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.slider-container {
    overflow: hidden;
    padding: 20px 10px 40px 10px;
    /* Space for hover effects and shadow */
    margin: -20px -10px -40px -10px;
    /* Negative margin to counteract padding */
}

.services-slider {
    display: flex;
    gap: 2rem;
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    cursor: grab;
    will-change: transform;
}

.services-slider.active {
    cursor: grabbing;
    transition: none;
}

.service-slide {
    min-width: calc(33.333% - 1.35rem);
    /* 3 items with gap consideration */
    background: var(--white);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(0, 0, 0, 0.03);
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    overflow: hidden;
    height: auto;
    /* Allow flexible height */
    user-select: none;
}

/* Glassmorphism accent on top */
.service-slide::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, var(--sage-green), var(--dark-green));
    opacity: 0.8;
}

.service-slide:hover {
    transform: translateY(-12px);
    box-shadow: 0 25px 50px rgba(74, 93, 74, 0.15);
}

.service-icon-wrapper {
    position: relative;
    margin-bottom: 1.5rem;
}

.service-icon {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.5s ease;
    overflow: hidden;
    background: transparent;
}

.service-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.service-slide:hover .service-icon {
    transform: scale(1.1);
    box-shadow: 0 15px 30px rgba(74, 93, 74, 0.2);
}

.service-slide h3 {
    font-size: 1.4rem;
    color: var(--dark-green);
    margin-bottom: 1rem;
    font-family: 'Playfair Display', serif;
    font-weight: 700;
}

.service-slide p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.service-link {
    margin-top: auto;
    color: var(--dark-green);
    font-weight: 600;
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    border-bottom: 2px solid transparent;
    padding-bottom: 2px;
}

.service-link:hover {
    color: var(--sage-green);
    border-color: var(--sage-green);
}

/* Navigation Controls */
.slider-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 2.5rem;
    gap: 1.5rem;
}

.slider-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--white);
    border: 1px solid #eee;
    color: var(--dark-green);
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.slider-btn:hover {
    background: var(--dark-green);
    color: var(--white);
    box-shadow: 0 10px 20px rgba(74, 93, 74, 0.2);
    transform: translateY(-2px);
}

.slider-dots {
    display: flex;
    gap: 8px;
}

.dot {
    width: 10px;
    height: 10px;
    background-color: #e0e0e0;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.dot.active {
    background-color: var(--dark-green);
    width: 30px;
    border-radius: 10px;
}

/* Responsive */
@media (max-width: 1024px) {
    .service-slide {
        min-width: calc(50% - 1rem);
        /* 2 items */
    }
}

@media (max-width: 650px) {
    .service-slide {
        min-width: 100%;
        /* 1 item */
    }

    .services-section {
        padding: 4rem 1.5rem;
    }

    .services-section h2 {
        font-size: 2rem;
    }
}