.services-section {
    padding: 80px 0;
    background-color: #f9f9f9;
}

.services-section .container {
    display: block; /* Override header's flex-between container */
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-title {
    font-size: 36px;
    color: var(--primary-color);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--secondary-color);
}

.section-subtitle {
    font-size: 16px;
    color: #666;
    max-width: 700px;
    margin: 20px auto 0;
}

.services-swiper {
    padding: 20px 10px 50px; /* Extra bottom padding for dots */
    width: 100%;
}

.swiper-slide {
    height: auto; /* Ensure cards align correctly */
    padding-bottom: 20px;
}

.swiper-pagination-bullet-active {
    background: var(--secondary-color) !important;
}

.service-card {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.service-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.service-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 26, 64, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.service-card:hover .service-overlay {
    opacity: 1;
}

.service-btn {
    padding: 12px 25px;
    background: var(--secondary-color);
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    border-radius: 30px;
    font-size: 14px;
    transform: translateY(20px);
    transition: var(--transition);
}

.service-card:hover .service-btn {
    transform: translateY(0);
}

.service-info {
    padding: 30px;
}

.service-info h3 {
    font-size: 22px;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: 700;
}

.service-info p {
    font-size: 14px;
    color: #555;
    line-height: 1.6;
    margin-bottom: 20px;
}

.service-link {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: var(--transition);
}

.service-link:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

/* Responsive adjustments */
@media (max-width: 991px) {
    .section-title {
        font-size: 30px;
    }
}

@media (max-width: 576px) {
    .service-image {
        height: 140px;
    }
    .service-info {
        padding: 15px;
    }
    .service-info h3 {
        font-size: 16px;
        margin-bottom: 8px;
    }
    .service-info p {
        font-size: 12px;
        margin-bottom: 10px;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    .service-link {
        font-size: 12px;
    }
    .service-btn {
        padding: 8px 15px;
        font-size: 12px;
    }
}
