
:root {
    --services-corner-roundness: 10px;
}

/* Services Section Component */
#services-section {
    margin: 50px 0;
    clear: both;
}

#services-section-title {
    font-family: 'Rubik', sans-serif;
    font-size: 24px;
    font-weight: 500;
    color: #286c91;
    margin-bottom: 30px;
    text-align: left;
}

@media (min-width: 768px) {
    #services-section-title {
        font-size: 28px;
        margin-bottom: 40px;
    }
}

.services-container {
    position: relative;
    overflow: hidden;
    width: 100%;
}

.services-grid {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding-bottom: 20px;
    -webkit-overflow-scrolling: touch;
}

/* Scrollbar styling for mobile */
.services-grid::-webkit-scrollbar {
    height: 6px;
}

.services-grid::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.services-grid::-webkit-scrollbar-thumb {
    background: #5DA9D8;
    border-radius: 10px;
}

.services-grid::-webkit-scrollbar-thumb:hover {
    background: #4a92c4;
}

/* Service Card - Mobile */
.service-card {
    flex-shrink: 0;
    width: 140px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: var(--services-corner-roundness);
    padding: 20px 15px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    list-style: none;
    margin: 0;
}

.service-card:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 24px rgba(93, 169, 216, 0.2);
    border-color: #5DA9D8;
}

.service-card img {
    width: 48px;
    height: 48px;
    margin-bottom: 12px;
    flex-shrink: 0;
}

.service-card-text {
    font-family: 'Rubik', sans-serif;
    font-size: 13px;
    line-height: 1.3;
    color: #334155;
    font-weight: 500;
}

/* Desktop - 3x3 Grid */
@media (min-width: 768px) {
    .services-container {
        max-height: 450px;
    }
    
    .services-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        grid-template-rows: repeat(3, 1fr);
        gap: 20px;
        overflow: visible;
        padding: 0;
        height: 450px;
    }
    
    .service-card {
        width: auto;
        flex-shrink: 1;
        padding: 25px 20px;
    }
    
    .service-card:hover {
        transform: translateY(-4px) scale(1.02);
        box-shadow: 0 12px 28px rgba(93, 169, 216, 0.25);
    }
    
    .service-card img {
        width: 56px;
        height: 56px;
        margin-bottom: 14px;
    }
    
    .service-card-text {
        font-size: 16px;
        line-height: 1.4;
    }
}

@media (min-width: 1024px) {
    .service-card img {
        width: 64px;
        height: 64px;
        margin-bottom: 16px;
    }
    
    .service-card-text {
        font-size: 17px;
    }
}
