.services-container {
    margin: 15px 0;
    padding: 15px;
    /* background: #f8f9fa; */
    border-radius: 10px;
}

/* 데스크탑에서 컨테이너 너비 고정 */
@media (min-width: 769px) {
    .services-container {
        max-width: 925px;
        margin: 0 auto;
    }
    
    /* 데스크탑에서 8번째 이후 아이템 숨김 */
    .service-item:nth-child(n+8) {
        display: none;
    }
}

/* 태블릿에서 컨테이너 너비 고정 */
@media (max-width: 768px) and (min-width: 481px) {
    .services-container {
        max-width: 600px;
        margin: 0 auto;
    }
}

.services-grid {
    display: flex;
    flex-wrap: nowrap;
    gap: 15px;
    justify-content: center;
    align-items: center;
    margin-bottom: 15px;
    overflow-x: auto;
    padding: 0 10px;
}

.service-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
    min-width: 80px;
    flex-shrink: 0;
}

.service-item:hover {
    transform: translateY(-3px);
    color: #007bff;
}

.service-icon {
    width: 55px;
    height: 55px;
    background: #e9ecef;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
    transition: all 0.3s ease;
}

.service-item:hover .service-icon {
    background: #007bff;
    box-shadow: 0 4px 8px rgba(0,123,255,0.3);
}

.service-icon img {
    width: 30px;
    height: 30px;
    object-fit: contain;
}

.service-name {
    color: #555;
    font-size: 15px;
    font-weight: 700;
    text-align: center;
    line-height: 1.3;
}

.menu-toggle {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    padding: 10px;
    border-radius: 10px;
    transition: all 0.3s ease;
    min-width: 80px;
    flex-shrink: 0;
}

.menu-toggle:hover {
    background: #e9ecef;
}

.toggle-dots {
    display: flex;
    flex-wrap: wrap;
    gap: 2px;
    width: 20px;
    height: 20px;
    margin-bottom: 8px;
}

.dot {
    width: 4px;
    height: 4px;
    background: #666;
    border-radius: 50%;
}

.menu-toggle:hover .dot {
    background: #007bff;
}

.toggle-text {
    font-size: 12px;
    font-weight: 500;
    color: #666;
}

.menu-toggle:hover .toggle-text {
    color: #007bff;
}

.all-services {
    display: none;
    flex-direction: column;
    padding-top: 20px;
    border-top: 1px solid #dee2e6;
    margin-top: 15px;
}

.all-services.show {
    display: flex;
}

.all-services-title {
    font-size: 18px;
    font-weight: 700;
    color: #333;
    text-align: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #007bff;
}

.all-services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    padding: 0 10px;
}

.all-service-item {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #333;
    padding: 12px;
    border-radius: 8px;
    transition: all 0.3s ease;
    background: #fff;
    border: 1px solid #e9ecef;
}

.all-service-item:hover {
    background: #f8f9fa;
    transform: translateX(5px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.all-service-icon {
    width: 35px;
    height: 35px;
    background: #e9ecef;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    flex-shrink: 0;
}

.all-service-item:hover .all-service-icon {
    background: #007bff;
}

.all-service-icon img {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.all-service-name {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    line-height: 1.3;
}

/* 반응형 설정 */
@media (max-width: 768px) and (min-width: 481px) {
    .services-grid {
        gap: 10px;
        flex-wrap: nowrap;
        justify-content: center;
    }
    
    .service-item {
        min-width: 70px;
    }
    
    .service-icon {
        width: 45px;
        height: 45px;
    }
    
    .service-icon img {
        width: 25px;
        height: 25px;
    }
    
    .service-name {
        font-size: 11px;
    }
    
    /* 태블릿에서 6번째 이후 아이템 숨김 */
    .service-item:nth-child(n+6) {
        display: none;
    }
}

@media (max-width: 480px) {
    .services-grid {
        gap: 8px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .service-item {
        min-width: 60px;
    }
    
    .service-icon {
        width: 40px;
        height: 40px;
    }
    
    .service-icon img {
        width: 22px;
        height: 22px;
    }
    
    .service-name {
        font-size: 10px;
    }
    
    /* 모바일에서 4번째 이후 아이템 숨김 */
    .service-item:nth-child(n+4) {
        display: none;
    }
}
